@bluecopa/react 0.1.62 → 0.1.63

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.
@@ -2947,7 +2947,7 @@ function JP(e, t) {
2947
2947
  t
2948
2948
  );
2949
2949
  }
2950
- const pK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2950
+ const mK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2951
2951
  __proto__: null,
2952
2952
  CancelledError: _v,
2953
2953
  HydrationBoundary: VP,
@@ -4892,22 +4892,22 @@ ln.getAdapter = Zw.getAdapter;
4892
4892
  ln.HttpStatusCode = Fm;
4893
4893
  ln.default = ln;
4894
4894
  const {
4895
- Axios: yK,
4896
- AxiosError: bK,
4897
- CanceledError: _K,
4898
- isCancel: wK,
4899
- CancelToken: SK,
4900
- VERSION: EK,
4901
- all: CK,
4902
- Cancel: OK,
4903
- isAxiosError: TK,
4904
- spread: RK,
4905
- toFormData: kK,
4906
- AxiosHeaders: xK,
4907
- HttpStatusCode: PK,
4908
- formToJSON: AK,
4909
- getAdapter: IK,
4910
- mergeConfig: DK
4895
+ Axios: bK,
4896
+ AxiosError: _K,
4897
+ CanceledError: wK,
4898
+ isCancel: SK,
4899
+ CancelToken: EK,
4900
+ VERSION: CK,
4901
+ all: OK,
4902
+ Cancel: TK,
4903
+ isAxiosError: RK,
4904
+ spread: kK,
4905
+ toFormData: xK,
4906
+ AxiosHeaders: PK,
4907
+ HttpStatusCode: AK,
4908
+ formToJSON: IK,
4909
+ getAdapter: DK,
4910
+ mergeConfig: FK
4911
4911
  } = ln;
4912
4912
  var $h = { exports: {} };
4913
4913
  /**
@@ -19578,17 +19578,17 @@ const Zm = /* @__PURE__ */ ww(HN), f_ = Symbol.for("Dexie"), nd = globalThis[f_]
19578
19578
  if (Zm.semVer !== nd.semVer)
19579
19579
  throw new Error(`Two different versions of Dexie loaded in the same app: ${Zm.semVer} and ${nd.semVer}`);
19580
19580
  const {
19581
- liveQuery: LK,
19582
- mergeRanges: NK,
19583
- rangesOverlap: qK,
19584
- RangeSet: BK,
19585
- cmp: $K,
19586
- Entity: UK,
19587
- PropModSymbol: jK,
19588
- PropModification: KK,
19589
- replacePrefix: WK,
19590
- add: HK,
19591
- remove: zK
19581
+ liveQuery: NK,
19582
+ mergeRanges: qK,
19583
+ rangesOverlap: BK,
19584
+ RangeSet: $K,
19585
+ cmp: UK,
19586
+ Entity: jK,
19587
+ PropModSymbol: KK,
19588
+ PropModification: WK,
19589
+ replacePrefix: HK,
19590
+ add: zK,
19591
+ remove: VK
19592
19592
  } = nd;
19593
19593
  var rd = "docs", zN = "changes", h_ = "attachments", zS = "dexie", d_ = /* @__PURE__ */ new Map(), Ih = /* @__PURE__ */ new Map();
19594
19594
  function VN(e, t, n, r) {
@@ -26957,7 +26957,7 @@ const CE = async (e) => {
26957
26957
  for (let i = 1; t.includes(s); i++)
26958
26958
  s = `${e}${r}${n}${r}${i}`;
26959
26959
  return s.trim();
26960
- }, VK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26960
+ }, QK = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26961
26961
  __proto__: null,
26962
26962
  formatDate: Lq,
26963
26963
  generatePushID: ag,
@@ -28240,13 +28240,28 @@ async function N$({
28240
28240
  throw { message: i, status: a };
28241
28241
  }
28242
28242
  }
28243
- const q$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28243
+ async function q$(e) {
28244
+ var t, n, r, s, i, a;
28245
+ if (!((n = (t = e == null ? void 0 : e.message) == null ? void 0 : t.trim) != null && n.call(t)))
28246
+ throw { message: "message is required", status: 400 };
28247
+ if (!(e != null && e.alertType))
28248
+ throw { message: "alertType is required", status: 400 };
28249
+ try {
28250
+ const c = await he.post("/inbox-items/create", e);
28251
+ return ((r = c.data) == null ? void 0 : r.data) ?? c.data;
28252
+ } catch (c) {
28253
+ const f = c, m = ((i = (s = f.response) == null ? void 0 : s.data) == null ? void 0 : i.message) || f.message || "Failed to create inbox item", v = ((a = f.response) == null ? void 0 : a.status) || 500;
28254
+ throw { message: m, status: v };
28255
+ }
28256
+ }
28257
+ const B$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28244
28258
  __proto__: null,
28259
+ createInboxItemPerUser: q$,
28245
28260
  getAllInboxItems: M$,
28246
28261
  markItemAsRead: L$,
28247
28262
  markItemAsUnread: N$
28248
28263
  }, Symbol.toStringTag, { value: "Module" }));
28249
- async function B$(e) {
28264
+ async function $$(e) {
28250
28265
  var t, n, r;
28251
28266
  try {
28252
28267
  const { objectId: s, objectType: i, user: a, userType: c, relations: f } = e, m = await he.post("/permissions/check", {
@@ -28264,11 +28279,11 @@ async function B$(e) {
28264
28279
  throw { message: i, status: a };
28265
28280
  }
28266
28281
  }
28267
- const $$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28282
+ const U$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28268
28283
  __proto__: null,
28269
- getPermissions: B$
28284
+ getPermissions: $$
28270
28285
  }, Symbol.toStringTag, { value: "Module" }));
28271
- async function U$() {
28286
+ async function j$() {
28272
28287
  var e, t, n;
28273
28288
  try {
28274
28289
  const r = await he.get("/client-ip");
@@ -28280,11 +28295,11 @@ async function U$() {
28280
28295
  throw { message: s, status: i };
28281
28296
  }
28282
28297
  }
28283
- const j$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28298
+ const K$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28284
28299
  __proto__: null,
28285
- getClientIp: U$
28300
+ getClientIp: j$
28286
28301
  }, Symbol.toStringTag, { value: "Module" }));
28287
- async function K$(e) {
28302
+ async function W$(e) {
28288
28303
  var t, n, r, s;
28289
28304
  try {
28290
28305
  const i = await he.get("/email/conversations", {
@@ -28301,7 +28316,7 @@ async function K$(e) {
28301
28316
  throw { message: a, status: c };
28302
28317
  }
28303
28318
  }
28304
- async function W$(e) {
28319
+ async function H$(e) {
28305
28320
  var t, n, r, s;
28306
28321
  try {
28307
28322
  if (!e.conversationId)
@@ -28315,7 +28330,7 @@ async function W$(e) {
28315
28330
  throw { message: a, status: c };
28316
28331
  }
28317
28332
  }
28318
- async function H$(e) {
28333
+ async function z$(e) {
28319
28334
  var t, n, r, s, i, a, c, f, m, v, b, C, R, E;
28320
28335
  try {
28321
28336
  const O = {
@@ -28342,7 +28357,7 @@ async function H$(e) {
28342
28357
  throw { message: x, status: B };
28343
28358
  }
28344
28359
  }
28345
- async function z$(e) {
28360
+ async function V$(e) {
28346
28361
  var t, n, r, s, i, a, c, f, m, v, b, C, R;
28347
28362
  try {
28348
28363
  const E = (t = e.conversationId) == null ? void 0 : t.trim(), O = (n = e.accountId) == null ? void 0 : n.trim(), x = (r = e.senderId) == null ? void 0 : r.trim(), B = (s = e.bodyText) == null ? void 0 : s.trim(), U = (i = e.bodyHtml) == null ? void 0 : i.trim();
@@ -28376,7 +28391,7 @@ async function z$(e) {
28376
28391
  throw { message: O, status: x };
28377
28392
  }
28378
28393
  }
28379
- async function V$(e) {
28394
+ async function Q$(e) {
28380
28395
  var t, n, r, s, i;
28381
28396
  if (!((t = e.senderId) != null && t.trim()))
28382
28397
  throw { message: "senderId is required", status: 400 };
@@ -28399,15 +28414,15 @@ async function V$(e) {
28399
28414
  throw { message: f, status: m };
28400
28415
  }
28401
28416
  }
28402
- const Q$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28417
+ const G$ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28403
28418
  __proto__: null,
28404
- createConversation: H$,
28405
- getAllConversations: K$,
28406
- getConversation: W$,
28407
- getMessageBySenderId: V$,
28408
- replyToConversation: z$
28419
+ createConversation: z$,
28420
+ getAllConversations: W$,
28421
+ getConversation: H$,
28422
+ getMessageBySenderId: Q$,
28423
+ replyToConversation: V$
28409
28424
  }, Symbol.toStringTag, { value: "Module" }));
28410
- async function G$() {
28425
+ async function J$() {
28411
28426
  var e, t, n;
28412
28427
  try {
28413
28428
  return (await he.get("/tcn/auth-url")).data;
@@ -28416,7 +28431,7 @@ async function G$() {
28416
28431
  throw { message: s, status: i };
28417
28432
  }
28418
28433
  }
28419
- async function J$(e) {
28434
+ async function X$(e) {
28420
28435
  var t, n, r;
28421
28436
  try {
28422
28437
  return (await he.post("/tcn/exchange-code", { code: e })).data;
@@ -28425,7 +28440,7 @@ async function J$(e) {
28425
28440
  throw { message: i, status: a };
28426
28441
  }
28427
28442
  }
28428
- async function X$(e) {
28443
+ async function Y$(e) {
28429
28444
  var t, n, r;
28430
28445
  try {
28431
28446
  return (await he.post("/tcn/token", { refresh_token: e })).data;
@@ -28434,7 +28449,7 @@ async function X$(e) {
28434
28449
  throw { message: i, status: a };
28435
28450
  }
28436
28451
  }
28437
- async function Y$(e) {
28452
+ async function Z$(e) {
28438
28453
  var t, n, r;
28439
28454
  try {
28440
28455
  return (await he.post("/tcn/get-current-agent", { token: e })).data;
@@ -28443,7 +28458,7 @@ async function Y$(e) {
28443
28458
  throw { message: i, status: a };
28444
28459
  }
28445
28460
  }
28446
- async function Z$(e, t) {
28461
+ async function eU(e, t) {
28447
28462
  var n, r, s;
28448
28463
  try {
28449
28464
  return (await he.post("/tcn/get-agent-skills", {
@@ -28455,7 +28470,7 @@ async function Z$(e, t) {
28455
28470
  throw { message: a, status: c };
28456
28471
  }
28457
28472
  }
28458
- async function eU(e, t, n) {
28473
+ async function tU(e, t, n) {
28459
28474
  var r, s, i;
28460
28475
  try {
28461
28476
  return (await he.post("/tcn/create-session", {
@@ -28468,7 +28483,7 @@ async function eU(e, t, n) {
28468
28483
  throw { message: c, status: f };
28469
28484
  }
28470
28485
  }
28471
- async function tU(e, t) {
28486
+ async function nU(e, t) {
28472
28487
  var n, r, s;
28473
28488
  try {
28474
28489
  return (await he.post("/tcn/keep-alive", {
@@ -28480,7 +28495,7 @@ async function tU(e, t) {
28480
28495
  throw { message: a, status: c };
28481
28496
  }
28482
28497
  }
28483
- async function nU(e) {
28498
+ async function rU(e) {
28484
28499
  var t, n, r;
28485
28500
  try {
28486
28501
  return (await he.post("/tcn/agent-get-status", { token: e })).data;
@@ -28489,7 +28504,7 @@ async function nU(e) {
28489
28504
  throw { message: i, status: a };
28490
28505
  }
28491
28506
  }
28492
- async function rU(e, t) {
28507
+ async function sU(e, t) {
28493
28508
  var n, r, s;
28494
28509
  try {
28495
28510
  return (await he.post("/tcn/get-hunt-group-agent-settings", {
@@ -28501,7 +28516,7 @@ async function rU(e, t) {
28501
28516
  throw { message: a, status: c };
28502
28517
  }
28503
28518
  }
28504
- async function sU(e, t) {
28519
+ async function iU(e, t) {
28505
28520
  var n, r, s;
28506
28521
  try {
28507
28522
  return (await he.post("/tcn/dial-manual-prepare", {
@@ -28513,7 +28528,7 @@ async function sU(e, t) {
28513
28528
  throw { message: a, status: c };
28514
28529
  }
28515
28530
  }
28516
- async function iU(e, t) {
28531
+ async function oU(e, t) {
28517
28532
  var n, r, s;
28518
28533
  try {
28519
28534
  return (await he.post("/tcn/process-manual-dial", {
@@ -28525,7 +28540,7 @@ async function iU(e, t) {
28525
28540
  throw { message: a, status: c };
28526
28541
  }
28527
28542
  }
28528
- async function oU(e, t, n, r) {
28543
+ async function aU(e, t, n, r) {
28529
28544
  var s, i, a;
28530
28545
  try {
28531
28546
  return (await he.post("/tcn/manual-dial-start", {
@@ -28539,7 +28554,7 @@ async function oU(e, t, n, r) {
28539
28554
  throw { message: f, status: m };
28540
28555
  }
28541
28556
  }
28542
- async function aU(e, t, n = "endcall") {
28557
+ async function uU(e, t, n = "endcall") {
28543
28558
  var r, s, i;
28544
28559
  try {
28545
28560
  return (await he.post("/tcn/agent-disconnect", {
@@ -28552,7 +28567,7 @@ async function aU(e, t, n = "endcall") {
28552
28567
  throw { message: c, status: f };
28553
28568
  }
28554
28569
  }
28555
- async function uU(e, t) {
28570
+ async function cU(e, t) {
28556
28571
  var n, r, s;
28557
28572
  try {
28558
28573
  return (await he.post("/tcn/agent-pause", {
@@ -28564,7 +28579,7 @@ async function uU(e, t) {
28564
28579
  throw { message: a, status: c };
28565
28580
  }
28566
28581
  }
28567
- async function cU(e, t) {
28582
+ async function lU(e, t) {
28568
28583
  var n, r, s;
28569
28584
  try {
28570
28585
  return (await he.post("/tcn/agent-set-ready", {
@@ -28576,7 +28591,7 @@ async function cU(e, t) {
28576
28591
  throw { message: a, status: c };
28577
28592
  }
28578
28593
  }
28579
- async function lU(e, t) {
28594
+ async function fU(e, t) {
28580
28595
  var n, r, s;
28581
28596
  try {
28582
28597
  return (await he.post("/tcn/agent-get-connected-party", {
@@ -28588,7 +28603,7 @@ async function lU(e, t) {
28588
28603
  throw { message: a, status: c };
28589
28604
  }
28590
28605
  }
28591
- async function fU(e, t) {
28606
+ async function hU(e, t) {
28592
28607
  var n, r, s;
28593
28608
  try {
28594
28609
  return (await he.post("/tcn/get-call-data", {
@@ -28600,27 +28615,27 @@ async function fU(e, t) {
28600
28615
  throw { message: a, status: c };
28601
28616
  }
28602
28617
  }
28603
- const hU = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28618
+ const dU = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28604
28619
  __proto__: null,
28605
- agentDisconnect: aU,
28606
- agentGetConnectedParty: lU,
28607
- agentGetStatus: nU,
28608
- agentPause: uU,
28609
- agentSetReady: cU,
28610
- createSession: eU,
28611
- dialManualPrepare: sU,
28612
- exchangeCode: J$,
28613
- getAgentSkills: Z$,
28614
- getAuthUrl: G$,
28615
- getCallData: fU,
28616
- getCurrentAgent: Y$,
28617
- getHuntGroupAgentSettings: rU,
28618
- keepAlive: tU,
28619
- manualDialStart: oU,
28620
- processManualDial: iU,
28621
- refreshToken: X$
28620
+ agentDisconnect: uU,
28621
+ agentGetConnectedParty: fU,
28622
+ agentGetStatus: rU,
28623
+ agentPause: cU,
28624
+ agentSetReady: lU,
28625
+ createSession: tU,
28626
+ dialManualPrepare: iU,
28627
+ exchangeCode: X$,
28628
+ getAgentSkills: eU,
28629
+ getAuthUrl: J$,
28630
+ getCallData: hU,
28631
+ getCurrentAgent: Z$,
28632
+ getHuntGroupAgentSettings: sU,
28633
+ keepAlive: nU,
28634
+ manualDialStart: aU,
28635
+ processManualDial: oU,
28636
+ refreshToken: Y$
28622
28637
  }, Symbol.toStringTag, { value: "Module" })), go = "/webcron/webhooks";
28623
- async function dU() {
28638
+ async function pU() {
28624
28639
  var e, t, n, r;
28625
28640
  try {
28626
28641
  const s = await he.get(go);
@@ -28630,7 +28645,7 @@ async function dU() {
28630
28645
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to list webhooks", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28631
28646
  }
28632
28647
  }
28633
- async function pU(e) {
28648
+ async function mU(e) {
28634
28649
  var t, n, r, s, i, a;
28635
28650
  if (!((t = e.name) != null && t.trim())) throw { message: "name is required", status: 400 };
28636
28651
  if (!((n = e.url) != null && n.trim())) throw { message: "url is required", status: 400 };
@@ -28642,7 +28657,7 @@ async function pU(e) {
28642
28657
  throw { message: ((i = (s = f.response) == null ? void 0 : s.data) == null ? void 0 : i.message) || "Failed to create webhook", status: ((a = f.response) == null ? void 0 : a.status) || 500 };
28643
28658
  }
28644
28659
  }
28645
- async function mU(e) {
28660
+ async function vU(e) {
28646
28661
  var t, n, r, s;
28647
28662
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28648
28663
  try {
@@ -28653,7 +28668,7 @@ async function mU(e) {
28653
28668
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to get webhook", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28654
28669
  }
28655
28670
  }
28656
- async function vU(e, t) {
28671
+ async function gU(e, t) {
28657
28672
  var n, r, s, i;
28658
28673
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28659
28674
  try {
@@ -28664,7 +28679,7 @@ async function vU(e, t) {
28664
28679
  throw { message: ((s = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : s.message) || "Failed to update webhook", status: ((i = c.response) == null ? void 0 : i.status) || 500 };
28665
28680
  }
28666
28681
  }
28667
- async function gU(e) {
28682
+ async function yU(e) {
28668
28683
  var t, n, r;
28669
28684
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28670
28685
  try {
@@ -28674,7 +28689,7 @@ async function gU(e) {
28674
28689
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to delete webhook", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28675
28690
  }
28676
28691
  }
28677
- async function yU(e) {
28692
+ async function bU(e) {
28678
28693
  var t, n, r, s;
28679
28694
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28680
28695
  try {
@@ -28685,7 +28700,7 @@ async function yU(e) {
28685
28700
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to test webhook", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28686
28701
  }
28687
28702
  }
28688
- async function bU(e, t) {
28703
+ async function _U(e, t) {
28689
28704
  var n, r, s, i;
28690
28705
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28691
28706
  try {
@@ -28696,7 +28711,7 @@ async function bU(e, t) {
28696
28711
  throw { message: ((s = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : s.message) || "Failed to get webhook executions", status: ((i = c.response) == null ? void 0 : i.status) || 500 };
28697
28712
  }
28698
28713
  }
28699
- async function _U(e) {
28714
+ async function wU(e) {
28700
28715
  var t, n, r, s;
28701
28716
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28702
28717
  try {
@@ -28707,7 +28722,7 @@ async function _U(e) {
28707
28722
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to get webhook schedules", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28708
28723
  }
28709
28724
  }
28710
- async function wU(e, t) {
28725
+ async function SU(e, t) {
28711
28726
  var n, r, s, i;
28712
28727
  if (!(e != null && e.trim())) throw { message: "webhookId is required", status: 400 };
28713
28728
  try {
@@ -28719,7 +28734,7 @@ async function wU(e, t) {
28719
28734
  }
28720
28735
  }
28721
28736
  const Hc = "/webcron/schedules";
28722
- async function SU(e) {
28737
+ async function EU(e) {
28723
28738
  var t, n, r, s;
28724
28739
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28725
28740
  try {
@@ -28730,7 +28745,7 @@ async function SU(e) {
28730
28745
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to get schedule", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28731
28746
  }
28732
28747
  }
28733
- async function EU(e, t) {
28748
+ async function CU(e, t) {
28734
28749
  var n, r, s, i;
28735
28750
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28736
28751
  try {
@@ -28741,7 +28756,7 @@ async function EU(e, t) {
28741
28756
  throw { message: ((s = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : s.message) || "Failed to update schedule", status: ((i = c.response) == null ? void 0 : i.status) || 500 };
28742
28757
  }
28743
28758
  }
28744
- async function CU(e) {
28759
+ async function OU(e) {
28745
28760
  var t, n, r;
28746
28761
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28747
28762
  try {
@@ -28751,7 +28766,7 @@ async function CU(e) {
28751
28766
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to delete schedule", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28752
28767
  }
28753
28768
  }
28754
- async function OU(e) {
28769
+ async function TU(e) {
28755
28770
  var t, n, r, s;
28756
28771
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28757
28772
  try {
@@ -28762,7 +28777,7 @@ async function OU(e) {
28762
28777
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to pause schedule", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28763
28778
  }
28764
28779
  }
28765
- async function TU(e) {
28780
+ async function RU(e) {
28766
28781
  var t, n, r, s;
28767
28782
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28768
28783
  try {
@@ -28773,7 +28788,7 @@ async function TU(e) {
28773
28788
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to resume schedule", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28774
28789
  }
28775
28790
  }
28776
- async function RU(e) {
28791
+ async function kU(e) {
28777
28792
  var t, n, r, s;
28778
28793
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28779
28794
  try {
@@ -28785,7 +28800,7 @@ async function RU(e) {
28785
28800
  }
28786
28801
  }
28787
28802
  const fg = "/webcron/executions";
28788
- async function kU(e) {
28803
+ async function xU(e) {
28789
28804
  var t, n, r, s;
28790
28805
  try {
28791
28806
  const i = await he.get(fg, { params: e });
@@ -28795,7 +28810,7 @@ async function kU(e) {
28795
28810
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to list executions", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28796
28811
  }
28797
28812
  }
28798
- async function xU(e) {
28813
+ async function PU(e) {
28799
28814
  var t, n, r, s;
28800
28815
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28801
28816
  try {
@@ -28806,7 +28821,7 @@ async function xU(e) {
28806
28821
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to get execution", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28807
28822
  }
28808
28823
  }
28809
- async function PU(e) {
28824
+ async function AU(e) {
28810
28825
  var t, n, r, s;
28811
28826
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28812
28827
  try {
@@ -28818,7 +28833,7 @@ async function PU(e) {
28818
28833
  }
28819
28834
  }
28820
28835
  const Su = "/webcron/tasks";
28821
- async function AU() {
28836
+ async function IU() {
28822
28837
  var e, t, n, r;
28823
28838
  try {
28824
28839
  const s = await he.get(Su);
@@ -28828,7 +28843,7 @@ async function AU() {
28828
28843
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to list tasks", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28829
28844
  }
28830
28845
  }
28831
- async function IU(e) {
28846
+ async function DU(e) {
28832
28847
  var t, n, r, s, i;
28833
28848
  if (!((t = e.webhookId) != null && t.trim())) throw { message: "webhookId is required", status: 400 };
28834
28849
  try {
@@ -28839,7 +28854,7 @@ async function IU(e) {
28839
28854
  throw { message: ((s = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : s.message) || "Failed to create task", status: ((i = c.response) == null ? void 0 : i.status) || 500 };
28840
28855
  }
28841
28856
  }
28842
- async function DU(e) {
28857
+ async function FU(e) {
28843
28858
  var t, n, r, s;
28844
28859
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28845
28860
  try {
@@ -28850,7 +28865,7 @@ async function DU(e) {
28850
28865
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to get task", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28851
28866
  }
28852
28867
  }
28853
- async function FU(e) {
28868
+ async function MU(e) {
28854
28869
  var t, n, r, s;
28855
28870
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28856
28871
  try {
@@ -28861,7 +28876,7 @@ async function FU(e) {
28861
28876
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to cancel task", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28862
28877
  }
28863
28878
  }
28864
- async function MU(e) {
28879
+ async function LU(e) {
28865
28880
  var t, n, r, s;
28866
28881
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28867
28882
  try {
@@ -28872,7 +28887,7 @@ async function MU(e) {
28872
28887
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to retry task", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28873
28888
  }
28874
28889
  }
28875
- async function LU(e, t) {
28890
+ async function NU(e, t) {
28876
28891
  var n, r, s;
28877
28892
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28878
28893
  try {
@@ -28882,7 +28897,7 @@ async function LU(e, t) {
28882
28897
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to log task progress", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28883
28898
  }
28884
28899
  }
28885
- async function NU(e, t, n) {
28900
+ async function qU(e, t, n) {
28886
28901
  var r, s, i, a;
28887
28902
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28888
28903
  try {
@@ -28894,7 +28909,7 @@ async function NU(e, t, n) {
28894
28909
  }
28895
28910
  }
28896
28911
  const zc = "/webcron/inspection/bins";
28897
- async function qU() {
28912
+ async function BU() {
28898
28913
  var e, t, n, r;
28899
28914
  try {
28900
28915
  const s = await he.get(zc);
@@ -28904,7 +28919,7 @@ async function qU() {
28904
28919
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to list bins", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28905
28920
  }
28906
28921
  }
28907
- async function BU(e) {
28922
+ async function $U(e) {
28908
28923
  var t, n, r, s, i;
28909
28924
  if (!((t = e.name) != null && t.trim())) throw { message: "name is required", status: 400 };
28910
28925
  try {
@@ -28915,7 +28930,7 @@ async function BU(e) {
28915
28930
  throw { message: ((s = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : s.message) || "Failed to create bin", status: ((i = c.response) == null ? void 0 : i.status) || 500 };
28916
28931
  }
28917
28932
  }
28918
- async function $U(e) {
28933
+ async function UU(e) {
28919
28934
  var t, n, r, s;
28920
28935
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28921
28936
  try {
@@ -28926,7 +28941,7 @@ async function $U(e) {
28926
28941
  throw { message: ((r = (n = a.response) == null ? void 0 : n.data) == null ? void 0 : r.message) || "Failed to get bin", status: ((s = a.response) == null ? void 0 : s.status) || 500 };
28927
28942
  }
28928
28943
  }
28929
- async function UU(e) {
28944
+ async function jU(e) {
28930
28945
  var t, n, r;
28931
28946
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28932
28947
  try {
@@ -28936,7 +28951,7 @@ async function UU(e) {
28936
28951
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to delete bin", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28937
28952
  }
28938
28953
  }
28939
- async function jU(e, t) {
28954
+ async function KU(e, t) {
28940
28955
  var n, r, s, i;
28941
28956
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28942
28957
  try {
@@ -28947,7 +28962,7 @@ async function jU(e, t) {
28947
28962
  throw { message: ((s = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : s.message) || "Failed to get bin requests", status: ((i = c.response) == null ? void 0 : i.status) || 500 };
28948
28963
  }
28949
28964
  }
28950
- async function KU(e) {
28965
+ async function WU(e) {
28951
28966
  var t, n, r;
28952
28967
  if (!(e != null && e.trim())) throw { message: "id is required", status: 400 };
28953
28968
  try {
@@ -28957,7 +28972,7 @@ async function KU(e) {
28957
28972
  throw { message: ((n = (t = i.response) == null ? void 0 : t.data) == null ? void 0 : n.message) || "Failed to clear bin requests", status: ((r = i.response) == null ? void 0 : r.status) || 500 };
28958
28973
  }
28959
28974
  }
28960
- async function WU(e, t) {
28975
+ async function HU(e, t) {
28961
28976
  var n, r, s, i;
28962
28977
  if (!(e != null && e.trim()))
28963
28978
  throw { message: "id is required", status: 400 };
@@ -28972,69 +28987,69 @@ async function WU(e, t) {
28972
28987
  throw { message: f, status: m };
28973
28988
  }
28974
28989
  }
28975
- const HU = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28990
+ const zU = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28976
28991
  __proto__: null,
28977
- cancelTask: FU,
28978
- clearBinRequests: KU,
28979
- createBin: BU,
28980
- createTask: IU,
28981
- createWebhook: pU,
28982
- createWebhookSchedule: wU,
28983
- deleteBin: UU,
28984
- deleteSchedule: CU,
28985
- deleteWebhook: gU,
28986
- getBin: $U,
28987
- getBinRequests: jU,
28988
- getExecution: xU,
28989
- getSchedule: SU,
28990
- getTask: DU,
28991
- getWebhook: mU,
28992
- getWebhookExecutions: bU,
28993
- getWebhookSchedules: _U,
28994
- listBins: qU,
28995
- listExecutions: kU,
28996
- listTasks: AU,
28997
- listWebhooks: dU,
28998
- pauseSchedule: OU,
28999
- progressTask: LU,
29000
- resumeSchedule: TU,
29001
- retryExecution: PU,
29002
- retryTask: MU,
29003
- signalTask: NU,
29004
- testWebhook: yU,
29005
- triggerSchedule: RU,
29006
- triggerWorkflowById: WU,
29007
- updateSchedule: EU,
29008
- updateWebhook: vU
28992
+ cancelTask: MU,
28993
+ clearBinRequests: WU,
28994
+ createBin: $U,
28995
+ createTask: DU,
28996
+ createWebhook: mU,
28997
+ createWebhookSchedule: SU,
28998
+ deleteBin: jU,
28999
+ deleteSchedule: OU,
29000
+ deleteWebhook: yU,
29001
+ getBin: UU,
29002
+ getBinRequests: KU,
29003
+ getExecution: PU,
29004
+ getSchedule: EU,
29005
+ getTask: FU,
29006
+ getWebhook: vU,
29007
+ getWebhookExecutions: _U,
29008
+ getWebhookSchedules: wU,
29009
+ listBins: BU,
29010
+ listExecutions: xU,
29011
+ listTasks: IU,
29012
+ listWebhooks: pU,
29013
+ pauseSchedule: TU,
29014
+ progressTask: NU,
29015
+ resumeSchedule: RU,
29016
+ retryExecution: AU,
29017
+ retryTask: LU,
29018
+ signalTask: qU,
29019
+ testWebhook: bU,
29020
+ triggerSchedule: kU,
29021
+ triggerWorkflowById: HU,
29022
+ updateSchedule: CU,
29023
+ updateWebhook: gU
29009
29024
  }, Symbol.toStringTag, { value: "Module" })), me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29010
29025
  __proto__: null,
29011
29026
  apiClient: he,
29012
29027
  audit: x$,
29013
29028
  chat: GB,
29014
- clientIp: j$,
29029
+ clientIp: K$,
29015
29030
  dataset: ZB,
29016
29031
  definition: Dq,
29017
- emailEngine: Q$,
29032
+ emailEngine: G$,
29018
29033
  files: Iq,
29019
29034
  form: T$,
29020
- inboxItems: q$,
29035
+ inboxItems: B$,
29021
29036
  inputTable: o$,
29022
29037
  metric: $B,
29023
- permissions: $$,
29038
+ permissions: U$,
29024
29039
  process: F$,
29025
29040
  recon: w$,
29026
29041
  statement: v$,
29027
29042
  task: y$,
29028
- tcn: hU,
29043
+ tcn: dU,
29029
29044
  templatedPipeline: A$,
29030
29045
  user: Cq,
29031
- webcron: HU,
29046
+ webcron: zU,
29032
29047
  workbook: f$,
29033
29048
  workflow: xq,
29034
29049
  worksheet: Mq
29035
29050
  }, Symbol.toStringTag, { value: "Module" }));
29036
29051
  var Yr = /* @__PURE__ */ ((e) => (e.UUID = "uuid", e.TEXT = "text", e.INTEGER = "integer", e.BIGINT = "bigint", e.NUMERIC = "numeric", e.BOOLEAN = "boolean", e.TIMESTAMPTZ = "timestamptz", e.DATE = "date", e.TIME = "time", e.JSONB = "jsonb", e))(Yr || {});
29037
- const zU = /^[a-zA-Z0-9_-]+$/, VU = "x-bluecopa-solution-branch", QU = "x-bluecopa-solution-branch-type";
29052
+ const VU = /^[a-zA-Z0-9_-]+$/, QU = "x-bluecopa-solution-branch", GU = "x-bluecopa-solution-branch-type";
29038
29053
  function k_(e) {
29039
29054
  try {
29040
29055
  const t = document.cookie.split(";").map((n) => n.trim()).find((n) => n.startsWith(`${e}=`));
@@ -29044,10 +29059,10 @@ function k_(e) {
29044
29059
  }
29045
29060
  }
29046
29061
  function kE() {
29047
- const e = Bc(), t = e.solutionBranch ?? k_(VU), n = e.solutionBranchType ?? k_(QU), r = {};
29062
+ const e = Bc(), t = e.solutionBranch ?? k_(QU), n = e.solutionBranchType ?? k_(GU), r = {};
29048
29063
  return t && (r["x-bluecopa-solution-branch"] = t), n && (r["x-bluecopa-solution-branch-type"] = n), r;
29049
29064
  }
29050
- const GU = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;
29065
+ const JU = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;
29051
29066
  class zn extends Error {
29052
29067
  constructor(t, n) {
29053
29068
  super(t), this.status = n, this.name = "InputTableError";
@@ -29055,16 +29070,16 @@ class zn extends Error {
29055
29070
  }
29056
29071
  function ia(e, t) {
29057
29072
  const n = e.trim();
29058
- if (!n || !zU.test(n))
29073
+ if (!n || !VU.test(n))
29059
29074
  throw new zn(`Invalid ${t}: "${e}"`, 400);
29060
29075
  return n;
29061
29076
  }
29062
- function JU(e) {
29063
- if (!GU.test(e))
29077
+ function XU(e) {
29078
+ if (!JU.test(e))
29064
29079
  throw new zn(`Invalid checkpoint timestamp: "${e}"`, 400);
29065
29080
  return e;
29066
29081
  }
29067
- function XU(e) {
29082
+ function YU(e) {
29068
29083
  return ia(e, "checkpoint id");
29069
29084
  }
29070
29085
  function vh(e, t) {
@@ -29083,7 +29098,7 @@ function ld(e, t, n) {
29083
29098
  s = !0, r == null || r();
29084
29099
  };
29085
29100
  }
29086
- const YU = {
29101
+ const ZU = {
29087
29102
  "==": "$eq",
29088
29103
  "!=": "$ne",
29089
29104
  "<": "$lt",
@@ -29093,7 +29108,7 @@ const YU = {
29093
29108
  in: "$in",
29094
29109
  "not-in": "$nin"
29095
29110
  };
29096
- class ZU {
29111
+ class ej {
29097
29112
  constructor(t, n, r, s, i, a) {
29098
29113
  this.collection = t, this.aggregateExecutor = a, this.wheres = [], this.orders = [], n && this.wheres.push(n), r && this.orders.push(r), s !== void 0 && (this.limitCount = s), i !== void 0 && (this.skipCount = i);
29099
29114
  }
@@ -29136,15 +29151,15 @@ class ZU {
29136
29151
  buildQuery() {
29137
29152
  const t = {};
29138
29153
  for (const { field: r, op: s, value: i } of this.wheres) {
29139
- const a = YU[s];
29154
+ const a = ZU[s];
29140
29155
  t[r] || (t[r] = {}), t[r][a] = i;
29141
29156
  }
29142
29157
  const n = { selector: t };
29143
29158
  return this.orders.length > 0 && (n.sort = this.orders.map(({ field: r, direction: s }) => ({ [r]: s }))), this.limitCount !== void 0 && (n.limit = this.limitCount), this.skipCount !== void 0 && (n.skip = this.skipCount), this.collection.find(n);
29144
29159
  }
29145
29160
  }
29146
- const rs = "updated_at", xE = 14, ej = 5e3, tj = 100, nj = 10;
29147
- class rj {
29161
+ const rs = "updated_at", xE = 14, tj = 5e3, nj = 100, rj = 10;
29162
+ class sj {
29148
29163
  constructor(t, n, r, s, i, a) {
29149
29164
  this.collection = t, this.id = n, this.solutionId = r, this.tableName = s, this.primaryKeyField = i, this.websocketProvider = a;
29150
29165
  }
@@ -29175,7 +29190,7 @@ class rj {
29175
29190
  return () => n.unsubscribe();
29176
29191
  }
29177
29192
  }
29178
- const sj = {
29193
+ const ij = {
29179
29194
  "==": "eq",
29180
29195
  "!=": "neq",
29181
29196
  "<": "lt",
@@ -29184,14 +29199,14 @@ const sj = {
29184
29199
  ">=": "gte",
29185
29200
  in: "in",
29186
29201
  "not-in": "not.in"
29187
- }, ij = /* @__PURE__ */ new Set([
29202
+ }, oj = /* @__PURE__ */ new Set([
29188
29203
  "sum",
29189
29204
  "avg",
29190
29205
  "count",
29191
29206
  "min",
29192
29207
  "max"
29193
29208
  ]);
29194
- function oj(e) {
29209
+ function aj(e) {
29195
29210
  for (const [t, n] of Object.entries(e)) {
29196
29211
  if (t === "_count") {
29197
29212
  if (n !== !0)
@@ -29207,14 +29222,14 @@ function oj(e) {
29207
29222
  400
29208
29223
  );
29209
29224
  for (const r of n)
29210
- if (!ij.has(r))
29225
+ if (!oj.has(r))
29211
29226
  throw new zn(
29212
29227
  `Unknown aggregate function "${r}" for column "${t}". Allowed: sum, avg, count, min, max`,
29213
29228
  400
29214
29229
  );
29215
29230
  }
29216
29231
  }
29217
- function aj(e, t) {
29232
+ function uj(e, t) {
29218
29233
  const n = new Set(Object.keys(t).filter((r) => r !== "_count"));
29219
29234
  if (n.size === 0 && !t._count)
29220
29235
  throw new zn(
@@ -29228,7 +29243,7 @@ function aj(e, t) {
29228
29243
  400
29229
29244
  );
29230
29245
  }
29231
- function uj(e, t) {
29246
+ function cj(e, t) {
29232
29247
  const n = [];
29233
29248
  if (t && t.length > 0)
29234
29249
  for (const r of t)
@@ -29239,21 +29254,21 @@ function uj(e, t) {
29239
29254
  n.push(`${r}_${i}:${r}.${i}()`);
29240
29255
  return e._count && n.push("count()"), n.join(",");
29241
29256
  }
29242
- function cj(e) {
29257
+ function lj(e) {
29243
29258
  for (const { field: t } of e)
29244
29259
  ia(t, `order field "${t}"`);
29245
29260
  return e.map(({ field: t, direction: n }) => `${t}.${n}`).join(",");
29246
29261
  }
29247
- const lj = /* @__PURE__ */ new Set(["select", "order", "limit", "offset", "on_conflict", "columns", "and", "or", "not"]);
29248
- function fj(e) {
29262
+ const fj = /* @__PURE__ */ new Set(["select", "order", "limit", "offset", "on_conflict", "columns", "and", "or", "not"]);
29263
+ function hj(e) {
29249
29264
  const t = {};
29250
29265
  for (const { field: n, op: r, value: s } of e) {
29251
- if (ia(n, `where field "${n}"`), lj.has(n))
29266
+ if (ia(n, `where field "${n}"`), fj.has(n))
29252
29267
  throw new zn(
29253
29268
  `Cannot filter on reserved PostgREST param name "${n}"`,
29254
29269
  400
29255
29270
  );
29256
- const i = sj[r];
29271
+ const i = ij[r];
29257
29272
  let a;
29258
29273
  if (r === "in" || r === "not-in") {
29259
29274
  const f = Array.isArray(s) ? s : [s];
@@ -29289,10 +29304,10 @@ function PE(e, t) {
29289
29304
  }
29290
29305
  return e._count && (n._count = t.count ?? 0), n;
29291
29306
  }
29292
- function hj(e, t) {
29307
+ function dj(e, t) {
29293
29308
  return PE(e, t[0] ?? {});
29294
29309
  }
29295
- function dj(e, t, n) {
29310
+ function pj(e, t, n) {
29296
29311
  return n.map((r) => {
29297
29312
  const s = PE(e, r);
29298
29313
  for (const i of t)
@@ -29300,12 +29315,12 @@ function dj(e, t, n) {
29300
29315
  return s;
29301
29316
  });
29302
29317
  }
29303
- class pj {
29318
+ class mj {
29304
29319
  constructor(t, n, r, s, i, a, c) {
29305
29320
  this.collection = t, this.solutionId = n, this.tableName = r, this.primaryKeyField = s, this.pkColumn = i, this.replicationState = a, this.getWebsocketProvider = c;
29306
29321
  }
29307
29322
  makeQueryBuilder(t, n, r, s) {
29308
- return new ZU(
29323
+ return new ej(
29309
29324
  this.collection,
29310
29325
  t,
29311
29326
  n,
@@ -29327,7 +29342,7 @@ class pj {
29327
29342
  return this.makeQueryBuilder(void 0, void 0, void 0, t);
29328
29343
  }
29329
29344
  doc(t) {
29330
- return new rj(
29345
+ return new sj(
29331
29346
  this.collection,
29332
29347
  t,
29333
29348
  this.solutionId,
@@ -29372,13 +29387,13 @@ class pj {
29372
29387
  }
29373
29388
  async executeAggregate(t, n, r, s, i, a) {
29374
29389
  var c, f, m;
29375
- oj(i);
29390
+ aj(i);
29376
29391
  const v = a && a.length > 0 ? a : void 0;
29377
- v && aj(v, i);
29378
- const b = uj(i, v);
29392
+ v && uj(v, i);
29393
+ const b = cj(i, v);
29379
29394
  if (!b)
29380
29395
  return v ? [] : {};
29381
- const C = fj(t), R = {
29396
+ const C = hj(t), R = {
29382
29397
  select: b,
29383
29398
  ...C
29384
29399
  };
@@ -29390,7 +29405,7 @@ class pj {
29390
29405
  `orderBy field "${B}" must be one of the groupBy columns: [${v.join(", ")}]`,
29391
29406
  400
29392
29407
  );
29393
- R.order = cj(n);
29408
+ R.order = lj(n);
29394
29409
  }
29395
29410
  let E;
29396
29411
  try {
@@ -29406,18 +29421,18 @@ class pj {
29406
29421
  );
29407
29422
  }
29408
29423
  const O = Array.isArray(E.data) ? E.data : [E.data];
29409
- return v ? dj(i, v, O) : hj(i, O);
29424
+ return v ? pj(i, v, O) : dj(i, O);
29410
29425
  }
29411
29426
  }
29412
29427
  let Yu = null;
29413
- function mj() {
29428
+ function vj() {
29414
29429
  return typeof window > "u" ? Promise.reject(
29415
29430
  new Error(
29416
29431
  "[copaInputTableDb] RxDB requires a browser environment (IndexedDB). Cannot run on server."
29417
29432
  )
29418
- ) : (Yu || (Yu = vj()), Yu);
29433
+ ) : (Yu || (Yu = gj()), Yu);
29419
29434
  }
29420
- async function vj() {
29435
+ async function gj() {
29421
29436
  return await bL({
29422
29437
  name: "bluecopa_input_tables_v2",
29423
29438
  storage: rq(),
@@ -29425,10 +29440,10 @@ async function vj() {
29425
29440
  eventReduce: !0
29426
29441
  });
29427
29442
  }
29428
- async function gj() {
29443
+ async function yj() {
29429
29444
  Yu && (await (await Yu).close(), Yu = null);
29430
29445
  }
29431
- const yj = {
29446
+ const bj = {
29432
29447
  [Yr.UUID]: { type: "string" },
29433
29448
  [Yr.TEXT]: { type: "string" },
29434
29449
  [Yr.INTEGER]: { type: "integer" },
@@ -29440,10 +29455,10 @@ const yj = {
29440
29455
  [Yr.TIME]: { type: "string" },
29441
29456
  [Yr.JSONB]: { type: "string" }
29442
29457
  };
29443
- function bj(e) {
29458
+ function _j(e) {
29444
29459
  const t = e.columns.find((i) => i.primary_key), n = (t == null ? void 0 : t.name) ?? "id", r = {}, s = [n];
29445
29460
  for (const i of e.columns) {
29446
- const a = yj[i.type] ?? { type: "string" };
29461
+ const a = bj[i.type] ?? { type: "string" };
29447
29462
  r[i.name] = { ...a }, i.primary_key && (r[i.name] = { type: "string", maxLength: 200 }), !i.nullable && !i.primary_key && s.push(i.name);
29448
29463
  }
29449
29464
  return r[rs] = { type: "string", maxLength: 50 }, {
@@ -29460,12 +29475,12 @@ function AE(e, t) {
29460
29475
  const n = t.replace(/[^a-z0-9]/g, "");
29461
29476
  return `s${e.replace(/[^a-z0-9]/g, "").slice(-12)}t${n}`;
29462
29477
  }
29463
- function _j(e, t, n, r) {
29478
+ function wj(e, t, n, r) {
29464
29479
  const s = new ar(), i = mq({
29465
29480
  collection: e,
29466
29481
  replicationIdentifier: `input-table-v2-${t}-${n}`,
29467
29482
  live: !0,
29468
- retryTime: ej,
29483
+ retryTime: tj,
29469
29484
  autoStart: !0,
29470
29485
  waitForLeadership: !1,
29471
29486
  pull: {
@@ -29476,7 +29491,7 @@ function _j(e, t, n, r) {
29476
29491
  select: "*"
29477
29492
  };
29478
29493
  if (a != null && a.id && (a != null && a.updatedAt)) {
29479
- const E = JU(a.updatedAt), O = XU(a.id);
29494
+ const E = XU(a.updatedAt), O = YU(a.id);
29480
29495
  f.or = `(${rs}.gt.${E},and(${rs}.eq.${E},${r}.gt.${O}))`;
29481
29496
  }
29482
29497
  const b = ((await he.get(`/input-table-v2/${t}/rows/${n}`, {
@@ -29488,7 +29503,7 @@ function _j(e, t, n, r) {
29488
29503
  };
29489
29504
  return { documents: b, checkpoint: R };
29490
29505
  },
29491
- batchSize: tj,
29506
+ batchSize: nj,
29492
29507
  stream$: s.asObservable()
29493
29508
  },
29494
29509
  push: {
@@ -29567,7 +29582,7 @@ function _j(e, t, n, r) {
29567
29582
  }
29568
29583
  return E;
29569
29584
  },
29570
- batchSize: nj
29585
+ batchSize: rj
29571
29586
  }
29572
29587
  });
29573
29588
  return {
@@ -29578,7 +29593,7 @@ function _j(e, t, n, r) {
29578
29593
  }
29579
29594
  };
29580
29595
  }
29581
- function wj(e, t, n, r, s) {
29596
+ function Sj(e, t, n, r, s) {
29582
29597
  const i = `public-input-table-v2-${n}-${r}-${s}`;
29583
29598
  function a() {
29584
29599
  t.reSync();
@@ -29590,16 +29605,16 @@ function wj(e, t, n, r, s) {
29590
29605
  };
29591
29606
  }
29592
29607
  const gu = /* @__PURE__ */ new Map(), gh = /* @__PURE__ */ new Map();
29593
- function Sj(e, t, n) {
29608
+ function Ej(e, t, n) {
29594
29609
  return `${e}:${AE(t, n)}`;
29595
29610
  }
29596
- async function Ej(e, t, n, r) {
29597
- const s = Sj(n, e, t.name), i = gu.get(s);
29611
+ async function Cj(e, t, n, r) {
29612
+ const s = Ej(n, e, t.name), i = gu.get(s);
29598
29613
  if (i)
29599
29614
  return i.lastAccessed = Date.now(), i;
29600
29615
  if (gh.has(s))
29601
29616
  return gh.get(s);
29602
- const a = Cj(
29617
+ const a = Oj(
29603
29618
  s,
29604
29619
  e,
29605
29620
  t,
@@ -29613,10 +29628,10 @@ async function Ej(e, t, n, r) {
29613
29628
  gh.delete(s);
29614
29629
  }
29615
29630
  }
29616
- async function Cj(e, t, n, r, s) {
29631
+ async function Oj(e, t, n, r, s) {
29617
29632
  var i, a;
29618
- gu.size >= xE && await Tj();
29619
- const c = await mj(), f = bj(n), m = AE(t, n.name), v = ((i = n.columns.find((B) => B.primary_key)) == null ? void 0 : i.name) ?? "id";
29633
+ gu.size >= xE && await Rj();
29634
+ const c = await vj(), f = _j(n), m = AE(t, n.name), v = ((i = n.columns.find((B) => B.primary_key)) == null ? void 0 : i.name) ?? "id";
29620
29635
  let b;
29621
29636
  const C = {
29622
29637
  schema: f,
@@ -29638,9 +29653,9 @@ async function Cj(e, t, n, r, s) {
29638
29653
  } else
29639
29654
  throw B;
29640
29655
  }
29641
- const E = _j(b, t, n.name, v);
29656
+ const E = wj(b, t, n.name, v);
29642
29657
  let O = null;
29643
- s && (O = wj(
29658
+ s && (O = Sj(
29644
29659
  s,
29645
29660
  E.state,
29646
29661
  r,
@@ -29660,13 +29675,13 @@ async function Cj(e, t, n, r, s) {
29660
29675
  };
29661
29676
  return gu.set(e, x), x;
29662
29677
  }
29663
- async function Oj(e) {
29678
+ async function Tj(e) {
29664
29679
  var t;
29665
29680
  const n = [...gu.entries()];
29666
29681
  for (const [r, s] of n)
29667
29682
  (t = s.realtimeBinding) == null || t.cleanup(), await s.replication.cancel(), await s.collection.close(), gu.delete(r);
29668
29683
  }
29669
- async function Tj() {
29684
+ async function Rj() {
29670
29685
  var e;
29671
29686
  let t = null;
29672
29687
  for (const n of gu.entries())
@@ -29675,8 +29690,8 @@ async function Tj() {
29675
29690
  `[copaInputTableDb] All ${xE} collections have active subscribers. Cannot evict.`
29676
29691
  );
29677
29692
  }
29678
- const Rj = "x-bluecopa-solution-id";
29679
- function kj(e) {
29693
+ const kj = "x-bluecopa-solution-id";
29694
+ function xj(e) {
29680
29695
  try {
29681
29696
  const t = document.cookie.split(";").map((n) => n.trim()).find((n) => n.startsWith(`${e}=`));
29682
29697
  return t ? decodeURIComponent(t.split("=").slice(1).join("=")) : null;
@@ -29684,11 +29699,11 @@ function kj(e) {
29684
29699
  return null;
29685
29700
  }
29686
29701
  }
29687
- function xj() {
29702
+ function Pj() {
29688
29703
  const e = Bc();
29689
29704
  if (e.solutionId)
29690
29705
  return ia(e.solutionId, "solutionId");
29691
- const t = kj(Rj);
29706
+ const t = xj(kj);
29692
29707
  if (t)
29693
29708
  return ia(t, "solutionId (cookie)");
29694
29709
  throw new zn(
@@ -29709,19 +29724,19 @@ const IE = class DE {
29709
29724
  collection(t) {
29710
29725
  return !this.getProvider() && !this.wsWarned && (this.wsWarned = !0, console.warn(
29711
29726
  "[copaInputTableDb] No WebSocket provider configured. Realtime sync is disabled. Set via copaSetConfig({ websocketProvider }) or copaInputTableDb.setWebsocketProvider(ws)."
29712
- )), new Aj(() => this.resolveCollection(t));
29727
+ )), new Ij(() => this.resolveCollection(t));
29713
29728
  }
29714
29729
  /** Force-clear the schema cache. Call after schema changes. */
29715
29730
  clearSchemaCache() {
29716
29731
  this.schemaCache.clear(), this.schemaPending.clear();
29717
29732
  }
29718
29733
  async resolveCollection(t) {
29719
- const n = this.generation, r = xj(), s = ia(t, "tableName"), i = Bc().workspaceId, a = await this.fetchTableList(r);
29734
+ const n = this.generation, r = Pj(), s = ia(t, "tableName"), i = Bc().workspaceId, a = await this.fetchTableList(r);
29720
29735
  if (n !== this.generation) throw new zn("InputTableDB was destroyed", 410);
29721
29736
  const c = a.find((v) => v.name === s);
29722
29737
  if (!(c != null && c.appliedSchema))
29723
29738
  throw new zn(`Collection "${s}" not found`, 404);
29724
- const f = await Ej(
29739
+ const f = await Cj(
29725
29740
  r,
29726
29741
  c.appliedSchema,
29727
29742
  i,
@@ -29729,7 +29744,7 @@ const IE = class DE {
29729
29744
  );
29730
29745
  if (n !== this.generation) throw new zn("InputTableDB was destroyed", 410);
29731
29746
  const m = c.appliedSchema.columns.find((v) => v.primary_key);
29732
- return new pj(
29747
+ return new mj(
29733
29748
  f.collection,
29734
29749
  r,
29735
29750
  s,
@@ -29754,12 +29769,12 @@ const IE = class DE {
29754
29769
  return this.schemaPending.set(t, s), s;
29755
29770
  }
29756
29771
  async destroy() {
29757
- this.generation++, await Oj(), await gj(), this.schemaCache.clear(), this.schemaPending.clear(), this.wsWarned = !1;
29772
+ this.generation++, await Tj(), await yj(), this.schemaCache.clear(), this.schemaPending.clear(), this.wsWarned = !1;
29758
29773
  }
29759
29774
  };
29760
29775
  IE.SCHEMA_CACHE_TTL = 5 * 60 * 1e3;
29761
- let Pj = IE;
29762
- class Aj {
29776
+ let Aj = IE;
29777
+ class Ij {
29763
29778
  constructor(t) {
29764
29779
  this.resolve = t, this.resolvedRef = null;
29765
29780
  }
@@ -29783,7 +29798,7 @@ class Aj {
29783
29798
  return new yh(() => this.getRef().then((n) => n.skip(t)));
29784
29799
  }
29785
29800
  doc(t) {
29786
- return new Ij(t, () => this.getRef().then((n) => n.doc(t)));
29801
+ return new Dj(t, () => this.getRef().then((n) => n.doc(t)));
29787
29802
  }
29788
29803
  async add(t) {
29789
29804
  return (await this.getRef()).add(t);
@@ -29858,7 +29873,7 @@ class yh {
29858
29873
  return n ? r.aggregate(t, n) : r.aggregate(t);
29859
29874
  }
29860
29875
  }
29861
- class Ij {
29876
+ class Dj {
29862
29877
  constructor(t, n) {
29863
29878
  this.id = t, this.resolve = n;
29864
29879
  }
@@ -29879,7 +29894,7 @@ class Ij {
29879
29894
  );
29880
29895
  }
29881
29896
  }
29882
- const QK = new Pj(), GK = {
29897
+ const GK = new Aj(), JK = {
29883
29898
  darkMode: "class",
29884
29899
  important: !0,
29885
29900
  theme: {
@@ -30035,7 +30050,7 @@ const QK = new Pj(), GK = {
30035
30050
  }
30036
30051
  }
30037
30052
  }
30038
- }, Dj = {
30053
+ }, Fj = {
30039
30054
  enabled: !0,
30040
30055
  staleTime: 1e3 * 60 * 5,
30041
30056
  // 5 minutes
@@ -30044,13 +30059,13 @@ const QK = new Pj(), GK = {
30044
30059
  retry: 2,
30045
30060
  retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
30046
30061
  };
30047
- function Fj(e = {}) {
30062
+ function Mj(e = {}) {
30048
30063
  return {
30049
- ...Dj,
30064
+ ...Fj,
30050
30065
  ...e
30051
30066
  };
30052
30067
  }
30053
- function Mj(e = 5e3) {
30068
+ function Lj(e = 5e3) {
30054
30069
  return new Promise((t) => setTimeout(t, e));
30055
30070
  }
30056
30071
  function FE(e, t) {
@@ -30061,10 +30076,10 @@ function FE(e, t) {
30061
30076
  );
30062
30077
  }
30063
30078
  function Yt(e, t, n = 0) {
30064
- return async () => (await Mj(n), await e());
30079
+ return async () => (await Lj(n), await e());
30065
30080
  }
30066
30081
  function Zt(e) {
30067
- const t = Fj(e.options);
30082
+ const t = Mj(e.options);
30068
30083
  return {
30069
30084
  queryKey: e.queryKey,
30070
30085
  queryFn: e.queryFn,
@@ -30077,7 +30092,7 @@ function Zt(e) {
30077
30092
  onError: t.onError
30078
30093
  };
30079
30094
  }
30080
- function JK(e, t = {}) {
30095
+ function XK(e, t = {}) {
30081
30096
  const n = t.enabled !== !1 && !!e, r = Yt(async () => {
30082
30097
  if (!e)
30083
30098
  throw new Error("Metric ID is required");
@@ -30090,7 +30105,7 @@ function JK(e, t = {}) {
30090
30105
  });
30091
30106
  return Qe(s);
30092
30107
  }
30093
- function XK(e, t = {}) {
30108
+ function YK(e, t = {}) {
30094
30109
  const n = !!e, r = Yt(async () => {
30095
30110
  if (!e)
30096
30111
  throw new Error("Dataset ID is required");
@@ -30106,7 +30121,7 @@ function XK(e, t = {}) {
30106
30121
  });
30107
30122
  return Qe(s);
30108
30123
  }
30109
- function YK(e = {}) {
30124
+ function ZK(e = {}) {
30110
30125
  return Le({
30111
30126
  mutationFn: async (t) => await me.chat.createThread(t),
30112
30127
  onSuccess: e.onSuccess,
@@ -30115,7 +30130,7 @@ function YK(e = {}) {
30115
30130
  retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
30116
30131
  });
30117
30132
  }
30118
- function ZK(e, t = {}) {
30133
+ function e4(e, t = {}) {
30119
30134
  const n = t.enabled !== !1 && !!e, r = Yt(async () => (FE(
30120
30135
  { threadId: e },
30121
30136
  "Thread ID is required to fetch comments"
@@ -30127,7 +30142,7 @@ function ZK(e, t = {}) {
30127
30142
  });
30128
30143
  return Qe(s);
30129
30144
  }
30130
- function e4(e = {}) {
30145
+ function t4(e = {}) {
30131
30146
  return Le({
30132
30147
  mutationFn: async (t) => await me.chat.postComment(t),
30133
30148
  onSuccess: e.onSuccess,
@@ -30136,7 +30151,7 @@ function e4(e = {}) {
30136
30151
  retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
30137
30152
  });
30138
30153
  }
30139
- function t4(e = {}) {
30154
+ function n4(e = {}) {
30140
30155
  return Le({
30141
30156
  mutationFn: async (t) => await me.chat.updateComment(t),
30142
30157
  onSuccess: e.onSuccess,
@@ -30145,7 +30160,7 @@ function t4(e = {}) {
30145
30160
  retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
30146
30161
  });
30147
30162
  }
30148
- function n4(e = {}) {
30163
+ function r4(e = {}) {
30149
30164
  return Le({
30150
30165
  mutationFn: async (t) => await me.chat.deleteComment(t),
30151
30166
  onSuccess: e.onSuccess,
@@ -30154,7 +30169,7 @@ function n4(e = {}) {
30154
30169
  retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
30155
30170
  });
30156
30171
  }
30157
- function r4(e = {}) {
30172
+ function s4(e = {}) {
30158
30173
  return Le({
30159
30174
  mutationFn: async (t) => await me.chat.subscribeUser(t),
30160
30175
  onSuccess: e.onSuccess,
@@ -30163,7 +30178,7 @@ function r4(e = {}) {
30163
30178
  retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
30164
30179
  });
30165
30180
  }
30166
- function s4(e = {}) {
30181
+ function i4(e = {}) {
30167
30182
  return Le({
30168
30183
  mutationFn: async (t) => await me.chat.unsubscribeUser(t),
30169
30184
  onSuccess: e.onSuccess,
@@ -30172,7 +30187,7 @@ function s4(e = {}) {
30172
30187
  retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
30173
30188
  });
30174
30189
  }
30175
- function i4(e, t, n = {}) {
30190
+ function o4(e, t, n = {}) {
30176
30191
  const r = n.enabled !== !1 && !!e && !!t, s = Yt(async () => (FE(
30177
30192
  { userId: e, threadId: t },
30178
30193
  "User ID and Thread ID are required to check subscription status"
@@ -30184,13 +30199,13 @@ function i4(e, t, n = {}) {
30184
30199
  });
30185
30200
  return Qe(i);
30186
30201
  }
30187
- function o4(e = {}) {
30202
+ function a4(e = {}) {
30188
30203
  return Le({
30189
30204
  mutationFn: async (t) => await me.statement.createNewRun(t),
30190
30205
  ...e
30191
30206
  });
30192
30207
  }
30193
- function a4(e, t = {}) {
30208
+ function u4(e, t = {}) {
30194
30209
  const n = !!e, r = Yt(async () => {
30195
30210
  if (!e)
30196
30211
  throw new Error("Dataset ID is required");
@@ -30205,7 +30220,7 @@ function a4(e, t = {}) {
30205
30220
  });
30206
30221
  return Qe(s);
30207
30222
  }
30208
- function u4() {
30223
+ function c4() {
30209
30224
  const e = Yt(async () => (console.log("Fetching dataset data..."), await me.dataset.getAllDatasets())), t = Zt({
30210
30225
  queryKey: ["datasetData"],
30211
30226
  queryFn: e,
@@ -30213,7 +30228,7 @@ function u4() {
30213
30228
  });
30214
30229
  return Qe(t);
30215
30230
  }
30216
- function c4(e, t, n, r = {}) {
30231
+ function l4(e, t, n, r = {}) {
30217
30232
  const s = !!e && !!t && !!n, i = Yt(async () => {
30218
30233
  if (!e || !t || !n)
30219
30234
  throw new Error("Key, contentType, and method are required");
@@ -30230,7 +30245,7 @@ function c4(e, t, n, r = {}) {
30230
30245
  });
30231
30246
  return Qe(a);
30232
30247
  }
30233
- function l4(e, t, n = {}) {
30248
+ function f4(e, t, n = {}) {
30234
30249
  const r = !!e && !!t, s = Yt(async () => {
30235
30250
  if (!e || !t)
30236
30251
  throw new Error("Type and ID are required");
@@ -30243,7 +30258,7 @@ function l4(e, t, n = {}) {
30243
30258
  });
30244
30259
  return Qe(i);
30245
30260
  }
30246
- function f4(e, t = {}) {
30261
+ function h4(e, t = {}) {
30247
30262
  const n = !!e, r = Yt(async () => {
30248
30263
  if (!e)
30249
30264
  throw new Error("Run ID is required");
@@ -30256,7 +30271,7 @@ function f4(e, t = {}) {
30256
30271
  });
30257
30272
  return Qe(s);
30258
30273
  }
30259
- function h4(e, t = {}) {
30274
+ function d4(e, t = {}) {
30260
30275
  const n = !!e, r = Yt(async () => {
30261
30276
  if (!e)
30262
30277
  throw new Error("View ID is required");
@@ -30269,7 +30284,7 @@ function h4(e, t = {}) {
30269
30284
  });
30270
30285
  return Qe(s);
30271
30286
  }
30272
- function d4(e, t, n, r = {}) {
30287
+ function p4(e, t, n, r = {}) {
30273
30288
  const s = !!e, i = Yt(async () => {
30274
30289
  if (!e)
30275
30290
  throw new Error("Statement ID is required");
@@ -30286,7 +30301,7 @@ function d4(e, t, n, r = {}) {
30286
30301
  });
30287
30302
  return Qe(a);
30288
30303
  }
30289
- function p4(e, t = {}) {
30304
+ function m4(e, t = {}) {
30290
30305
  const n = !!e, r = Yt(async () => {
30291
30306
  if (!e)
30292
30307
  throw new Error("Table ID is required");
@@ -30299,7 +30314,7 @@ function p4(e, t = {}) {
30299
30314
  });
30300
30315
  return Qe(s);
30301
30316
  }
30302
- function m4(e, t = {}) {
30317
+ function v4(e, t = {}) {
30303
30318
  const n = !!e, r = Yt(async () => {
30304
30319
  if (!e)
30305
30320
  throw new Error("View ID is required");
@@ -30312,7 +30327,7 @@ function m4(e, t = {}) {
30312
30327
  });
30313
30328
  return Qe(s);
30314
30329
  }
30315
- function v4(e, t = {}) {
30330
+ function g4(e, t = {}) {
30316
30331
  const n = !!e, r = Yt(async () => {
30317
30332
  if (!e)
30318
30333
  throw new Error("Sheet ID is required");
@@ -30325,7 +30340,7 @@ function v4(e, t = {}) {
30325
30340
  });
30326
30341
  return Qe(s);
30327
30342
  }
30328
- function g4(e, t = {}) {
30343
+ function y4(e, t = {}) {
30329
30344
  const n = !!e, r = Yt(async () => {
30330
30345
  if (!e)
30331
30346
  throw new Error("Type is required");
@@ -30338,14 +30353,14 @@ function g4(e, t = {}) {
30338
30353
  });
30339
30354
  return Qe(s);
30340
30355
  }
30341
- var Lj = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(Lj || {});
30342
- function y4(e = {}) {
30356
+ var Nj = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(Nj || {});
30357
+ function b4(e = {}) {
30343
30358
  return Le({
30344
30359
  mutationFn: async (t) => (console.log("Fetching workflow instance status..."), await me.workflow.getWorkflowInstanceStatusById(t)),
30345
30360
  ...e
30346
30361
  });
30347
30362
  }
30348
- function b4(e, t = {}) {
30363
+ function _4(e, t = {}) {
30349
30364
  const n = !!e && e.length > 0, r = Yt(async () => {
30350
30365
  if (!e || e.length === 0)
30351
30366
  throw new Error("Worksheet IDs are required");
@@ -30358,7 +30373,7 @@ function b4(e, t = {}) {
30358
30373
  });
30359
30374
  return Qe(s);
30360
30375
  }
30361
- function _4(e, t = {}) {
30376
+ function w4(e, t = {}) {
30362
30377
  const n = !!e, r = Yt(async () => {
30363
30378
  if (!e)
30364
30379
  throw new Error("Type is required");
@@ -30371,7 +30386,7 @@ function _4(e, t = {}) {
30371
30386
  });
30372
30387
  return Qe(s);
30373
30388
  }
30374
- function w4(e, t, n = {}) {
30389
+ function S4(e, t, n = {}) {
30375
30390
  const {
30376
30391
  limitParams: r = { limit: 2e3, limitFrom: "top" },
30377
30392
  pageParams: s,
@@ -30397,7 +30412,7 @@ function w4(e, t, n = {}) {
30397
30412
  });
30398
30413
  return Qe(v);
30399
30414
  }
30400
- function S4() {
30415
+ function E4() {
30401
30416
  const e = Yt(async () => (console.log("Fetching input table data..."), await me.inputTable.getInputTables())), t = Zt({
30402
30417
  queryKey: ["inputTableData"],
30403
30418
  queryFn: e,
@@ -30405,7 +30420,7 @@ function S4() {
30405
30420
  });
30406
30421
  return Qe(t);
30407
30422
  }
30408
- function E4(e, t = {}) {
30423
+ function C4(e, t = {}) {
30409
30424
  const n = [
30410
30425
  "enabled",
30411
30426
  "staleTime",
@@ -30430,7 +30445,7 @@ function E4(e, t = {}) {
30430
30445
  });
30431
30446
  return Qe(C);
30432
30447
  }
30433
- function C4(e = {}) {
30448
+ function O4(e = {}) {
30434
30449
  const t = Pt();
30435
30450
  return Le({
30436
30451
  mutationFn: async (n) => (console.log("Inserting row into input table..."), await me.inputTable.insertRow(n.tableId, n.rowData)),
@@ -30447,7 +30462,7 @@ function C4(e = {}) {
30447
30462
  ...e
30448
30463
  });
30449
30464
  }
30450
- function O4(e = {}) {
30465
+ function T4(e = {}) {
30451
30466
  const t = Pt();
30452
30467
  return Le({
30453
30468
  mutationFn: async (n) => (console.log("Updating input table row..."), await me.inputTable.updateRow(
@@ -30468,7 +30483,7 @@ function O4(e = {}) {
30468
30483
  ...e
30469
30484
  });
30470
30485
  }
30471
- function T4(e = {}) {
30486
+ function R4(e = {}) {
30472
30487
  const t = Pt();
30473
30488
  return Le({
30474
30489
  mutationFn: async (n) => (console.log("Deleting input table row(s)..."), await me.inputTable.deleteRow(
@@ -30489,37 +30504,37 @@ function T4(e = {}) {
30489
30504
  ...e
30490
30505
  });
30491
30506
  }
30492
- function R4(e = {}) {
30507
+ function k4(e = {}) {
30493
30508
  return Le({
30494
30509
  mutationFn: async (t) => (console.log("Running definition..."), await me.definition.runDefinition(t)),
30495
30510
  ...e
30496
30511
  });
30497
30512
  }
30498
- function k4(e = {}) {
30513
+ function x4(e = {}) {
30499
30514
  return Le({
30500
30515
  mutationFn: async (t) => await me.definition.runPublishedDefinition(t),
30501
30516
  ...e
30502
30517
  });
30503
30518
  }
30504
- function x4(e = {}) {
30519
+ function P4(e = {}) {
30505
30520
  return Le({
30506
30521
  mutationFn: async (t) => await me.definition.runSampleDefinition(t),
30507
30522
  ...e
30508
30523
  });
30509
30524
  }
30510
- function P4(e = {}) {
30525
+ function A4(e = {}) {
30511
30526
  return Le({
30512
30527
  mutationFn: async (t) => (console.log("Triggering HTTP workflow..."), await me.workflow.triggerHttpWorkflowById(t)),
30513
30528
  ...e
30514
30529
  });
30515
30530
  }
30516
- function A4(e = {}) {
30531
+ function I4(e = {}) {
30517
30532
  return Le({
30518
30533
  mutationFn: async (t) => (console.log("Triggering workflow..."), await me.workflow.triggerWorkflowById(t)),
30519
30534
  ...e
30520
30535
  });
30521
30536
  }
30522
- function Nj(e = {}) {
30537
+ function qj(e = {}) {
30523
30538
  const t = e.enabled !== !1, n = Yt(async () => (console.log("Fetching user details..."), await me.user.getLoggedInUserDetails())), r = Zt({
30524
30539
  queryKey: ["user"],
30525
30540
  queryFn: n,
@@ -30528,10 +30543,10 @@ function Nj(e = {}) {
30528
30543
  });
30529
30544
  return Qe(r);
30530
30545
  }
30531
- const I4 = Nj, qj = ["Owner", "Editor", "Viewer", "ReadOnly"];
30546
+ const D4 = qj, Bj = ["Owner", "Editor", "Viewer", "ReadOnly"];
30532
30547
  var Y_;
30533
30548
  const P_ = (Y_ = me.permissions) == null ? void 0 : Y_.getPermissions;
30534
- function D4(e, t, n = {}) {
30549
+ function F4(e, t, n = {}) {
30535
30550
  const r = n.enabled !== !1 && !!(e != null && e.trim()), s = Yt(
30536
30551
  async () => {
30537
30552
  if (!(e != null && e.trim()))
@@ -30550,7 +30565,7 @@ function D4(e, t, n = {}) {
30550
30565
  objectType: t,
30551
30566
  user: a.userId,
30552
30567
  userType: "User",
30553
- relations: n.relations ?? qj
30568
+ relations: n.relations ?? Bj
30554
30569
  });
30555
30570
  },
30556
30571
  void 0,
@@ -30563,13 +30578,13 @@ function D4(e, t, n = {}) {
30563
30578
  });
30564
30579
  return Qe(i);
30565
30580
  }
30566
- function F4(e = {}) {
30581
+ function M4(e = {}) {
30567
30582
  return Le({
30568
30583
  mutationFn: async (t) => (console.log("Uploading file..."), await me.files.fileUpload(t)),
30569
30584
  ...e
30570
30585
  });
30571
30586
  }
30572
- function M4({
30587
+ function L4({
30573
30588
  fileId: e,
30574
30589
  contentType: t = "application/json",
30575
30590
  method: n = "GET"
@@ -30586,7 +30601,7 @@ function M4({
30586
30601
  });
30587
30602
  return Qe(a);
30588
30603
  }
30589
- function L4(e, t = {}) {
30604
+ function N4(e, t = {}) {
30590
30605
  const n = !!e, r = Yt(async () => {
30591
30606
  if (!e)
30592
30607
  throw new Error("Task ID is required");
@@ -30599,7 +30614,7 @@ function L4(e, t = {}) {
30599
30614
  });
30600
30615
  return Qe(s);
30601
30616
  }
30602
- function N4(e, t = {}) {
30617
+ function q4(e, t = {}) {
30603
30618
  const n = !!e, r = Yt(async () => {
30604
30619
  if (!e)
30605
30620
  throw new Error("Workbook ID is required");
@@ -30612,25 +30627,25 @@ function N4(e, t = {}) {
30612
30627
  });
30613
30628
  return Qe(s);
30614
30629
  }
30615
- function q4(e = {}) {
30630
+ function B4(e = {}) {
30616
30631
  return Le({
30617
30632
  mutationFn: async (t) => (console.log("Saving workbook..."), await me.workbook.saveWorkbook(t)),
30618
30633
  ...e
30619
30634
  });
30620
30635
  }
30621
- function B4(e = {}) {
30636
+ function $4(e = {}) {
30622
30637
  return Le({
30623
30638
  mutationFn: async (t) => (console.log("Publishing workbook..."), await me.workbook.publishWorkbook(t)),
30624
30639
  ...e
30625
30640
  });
30626
30641
  }
30627
- function $4(e = {}) {
30642
+ function U4(e = {}) {
30628
30643
  return Le({
30629
30644
  mutationFn: async (t) => (console.log("Running recon workflow..."), await me.recon.runRecon(t)),
30630
30645
  ...e
30631
30646
  });
30632
30647
  }
30633
- function U4(e, t, n = {}) {
30648
+ function j4(e, t, n = {}) {
30634
30649
  const r = !!e && !!t, s = Yt(async () => {
30635
30650
  if (!e || !t)
30636
30651
  throw new Error("Form instance ID and revision are required");
@@ -30645,7 +30660,7 @@ function U4(e, t, n = {}) {
30645
30660
  })
30646
30661
  );
30647
30662
  }
30648
- function j4(e, t = {}) {
30663
+ function K4(e, t = {}) {
30649
30664
  const n = !!e, r = Yt(async () => {
30650
30665
  if (!e)
30651
30666
  throw new Error("Form ID is required");
@@ -30658,7 +30673,7 @@ function j4(e, t = {}) {
30658
30673
  });
30659
30674
  return Qe(s);
30660
30675
  }
30661
- function K4(e, t = {}) {
30676
+ function W4(e, t = {}) {
30662
30677
  return Qe({
30663
30678
  queryKey: ["form", e],
30664
30679
  queryFn: async () => {
@@ -30670,97 +30685,97 @@ function K4(e, t = {}) {
30670
30685
  ...t
30671
30686
  });
30672
30687
  }
30673
- function W4(e = {}) {
30688
+ function H4(e = {}) {
30674
30689
  return Le({
30675
30690
  mutationFn: async (t) => await me.form.createOrUpdateForm(t),
30676
30691
  ...e
30677
30692
  });
30678
30693
  }
30679
- function H4(e = {}) {
30694
+ function z4(e = {}) {
30680
30695
  return Le({
30681
30696
  mutationFn: async (t) => await me.audit.getAuditLogs(t),
30682
30697
  ...e
30683
30698
  });
30684
30699
  }
30685
- function z4(e = {}) {
30700
+ function V4(e = {}) {
30686
30701
  return Le({
30687
30702
  mutationFn: async (t) => await me.audit.createAuditLog(t),
30688
30703
  ...e
30689
30704
  });
30690
30705
  }
30691
- function V4(e = {}) {
30706
+ function Q4(e = {}) {
30692
30707
  return Qe({
30693
30708
  queryKey: ["templatedPipelines"],
30694
30709
  queryFn: async () => await me.templatedPipeline.getAllTemplatedPipelines(),
30695
30710
  ...e
30696
30711
  });
30697
30712
  }
30698
- function Q4(e = {}) {
30713
+ function G4(e = {}) {
30699
30714
  return Qe({
30700
30715
  queryKey: ["reconWorkflows"],
30701
30716
  queryFn: async () => await me.recon.getAllReconWorkflows(),
30702
30717
  ...e
30703
30718
  });
30704
30719
  }
30705
- function G4(e = {}) {
30720
+ function J4(e = {}) {
30706
30721
  return Qe({
30707
30722
  queryKey: ["users"],
30708
30723
  queryFn: async () => await me.user.getAllUsers(),
30709
30724
  ...e
30710
30725
  });
30711
30726
  }
30712
- function J4(e = {}) {
30727
+ function X4(e = {}) {
30713
30728
  return Qe({
30714
30729
  queryKey: ["httpTriggers"],
30715
30730
  queryFn: async () => await me.workflow.getAllHttpTriggers(),
30716
30731
  ...e
30717
30732
  });
30718
30733
  }
30719
- function X4(e = {}) {
30734
+ function Y4(e = {}) {
30720
30735
  return Le({
30721
30736
  mutationFn: async (t) => await me.process.markTaskDone(t),
30722
30737
  ...e
30723
30738
  });
30724
30739
  }
30725
- function Y4(e = {}) {
30740
+ function Z4(e = {}) {
30726
30741
  return Le({
30727
30742
  mutationFn: async (t) => await me.process.reassignTask(t),
30728
30743
  ...e
30729
30744
  });
30730
30745
  }
30731
- function Z4(e = {}, t = {}) {
30746
+ function eW(e = {}, t = {}) {
30732
30747
  return Qe({
30733
30748
  queryKey: ["inboxItems", "all", e.page, e.perPage],
30734
30749
  queryFn: async () => await me.inboxItems.getAllInboxItems(e),
30735
30750
  ...t
30736
30751
  });
30737
30752
  }
30738
- function eW(e = {}) {
30753
+ function tW(e = {}) {
30739
30754
  return Le({
30740
30755
  mutationFn: async (t) => await me.inboxItems.markItemAsRead(t),
30741
30756
  ...e
30742
30757
  });
30743
30758
  }
30744
- function tW(e = {}) {
30759
+ function nW(e = {}) {
30745
30760
  return Le({
30746
30761
  mutationFn: async (t) => await me.inboxItems.markItemAsUnread(t),
30747
30762
  ...e
30748
30763
  });
30749
30764
  }
30750
- function nW(e = {}) {
30765
+ function rW(e = {}) {
30751
30766
  return Le({
30752
30767
  mutationFn: async (t) => await me.inboxItems.createInboxItemPerUser(t),
30753
30768
  ...e
30754
30769
  });
30755
30770
  }
30756
- function rW(e, t = {}) {
30771
+ function sW(e, t = {}) {
30757
30772
  return Qe({
30758
30773
  queryKey: ["emailConversations", e == null ? void 0 : e.page, e == null ? void 0 : e.pageSize, e == null ? void 0 : e.tag, e == null ? void 0 : e.orderByCreatedDate],
30759
30774
  queryFn: async () => await me.emailEngine.getAllConversations(e),
30760
30775
  ...t
30761
30776
  });
30762
30777
  }
30763
- function sW(e, t = {}) {
30778
+ function iW(e, t = {}) {
30764
30779
  return Qe({
30765
30780
  queryKey: ["emailConversation", e],
30766
30781
  queryFn: async () => await me.emailEngine.getConversation({
@@ -30770,7 +30785,7 @@ function sW(e, t = {}) {
30770
30785
  ...t
30771
30786
  });
30772
30787
  }
30773
- function iW(e = {}) {
30788
+ function oW(e = {}) {
30774
30789
  const t = Pt();
30775
30790
  return Le({
30776
30791
  mutationFn: async (n) => await me.emailEngine.createConversation(n),
@@ -30780,7 +30795,7 @@ function iW(e = {}) {
30780
30795
  ...e
30781
30796
  });
30782
30797
  }
30783
- function oW(e = {}) {
30798
+ function aW(e = {}) {
30784
30799
  const t = Pt();
30785
30800
  return Le({
30786
30801
  mutationFn: async (n) => await me.emailEngine.replyToConversation(n),
@@ -30792,7 +30807,7 @@ function oW(e = {}) {
30792
30807
  ...e
30793
30808
  });
30794
30809
  }
30795
- function aW(e, t = {}) {
30810
+ function uW(e, t = {}) {
30796
30811
  return Qe({
30797
30812
  queryKey: [
30798
30813
  "emailMessagesBySender",
@@ -30807,7 +30822,7 @@ function aW(e, t = {}) {
30807
30822
  ...t
30808
30823
  });
30809
30824
  }
30810
- function uW(e = {}) {
30825
+ function cW(e = {}) {
30811
30826
  const t = Yt(async () => await me.tcn.getAuthUrl()), n = Zt({
30812
30827
  queryKey: ["tcn", "authUrl"],
30813
30828
  queryFn: t,
@@ -30816,67 +30831,67 @@ function uW(e = {}) {
30816
30831
  });
30817
30832
  return Qe(n);
30818
30833
  }
30819
- function cW(e = {}) {
30834
+ function lW(e = {}) {
30820
30835
  return Le({
30821
30836
  mutationFn: async ({ code: t }) => await me.tcn.exchangeCode(t),
30822
30837
  ...e
30823
30838
  });
30824
30839
  }
30825
- function lW(e = {}) {
30840
+ function fW(e = {}) {
30826
30841
  return Le({
30827
30842
  mutationFn: async ({ refresh_token: t }) => await me.tcn.refreshToken(t),
30828
30843
  ...e
30829
30844
  });
30830
30845
  }
30831
- function fW(e = {}) {
30846
+ function hW(e = {}) {
30832
30847
  return Le({
30833
30848
  mutationFn: async ({ token: t }) => await me.tcn.getCurrentAgent(t),
30834
30849
  ...e
30835
30850
  });
30836
30851
  }
30837
- function hW(e = {}) {
30852
+ function dW(e = {}) {
30838
30853
  return Le({
30839
30854
  mutationFn: async ({ token: t, huntGroupSid: n }) => await me.tcn.getAgentSkills(t, n),
30840
30855
  ...e
30841
30856
  });
30842
30857
  }
30843
- function dW(e = {}) {
30858
+ function pW(e = {}) {
30844
30859
  return Le({
30845
30860
  mutationFn: async ({ token: t, huntGroupSid: n, skills: r }) => await me.tcn.createSession(t, n, r),
30846
30861
  ...e
30847
30862
  });
30848
30863
  }
30849
- function pW(e = {}) {
30864
+ function mW(e = {}) {
30850
30865
  return Le({
30851
30866
  mutationFn: async ({ token: t, sessionSid: n }) => await me.tcn.keepAlive(t, n),
30852
30867
  ...e
30853
30868
  });
30854
30869
  }
30855
- function mW(e = {}) {
30870
+ function vW(e = {}) {
30856
30871
  return Le({
30857
30872
  mutationFn: async ({ token: t }) => await me.tcn.agentGetStatus(t),
30858
30873
  ...e
30859
30874
  });
30860
30875
  }
30861
- function vW(e = {}) {
30876
+ function gW(e = {}) {
30862
30877
  return Le({
30863
30878
  mutationFn: async ({ token: t, huntGroupSid: n }) => await me.tcn.getHuntGroupAgentSettings(t, n),
30864
30879
  ...e
30865
30880
  });
30866
30881
  }
30867
- function gW(e = {}) {
30882
+ function yW(e = {}) {
30868
30883
  return Le({
30869
30884
  mutationFn: async ({ token: t, sessionSid: n }) => await me.tcn.dialManualPrepare(t, n),
30870
30885
  ...e
30871
30886
  });
30872
30887
  }
30873
- function yW(e = {}) {
30888
+ function bW(e = {}) {
30874
30889
  return Le({
30875
30890
  mutationFn: async ({ token: t, call: n }) => await me.tcn.processManualDial(t, n),
30876
30891
  ...e
30877
30892
  });
30878
30893
  }
30879
- function bW(e = {}) {
30894
+ function _W(e = {}) {
30880
30895
  return Le({
30881
30896
  mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: r, simpleCallData: s }) => await me.tcn.manualDialStart(
30882
30897
  t,
@@ -30887,44 +30902,44 @@ function bW(e = {}) {
30887
30902
  ...e
30888
30903
  });
30889
30904
  }
30890
- function _W(e = {}) {
30905
+ function wW(e = {}) {
30891
30906
  return Le({
30892
30907
  mutationFn: async ({ token: t, sessionSid: n, reason: r }) => await me.tcn.agentDisconnect(t, n, r),
30893
30908
  ...e
30894
30909
  });
30895
30910
  }
30896
- function wW(e = {}) {
30911
+ function SW(e = {}) {
30897
30912
  return Le({
30898
30913
  mutationFn: async ({ token: t, sessionSid: n }) => await me.tcn.agentPause(t, n),
30899
30914
  ...e
30900
30915
  });
30901
30916
  }
30902
- function SW(e = {}) {
30917
+ function EW(e = {}) {
30903
30918
  return Le({
30904
30919
  mutationFn: async ({ token: t, sessionSid: n }) => await me.tcn.agentSetReady(t, n),
30905
30920
  ...e
30906
30921
  });
30907
30922
  }
30908
- function EW(e = {}) {
30923
+ function CW(e = {}) {
30909
30924
  return Le({
30910
30925
  mutationFn: async ({ token: t, sessionSid: n }) => await me.tcn.agentGetConnectedParty(t, n),
30911
30926
  ...e
30912
30927
  });
30913
30928
  }
30914
- function CW(e = {}) {
30929
+ function OW(e = {}) {
30915
30930
  return Le({
30916
30931
  mutationFn: async ({ token: t, callSid: n }) => await me.tcn.getCallData(t, n),
30917
30932
  ...e
30918
30933
  });
30919
30934
  }
30920
- function OW(e = {}) {
30935
+ function TW(e = {}) {
30921
30936
  return Qe({
30922
30937
  queryKey: ["webcronWebhooks"],
30923
30938
  queryFn: async () => await me.webcron.listWebhooks(),
30924
30939
  ...e
30925
30940
  });
30926
30941
  }
30927
- function TW(e, t = {}) {
30942
+ function RW(e, t = {}) {
30928
30943
  return Qe({
30929
30944
  queryKey: ["webcronWebhook", e],
30930
30945
  queryFn: async () => await me.webcron.getWebhook(e),
@@ -30932,7 +30947,7 @@ function TW(e, t = {}) {
30932
30947
  ...t
30933
30948
  });
30934
30949
  }
30935
- function RW(e = {}) {
30950
+ function kW(e = {}) {
30936
30951
  const t = Pt();
30937
30952
  return Le({
30938
30953
  mutationFn: async (n) => await me.webcron.createWebhook(n),
@@ -30942,7 +30957,7 @@ function RW(e = {}) {
30942
30957
  ...e
30943
30958
  });
30944
30959
  }
30945
- function kW(e = {}) {
30960
+ function xW(e = {}) {
30946
30961
  const t = Pt();
30947
30962
  return Le({
30948
30963
  mutationFn: async (n) => await me.webcron.updateWebhook(n.id, n.data),
@@ -30952,7 +30967,7 @@ function kW(e = {}) {
30952
30967
  ...e
30953
30968
  });
30954
30969
  }
30955
- function xW(e = {}) {
30970
+ function PW(e = {}) {
30956
30971
  const t = Pt();
30957
30972
  return Le({
30958
30973
  mutationFn: async (n) => await me.webcron.deleteWebhook(n),
@@ -30962,13 +30977,13 @@ function xW(e = {}) {
30962
30977
  ...e
30963
30978
  });
30964
30979
  }
30965
- function PW(e = {}) {
30980
+ function AW(e = {}) {
30966
30981
  return Le({
30967
30982
  mutationFn: async (t) => await me.webcron.testWebhook(t),
30968
30983
  ...e
30969
30984
  });
30970
30985
  }
30971
- function AW(e, t, n = {}) {
30986
+ function IW(e, t, n = {}) {
30972
30987
  return Qe({
30973
30988
  queryKey: ["webcronWebhookExecutions", e, t == null ? void 0 : t.limit, t == null ? void 0 : t.offset],
30974
30989
  queryFn: async () => await me.webcron.getWebhookExecutions(e, t),
@@ -30976,7 +30991,7 @@ function AW(e, t, n = {}) {
30976
30991
  ...n
30977
30992
  });
30978
30993
  }
30979
- function IW(e, t = {}) {
30994
+ function DW(e, t = {}) {
30980
30995
  return Qe({
30981
30996
  queryKey: ["webcronWebhookSchedules", e],
30982
30997
  queryFn: async () => await me.webcron.getWebhookSchedules(e),
@@ -30984,7 +30999,7 @@ function IW(e, t = {}) {
30984
30999
  ...t
30985
31000
  });
30986
31001
  }
30987
- function DW(e = {}) {
31002
+ function FW(e = {}) {
30988
31003
  const t = Pt();
30989
31004
  return Le({
30990
31005
  mutationFn: async (n) => await me.webcron.createWebhookSchedule(n.webhookId, n.data),
@@ -30994,7 +31009,7 @@ function DW(e = {}) {
30994
31009
  ...e
30995
31010
  });
30996
31011
  }
30997
- function FW(e, t = {}) {
31012
+ function MW(e, t = {}) {
30998
31013
  return Qe({
30999
31014
  queryKey: ["webcronSchedule", e],
31000
31015
  queryFn: async () => await me.webcron.getSchedule(e),
@@ -31002,7 +31017,7 @@ function FW(e, t = {}) {
31002
31017
  ...t
31003
31018
  });
31004
31019
  }
31005
- function MW(e = {}) {
31020
+ function LW(e = {}) {
31006
31021
  const t = Pt();
31007
31022
  return Le({
31008
31023
  mutationFn: async (n) => await me.webcron.updateSchedule(n.id, n.data),
@@ -31012,7 +31027,7 @@ function MW(e = {}) {
31012
31027
  ...e
31013
31028
  });
31014
31029
  }
31015
- function LW(e = {}) {
31030
+ function NW(e = {}) {
31016
31031
  const t = Pt();
31017
31032
  return Le({
31018
31033
  mutationFn: async (n) => await me.webcron.deleteSchedule(n),
@@ -31022,7 +31037,7 @@ function LW(e = {}) {
31022
31037
  ...e
31023
31038
  });
31024
31039
  }
31025
- function NW(e = {}) {
31040
+ function qW(e = {}) {
31026
31041
  const t = Pt();
31027
31042
  return Le({
31028
31043
  mutationFn: async (n) => await me.webcron.pauseSchedule(n),
@@ -31032,7 +31047,7 @@ function NW(e = {}) {
31032
31047
  ...e
31033
31048
  });
31034
31049
  }
31035
- function qW(e = {}) {
31050
+ function BW(e = {}) {
31036
31051
  const t = Pt();
31037
31052
  return Le({
31038
31053
  mutationFn: async (n) => await me.webcron.resumeSchedule(n),
@@ -31042,7 +31057,7 @@ function qW(e = {}) {
31042
31057
  ...e
31043
31058
  });
31044
31059
  }
31045
- function BW(e = {}) {
31060
+ function $W(e = {}) {
31046
31061
  const t = Pt();
31047
31062
  return Le({
31048
31063
  mutationFn: async (n) => await me.webcron.triggerSchedule(n),
@@ -31052,14 +31067,14 @@ function BW(e = {}) {
31052
31067
  ...e
31053
31068
  });
31054
31069
  }
31055
- function $W(e, t = {}) {
31070
+ function UW(e, t = {}) {
31056
31071
  return Qe({
31057
31072
  queryKey: ["webcronExecutions", e == null ? void 0 : e.status, e == null ? void 0 : e.webhookId, e == null ? void 0 : e.limit, e == null ? void 0 : e.offset],
31058
31073
  queryFn: async () => await me.webcron.listExecutions(e),
31059
31074
  ...t
31060
31075
  });
31061
31076
  }
31062
- function UW(e, t = {}) {
31077
+ function jW(e, t = {}) {
31063
31078
  return Qe({
31064
31079
  queryKey: ["webcronExecution", e],
31065
31080
  queryFn: async () => await me.webcron.getExecution(e),
@@ -31067,7 +31082,7 @@ function UW(e, t = {}) {
31067
31082
  ...t
31068
31083
  });
31069
31084
  }
31070
- function jW(e = {}) {
31085
+ function KW(e = {}) {
31071
31086
  const t = Pt();
31072
31087
  return Le({
31073
31088
  mutationFn: async (n) => await me.webcron.retryExecution(n),
@@ -31077,14 +31092,14 @@ function jW(e = {}) {
31077
31092
  ...e
31078
31093
  });
31079
31094
  }
31080
- function KW(e = {}) {
31095
+ function WW(e = {}) {
31081
31096
  return Qe({
31082
31097
  queryKey: ["webcronTasks"],
31083
31098
  queryFn: async () => await me.webcron.listTasks(),
31084
31099
  ...e
31085
31100
  });
31086
31101
  }
31087
- function WW(e = {}) {
31102
+ function HW(e = {}) {
31088
31103
  const t = Pt();
31089
31104
  return Le({
31090
31105
  mutationFn: async (n) => await me.webcron.createTask(n),
@@ -31094,7 +31109,7 @@ function WW(e = {}) {
31094
31109
  ...e
31095
31110
  });
31096
31111
  }
31097
- function HW(e, t = {}) {
31112
+ function zW(e, t = {}) {
31098
31113
  return Qe({
31099
31114
  queryKey: ["webcronTask", e],
31100
31115
  queryFn: async () => await me.webcron.getTask(e),
@@ -31102,7 +31117,7 @@ function HW(e, t = {}) {
31102
31117
  ...t
31103
31118
  });
31104
31119
  }
31105
- function zW(e = {}) {
31120
+ function VW(e = {}) {
31106
31121
  const t = Pt();
31107
31122
  return Le({
31108
31123
  mutationFn: async (n) => await me.webcron.cancelTask(n),
@@ -31112,7 +31127,7 @@ function zW(e = {}) {
31112
31127
  ...e
31113
31128
  });
31114
31129
  }
31115
- function VW(e = {}) {
31130
+ function QW(e = {}) {
31116
31131
  const t = Pt();
31117
31132
  return Le({
31118
31133
  mutationFn: async (n) => await me.webcron.retryTask(n),
@@ -31122,7 +31137,7 @@ function VW(e = {}) {
31122
31137
  ...e
31123
31138
  });
31124
31139
  }
31125
- function QW(e = {}) {
31140
+ function GW(e = {}) {
31126
31141
  const t = Pt();
31127
31142
  return Le({
31128
31143
  mutationFn: async (n) => await me.webcron.progressTask(n.id, n.data),
@@ -31132,7 +31147,7 @@ function QW(e = {}) {
31132
31147
  ...e
31133
31148
  });
31134
31149
  }
31135
- function GW(e = {}) {
31150
+ function JW(e = {}) {
31136
31151
  const t = Pt();
31137
31152
  return Le({
31138
31153
  mutationFn: async (n) => await me.webcron.signalTask(n.id, n.data, n.branchId),
@@ -31142,14 +31157,14 @@ function GW(e = {}) {
31142
31157
  ...e
31143
31158
  });
31144
31159
  }
31145
- function JW(e = {}) {
31160
+ function XW(e = {}) {
31146
31161
  return Qe({
31147
31162
  queryKey: ["webcronBins"],
31148
31163
  queryFn: async () => await me.webcron.listBins(),
31149
31164
  ...e
31150
31165
  });
31151
31166
  }
31152
- function XW(e, t = {}) {
31167
+ function YW(e, t = {}) {
31153
31168
  return Qe({
31154
31169
  queryKey: ["webcronBin", e],
31155
31170
  queryFn: async () => await me.webcron.getBin(e),
@@ -31157,7 +31172,7 @@ function XW(e, t = {}) {
31157
31172
  ...t
31158
31173
  });
31159
31174
  }
31160
- function YW(e = {}) {
31175
+ function ZW(e = {}) {
31161
31176
  const t = Pt();
31162
31177
  return Le({
31163
31178
  mutationFn: async (n) => await me.webcron.createBin(n),
@@ -31167,7 +31182,7 @@ function YW(e = {}) {
31167
31182
  ...e
31168
31183
  });
31169
31184
  }
31170
- function ZW(e = {}) {
31185
+ function e5(e = {}) {
31171
31186
  const t = Pt();
31172
31187
  return Le({
31173
31188
  mutationFn: async (n) => await me.webcron.deleteBin(n),
@@ -31177,7 +31192,7 @@ function ZW(e = {}) {
31177
31192
  ...e
31178
31193
  });
31179
31194
  }
31180
- function e5(e, t, n = {}) {
31195
+ function t5(e, t, n = {}) {
31181
31196
  return Qe({
31182
31197
  queryKey: ["webcronBinRequests", e, t == null ? void 0 : t.limit, t == null ? void 0 : t.offset],
31183
31198
  queryFn: async () => await me.webcron.getBinRequests(e, t),
@@ -31185,7 +31200,7 @@ function e5(e, t, n = {}) {
31185
31200
  ...n
31186
31201
  });
31187
31202
  }
31188
- function t5(e = {}) {
31203
+ function n5(e = {}) {
31189
31204
  const t = Pt();
31190
31205
  return Le({
31191
31206
  mutationFn: async (n) => await me.webcron.clearBinRequests(n),
@@ -31195,7 +31210,7 @@ function t5(e = {}) {
31195
31210
  ...e
31196
31211
  });
31197
31212
  }
31198
- function n5(e = {}) {
31213
+ function r5(e = {}) {
31199
31214
  return Le({
31200
31215
  mutationFn: async (t) => await me.webcron.triggerWorkflowById(
31201
31216
  t.id,
@@ -31221,14 +31236,14 @@ function A_(e) {
31221
31236
  function _l(e) {
31222
31237
  _t.context = e;
31223
31238
  }
31224
- var Bj = (e, t) => e === t, fd = Symbol("solid-proxy"), ME = Symbol("solid-track"), hd = {
31225
- equals: Bj
31239
+ var $j = (e, t) => e === t, fd = Symbol("solid-proxy"), ME = Symbol("solid-track"), hd = {
31240
+ equals: $j
31226
31241
  }, LE = jE, yo = 1, dd = 2, NE = {
31227
31242
  owned: null,
31228
31243
  cleanups: null,
31229
31244
  context: null,
31230
31245
  owner: null
31231
- }, im = {}, qt = null, om = null, $j = null, Qt = null, ur = null, fo = null, qd = 0;
31246
+ }, im = {}, qt = null, om = null, Uj = null, Qt = null, ur = null, fo = null, qd = 0;
31232
31247
  function ou(e, t) {
31233
31248
  const n = Qt, r = qt, s = e.length === 0, i = t === void 0 ? r : t, a = s ? NE : {
31234
31249
  owned: null,
@@ -31253,7 +31268,7 @@ function Rn(e, t) {
31253
31268
  }, r = (s) => (typeof s == "function" && (s = s(n.value)), UE(n, s));
31254
31269
  return [$E.bind(n), r];
31255
31270
  }
31256
- function Uj(e, t, n) {
31271
+ function jj(e, t, n) {
31257
31272
  const r = Bd(e, t, !0, yo);
31258
31273
  Vc(r);
31259
31274
  }
@@ -31262,7 +31277,7 @@ function au(e, t, n) {
31262
31277
  Vc(r);
31263
31278
  }
31264
31279
  function qE(e, t, n) {
31265
- LE = Xj;
31280
+ LE = Yj;
31266
31281
  const r = Bd(e, t, !1, yo);
31267
31282
  (!n || !n.render) && (r.user = !0), fo ? fo.push(r) : Vc(r);
31268
31283
  }
@@ -31271,10 +31286,10 @@ function qr(e, t, n) {
31271
31286
  const r = Bd(e, t, !0, 0);
31272
31287
  return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Vc(r), $E.bind(r);
31273
31288
  }
31274
- function jj(e) {
31289
+ function Kj(e) {
31275
31290
  return e && typeof e == "object" && "then" in e;
31276
31291
  }
31277
- function Kj(e, t, n) {
31292
+ function Wj(e, t, n) {
31278
31293
  let r, s, i;
31279
31294
  arguments.length === 1 ? (r = !0, s = e, i = {}) : (r = e, s = t, i = {});
31280
31295
  let a = null, c = im, f = null, m = !1, v = "initialValue" in i, b = typeof r == "function" && qr(r);
@@ -31300,7 +31315,7 @@ function Kj(e, t, n) {
31300
31315
  }, !1);
31301
31316
  }
31302
31317
  function ce() {
31303
- const we = Qj, Ie = R(), De = O();
31318
+ const we = Gj, Ie = R(), De = O();
31304
31319
  if (De !== void 0 && !a)
31305
31320
  throw De;
31306
31321
  return Qt && Qt.user, Ie;
@@ -31318,7 +31333,7 @@ function Kj(e, t, n) {
31318
31333
  value: R(),
31319
31334
  refetching: we
31320
31335
  }));
31321
- return jj(De) ? (a = De, "value" in De ? (De.status === "success" ? ee(a, De.value, void 0, Ie) : ee(a, void 0, uv(De.value), Ie), De) : (m = !0, queueMicrotask(() => m = !1), ki(() => {
31336
+ return Kj(De) ? (a = De, "value" in De ? (De.status === "success" ? ee(a, De.value, void 0, Ie) : ee(a, void 0, uv(De.value), Ie), De) : (m = !0, queueMicrotask(() => m = !1), ki(() => {
31322
31337
  Q(v ? "refreshing" : "pending"), U();
31323
31338
  }, !1), De.then((Me) => ee(De, Me, void 0, Ie), (Me) => ee(De, void 0, uv(Me), Ie)))) : (ee(a, De, void 0, Ie), De);
31324
31339
  }
@@ -31345,12 +31360,12 @@ function Kj(e, t, n) {
31345
31360
  return R();
31346
31361
  }
31347
31362
  }
31348
- }), b ? Uj(() => ue(!1)) : ue(!1), [ce, {
31363
+ }), b ? jj(() => ue(!1)) : ue(!1), [ce, {
31349
31364
  refetch: ue,
31350
31365
  mutate: E
31351
31366
  }];
31352
31367
  }
31353
- function r5(e) {
31368
+ function s5(e) {
31354
31369
  return ki(e, !1);
31355
31370
  }
31356
31371
  function Yn(e) {
@@ -31364,7 +31379,7 @@ function Yn(e) {
31364
31379
  Qt = t;
31365
31380
  }
31366
31381
  }
31367
- function s5(e, t, n) {
31382
+ function i5(e, t, n) {
31368
31383
  const r = Array.isArray(e);
31369
31384
  let s, i = n && n.defer;
31370
31385
  return (a) => {
@@ -31381,7 +31396,7 @@ function s5(e, t, n) {
31381
31396
  return s = c, f;
31382
31397
  };
31383
31398
  }
31384
- function Wj(e) {
31399
+ function Hj(e) {
31385
31400
  qE(() => Yn(e));
31386
31401
  }
31387
31402
  function Hl(e) {
@@ -31390,7 +31405,7 @@ function Hl(e) {
31390
31405
  function I_() {
31391
31406
  return qt;
31392
31407
  }
31393
- function Hj(e, t) {
31408
+ function zj(e, t) {
31394
31409
  const n = qt, r = Qt;
31395
31410
  qt = e, Qt = null;
31396
31411
  try {
@@ -31401,7 +31416,7 @@ function Hj(e, t) {
31401
31416
  qt = n, Qt = r;
31402
31417
  }
31403
31418
  }
31404
- function zj(e) {
31419
+ function Vj(e) {
31405
31420
  const t = Qt, n = qt;
31406
31421
  return Promise.resolve().then(() => {
31407
31422
  Qt = t, qt = n;
@@ -31409,19 +31424,19 @@ function zj(e) {
31409
31424
  return ki(e, !1), Qt = qt = null, r ? r.done : void 0;
31410
31425
  });
31411
31426
  }
31412
- var [Vj, i5] = /* @__PURE__ */ Rn(!1);
31413
- function o5() {
31414
- return [Vj, zj];
31427
+ var [Qj, o5] = /* @__PURE__ */ Rn(!1);
31428
+ function a5() {
31429
+ return [Qj, Vj];
31415
31430
  }
31416
- function a5(e, t) {
31431
+ function u5(e, t) {
31417
31432
  const n = Symbol("context");
31418
31433
  return {
31419
31434
  id: n,
31420
- Provider: Yj(n),
31435
+ Provider: Zj(n),
31421
31436
  defaultValue: e
31422
31437
  };
31423
31438
  }
31424
- function u5(e) {
31439
+ function c5(e) {
31425
31440
  let t;
31426
31441
  return qt && qt.context && (t = qt.context[e.id]) !== void 0 ? t : e.defaultValue;
31427
31442
  }
@@ -31432,7 +31447,7 @@ function BE(e) {
31432
31447
  return Array.isArray(r) ? r : r != null ? [r] : [];
31433
31448
  }, n;
31434
31449
  }
31435
- var Qj;
31450
+ var Gj;
31436
31451
  function $E() {
31437
31452
  if (this.sources && this.state)
31438
31453
  if (this.state === yo)
@@ -31463,9 +31478,9 @@ function Vc(e) {
31463
31478
  return;
31464
31479
  $d(e);
31465
31480
  const t = qd;
31466
- Gj(e, e.value, t);
31481
+ Jj(e, e.value, t);
31467
31482
  }
31468
- function Gj(e, t, n) {
31483
+ function Jj(e, t, n) {
31469
31484
  let r;
31470
31485
  const s = qt, i = Qt;
31471
31486
  Qt = qt = e;
@@ -31519,12 +31534,12 @@ function ki(e, t) {
31519
31534
  t || (ur = []), fo ? n = !0 : fo = [], qd++;
31520
31535
  try {
31521
31536
  const r = e();
31522
- return Jj(n), r;
31537
+ return Xj(n), r;
31523
31538
  } catch (r) {
31524
31539
  n || (fo = null), ur = null, hg(r);
31525
31540
  }
31526
31541
  }
31527
- function Jj(e) {
31542
+ function Xj(e) {
31528
31543
  if (ur && (jE(ur), ur = null), e)
31529
31544
  return;
31530
31545
  const t = fo;
@@ -31534,7 +31549,7 @@ function jE(e) {
31534
31549
  for (let t = 0; t < e.length; t++)
31535
31550
  pd(e[t]);
31536
31551
  }
31537
- function Xj(e) {
31552
+ function Yj(e) {
31538
31553
  let t, n = 0;
31539
31554
  for (t = 0; t < e.length; t++) {
31540
31555
  const r = e[t];
@@ -31609,7 +31624,7 @@ function cv(e) {
31609
31624
  }
31610
31625
  return e;
31611
31626
  }
31612
- function Yj(e, t) {
31627
+ function Zj(e, t) {
31613
31628
  return function(r) {
31614
31629
  let s;
31615
31630
  return au(() => s = Yn(() => (qt.context = {
@@ -31623,7 +31638,7 @@ function vd(e) {
31623
31638
  for (let t = 0; t < e.length; t++)
31624
31639
  e[t]();
31625
31640
  }
31626
- function Zj(e, t, n = {}) {
31641
+ function e2(e, t, n = {}) {
31627
31642
  let r = [], s = [], i = [], a = 0, c = t.length > 1 ? [] : null;
31628
31643
  return Hl(() => vd(i)), () => {
31629
31644
  let f = e() || [], m = f.length, v, b;
@@ -31659,7 +31674,7 @@ function Zj(e, t, n = {}) {
31659
31674
  }
31660
31675
  };
31661
31676
  }
31662
- function e2(e, t, n = {}) {
31677
+ function t2(e, t, n = {}) {
31663
31678
  let r = [], s = [], i = [], a = [], c = 0, f;
31664
31679
  return Hl(() => vd(i)), () => {
31665
31680
  const m = e() || [], v = m.length;
@@ -31712,7 +31727,7 @@ var fv = {
31712
31727
  function am(e) {
31713
31728
  return (e = typeof e == "function" ? e() : e) ? e : {};
31714
31729
  }
31715
- function t2() {
31730
+ function n2() {
31716
31731
  for (let e = 0, t = this.length; e < t; ++e) {
31717
31732
  const n = this[e]();
31718
31733
  if (n !== void 0)
@@ -31762,7 +31777,7 @@ function HE(...e) {
31762
31777
  r[v] = b.get ? {
31763
31778
  enumerable: !0,
31764
31779
  configurable: !0,
31765
- get: t2.bind(n[v] = [b.get.bind(c)])
31780
+ get: n2.bind(n[v] = [b.get.bind(c)])
31766
31781
  } : b.value !== void 0 ? b : void 0;
31767
31782
  else {
31768
31783
  const C = n[v];
@@ -31777,7 +31792,7 @@ function HE(...e) {
31777
31792
  }
31778
31793
  return s;
31779
31794
  }
31780
- function n2(e, ...t) {
31795
+ function r2(e, ...t) {
31781
31796
  if (fd in e) {
31782
31797
  const s = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((a) => new Proxy({
31783
31798
  get(c) {
@@ -31822,7 +31837,7 @@ function zE(e) {
31822
31837
  _l(i), _t.count--, f(() => m.default), _l();
31823
31838
  }), t = c;
31824
31839
  } else if (!t) {
31825
- const [c] = Kj(() => (n || (n = e())).then((f) => f.default));
31840
+ const [c] = Wj(() => (n || (n = e())).then((f) => f.default));
31826
31841
  t = c;
31827
31842
  }
31828
31843
  let a;
@@ -31837,24 +31852,24 @@ function zE(e) {
31837
31852
  };
31838
31853
  return r.preload = () => n || ((n = e()).then((s) => t = () => s.default), n), r;
31839
31854
  }
31840
- var r2 = 0;
31841
- function c5() {
31842
- return _t.context ? _t.getNextContextId() : `cl-${r2++}`;
31855
+ var s2 = 0;
31856
+ function l5() {
31857
+ return _t.context ? _t.getNextContextId() : `cl-${s2++}`;
31843
31858
  }
31844
31859
  var VE = (e) => `Stale read from <${e}>.`;
31845
- function l5(e) {
31860
+ function f5(e) {
31846
31861
  const t = "fallback" in e && {
31847
31862
  fallback: () => e.fallback
31848
31863
  };
31849
- return qr(Zj(() => e.each, e.children, t || void 0));
31864
+ return qr(e2(() => e.each, e.children, t || void 0));
31850
31865
  }
31851
- function f5(e) {
31866
+ function h5(e) {
31852
31867
  const t = "fallback" in e && {
31853
31868
  fallback: () => e.fallback
31854
31869
  };
31855
- return qr(e2(() => e.each, e.children, t || void 0));
31870
+ return qr(t2(() => e.each, e.children, t || void 0));
31856
31871
  }
31857
- function h5(e) {
31872
+ function d5(e) {
31858
31873
  const t = e.keyed, n = qr(() => e.when, void 0, {
31859
31874
  equals: (r, s) => t ? r === s : !r == !s
31860
31875
  });
@@ -31871,7 +31886,7 @@ function h5(e) {
31871
31886
  return e.fallback;
31872
31887
  }, void 0, void 0);
31873
31888
  }
31874
- function d5(e) {
31889
+ function p5(e) {
31875
31890
  let t = !1;
31876
31891
  const n = (i, a) => (t ? i[1] === a[1] : !i[1] == !a[1]) && i[2] === a[2], r = BE(() => e.children), s = qr(() => {
31877
31892
  let i = r();
@@ -31897,13 +31912,13 @@ function d5(e) {
31897
31912
  })) : f;
31898
31913
  }, void 0, void 0);
31899
31914
  }
31900
- function p5(e) {
31915
+ function m5(e) {
31901
31916
  return e;
31902
31917
  }
31903
- var s2 = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], i2 = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...s2]), o2 = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), a2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
31918
+ var i2 = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], o2 = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...i2]), a2 = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), u2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
31904
31919
  className: "class",
31905
31920
  htmlFor: "for"
31906
- }), u2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
31921
+ }), c2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
31907
31922
  class: "className",
31908
31923
  formnovalidate: {
31909
31924
  $: "formNoValidate",
@@ -31928,11 +31943,11 @@ var s2 = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "contr
31928
31943
  TEXTAREA: 1
31929
31944
  }
31930
31945
  });
31931
- function c2(e, t) {
31932
- const n = u2[e];
31946
+ function l2(e, t) {
31947
+ const n = c2[e];
31933
31948
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
31934
31949
  }
31935
- var l2 = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), f2 = /* @__PURE__ */ new Set([
31950
+ var f2 = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), h2 = /* @__PURE__ */ new Set([
31936
31951
  "altGlyph",
31937
31952
  "altGlyphDef",
31938
31953
  "altGlyphItem",
@@ -32010,11 +32025,11 @@ var l2 = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
32010
32025
  "use",
32011
32026
  "view",
32012
32027
  "vkern"
32013
- ]), h2 = {
32028
+ ]), d2 = {
32014
32029
  xlink: "http://www.w3.org/1999/xlink",
32015
32030
  xml: "http://www.w3.org/XML/1998/namespace"
32016
32031
  };
32017
- function d2(e, t, n) {
32032
+ function p2(e, t, n) {
32018
32033
  let r = n.length, s = t.length, i = r, a = 0, c = 0, f = t[s - 1].nextSibling, m = null;
32019
32034
  for (; a < s || c < i; ) {
32020
32035
  if (t[a] === n[c]) {
@@ -32068,7 +32083,7 @@ function QE(e, t, n, r = {}) {
32068
32083
  s(), t.textContent = "";
32069
32084
  };
32070
32085
  }
32071
- function m5(e, t, n) {
32086
+ function v5(e, t, n) {
32072
32087
  let r;
32073
32088
  const s = () => {
32074
32089
  const a = document.createElement("template");
@@ -32076,14 +32091,14 @@ function m5(e, t, n) {
32076
32091
  }, i = () => (r || (r = s())).cloneNode(!0);
32077
32092
  return i.cloneNode = i, i;
32078
32093
  }
32079
- function p2(e, t = window.document) {
32094
+ function m2(e, t = window.document) {
32080
32095
  const n = t[Rl] || (t[Rl] = /* @__PURE__ */ new Set());
32081
32096
  for (let r = 0, s = e.length; r < s; r++) {
32082
32097
  const i = e[r];
32083
32098
  n.has(i) || (n.add(i), t.addEventListener(i, GE));
32084
32099
  }
32085
32100
  }
32086
- function v5(e = window.document) {
32101
+ function g5(e = window.document) {
32087
32102
  if (e[Rl]) {
32088
32103
  for (let t of e[Rl].keys())
32089
32104
  e.removeEventListener(t, GE);
@@ -32093,13 +32108,13 @@ function v5(e = window.document) {
32093
32108
  function hv(e, t, n) {
32094
32109
  _t.context && e.isConnected || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
32095
32110
  }
32096
- function m2(e, t, n, r) {
32111
+ function v2(e, t, n, r) {
32097
32112
  _t.context && e.isConnected || (r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r));
32098
32113
  }
32099
- function v2(e, t) {
32114
+ function g2(e, t) {
32100
32115
  _t.context && e.isConnected || (t == null ? e.removeAttribute("class") : e.className = t);
32101
32116
  }
32102
- function g2(e, t, n, r) {
32117
+ function y2(e, t, n, r) {
32103
32118
  if (r)
32104
32119
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
32105
32120
  else if (Array.isArray(n)) {
@@ -32108,7 +32123,7 @@ function g2(e, t, n, r) {
32108
32123
  } else
32109
32124
  e.addEventListener(t, n);
32110
32125
  }
32111
- function y2(e, t, n = {}) {
32126
+ function b2(e, t, n = {}) {
32112
32127
  const r = Object.keys(t || {}), s = Object.keys(n);
32113
32128
  let i, a;
32114
32129
  for (i = 0, a = s.length; i < a; i++) {
@@ -32121,7 +32136,7 @@ function y2(e, t, n = {}) {
32121
32136
  }
32122
32137
  return n;
32123
32138
  }
32124
- function b2(e, t, n) {
32139
+ function _2(e, t, n) {
32125
32140
  if (!t)
32126
32141
  return n ? hv(e, "style") : t;
32127
32142
  const r = e.style;
@@ -32135,11 +32150,11 @@ function b2(e, t, n) {
32135
32150
  s = t[i], s !== n[i] && (r.setProperty(i, s), n[i] = s);
32136
32151
  return n;
32137
32152
  }
32138
- function _2(e, t = {}, n, r) {
32153
+ function w2(e, t = {}, n, r) {
32139
32154
  const s = {};
32140
- return r || au(() => s.children = zl(e, t.children, s.children)), au(() => typeof t.ref == "function" && w2(t.ref, e)), au(() => S2(e, t, n, !0, s, !0)), s;
32155
+ return r || au(() => s.children = zl(e, t.children, s.children)), au(() => typeof t.ref == "function" && S2(t.ref, e)), au(() => E2(e, t, n, !0, s, !0)), s;
32141
32156
  }
32142
- function w2(e, t, n) {
32157
+ function S2(e, t, n) {
32143
32158
  return Yn(() => e(t, n));
32144
32159
  }
32145
32160
  function dv(e, t, n, r) {
@@ -32147,7 +32162,7 @@ function dv(e, t, n, r) {
32147
32162
  return zl(e, t, r, n);
32148
32163
  au((s) => zl(e, t(), s, n), r);
32149
32164
  }
32150
- function S2(e, t, n, r, s = {}, i = !1) {
32165
+ function E2(e, t, n, r, s = {}, i = !1) {
32151
32166
  t || (t = {});
32152
32167
  for (const a in s)
32153
32168
  if (!(a in t)) {
@@ -32162,11 +32177,11 @@ function S2(e, t, n, r, s = {}, i = !1) {
32162
32177
  s[a] = F_(e, a, c, s[a], n, i);
32163
32178
  }
32164
32179
  }
32165
- function E2(e) {
32180
+ function C2(e) {
32166
32181
  let t, n;
32167
- return !_t.context || !(t = _t.registry.get(n = O2())) ? e() : (_t.completed && _t.completed.add(t), _t.registry.delete(n), t);
32182
+ return !_t.context || !(t = _t.registry.get(n = T2())) ? e() : (_t.completed && _t.completed.add(t), _t.registry.delete(n), t);
32168
32183
  }
32169
- function C2(e) {
32184
+ function O2(e) {
32170
32185
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
32171
32186
  }
32172
32187
  function D_(e, t, n) {
@@ -32177,9 +32192,9 @@ function D_(e, t, n) {
32177
32192
  function F_(e, t, n, r, s, i) {
32178
32193
  let a, c, f, m, v;
32179
32194
  if (t === "style")
32180
- return b2(e, n, r);
32195
+ return _2(e, n, r);
32181
32196
  if (t === "classList")
32182
- return y2(e, n, r);
32197
+ return b2(e, n, r);
32183
32198
  if (n === r)
32184
32199
  return r;
32185
32200
  if (t === "ref")
@@ -32191,23 +32206,23 @@ function F_(e, t, n, r, s, i) {
32191
32206
  const b = t.slice(10);
32192
32207
  r && e.removeEventListener(b, r, !0), n && e.addEventListener(b, n, !0);
32193
32208
  } else if (t.slice(0, 2) === "on") {
32194
- const b = t.slice(2).toLowerCase(), C = l2.has(b);
32209
+ const b = t.slice(2).toLowerCase(), C = f2.has(b);
32195
32210
  if (!C && r) {
32196
32211
  const R = Array.isArray(r) ? r[0] : r;
32197
32212
  e.removeEventListener(b, R);
32198
32213
  }
32199
- (C || n) && (g2(e, b, n, C), C && p2([b]));
32214
+ (C || n) && (y2(e, b, n, C), C && m2([b]));
32200
32215
  } else if (t.slice(0, 5) === "attr:")
32201
32216
  hv(e, t.slice(5), n);
32202
- else if ((v = t.slice(0, 5) === "prop:") || (f = o2.has(t)) || !s && ((m = c2(t, e.tagName)) || (c = i2.has(t))) || (a = e.nodeName.includes("-"))) {
32217
+ else if ((v = t.slice(0, 5) === "prop:") || (f = a2.has(t)) || !s && ((m = l2(t, e.tagName)) || (c = o2.has(t))) || (a = e.nodeName.includes("-"))) {
32203
32218
  if (v)
32204
32219
  t = t.slice(5), c = !0;
32205
32220
  else if (_t.context && e.isConnected)
32206
32221
  return n;
32207
- t === "class" || t === "className" ? v2(e, n) : a && !c && !f ? e[C2(t)] = n : e[m || t] = n;
32222
+ t === "class" || t === "className" ? g2(e, n) : a && !c && !f ? e[O2(t)] = n : e[m || t] = n;
32208
32223
  } else {
32209
- const b = s && t.indexOf(":") > -1 && h2[t.split(":")[0]];
32210
- b ? m2(e, b, t, n) : hv(e, a2[t] || t, n);
32224
+ const b = s && t.indexOf(":") > -1 && d2[t.split(":")[0]];
32225
+ b ? v2(e, b, t, n) : hv(e, u2[t] || t, n);
32211
32226
  }
32212
32227
  return n;
32213
32228
  }
@@ -32285,7 +32300,7 @@ function zl(e, t, n, r, s) {
32285
32300
  if (f.length === 0) {
32286
32301
  if (n = Uu(e, n, r), c)
32287
32302
  return n;
32288
- } else m ? n.length === 0 ? M_(e, f, r) : d2(e, n, f) : (n && Uu(e), M_(e, f));
32303
+ } else m ? n.length === 0 ? M_(e, f, r) : p2(e, n, f) : (n && Uu(e), M_(e, f));
32289
32304
  n = f;
32290
32305
  } else if (t.nodeType) {
32291
32306
  if (i && t.parentNode)
@@ -32345,20 +32360,20 @@ function Uu(e, t, n, r) {
32345
32360
  e.insertBefore(s, n);
32346
32361
  return [s];
32347
32362
  }
32348
- function O2() {
32363
+ function T2() {
32349
32364
  return _t.getNextContextId();
32350
32365
  }
32351
- var T2 = "http://www.w3.org/2000/svg";
32366
+ var R2 = "http://www.w3.org/2000/svg";
32352
32367
  function JE(e, t = !1) {
32353
- return t ? document.createElementNS(T2, e) : document.createElement(e);
32368
+ return t ? document.createElementNS(R2, e) : document.createElement(e);
32354
32369
  }
32355
- function g5(e) {
32370
+ function y5(e) {
32356
32371
  const {
32357
32372
  useShadow: t
32358
32373
  } = e, n = document.createTextNode(""), r = () => e.mount || document.body, s = I_();
32359
32374
  let i, a = !!_t.context;
32360
32375
  return qE(() => {
32361
- a && (I_().user = a = !1), i || (i = Hj(s, () => qr(() => e.children)));
32376
+ a && (I_().user = a = !1), i || (i = zj(s, () => qr(() => e.children)));
32362
32377
  const c = r();
32363
32378
  if (c instanceof HTMLHeadElement) {
32364
32379
  const [f, m] = Rn(!1), v = () => m(!0);
@@ -32378,20 +32393,20 @@ function g5(e) {
32378
32393
  render: !a
32379
32394
  }), n;
32380
32395
  }
32381
- function y5(e) {
32382
- const [t, n] = n2(e, ["component"]), r = qr(() => t.component);
32396
+ function b5(e) {
32397
+ const [t, n] = r2(e, ["component"]), r = qr(() => t.component);
32383
32398
  return qr(() => {
32384
32399
  const s = r();
32385
32400
  switch (typeof s) {
32386
32401
  case "function":
32387
32402
  return Yn(() => s(n));
32388
32403
  case "string":
32389
- const i = f2.has(s), a = _t.context ? E2() : JE(s, i);
32390
- return _2(a, n, i), a;
32404
+ const i = h2.has(s), a = _t.context ? C2() : JE(s, i);
32405
+ return w2(a, n, i), a;
32391
32406
  }
32392
32407
  });
32393
32408
  }
32394
- var R2 = class {
32409
+ var k2 = class {
32395
32410
  constructor() {
32396
32411
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
32397
32412
  }
@@ -32409,7 +32424,7 @@ var R2 = class {
32409
32424
  }
32410
32425
  }, XE = class {
32411
32426
  constructor(e) {
32412
- this.generateIdentifier = e, this.kv = new R2();
32427
+ this.generateIdentifier = e, this.kv = new k2();
32413
32428
  }
32414
32429
  register(e, t) {
32415
32430
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -32423,7 +32438,7 @@ var R2 = class {
32423
32438
  getValue(e) {
32424
32439
  return this.kv.getByKey(e);
32425
32440
  }
32426
- }, k2 = class extends XE {
32441
+ }, x2 = class extends XE {
32427
32442
  constructor() {
32428
32443
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
32429
32444
  }
@@ -32434,7 +32449,7 @@ var R2 = class {
32434
32449
  return this.classToAllowedProps.get(e);
32435
32450
  }
32436
32451
  };
32437
- function x2(e) {
32452
+ function P2(e) {
32438
32453
  if ("values" in Object)
32439
32454
  return Object.values(e);
32440
32455
  const t = [];
@@ -32442,8 +32457,8 @@ function x2(e) {
32442
32457
  e.hasOwnProperty(n) && t.push(e[n]);
32443
32458
  return t;
32444
32459
  }
32445
- function P2(e, t) {
32446
- const n = x2(e);
32460
+ function A2(e, t) {
32461
+ const n = P2(e);
32447
32462
  if ("find" in n)
32448
32463
  return n.find(t);
32449
32464
  const r = n;
@@ -32466,7 +32481,7 @@ function L_(e, t) {
32466
32481
  return r;
32467
32482
  }
32468
32483
  }
32469
- var A2 = class {
32484
+ var I2 = class {
32470
32485
  constructor() {
32471
32486
  this.transfomers = {};
32472
32487
  }
@@ -32474,12 +32489,12 @@ var A2 = class {
32474
32489
  this.transfomers[e.name] = e;
32475
32490
  }
32476
32491
  findApplicable(e) {
32477
- return P2(this.transfomers, (t) => t.isApplicable(e));
32492
+ return A2(this.transfomers, (t) => t.isApplicable(e));
32478
32493
  }
32479
32494
  findByName(e) {
32480
32495
  return this.transfomers[e];
32481
32496
  }
32482
- }, I2 = (e) => Object.prototype.toString.call(e).slice(8, -1), YE = (e) => typeof e > "u", D2 = (e) => e === null, Vl = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, mv = (e) => Vl(e) && Object.keys(e).length === 0, oa = (e) => Array.isArray(e), F2 = (e) => typeof e == "string", M2 = (e) => typeof e == "number" && !isNaN(e), L2 = (e) => typeof e == "boolean", N2 = (e) => e instanceof RegExp, Ql = (e) => e instanceof Map, Gl = (e) => e instanceof Set, ZE = (e) => I2(e) === "Symbol", q2 = (e) => e instanceof Date && !isNaN(e.valueOf()), B2 = (e) => e instanceof Error, N_ = (e) => typeof e == "number" && isNaN(e), $2 = (e) => L2(e) || D2(e) || YE(e) || M2(e) || F2(e) || ZE(e), U2 = (e) => typeof e == "bigint", j2 = (e) => e === 1 / 0 || e === -1 / 0, K2 = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), W2 = (e) => e instanceof URL, eC = (e) => e.replace(/\./g, "\\."), um = (e) => e.map(String).map(eC).join("."), kl = (e) => {
32497
+ }, D2 = (e) => Object.prototype.toString.call(e).slice(8, -1), YE = (e) => typeof e > "u", F2 = (e) => e === null, Vl = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, mv = (e) => Vl(e) && Object.keys(e).length === 0, oa = (e) => Array.isArray(e), M2 = (e) => typeof e == "string", L2 = (e) => typeof e == "number" && !isNaN(e), N2 = (e) => typeof e == "boolean", q2 = (e) => e instanceof RegExp, Ql = (e) => e instanceof Map, Gl = (e) => e instanceof Set, ZE = (e) => D2(e) === "Symbol", B2 = (e) => e instanceof Date && !isNaN(e.valueOf()), $2 = (e) => e instanceof Error, N_ = (e) => typeof e == "number" && isNaN(e), U2 = (e) => N2(e) || F2(e) || YE(e) || L2(e) || M2(e) || ZE(e), j2 = (e) => typeof e == "bigint", K2 = (e) => e === 1 / 0 || e === -1 / 0, W2 = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), H2 = (e) => e instanceof URL, eC = (e) => e.replace(/\./g, "\\."), um = (e) => e.map(String).map(eC).join("."), kl = (e) => {
32483
32498
  const t = [];
32484
32499
  let n = "";
32485
32500
  for (let s = 0; s < e.length; s++) {
@@ -32508,9 +32523,9 @@ function Si(e, t, n, r) {
32508
32523
  var tC = [
32509
32524
  Si(YE, "undefined", () => null, () => {
32510
32525
  }),
32511
- Si(U2, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
32512
- Si(q2, "Date", (e) => e.toISOString(), (e) => new Date(e)),
32513
- Si(B2, "Error", (e, t) => {
32526
+ Si(j2, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
32527
+ Si(B2, "Date", (e) => e.toISOString(), (e) => new Date(e)),
32528
+ Si($2, "Error", (e, t) => {
32514
32529
  const n = {
32515
32530
  name: e.name,
32516
32531
  message: e.message
@@ -32524,7 +32539,7 @@ var tC = [
32524
32539
  n[r] = e[r];
32525
32540
  }), n;
32526
32541
  }),
32527
- Si(N2, "regexp", (e) => "" + e, (e) => {
32542
+ Si(q2, "regexp", (e) => "" + e, (e) => {
32528
32543
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
32529
32544
  return new RegExp(t, n);
32530
32545
  }),
@@ -32537,9 +32552,9 @@ var tC = [
32537
32552
  (e) => new Set(e)
32538
32553
  ),
32539
32554
  Si(Ql, "map", (e) => [...e.entries()], (e) => new Map(e)),
32540
- Si((e) => N_(e) || j2(e), "number", (e) => N_(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
32555
+ Si((e) => N_(e) || K2(e), "number", (e) => N_(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
32541
32556
  Si((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
32542
- Si(W2, "URL", (e) => e.toString(), (e) => new URL(e))
32557
+ Si(H2, "URL", (e) => e.toString(), (e) => new URL(e))
32543
32558
  ];
32544
32559
  function Ud(e, t, n, r) {
32545
32560
  return {
@@ -32554,7 +32569,7 @@ var nC = Ud((e, t) => ZE(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
32554
32569
  if (!r)
32555
32570
  throw new Error("Trying to deserialize unknown symbol");
32556
32571
  return r;
32557
- }), H2 = [
32572
+ }), z2 = [
32558
32573
  Int8Array,
32559
32574
  Uint8Array,
32560
32575
  Int16Array,
@@ -32564,8 +32579,8 @@ var nC = Ud((e, t) => ZE(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
32564
32579
  Float32Array,
32565
32580
  Float64Array,
32566
32581
  Uint8ClampedArray
32567
- ].reduce((e, t) => (e[t.name] = t, e), {}), rC = Ud(K2, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
32568
- const n = H2[t[1]];
32582
+ ].reduce((e, t) => (e[t.name] = t, e), {}), rC = Ud(W2, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
32583
+ const n = z2[t[1]];
32569
32584
  if (!n)
32570
32585
  throw new Error("Trying to deserialize unknown typed array");
32571
32586
  return new n(e);
@@ -32591,8 +32606,8 @@ var iC = Ud(sC, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
32591
32606
  if (!r)
32592
32607
  throw new Error("Trying to deserialize unknown custom value");
32593
32608
  return r.deserialize(e);
32594
- }), z2 = [iC, nC, oC, rC], q_ = (e, t) => {
32595
- const n = L_(z2, (s) => s.isApplicable(e, t));
32609
+ }), V2 = [iC, nC, oC, rC], q_ = (e, t) => {
32610
+ const n = L_(V2, (s) => s.isApplicable(e, t));
32596
32611
  if (n)
32597
32612
  return {
32598
32613
  value: n.transform(e, t),
@@ -32608,7 +32623,7 @@ var iC = Ud(sC, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
32608
32623
  tC.forEach((e) => {
32609
32624
  aC[e.annotation] = e;
32610
32625
  });
32611
- var V2 = (e, t, n) => {
32626
+ var Q2 = (e, t, n) => {
32612
32627
  if (oa(t))
32613
32628
  switch (t[0]) {
32614
32629
  case "symbol":
@@ -32642,7 +32657,7 @@ function uC(e) {
32642
32657
  if (Mh(e, "constructor"))
32643
32658
  throw new Error("constructor is not allowed as a property");
32644
32659
  }
32645
- var Q2 = (e, t) => {
32660
+ var G2 = (e, t) => {
32646
32661
  uC(t);
32647
32662
  for (let n = 0; n < t.length; n++) {
32648
32663
  const r = t[n];
@@ -32723,14 +32738,14 @@ function gv(e, t, n = []) {
32723
32738
  gv(i, t, [...n, ...kl(a)]);
32724
32739
  }), t(r, n);
32725
32740
  }
32726
- function G2(e, t, n) {
32741
+ function J2(e, t, n) {
32727
32742
  return gv(t, (r, s) => {
32728
- e = vv(e, s, (i) => V2(i, r, n));
32743
+ e = vv(e, s, (i) => Q2(i, r, n));
32729
32744
  }), e;
32730
32745
  }
32731
- function J2(e, t) {
32746
+ function X2(e, t) {
32732
32747
  function n(r, s) {
32733
- const i = Q2(e, kl(s));
32748
+ const i = G2(e, kl(s));
32734
32749
  r.map(kl).forEach((a) => {
32735
32750
  e = vv(e, a, () => i);
32736
32751
  });
@@ -32744,12 +32759,12 @@ function J2(e, t) {
32744
32759
  $c(t, n);
32745
32760
  return e;
32746
32761
  }
32747
- var X2 = (e, t) => Vl(e) || oa(e) || Ql(e) || Gl(e) || sC(e, t);
32748
- function Y2(e, t, n) {
32762
+ var Y2 = (e, t) => Vl(e) || oa(e) || Ql(e) || Gl(e) || sC(e, t);
32763
+ function Z2(e, t, n) {
32749
32764
  const r = n.get(e);
32750
32765
  r ? r.push(t) : n.set(e, [t]);
32751
32766
  }
32752
- function Z2(e, t) {
32767
+ function eK(e, t) {
32753
32768
  const n = {};
32754
32769
  let r;
32755
32770
  return e.forEach((s) => {
@@ -32761,16 +32776,16 @@ function Z2(e, t) {
32761
32776
  }), r ? mv(n) ? [r] : [r, n] : mv(n) ? void 0 : n;
32762
32777
  }
32763
32778
  var cC = (e, t, n, r, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
32764
- const c = $2(e);
32779
+ const c = U2(e);
32765
32780
  if (!c) {
32766
- Y2(e, s, t);
32781
+ Z2(e, s, t);
32767
32782
  const R = a.get(e);
32768
32783
  if (R)
32769
32784
  return r ? {
32770
32785
  transformedValue: null
32771
32786
  } : R;
32772
32787
  }
32773
- if (!X2(e, n)) {
32788
+ if (!Y2(e, n)) {
32774
32789
  const R = q_(e, n), E = R ? {
32775
32790
  transformedValue: R.value,
32776
32791
  annotations: [R.type]
@@ -32807,13 +32822,13 @@ function lC(e) {
32807
32822
  function B_(e) {
32808
32823
  return lC(e) === "Array";
32809
32824
  }
32810
- function eK(e) {
32825
+ function tK(e) {
32811
32826
  if (lC(e) !== "Object")
32812
32827
  return !1;
32813
32828
  const t = Object.getPrototypeOf(e);
32814
32829
  return !!t && t.constructor === Object && t === Object.prototype;
32815
32830
  }
32816
- function tK(e, t, n, r, s) {
32831
+ function nK(e, t, n, r, s) {
32817
32832
  const i = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
32818
32833
  i === "enumerable" && (e[t] = n), s && i === "nonenumerable" && Object.defineProperty(e, t, {
32819
32834
  value: n,
@@ -32825,14 +32840,14 @@ function tK(e, t, n, r, s) {
32825
32840
  function yv(e, t = {}) {
32826
32841
  if (B_(e))
32827
32842
  return e.map((s) => yv(s, t));
32828
- if (!eK(e))
32843
+ if (!tK(e))
32829
32844
  return e;
32830
32845
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
32831
32846
  return [...n, ...r].reduce((s, i) => {
32832
32847
  if (B_(t.props) && !t.props.includes(i))
32833
32848
  return s;
32834
32849
  const a = e[i], c = yv(a, t);
32835
- return tK(s, i, c, e, t.nonenumerable), s;
32850
+ return nK(s, i, c, e, t.nonenumerable), s;
32836
32851
  }, {});
32837
32852
  }
32838
32853
  var Jt = class {
@@ -32840,7 +32855,7 @@ var Jt = class {
32840
32855
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
32841
32856
  */
32842
32857
  constructor({ dedupe: e = !1 } = {}) {
32843
- this.classRegistry = new k2(), this.symbolRegistry = new XE((t) => t.description ?? ""), this.customTransformerRegistry = new A2(), this.allowedErrorProps = [], this.dedupe = e;
32858
+ this.classRegistry = new x2(), this.symbolRegistry = new XE((t) => t.description ?? ""), this.customTransformerRegistry = new I2(), this.allowedErrorProps = [], this.dedupe = e;
32844
32859
  }
32845
32860
  serialize(e) {
32846
32861
  const t = /* @__PURE__ */ new Map(), n = cC(e, t, this, this.dedupe), r = {
@@ -32850,7 +32865,7 @@ var Jt = class {
32850
32865
  ...r.meta,
32851
32866
  values: n.annotations
32852
32867
  });
32853
- const s = Z2(t, this.dedupe);
32868
+ const s = eK(t, this.dedupe);
32854
32869
  return s && (r.meta = {
32855
32870
  ...r.meta,
32856
32871
  referentialEqualities: s
@@ -32859,7 +32874,7 @@ var Jt = class {
32859
32874
  deserialize(e) {
32860
32875
  const { json: t, meta: n } = e;
32861
32876
  let r = yv(t);
32862
- return n != null && n.values && (r = G2(r, n.values, this)), n != null && n.referentialEqualities && (r = J2(r, n.referentialEqualities)), r;
32877
+ return n != null && n.values && (r = J2(r, n.values, this)), n != null && n.referentialEqualities && (r = X2(r, n.referentialEqualities)), r;
32863
32878
  }
32864
32879
  stringify(e) {
32865
32880
  return JSON.stringify(this.serialize(e));
@@ -32892,44 +32907,44 @@ Jt.registerClass = Jt.defaultInstance.registerClass.bind(Jt.defaultInstance);
32892
32907
  Jt.registerSymbol = Jt.defaultInstance.registerSymbol.bind(Jt.defaultInstance);
32893
32908
  Jt.registerCustom = Jt.defaultInstance.registerCustom.bind(Jt.defaultInstance);
32894
32909
  Jt.allowErrorProps = Jt.defaultInstance.allowErrorProps.bind(Jt.defaultInstance);
32895
- var nK = Jt.serialize, b5 = Jt.stringify;
32896
- function _5(e) {
32910
+ var rK = Jt.serialize, _5 = Jt.stringify;
32911
+ function w5(e) {
32897
32912
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
32898
32913
  }
32899
- function w5(e, t) {
32914
+ function S5(e, t) {
32900
32915
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
32901
32916
  }
32902
- function S5({
32917
+ function E5({
32903
32918
  queryState: e,
32904
32919
  observerCount: t,
32905
32920
  isStale: n
32906
32921
  }) {
32907
32922
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : n ? "yellow" : "green" : "gray";
32908
32923
  }
32909
- function E5({
32924
+ function C5({
32910
32925
  status: e,
32911
32926
  isPaused: t
32912
32927
  }) {
32913
32928
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
32914
32929
  }
32915
- function C5(e) {
32930
+ function O5(e) {
32916
32931
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
32917
32932
  }
32918
- var O5 = (e, t = !1) => {
32933
+ var T5 = (e, t = !1) => {
32919
32934
  const {
32920
32935
  json: n
32921
- } = nK(e);
32936
+ } = rK(e);
32922
32937
  return JSON.stringify(n, null, t ? 2 : void 0);
32923
- }, _h = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, rK = (e, t) => e.queryHash.localeCompare(t.queryHash), fC = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, sK = (e, t) => _h(e) === _h(t) ? fC(e, t) : _h(e) > _h(t) ? 1 : -1, T5 = {
32924
- status: sK,
32925
- "query hash": rK,
32926
- "last updated": fC
32927
- }, wh = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, hC = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, iK = (e, t) => wh(e) === wh(t) ? hC(e, t) : wh(e) > wh(t) ? 1 : -1, R5 = {
32938
+ }, _h = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, sK = (e, t) => e.queryHash.localeCompare(t.queryHash), fC = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, iK = (e, t) => _h(e) === _h(t) ? fC(e, t) : _h(e) > _h(t) ? 1 : -1, R5 = {
32928
32939
  status: iK,
32940
+ "query hash": sK,
32941
+ "last updated": fC
32942
+ }, wh = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, hC = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, oK = (e, t) => wh(e) === wh(t) ? hC(e, t) : wh(e) > wh(t) ? 1 : -1, k5 = {
32943
+ status: oK,
32929
32944
  "last updated": hC
32930
- }, k5 = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), x5 = () => {
32945
+ }, x5 = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), P5 = () => {
32931
32946
  const [e, t] = Rn("dark");
32932
- return Wj(() => {
32947
+ return Hj(() => {
32933
32948
  const n = window.matchMedia("(prefers-color-scheme: dark)");
32934
32949
  t(n.matches ? "dark" : "light");
32935
32950
  const r = (s) => {
@@ -33002,7 +33017,7 @@ var O5 = (e, t = !1) => {
33002
33017
  return;
33003
33018
  const r = document.createElement("style"), s = document.createTextNode("");
33004
33019
  r.appendChild(s), r.id = "_goober", r.setAttribute("nonce", e), t ? t.appendChild(r) : document.head.appendChild(r);
33005
- }, gc, af, uf, cf, Za, lf, yc, bc, _c, wc, Sc, Ec, ff, Z_, oK = (Z_ = class {
33020
+ }, gc, af, uf, cf, Za, lf, yc, bc, _c, wc, Sc, Ec, ff, Z_, aK = (Z_ = class {
33006
33021
  constructor(e) {
33007
33022
  be(this, gc);
33008
33023
  be(this, af);
@@ -33052,7 +33067,7 @@ var O5 = (e, t = !1) => {
33052
33067
  const t = QE(() => {
33053
33068
  const n = this, [r] = I(this, bc), [s] = I(this, _c), [i] = I(this, wc), [a] = I(this, Sc), [c] = I(this, gc);
33054
33069
  let f;
33055
- return I(this, Ec) ? f = I(this, Ec) : (f = zE(() => import("./COOQDZLH-Wk4py-lz.js")), le(this, Ec, f)), dC(I(this, lf), I(this, yc)), WE(f, HE({
33070
+ return I(this, Ec) ? f = I(this, Ec) : (f = zE(() => import("./COOQDZLH-CgRG4-eb.js")), le(this, Ec, f)), dC(I(this, lf), I(this, yc)), WE(f, HE({
33056
33071
  get queryFlavor() {
33057
33072
  return I(n, uf);
33058
33073
  },
@@ -33091,7 +33106,7 @@ var O5 = (e, t = !1) => {
33091
33106
  throw new Error("Devtools is not mounted");
33092
33107
  (e = I(this, ff)) == null || e.call(this), le(this, Za, !1);
33093
33108
  }
33094
- }, gc = new WeakMap(), af = new WeakMap(), uf = new WeakMap(), cf = new WeakMap(), Za = new WeakMap(), lf = new WeakMap(), yc = new WeakMap(), bc = new WeakMap(), _c = new WeakMap(), wc = new WeakMap(), Sc = new WeakMap(), Ec = new WeakMap(), ff = new WeakMap(), Z_), Cc, hf, df, pf, eu, mf, Oc, Tc, Rc, kc, xc, Pc, Ac, vf, ew, aK = (ew = class {
33109
+ }, gc = new WeakMap(), af = new WeakMap(), uf = new WeakMap(), cf = new WeakMap(), Za = new WeakMap(), lf = new WeakMap(), yc = new WeakMap(), bc = new WeakMap(), _c = new WeakMap(), wc = new WeakMap(), Sc = new WeakMap(), Ec = new WeakMap(), ff = new WeakMap(), Z_), Cc, hf, df, pf, eu, mf, Oc, Tc, Rc, kc, xc, Pc, Ac, vf, ew, uK = (ew = class {
33095
33110
  constructor(e) {
33096
33111
  be(this, Cc);
33097
33112
  be(this, hf);
@@ -33146,7 +33161,7 @@ var O5 = (e, t = !1) => {
33146
33161
  const t = QE(() => {
33147
33162
  const n = this, [r] = I(this, Tc), [s] = I(this, Rc), [i] = I(this, kc), [a] = I(this, xc), [c] = I(this, Cc), [f] = I(this, Pc);
33148
33163
  let m;
33149
- return I(this, Ac) ? m = I(this, Ac) : (m = zE(() => import("./MU7WGUJF-D6n_0pwW.js")), le(this, Ac, m)), dC(I(this, mf), I(this, Oc)), WE(m, HE({
33164
+ return I(this, Ac) ? m = I(this, Ac) : (m = zE(() => import("./MU7WGUJF-COnkbI03.js")), le(this, Ac, m)), dC(I(this, mf), I(this, Oc)), WE(m, HE({
33150
33165
  get queryFlavor() {
33151
33166
  return I(n, df);
33152
33167
  },
@@ -33189,7 +33204,7 @@ var O5 = (e, t = !1) => {
33189
33204
  (e = I(this, vf)) == null || e.call(this), le(this, eu, !1);
33190
33205
  }
33191
33206
  }, Cc = new WeakMap(), hf = new WeakMap(), df = new WeakMap(), pf = new WeakMap(), eu = new WeakMap(), mf = new WeakMap(), Oc = new WeakMap(), Tc = new WeakMap(), Rc = new WeakMap(), kc = new WeakMap(), xc = new WeakMap(), Pc = new WeakMap(), Ac = new WeakMap(), vf = new WeakMap(), ew);
33192
- function uK(e) {
33207
+ function cK(e) {
33193
33208
  const t = Pt(e.client), n = Ze.useRef(null), {
33194
33209
  buttonPosition: r,
33195
33210
  position: s,
@@ -33198,7 +33213,7 @@ function uK(e) {
33198
33213
  styleNonce: c,
33199
33214
  shadowDOMTarget: f
33200
33215
  } = e, [m] = Ze.useState(
33201
- new oK({
33216
+ new aK({
33202
33217
  client: t,
33203
33218
  queryFlavor: "React Query",
33204
33219
  version: "5",
@@ -33225,9 +33240,9 @@ function uK(e) {
33225
33240
  m.unmount();
33226
33241
  }), [m]), /* @__PURE__ */ bd.jsx("div", { className: "tsqd-parent-container", ref: n });
33227
33242
  }
33228
- function cK(e) {
33243
+ function lK(e) {
33229
33244
  const t = Pt(e.client), n = Ze.useRef(null), { errorTypes: r, styleNonce: s, shadowDOMTarget: i } = e, [a] = Ze.useState(
33230
- new aK({
33245
+ new uK({
33231
33246
  client: t,
33232
33247
  queryFlavor: "React Query",
33233
33248
  version: "5",
@@ -33259,185 +33274,185 @@ function cK(e) {
33259
33274
  }
33260
33275
  );
33261
33276
  }
33262
- var P5 = process.env.NODE_ENV !== "development" ? function() {
33277
+ var A5 = process.env.NODE_ENV !== "development" ? function() {
33263
33278
  return null;
33264
- } : uK;
33279
+ } : cK;
33265
33280
  process.env.NODE_ENV;
33266
33281
  export {
33267
33282
  ME as $,
33268
- C5 as A,
33269
- O5 as B,
33270
- k5 as C,
33283
+ O5 as A,
33284
+ T5 as B,
33285
+ x5 as C,
33271
33286
  Yn as D,
33272
- _2 as E,
33273
- l5 as F,
33287
+ w2 as E,
33288
+ f5 as F,
33274
33289
  HE as G,
33275
33290
  ou as H,
33276
- nK as I,
33277
- f5 as J,
33291
+ rK as I,
33292
+ h5 as J,
33278
33293
  Sh as K,
33279
- o5 as L,
33280
- g2 as M,
33281
- b5 as N,
33282
- p5 as O,
33283
- g5 as P,
33284
- d5 as Q,
33294
+ a5 as L,
33295
+ y2 as M,
33296
+ _5 as N,
33297
+ m5 as O,
33298
+ y5 as P,
33299
+ p5 as Q,
33285
33300
  Eh as R,
33286
- h5 as S,
33287
- n2 as T,
33288
- y5 as U,
33289
- Uj as V,
33301
+ d5 as S,
33302
+ r2 as T,
33303
+ b5 as U,
33304
+ jj as V,
33290
33305
  Yr as W,
33291
33306
  zn as X,
33292
- P5 as Y,
33293
- Lj as Z,
33307
+ A5 as Y,
33308
+ Nj as Z,
33294
33309
  me as _,
33295
33310
  WE as a,
33296
- y4 as a$,
33311
+ b4 as a$,
33297
33312
  Bc as a0,
33298
- QK as a1,
33313
+ GK as a1,
33299
33314
  _q as a2,
33300
- GK as a3,
33301
- VK as a4,
33302
- pK as a5,
33303
- zW as a6,
33304
- i4 as a7,
33305
- t5 as a8,
33306
- z4 as a9,
33307
- H4 as aA,
33308
- e5 as aB,
33309
- ZK as aC,
33310
- sW as aD,
33311
- u4 as aE,
33312
- UW as aF,
33313
- c4 as aG,
33314
- K4 as aH,
33315
- j4 as aI,
33316
- U4 as aJ,
33317
- S4 as aK,
33318
- XW as aL,
33319
- l4 as aM,
33320
- f4 as aN,
33321
- h4 as aO,
33322
- FW as aP,
33323
- d4 as aQ,
33324
- p4 as aR,
33325
- HW as aS,
33326
- L4 as aT,
33327
- m4 as aU,
33328
- v4 as aV,
33329
- TW as aW,
33330
- AW as aX,
33331
- IW as aY,
33332
- N4 as aZ,
33333
- g4 as a_,
33334
- iW as aa,
33335
- nW as ab,
33336
- YW as ac,
33337
- W4 as ad,
33338
- o4 as ae,
33339
- WW as af,
33340
- YK as ag,
33341
- RW as ah,
33342
- DW as ai,
33343
- a4 as aj,
33344
- XK as ak,
33345
- n4 as al,
33346
- ZW as am,
33347
- T4 as an,
33348
- LW as ao,
33349
- xW as ap,
33350
- D4 as aq,
33351
- M4 as ar,
33352
- F4 as as,
33353
- aW as at,
33354
- rW as au,
33355
- J4 as av,
33356
- Z4 as aw,
33357
- Q4 as ax,
33358
- V4 as ay,
33359
- G4 as az,
33315
+ JK as a3,
33316
+ QK as a4,
33317
+ mK as a5,
33318
+ VW as a6,
33319
+ o4 as a7,
33320
+ n5 as a8,
33321
+ V4 as a9,
33322
+ z4 as aA,
33323
+ t5 as aB,
33324
+ e4 as aC,
33325
+ iW as aD,
33326
+ c4 as aE,
33327
+ jW as aF,
33328
+ l4 as aG,
33329
+ W4 as aH,
33330
+ K4 as aI,
33331
+ j4 as aJ,
33332
+ E4 as aK,
33333
+ YW as aL,
33334
+ f4 as aM,
33335
+ h4 as aN,
33336
+ d4 as aO,
33337
+ MW as aP,
33338
+ p4 as aQ,
33339
+ m4 as aR,
33340
+ zW as aS,
33341
+ N4 as aT,
33342
+ v4 as aU,
33343
+ g4 as aV,
33344
+ RW as aW,
33345
+ IW as aX,
33346
+ DW as aY,
33347
+ q4 as aZ,
33348
+ y4 as a_,
33349
+ oW as aa,
33350
+ rW as ab,
33351
+ ZW as ac,
33352
+ H4 as ad,
33353
+ a4 as ae,
33354
+ HW as af,
33355
+ ZK as ag,
33356
+ kW as ah,
33357
+ FW as ai,
33358
+ u4 as aj,
33359
+ YK as ak,
33360
+ r4 as al,
33361
+ e5 as am,
33362
+ R4 as an,
33363
+ NW as ao,
33364
+ PW as ap,
33365
+ F4 as aq,
33366
+ L4 as ar,
33367
+ M4 as as,
33368
+ uW as at,
33369
+ sW as au,
33370
+ X4 as av,
33371
+ eW as aw,
33372
+ G4 as ax,
33373
+ Q4 as ay,
33374
+ J4 as az,
33360
33375
  Rn as b,
33361
- b4 as b0,
33362
- _4 as b1,
33363
- w4 as b2,
33364
- C4 as b3,
33365
- $W as b4,
33366
- JW as b5,
33367
- KW as b6,
33368
- OW as b7,
33369
- eW as b8,
33370
- tW as b9,
33371
- EW as bA,
33372
- dW as bB,
33373
- fW as bC,
33374
- gW as bD,
33375
- cW as bE,
33376
- vW as bF,
33377
- pW as bG,
33378
- bW as bH,
33379
- yW as bI,
33380
- lW as bJ,
33381
- PW as bK,
33382
- P4 as bL,
33383
- BW as bM,
33384
- A4 as bN,
33385
- n5 as bO,
33386
- s4 as bP,
33387
- t4 as bQ,
33388
- O4 as bR,
33389
- MW as bS,
33390
- kW as bT,
33391
- Nj as bU,
33392
- I4 as bV,
33393
- X4 as ba,
33394
- JK as bb,
33395
- NW as bc,
33396
- e4 as bd,
33397
- B4 as be,
33398
- Y4 as bf,
33399
- oW as bg,
33400
- qW as bh,
33401
- jW as bi,
33402
- VW as bj,
33403
- E4 as bk,
33404
- R4 as bl,
33405
- k4 as bm,
33406
- $4 as bn,
33407
- x4 as bo,
33408
- q4 as bp,
33409
- r4 as bq,
33410
- QW as br,
33411
- GW as bs,
33412
- _W as bt,
33413
- mW as bu,
33414
- wW as bv,
33415
- SW as bw,
33416
- hW as bx,
33417
- uW as by,
33418
- CW as bz,
33376
+ _4 as b0,
33377
+ w4 as b1,
33378
+ S4 as b2,
33379
+ O4 as b3,
33380
+ UW as b4,
33381
+ XW as b5,
33382
+ WW as b6,
33383
+ TW as b7,
33384
+ tW as b8,
33385
+ nW as b9,
33386
+ CW as bA,
33387
+ pW as bB,
33388
+ hW as bC,
33389
+ yW as bD,
33390
+ lW as bE,
33391
+ gW as bF,
33392
+ mW as bG,
33393
+ _W as bH,
33394
+ bW as bI,
33395
+ fW as bJ,
33396
+ AW as bK,
33397
+ A4 as bL,
33398
+ $W as bM,
33399
+ I4 as bN,
33400
+ r5 as bO,
33401
+ i4 as bP,
33402
+ n4 as bQ,
33403
+ T4 as bR,
33404
+ LW as bS,
33405
+ xW as bT,
33406
+ qj as bU,
33407
+ D4 as bV,
33408
+ Y4 as ba,
33409
+ XK as bb,
33410
+ qW as bc,
33411
+ t4 as bd,
33412
+ $4 as be,
33413
+ Z4 as bf,
33414
+ aW as bg,
33415
+ BW as bh,
33416
+ KW as bi,
33417
+ QW as bj,
33418
+ C4 as bk,
33419
+ k4 as bl,
33420
+ x4 as bm,
33421
+ U4 as bn,
33422
+ P4 as bo,
33423
+ B4 as bp,
33424
+ s4 as bq,
33425
+ GW as br,
33426
+ JW as bs,
33427
+ wW as bt,
33428
+ vW as bu,
33429
+ SW as bv,
33430
+ EW as bw,
33431
+ dW as bx,
33432
+ cW as by,
33433
+ OW as bz,
33419
33434
  qr as c,
33420
33435
  qE as d,
33421
- a5 as e,
33436
+ u5 as e,
33422
33437
  au as f,
33423
- x5 as g,
33424
- v2 as h,
33438
+ P5 as g,
33439
+ g2 as h,
33425
33440
  dv as i,
33426
- v5 as j,
33427
- p2 as k,
33441
+ g5 as j,
33442
+ m2 as k,
33428
33443
  Hl as l,
33429
- R5 as m,
33430
- s5 as n,
33431
- Wj as o,
33444
+ k5 as m,
33445
+ i5 as n,
33446
+ Hj as o,
33432
33447
  hv as p,
33433
- w5 as q,
33434
- w2 as r,
33435
- T5 as s,
33436
- m5 as t,
33437
- u5 as u,
33438
- c5 as v,
33439
- r5 as w,
33440
- _5 as x,
33441
- E5 as y,
33442
- S5 as z
33448
+ S5 as q,
33449
+ S2 as r,
33450
+ R5 as s,
33451
+ v5 as t,
33452
+ c5 as u,
33453
+ l5 as v,
33454
+ s5 as w,
33455
+ w5 as x,
33456
+ C5 as y,
33457
+ E5 as z
33443
33458
  };