@kupola/kupola 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- class ut {
1
+ class dt {
2
2
  constructor(t = "app") {
3
3
  this.scope = t, this.hooks = /* @__PURE__ */ new Map(), this.state = "created", this.stateHistory = ["created"], this.transitions = /* @__PURE__ */ new Map([
4
4
  ["created", ["bootstrapped", "destroyed"]],
@@ -66,20 +66,20 @@ class ut {
66
66
  for (const o of s) {
67
67
  await this._resolveDepends(o.depends, t);
68
68
  const l = performance.now();
69
- let c, h;
69
+ let c, d;
70
70
  try {
71
71
  c = o.handler(...e), c instanceof Promise && await c, o.resolved = !0;
72
72
  } catch (u) {
73
- h = u, console.error(`[KupolaLifecycle] Error in ${t} hook "${o.name}":`, u), t !== "error" && await this._handleError({ phase: t, hook: o.name, error: u, args: e });
73
+ d = u, console.error(`[KupolaLifecycle] Error in ${t} hook "${o.name}":`, u), t !== "error" && await this._handleError({ phase: t, hook: o.name, error: u, args: e });
74
74
  }
75
- const d = performance.now() - l;
75
+ const h = performance.now() - l;
76
76
  this.trace.push({
77
77
  emitId: n,
78
78
  phase: t,
79
79
  hookName: o.name,
80
- duration: d,
81
- status: h ? "error" : "success",
82
- error: h ? h.message : null,
80
+ duration: h,
81
+ status: d ? "error" : "success",
82
+ error: d ? d.message : null,
83
83
  timestamp: Date.now()
84
84
  });
85
85
  }
@@ -201,123 +201,123 @@ class ut {
201
201
  console.error(`[KupolaLifecycle] Unhandled error in ${t.phase}:`, t.error);
202
202
  }
203
203
  }
204
- const Ba = new ut("app");
204
+ const Ba = new dt("app");
205
205
  function qa(i = "app") {
206
- return new ut(i);
206
+ return new dt(i);
207
207
  }
208
208
  const Ie = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
209
- function et(i) {
209
+ function tt(i) {
210
210
  return Ie.has(i);
211
211
  }
212
- function Te(i) {
212
+ function Ae(i) {
213
213
  return i ? i.trim() : "";
214
214
  }
215
- function Ae(i) {
215
+ function ze(i) {
216
216
  return i ? i.replace(/^\s+/, "") : "";
217
217
  }
218
- function ze(i) {
218
+ function Pe(i) {
219
219
  return i ? i.replace(/\s+$/, "") : "";
220
220
  }
221
- function Pe(i) {
221
+ function $e(i) {
222
222
  return i ? i.toUpperCase() : "";
223
223
  }
224
- function $e(i) {
224
+ function Be(i) {
225
225
  return i ? i.toLowerCase() : "";
226
226
  }
227
- function Be(i) {
227
+ function qe(i) {
228
228
  return i ? i.charAt(0).toUpperCase() + i.slice(1) : "";
229
229
  }
230
- function qe(i) {
230
+ function Oe(i) {
231
231
  return i ? i.replace(/-(\w)/g, (t, e) => e ? e.toUpperCase() : "") : "";
232
232
  }
233
- function Oe(i) {
233
+ function Fe(i) {
234
234
  return i ? i.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "") : "";
235
235
  }
236
- function Fe(i, t, e = " ") {
236
+ function Ne(i, t, e = " ") {
237
237
  return (String(i) || "").padStart(t, e);
238
238
  }
239
- function Ne(i, t, e = " ") {
239
+ function Re(i, t, e = " ") {
240
240
  return (String(i) || "").padEnd(t, e);
241
241
  }
242
- function Re(i, t, e = "...") {
242
+ function Ve(i, t, e = "...") {
243
243
  return !i || i.length <= t ? i || "" : i.slice(0, t) + e;
244
244
  }
245
- function Ve(i, t, e) {
245
+ function Ke(i, t, e) {
246
246
  return i ? i.split(t).join(e) : "";
247
247
  }
248
- function Ke(i, t) {
248
+ function We(i, t) {
249
249
  return i ? i.replace(/\{\{(\w+)\}\}/g, (e, s) => t[s] !== void 0 ? t[s] : `{{${s}}}`) : "";
250
250
  }
251
- function We(i, t) {
251
+ function Ue(i, t) {
252
252
  return (i || "").startsWith(t);
253
253
  }
254
- function Ue(i, t) {
254
+ function Ye(i, t) {
255
255
  return (i || "").endsWith(t);
256
256
  }
257
- function Ye(i, t) {
257
+ function Xe(i, t) {
258
258
  return (i || "").includes(t);
259
259
  }
260
- function Xe(i, t) {
260
+ function je(i, t) {
261
261
  return (i || "").repeat(t);
262
262
  }
263
- function je(i) {
263
+ function Je(i) {
264
264
  return (i || "").split("").reverse().join("");
265
265
  }
266
- function Je(i, t) {
266
+ function Ze(i, t) {
267
267
  return !i || !t ? 0 : i.split(t).length - 1;
268
268
  }
269
- function Ze(i) {
269
+ function Ge(i) {
270
270
  if (!i) return "";
271
271
  const t = document.createElement("div");
272
272
  return t.textContent = i, t.innerHTML;
273
273
  }
274
- function Ge(i) {
274
+ function Qe(i) {
275
275
  if (!i) return "";
276
276
  const t = document.createElement("div");
277
277
  return t.innerHTML = i, t.textContent;
278
278
  }
279
- function Qe(i = 8) {
279
+ function ts(i = 8) {
280
280
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
281
281
  let e = "";
282
282
  for (let s = 0; s < i; s++)
283
283
  e += t.charAt(Math.floor(Math.random() * t.length));
284
284
  return e;
285
285
  }
286
- function ts() {
286
+ function es() {
287
287
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
288
288
  const t = Math.random() * 16 | 0;
289
289
  return (i === "x" ? t : t & 3 | 8).toString(16);
290
290
  });
291
291
  }
292
- const es = { trim: Te, trimLeft: Ae, trimRight: ze, toUpperCase: Pe, toLowerCase: $e, capitalize: Be, camelize: qe, hyphenate: Oe, padStart: Fe, padEnd: Ne, truncate: Re, replaceAll: Ve, format: Ke, startsWith: We, endsWith: Ue, includes: Ye, repeat: Xe, reverse: je, countOccurrences: Je, escapeHtml: Ze, unescapeHtml: Ge, generateRandom: Qe, generateUUID: ts };
293
- function ss(i) {
292
+ const ss = { trim: Ae, trimLeft: ze, trimRight: Pe, toUpperCase: $e, toLowerCase: Be, capitalize: qe, camelize: Oe, hyphenate: Fe, padStart: Ne, padEnd: Re, truncate: Ve, replaceAll: Ke, format: We, startsWith: Ue, endsWith: Ye, includes: Xe, repeat: je, reverse: Je, countOccurrences: Ze, escapeHtml: Ge, unescapeHtml: Qe, generateRandom: ts, generateUUID: es };
293
+ function is(i) {
294
294
  return Array.isArray(i);
295
295
  }
296
- function is(i) {
296
+ function ns(i) {
297
297
  return !i || i.length === 0;
298
298
  }
299
- function ns(i) {
299
+ function rs(i) {
300
300
  return i ? i.length : 0;
301
301
  }
302
- function rs(i, t) {
302
+ function as(i, t) {
303
303
  return i && i.length > 0 ? i[0] : t;
304
304
  }
305
- function as(i, t) {
305
+ function os(i, t) {
306
306
  return i && i.length > 0 ? i[i.length - 1] : t;
307
307
  }
308
- function os(i, t, e) {
308
+ function ls(i, t, e) {
309
309
  return i && i[t] !== void 0 ? i[t] : e;
310
310
  }
311
- function ls(i, t, e) {
311
+ function cs(i, t, e) {
312
312
  return i ? i.slice(t, e) : [];
313
313
  }
314
- function cs(...i) {
314
+ function hs(...i) {
315
315
  return i.reduce((t, e) => t.concat(e || []), []);
316
316
  }
317
- function hs(i, t = ",") {
317
+ function ds(i, t = ",") {
318
318
  return i ? i.join(t) : "";
319
319
  }
320
- function ds(i, t, e = 0) {
320
+ function us(i, t, e = 0) {
321
321
  if (!i) return -1;
322
322
  if (Number.isNaN(t)) {
323
323
  for (let s = e; s < i.length; s++)
@@ -326,7 +326,7 @@ function ds(i, t, e = 0) {
326
326
  }
327
327
  return i.indexOf(t, e);
328
328
  }
329
- function us(i, t, e) {
329
+ function ps(i, t, e) {
330
330
  if (!i) return -1;
331
331
  if (Number.isNaN(t)) {
332
332
  const s = e !== void 0 ? e : i.length - 1;
@@ -336,78 +336,78 @@ function us(i, t, e) {
336
336
  }
337
337
  return i.lastIndexOf(t, e);
338
338
  }
339
- function ps(i, t) {
339
+ function fs(i, t) {
340
340
  return i ? i.includes(t) : !1;
341
341
  }
342
- function fs(i, ...t) {
342
+ function ms(i, ...t) {
343
343
  return i && i.push(...t), i;
344
344
  }
345
- function ms(i) {
345
+ function gs(i) {
346
346
  return i ? i.pop() : void 0;
347
347
  }
348
- function gs(i) {
348
+ function _s(i) {
349
349
  return i ? i.shift() : void 0;
350
350
  }
351
- function _s(i, ...t) {
351
+ function ys(i, ...t) {
352
352
  return i && i.unshift(...t), i;
353
353
  }
354
- function ys(i, t) {
354
+ function vs(i, t) {
355
355
  if (!i) return i;
356
356
  const e = Number.isNaN(t) ? i.findIndex((s) => Number.isNaN(s)) : i.indexOf(t);
357
357
  return e > -1 && i.splice(e, 1), i;
358
358
  }
359
- function vs(i, t) {
359
+ function bs(i, t) {
360
360
  return !i || t < 0 || t >= i.length || i.splice(t, 1), i;
361
361
  }
362
- function bs(i, t, e) {
362
+ function xs(i, t, e) {
363
363
  return i && (i.splice(t, 0, e), i);
364
364
  }
365
- function xs(i) {
365
+ function Es(i) {
366
366
  return i ? i.slice().reverse() : [];
367
367
  }
368
- function Es(i, t) {
368
+ function ws(i, t) {
369
369
  return i ? i.slice().sort(t) : [];
370
370
  }
371
- function ws(i, t, e = "asc") {
371
+ function ks(i, t, e = "asc") {
372
372
  return i ? i.slice().sort((s, n) => {
373
373
  const r = typeof s == "object" ? s[t] : s, a = typeof n == "object" ? n[t] : n;
374
374
  return r < a ? e === "asc" ? -1 : 1 : r > a ? e === "asc" ? 1 : -1 : 0;
375
375
  }) : [];
376
376
  }
377
- function ks(i, t) {
377
+ function Cs(i, t) {
378
378
  return i ? i.filter(t) : [];
379
379
  }
380
- function Cs(i, t) {
380
+ function Ss(i, t) {
381
381
  return i ? i.map(t) : [];
382
382
  }
383
- function Ss(i, t, e) {
383
+ function Ls(i, t, e) {
384
384
  return i ? i.reduce(t, e) : e;
385
385
  }
386
- function Ls(i, t) {
386
+ function Ds(i, t) {
387
387
  i && i.forEach(t);
388
388
  }
389
- function Ds(i, t) {
389
+ function Hs(i, t) {
390
390
  return i ? i.every(t) : !0;
391
391
  }
392
- function Hs(i, t) {
392
+ function Ms(i, t) {
393
393
  return i ? i.some(t) : !1;
394
394
  }
395
- function Ms(i, t) {
395
+ function Ts(i, t) {
396
396
  return i ? i.find(t) : void 0;
397
397
  }
398
398
  function Is(i, t) {
399
399
  return i ? i.findIndex(t) : -1;
400
400
  }
401
- function Ts(i, t = 1) {
401
+ function As(i, t = 1) {
402
402
  return i ? i.flat(t) : [];
403
403
  }
404
- function It(i) {
405
- return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(It(e)) : t.concat(e), []) : [];
404
+ function Tt(i) {
405
+ return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(Tt(e)) : t.concat(e), []) : [];
406
406
  }
407
- function As(i) {
407
+ function zs(i) {
408
408
  return i ? [...new Set(i)] : [];
409
409
  }
410
- function zs(i, t) {
410
+ function Ps(i, t) {
411
411
  if (!i) return [];
412
412
  const e = /* @__PURE__ */ new Set();
413
413
  return i.filter((s) => {
@@ -415,14 +415,14 @@ function zs(i, t) {
415
415
  return e.has(n) ? !1 : (e.add(n), !0);
416
416
  });
417
417
  }
418
- function Ps(i, t) {
418
+ function $s(i, t) {
419
419
  if (!i || t <= 0) return [];
420
420
  const e = [];
421
421
  for (let s = 0; s < i.length; s += t)
422
422
  e.push(i.slice(s, s + t));
423
423
  return e;
424
424
  }
425
- function $s(i) {
425
+ function Bs(i) {
426
426
  if (!i) return [];
427
427
  const t = i.slice();
428
428
  for (let e = t.length - 1; e > 0; e--) {
@@ -431,78 +431,78 @@ function $s(i) {
431
431
  }
432
432
  return t;
433
433
  }
434
- function Tt(i) {
434
+ function It(i) {
435
435
  return i ? i.reduce((t, e) => t + (Number(e) || 0), 0) : 0;
436
436
  }
437
- function Bs(i) {
438
- return !i || i.length === 0 ? 0 : Tt(i) / i.length;
439
- }
440
437
  function qs(i) {
441
- return i && i.length > 0 ? Math.max(...i) : -1 / 0;
438
+ return !i || i.length === 0 ? 0 : It(i) / i.length;
442
439
  }
443
440
  function Os(i) {
441
+ return i && i.length > 0 ? Math.max(...i) : -1 / 0;
442
+ }
443
+ function Fs(i) {
444
444
  return i && i.length > 0 ? Math.min(...i) : 1 / 0;
445
445
  }
446
- function Fs(...i) {
446
+ function Ns(...i) {
447
447
  return i.length === 0 ? [] : i.reduce((t, e) => t.filter((s) => e && e.includes(s)));
448
448
  }
449
- function Ns(...i) {
449
+ function Rs(...i) {
450
450
  return [...new Set(i.flat().filter(Boolean))];
451
451
  }
452
- function Rs(i, t) {
452
+ function Vs(i, t) {
453
453
  return i ? i.filter((e) => !t || !t.includes(e)) : [];
454
454
  }
455
- function Vs(...i) {
455
+ function Ks(...i) {
456
456
  if (i.length === 0) return [];
457
457
  const t = Math.max(...i.map((e) => e ? e.length : 0));
458
458
  return Array.from({ length: t }, (e, s) => i.map((n) => n && n[s]));
459
459
  }
460
- const Ks = { isArray: ss, isEmpty: is, size: ns, first: rs, last: as, get: os, slice: ls, concat: cs, join: hs, indexOf: ds, lastIndexOf: us, includes: ps, push: fs, pop: ms, shift: gs, unshift: _s, remove: ys, removeAt: vs, insert: bs, reverse: xs, sort: Es, sortBy: ws, filter: ks, map: Cs, reduce: Ss, forEach: Ls, every: Ds, some: Hs, find: Ms, findIndex: Is, flat: Ts, flattenDeep: It, unique: As, uniqueBy: zs, chunk: Ps, shuffle: $s, sum: Tt, average: Bs, max: qs, min: Os, intersection: Fs, union: Ns, difference: Rs, zip: Vs };
460
+ const Ws = { isArray: is, isEmpty: ns, size: rs, first: as, last: os, get: ls, slice: cs, concat: hs, join: ds, indexOf: us, lastIndexOf: ps, includes: fs, push: ms, pop: gs, shift: _s, unshift: ys, remove: vs, removeAt: bs, insert: xs, reverse: Es, sort: ws, sortBy: ks, filter: Cs, map: Ss, reduce: Ls, forEach: Ds, every: Hs, some: Ms, find: Ts, findIndex: Is, flat: As, flattenDeep: Tt, unique: zs, uniqueBy: Ps, chunk: $s, shuffle: Bs, sum: It, average: qs, max: Os, min: Fs, intersection: Ns, union: Rs, difference: Vs, zip: Ks };
461
461
  function ot(i) {
462
462
  return i !== null && typeof i == "object" && !Array.isArray(i);
463
463
  }
464
- function Ws(i) {
464
+ function Us(i) {
465
465
  return !i || typeof i != "object" ? !0 : Object.keys(i).length === 0;
466
466
  }
467
- function Us(i) {
467
+ function Ys(i) {
468
468
  return i ? Object.keys(i) : [];
469
469
  }
470
- function Ys(i) {
470
+ function Xs(i) {
471
471
  return i ? Object.values(i) : [];
472
472
  }
473
- function Xs(i) {
473
+ function js(i) {
474
474
  return i ? Object.entries(i) : [];
475
475
  }
476
- function js(i, t) {
476
+ function Js(i, t) {
477
477
  return i ? Object.prototype.hasOwnProperty.call(i, t) : !1;
478
478
  }
479
- function Js(i, t, e) {
479
+ function Zs(i, t, e) {
480
480
  if (!i) return e;
481
481
  const s = t.split(".");
482
- return s.some(et) ? e : s.reduce((n, r) => n && n[r], i) ?? e;
482
+ return s.some(tt) ? e : s.reduce((n, r) => n && n[r], i) ?? e;
483
483
  }
484
- function Zs(i, t, e) {
484
+ function Gs(i, t, e) {
485
485
  if (!i || typeof i != "object") return i;
486
486
  const s = t.split(".");
487
- if (s.some(et)) return i;
487
+ if (s.some(tt)) return i;
488
488
  const n = s.pop();
489
489
  let r = i;
490
490
  return s.forEach((a) => {
491
491
  (!r[a] || typeof r[a] != "object") && (r[a] = {}), r = r[a];
492
492
  }), r[n] = e, i;
493
493
  }
494
- function Gs(i, t) {
494
+ function Qs(i, t) {
495
495
  return i ? t.reduce((e, s) => (i[s] !== void 0 && (e[s] = i[s]), e), {}) : {};
496
496
  }
497
- function Qs(i, t) {
497
+ function ti(i, t) {
498
498
  return i ? Object.keys(i).reduce((e, s) => (t.includes(s) || (e[s] = i[s]), e), {}) : {};
499
499
  }
500
500
  function At(...i) {
501
501
  return i.reduce((t, e) => (e && typeof e == "object" && Object.keys(e).forEach((s) => {
502
- et(s) || (ot(e[s]) && ot(t[s]) ? t[s] = At(t[s], e[s]) : t[s] = e[s]);
502
+ tt(s) || (ot(e[s]) && ot(t[s]) ? t[s] = At(t[s], e[s]) : t[s] = e[s]);
503
503
  }), t), {});
504
504
  }
505
- function ti(i) {
505
+ function ei(i) {
506
506
  return i && JSON.parse(JSON.stringify(i));
507
507
  }
508
508
  function Y(i, t = /* @__PURE__ */ new WeakMap()) {
@@ -524,42 +524,42 @@ function Y(i, t = /* @__PURE__ */ new WeakMap()) {
524
524
  }
525
525
  const e = {};
526
526
  return t.set(i, e), Object.keys(i).forEach((s) => {
527
- et(s) || (e[s] = Y(i[s], t));
527
+ tt(s) || (e[s] = Y(i[s], t));
528
528
  }), e;
529
529
  }
530
- function ei(i, t) {
530
+ function si(i, t) {
531
531
  i && Object.keys(i).forEach((e) => t(i[e], e, i));
532
532
  }
533
- function si(i, t) {
533
+ function ii(i, t) {
534
534
  if (!i) return {};
535
535
  const e = {};
536
536
  return Object.keys(i).forEach((s) => {
537
537
  e[s] = t(i[s], s, i);
538
538
  }), e;
539
539
  }
540
- function ii(i, t) {
540
+ function ni(i, t) {
541
541
  if (!i) return {};
542
542
  const e = {};
543
543
  return Object.keys(i).forEach((s) => {
544
544
  t(i[s], s, i) && (e[s] = i[s]);
545
545
  }), e;
546
546
  }
547
- function ni(i, t, e) {
547
+ function ri(i, t, e) {
548
548
  return i ? Object.keys(i).reduce((s, n) => t(s, i[n], n, i), e) : e;
549
549
  }
550
- function ri(i) {
550
+ function ai(i) {
551
551
  return i ? Object.keys(i).map((t) => ({ key: t, value: i[t] })) : [];
552
552
  }
553
- function ai(i, t, e) {
553
+ function oi(i, t, e) {
554
554
  return i ? i.reduce((s, n) => {
555
555
  const r = typeof n == "object" ? n[t] : n, a = e ? n[e] : n;
556
556
  return r !== void 0 && (s[r] = a), s;
557
557
  }, {}) : {};
558
558
  }
559
- function oi(i) {
559
+ function li(i) {
560
560
  return i ? Object.keys(i).length : 0;
561
561
  }
562
- function li(i) {
562
+ function ci(i) {
563
563
  if (!i) return {};
564
564
  const t = {};
565
565
  return Object.keys(i).forEach((e) => {
@@ -577,116 +577,116 @@ function Pt(i) {
577
577
  typeof i[t] == "object" && Pt(i[t]);
578
578
  }), i);
579
579
  }
580
- function ci(i) {
580
+ function hi(i) {
581
581
  return i && Object.seal(i);
582
582
  }
583
- const hi = { isObject: ot, isEmpty: Ws, keys: Us, values: Ys, entries: Xs, has: js, get: Js, set: Zs, pick: Gs, omit: Qs, merge: At, clone: ti, deepClone: Y, forEach: ei, map: si, filter: ii, reduce: ni, toArray: ri, fromArray: ai, size: oi, invert: li, isEqual: zt, freeze: Pt, seal: ci };
583
+ const di = { isObject: ot, isEmpty: Us, keys: Ys, values: Xs, entries: js, has: Js, get: Zs, set: Gs, pick: Qs, omit: ti, merge: At, clone: ei, deepClone: Y, forEach: si, map: ii, filter: ni, reduce: ri, toArray: ai, fromArray: oi, size: li, invert: ci, isEqual: zt, freeze: Pt, seal: hi };
584
584
  function L(i) {
585
585
  return typeof i == "number" && !isNaN(i);
586
586
  }
587
- function di(i) {
587
+ function ui(i) {
588
588
  return Number.isInteger(i);
589
589
  }
590
- function ui(i) {
590
+ function pi(i) {
591
591
  return L(i) && !Number.isInteger(i);
592
592
  }
593
- function pi(i) {
593
+ function fi(i) {
594
594
  return L(i) && i > 0;
595
595
  }
596
- function fi(i) {
596
+ function mi(i) {
597
597
  return L(i) && i < 0;
598
598
  }
599
- function mi(i) {
599
+ function gi(i) {
600
600
  return L(i) && i === 0;
601
601
  }
602
- function gi(i, t, e) {
602
+ function _i(i, t, e) {
603
603
  return L(i) ? Math.min(Math.max(i, t), e) : i;
604
604
  }
605
- function _i(i, t = 0) {
605
+ function yi(i, t = 0) {
606
606
  if (!L(i)) return i;
607
607
  const e = Math.pow(10, t);
608
608
  return Math.round(i * e) / e;
609
609
  }
610
- function yi(i) {
610
+ function vi(i) {
611
611
  return L(i) ? Math.floor(i) : i;
612
612
  }
613
- function vi(i) {
613
+ function bi(i) {
614
614
  return L(i) ? Math.ceil(i) : i;
615
615
  }
616
- function bi(i) {
616
+ function xi(i) {
617
617
  return L(i) ? Math.abs(i) : i;
618
618
  }
619
- function xi(...i) {
619
+ function Ei(...i) {
620
620
  const t = i.filter(L);
621
621
  return t.length > 0 ? Math.min(...t) : void 0;
622
622
  }
623
- function Ei(...i) {
623
+ function wi(...i) {
624
624
  const t = i.filter(L);
625
625
  return t.length > 0 ? Math.max(...t) : void 0;
626
626
  }
627
627
  function $t(...i) {
628
628
  return i.flat().filter(L).reduce((e, s) => e + s, 0);
629
629
  }
630
- function wi(...i) {
630
+ function ki(...i) {
631
631
  const t = i.flat().filter(L);
632
632
  return t.length > 0 ? $t(t) / t.length : 0;
633
633
  }
634
634
  function Bt(i = 0, t = 1) {
635
635
  return Math.random() * (t - i) + i;
636
636
  }
637
- function ki(i, t) {
637
+ function Ci(i, t) {
638
638
  return Math.floor(Bt(i, t + 1));
639
639
  }
640
- function Ci(i, t = 2) {
640
+ function Si(i, t = 2) {
641
641
  return L(i) ? i.toFixed(t) : String(i);
642
642
  }
643
- function Si(i, t = "CNY", e = 2) {
643
+ function Li(i, t = "CNY", e = 2) {
644
644
  return L(i) ? new Intl.NumberFormat("zh-CN", { style: "currency", currency: t, minimumFractionDigits: e, maximumFractionDigits: e }).format(i) : String(i);
645
645
  }
646
- function Li(i, t = 0) {
646
+ function Di(i, t = 0) {
647
647
  return L(i) ? `${(i * 100).toFixed(t)}%` : String(i);
648
648
  }
649
- function Di(i, t = 0) {
649
+ function Hi(i, t = 0) {
650
650
  return L(i) ? i.toFixed(t) : String(i);
651
651
  }
652
- function Hi(i, t = 6) {
652
+ function Mi(i, t = 6) {
653
653
  return L(i) ? i.toPrecision(t) : String(i);
654
654
  }
655
- function Mi(i) {
655
+ function Ti(i) {
656
656
  return Number.isNaN(i);
657
657
  }
658
658
  function Ii(i) {
659
659
  return Number.isFinite(i);
660
660
  }
661
- function Ti(i, t = 10) {
661
+ function Ai(i, t = 10) {
662
662
  return Number.parseInt(i, t);
663
663
  }
664
- function Ai(i) {
664
+ function zi(i) {
665
665
  return Number.parseFloat(i);
666
666
  }
667
- function zi(i, t = 0) {
667
+ function Pi(i, t = 0) {
668
668
  const e = Number(i);
669
669
  return isNaN(e) ? t : e;
670
670
  }
671
- function Pi(i, t, e = 0) {
671
+ function $i(i, t, e = 0) {
672
672
  return !L(i) || !L(t) || t === 0 ? e : i / t;
673
673
  }
674
- function $i(...i) {
674
+ function Bi(...i) {
675
675
  return i.reduce((t, e) => !L(t) || !L(e) ? 0 : t * e, 1);
676
676
  }
677
- const Bi = { isNumber: L, isInteger: di, isFloat: ui, isPositive: pi, isNegative: fi, isZero: mi, clamp: gi, round: _i, floor: yi, ceil: vi, abs: bi, min: xi, max: Ei, sum: $t, average: wi, random: Bt, randomInt: ki, format: Ci, formatCurrency: Si, formatPercent: Li, toFixed: Di, toPrecision: Hi, isNaN: Mi, isFinite: Ii, parseInt: Ti, parseFloat: Ai, toNumber: zi, safeDivide: Pi, safeMultiply: $i };
678
- function st() {
677
+ const qi = { isNumber: L, isInteger: ui, isFloat: pi, isPositive: fi, isNegative: mi, isZero: gi, clamp: _i, round: yi, floor: vi, ceil: bi, abs: xi, min: Ei, max: wi, sum: $t, average: ki, random: Bt, randomInt: Ci, format: Si, formatCurrency: Li, formatPercent: Di, toFixed: Hi, toPrecision: Mi, isNaN: Ti, isFinite: Ii, parseInt: Ai, parseFloat: zi, toNumber: Pi, safeDivide: $i, safeMultiply: Bi };
678
+ function et() {
679
679
  return Date.now();
680
680
  }
681
681
  function K() {
682
682
  const i = /* @__PURE__ */ new Date();
683
683
  return i.setHours(0, 0, 0, 0), i;
684
684
  }
685
- function qi() {
685
+ function Oi() {
686
686
  const i = K();
687
687
  return i.setDate(i.getDate() + 1), i;
688
688
  }
689
- function Oi() {
689
+ function Fi() {
690
690
  const i = K();
691
691
  return i.setDate(i.getDate() - 1), i;
692
692
  }
@@ -696,102 +696,102 @@ function w(i) {
696
696
  function qt(i) {
697
697
  return w(i);
698
698
  }
699
- function Fi(i) {
699
+ function Ni(i) {
700
700
  const t = new Date(i);
701
701
  return qt(t) ? t : null;
702
702
  }
703
- function Ni(i, t = "YYYY-MM-DD HH:mm:ss") {
703
+ function Ri(i, t = "YYYY-MM-DD HH:mm:ss") {
704
704
  if (!w(i)) return "";
705
- const e = i.getFullYear(), s = String(i.getMonth() + 1).padStart(2, "0"), n = String(i.getDate()).padStart(2, "0"), r = String(i.getHours()).padStart(2, "0"), a = String(i.getMinutes()).padStart(2, "0"), o = String(i.getSeconds()).padStart(2, "0"), l = String(i.getMilliseconds()).padStart(3, "0"), h = ["日", "一", "二", "三", "四", "五", "六"][i.getDay()];
706
- return t.replace("YYYY", e).replace("MM", s).replace("DD", n).replace("HH", r).replace("mm", a).replace("ss", o).replace("SSS", l).replace("D", i.getDate()).replace("M", i.getMonth() + 1).replace("H", i.getHours()).replace("m", i.getMinutes()).replace("s", i.getSeconds()).replace("W", h);
705
+ const e = i.getFullYear(), s = String(i.getMonth() + 1).padStart(2, "0"), n = String(i.getDate()).padStart(2, "0"), r = String(i.getHours()).padStart(2, "0"), a = String(i.getMinutes()).padStart(2, "0"), o = String(i.getSeconds()).padStart(2, "0"), l = String(i.getMilliseconds()).padStart(3, "0"), d = ["日", "一", "二", "三", "四", "五", "六"][i.getDay()];
706
+ return t.replace("YYYY", e).replace("MM", s).replace("DD", n).replace("HH", r).replace("mm", a).replace("ss", o).replace("SSS", l).replace("D", i.getDate()).replace("M", i.getMonth() + 1).replace("H", i.getHours()).replace("m", i.getMinutes()).replace("s", i.getSeconds()).replace("W", d);
707
707
  }
708
- function Ri(i) {
708
+ function Vi(i) {
709
709
  return w(i) ? i.toISOString() : "";
710
710
  }
711
- function Vi(i) {
711
+ function Ki(i) {
712
712
  return w(i) ? new Date(i.toUTCString()) : null;
713
713
  }
714
- function Ki(i, t) {
714
+ function Wi(i, t) {
715
715
  if (!w(i)) return i;
716
716
  const e = new Date(i);
717
717
  return e.setDate(e.getDate() + t), e;
718
718
  }
719
- function Wi(i, t) {
719
+ function Ui(i, t) {
720
720
  if (!w(i)) return i;
721
721
  const e = new Date(i);
722
722
  return e.setHours(e.getHours() + t), e;
723
723
  }
724
- function Ui(i, t) {
724
+ function Yi(i, t) {
725
725
  if (!w(i)) return i;
726
726
  const e = new Date(i);
727
727
  return e.setMinutes(e.getMinutes() + t), e;
728
728
  }
729
- function Yi(i, t) {
729
+ function Xi(i, t) {
730
730
  if (!w(i)) return i;
731
731
  const e = new Date(i);
732
732
  return e.setSeconds(e.getSeconds() + t), e;
733
733
  }
734
- function it(i, t) {
734
+ function st(i, t) {
735
735
  if (!w(i) || !w(t)) return 0;
736
736
  const e = new Date(i);
737
737
  e.setHours(0, 0, 0, 0);
738
738
  const s = new Date(t);
739
739
  return s.setHours(0, 0, 0, 0), Math.floor((e.getTime() - s.getTime()) / (1e3 * 60 * 60 * 24));
740
740
  }
741
- function Xi(i, t) {
741
+ function ji(i, t) {
742
742
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60 * 60));
743
743
  }
744
- function ji(i, t) {
744
+ function Ji(i, t) {
745
745
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60));
746
746
  }
747
- function Ji(i, t) {
747
+ function Zi(i, t) {
748
748
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / 1e3);
749
749
  }
750
- function Zi(i) {
751
- return w(i) ? it(i, K()) === 0 : !1;
752
- }
753
750
  function Gi(i) {
754
- return w(i) ? it(i, K()) === -1 : !1;
751
+ return w(i) ? st(i, K()) === 0 : !1;
755
752
  }
756
753
  function Qi(i) {
757
- return w(i) ? it(i, K()) === 1 : !1;
754
+ return w(i) ? st(i, K()) === -1 : !1;
758
755
  }
759
756
  function tn(i) {
760
- return w(i) ? i.getTime() > st() : !1;
757
+ return w(i) ? st(i, K()) === 1 : !1;
761
758
  }
762
759
  function en(i) {
763
- return w(i) ? i.getTime() < st() : !1;
760
+ return w(i) ? i.getTime() > et() : !1;
764
761
  }
765
762
  function sn(i) {
763
+ return w(i) ? i.getTime() < et() : !1;
764
+ }
765
+ function nn(i) {
766
766
  if (!w(i)) return !1;
767
767
  const t = i.getFullYear();
768
768
  return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
769
769
  }
770
- function nn(i) {
770
+ function rn(i) {
771
771
  return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0).getDate() : 0;
772
772
  }
773
- function rn(i) {
773
+ function an(i) {
774
774
  if (!w(i)) return 0;
775
775
  const t = new Date(i.getFullYear(), 0, 1), e = i.getTime() - t.getTime();
776
776
  return Math.ceil(e / (1e3 * 60 * 60 * 24 * 7));
777
777
  }
778
- function an(i) {
778
+ function on(i) {
779
779
  return w(i) ? Math.ceil((i.getMonth() + 1) / 3) : 0;
780
780
  }
781
- function on(i) {
781
+ function ln(i) {
782
782
  if (!w(i)) return i;
783
783
  const t = new Date(i);
784
784
  return t.setHours(0, 0, 0, 0), t;
785
785
  }
786
- function ln(i) {
786
+ function cn(i) {
787
787
  if (!w(i)) return i;
788
788
  const t = new Date(i);
789
789
  return t.setHours(23, 59, 59, 999), t;
790
790
  }
791
- function cn(i) {
791
+ function hn(i) {
792
792
  return w(i) ? new Date(i.getFullYear(), i.getMonth(), 1) : i;
793
793
  }
794
- function hn(i) {
794
+ function dn(i) {
795
795
  return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0, 23, 59, 59, 999) : i;
796
796
  }
797
797
  function Ot(i, t = 1) {
@@ -799,43 +799,43 @@ function Ot(i, t = 1) {
799
799
  const e = new Date(i), s = e.getDay(), n = s >= t ? s - t : s + (7 - t);
800
800
  return e.setDate(e.getDate() - n), e.setHours(0, 0, 0, 0), e;
801
801
  }
802
- function dn(i, t = 1) {
802
+ function un(i, t = 1) {
803
803
  if (!w(i)) return i;
804
804
  const e = Ot(i, t), s = new Date(e);
805
805
  return s.setDate(s.getDate() + 6), s.setHours(23, 59, 59, 999), s;
806
806
  }
807
- function un(i) {
807
+ function pn(i) {
808
808
  if (!w(i)) return 0;
809
809
  const t = /* @__PURE__ */ new Date();
810
810
  let e = t.getFullYear() - i.getFullYear();
811
811
  return (t.getMonth() < i.getMonth() || t.getMonth() === i.getMonth() && t.getDate() < i.getDate()) && e--, Math.max(0, e);
812
812
  }
813
- function pn(i) {
813
+ function fn(i) {
814
814
  if (!w(i)) return "";
815
- const e = st() - i.getTime(), s = 60 * 1e3, n = 60 * s, r = 24 * n, a = 7 * r, o = 30 * r, l = 365 * r;
815
+ const e = et() - i.getTime(), s = 60 * 1e3, n = 60 * s, r = 24 * n, a = 7 * r, o = 30 * r, l = 365 * r;
816
816
  return e < s ? "刚刚" : e < n ? `${Math.floor(e / s)}分钟前` : e < r ? `${Math.floor(e / n)}小时前` : e < a ? `${Math.floor(e / r)}天前` : e < o ? `${Math.floor(e / a)}周前` : e < l ? `${Math.floor(e / o)}个月前` : `${Math.floor(e / l)}年前`;
817
817
  }
818
- const fn = { now: st, today: K, tomorrow: qi, yesterday: Oi, isDate: w, isValid: qt, parse: Fi, format: Ni, toISO: Ri, toUTC: Vi, addDays: Ki, addHours: Wi, addMinutes: Ui, addSeconds: Yi, diffDays: it, diffHours: Xi, diffMinutes: ji, diffSeconds: Ji, isToday: Zi, isYesterday: Gi, isTomorrow: Qi, isFuture: tn, isPast: en, isLeapYear: sn, getDaysInMonth: nn, getWeekOfYear: rn, getQuarter: an, startOfDay: on, endOfDay: ln, startOfMonth: cn, endOfMonth: hn, startOfWeek: Ot, endOfWeek: dn, getAge: un, fromNow: pn };
819
- function mn(i, t, e = {}) {
818
+ const mn = { now: et, today: K, tomorrow: Oi, yesterday: Fi, isDate: w, isValid: qt, parse: Ni, format: Ri, toISO: Vi, toUTC: Ki, addDays: Wi, addHours: Ui, addMinutes: Yi, addSeconds: Xi, diffDays: st, diffHours: ji, diffMinutes: Ji, diffSeconds: Zi, isToday: Gi, isYesterday: Qi, isTomorrow: tn, isFuture: en, isPast: sn, isLeapYear: nn, getDaysInMonth: rn, getWeekOfYear: an, getQuarter: on, startOfDay: ln, endOfDay: cn, startOfMonth: hn, endOfMonth: dn, startOfWeek: Ot, endOfWeek: un, getAge: pn, fromNow: fn };
819
+ function gn(i, t, e = {}) {
820
820
  let s = null, n = null, r = null, a = 0;
821
821
  const o = e.leading || !1, l = e.trailing !== !1;
822
822
  function c() {
823
823
  i.apply(r, n);
824
824
  }
825
- function h() {
826
- a = Date.now(), o ? (s = setTimeout(d, t), c()) : s = setTimeout(d, t);
827
- }
828
825
  function d() {
826
+ a = Date.now(), o ? (s = setTimeout(h, t), c()) : s = setTimeout(h, t);
827
+ }
828
+ function h() {
829
829
  s = null, l && n && c(), n = null, r = null;
830
830
  }
831
831
  function u() {
832
832
  return Math.max(0, t - (Date.now() - a));
833
833
  }
834
834
  return function(...f) {
835
- n = f, r = this, a = Date.now(), s ? (clearTimeout(s), s = setTimeout(d, u())) : h();
835
+ n = f, r = this, a = Date.now(), s ? (clearTimeout(s), s = setTimeout(h, u())) : d();
836
836
  };
837
837
  }
838
- function gn(i, t, e = {}) {
838
+ function _n(i, t, e = {}) {
839
839
  let s = !1;
840
840
  const n = e.trailing || !1;
841
841
  let r = null, a = null;
@@ -848,13 +848,13 @@ function gn(i, t, e = {}) {
848
848
  }, t));
849
849
  };
850
850
  }
851
- function _n(i) {
851
+ function yn(i) {
852
852
  return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i || "");
853
853
  }
854
- function yn(i) {
854
+ function vn(i) {
855
855
  return /^1[3-9]\d{9}$/.test(i || "");
856
856
  }
857
- function vn(i) {
857
+ function bn(i) {
858
858
  return /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w.-]*)*\/?$/.test(i || "");
859
859
  }
860
860
  function Ft(i) {
@@ -863,16 +863,16 @@ function Ft(i) {
863
863
  function Nt(i) {
864
864
  return /^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(i || "");
865
865
  }
866
- function bn(i) {
866
+ function xn(i) {
867
867
  return Ft(i) || Nt(i);
868
868
  }
869
- function xn(i) {
869
+ function En(i) {
870
870
  return /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/.test(i || "");
871
871
  }
872
- function En(i) {
872
+ function wn(i) {
873
873
  return /^[A-Z][0-9]{8}$|^[A-Z]{2}[0-9]{7}$/.test(i || "");
874
874
  }
875
- function wn(i) {
875
+ function kn(i) {
876
876
  const t = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9]{2})[0-9]{12}|3[47][0-9]{13})$/, e = i.replace(/\s/g, "");
877
877
  if (!t.test(e)) return !1;
878
878
  let s = 0, n = !1;
@@ -895,93 +895,93 @@ function Kt(i) {
895
895
  const [, e, s, n, r] = t;
896
896
  return parseInt(e) >= 0 && parseInt(e) <= 255 && parseInt(s) >= 0 && parseInt(s) <= 255 && parseInt(n) >= 0 && parseInt(n) <= 255 && parseFloat(r) >= 0 && parseFloat(r) <= 1;
897
897
  }
898
- function kn(i) {
898
+ function Cn(i) {
899
899
  return Rt(i) || Vt(i) || Kt(i);
900
900
  }
901
- function Cn(i) {
901
+ function Sn(i) {
902
902
  return !isNaN(new Date(i).getTime());
903
903
  }
904
- function Sn(i) {
904
+ function Ln(i) {
905
905
  try {
906
906
  return JSON.parse(i), !0;
907
907
  } catch {
908
908
  return !1;
909
909
  }
910
910
  }
911
- function Ln(i) {
911
+ function Dn(i) {
912
912
  return !i || i.trim() === "";
913
913
  }
914
- function Dn(i) {
914
+ function Hn(i) {
915
915
  return /^\s+$/.test(i || "");
916
916
  }
917
- function Hn(i) {
917
+ function Mn(i) {
918
918
  return !isNaN(parseFloat(i)) && isFinite(i);
919
919
  }
920
- function Mn(i) {
920
+ function Tn(i) {
921
921
  return /^-?\d+$/.test(i || "");
922
922
  }
923
923
  function In(i) {
924
924
  return /^-?\d+\.\d+$/.test(i || "");
925
925
  }
926
- function Tn(i) {
926
+ function An(i) {
927
927
  const t = parseFloat(i);
928
928
  return !isNaN(t) && t > 0;
929
929
  }
930
- function An(i) {
930
+ function zn(i) {
931
931
  const t = parseFloat(i);
932
932
  return !isNaN(t) && t < 0;
933
933
  }
934
- function zn(i) {
934
+ function Pn(i) {
935
935
  return /^[a-zA-Z]+$/.test(i || "");
936
936
  }
937
- function Pn(i) {
937
+ function $n(i) {
938
938
  return /^[a-zA-Z0-9]+$/.test(i || "");
939
939
  }
940
- function $n(i) {
940
+ function Bn(i) {
941
941
  return /^[\u4e00-\u9fa5]+$/.test(i || "");
942
942
  }
943
- function Bn(i, t, e) {
943
+ function qn(i, t, e) {
944
944
  const s = (i || "").length;
945
945
  return s >= t && (e === void 0 || s <= e);
946
946
  }
947
- function qn(i, t) {
947
+ function On(i, t) {
948
948
  return (i || "").length >= t;
949
949
  }
950
- function On(i, t) {
950
+ function Fn(i, t) {
951
951
  return (i || "").length <= t;
952
952
  }
953
- function Fn(i, t) {
953
+ function Nn(i, t) {
954
954
  return t instanceof RegExp ? t.test(i || "") : !1;
955
955
  }
956
- function Nn(i, t) {
956
+ function Rn(i, t) {
957
957
  return String(i) === String(t);
958
958
  }
959
959
  function Wt(i, t) {
960
960
  return (i || "").includes(t);
961
961
  }
962
- function Rn(i, t) {
962
+ function Vn(i, t) {
963
963
  return !Wt(i, t);
964
964
  }
965
- function Vn(i) {
965
+ function Kn(i) {
966
966
  return Array.isArray(i);
967
967
  }
968
- function Kn(i, t, e) {
968
+ function Wn(i, t, e) {
969
969
  const s = i ? i.length : 0;
970
970
  return s >= t && (e === void 0 || s <= e);
971
971
  }
972
- function Wn(i, t) {
972
+ function Un(i, t) {
973
973
  return i ? i.length >= t : !1;
974
974
  }
975
- function Un(i, t) {
975
+ function Yn(i, t) {
976
976
  return i ? i.length <= t : !1;
977
977
  }
978
- function Yn(i) {
978
+ function Xn(i) {
979
979
  return i !== null && typeof i == "object" && !Array.isArray(i);
980
980
  }
981
- function Xn(i, t) {
981
+ function jn(i, t) {
982
982
  return !i || !t || !Array.isArray(t) ? !1 : t.every((e) => Object.prototype.hasOwnProperty.call(i, e));
983
983
  }
984
- function jn(i, t) {
984
+ function Jn(i, t) {
985
985
  const e = {};
986
986
  return Object.keys(t).forEach((s) => {
987
987
  const n = i[s], r = t[s], a = [];
@@ -996,27 +996,27 @@ function jn(i, t) {
996
996
  }), a.length > 0 && (e[s] = a);
997
997
  }), { valid: Object.keys(e).length === 0, errors: e };
998
998
  }
999
- const Ut = { isEmail: _n, isPhone: yn, isURL: vn, isIPv4: Ft, isIPv6: Nt, isIP: bn, isIDCard: xn, isPassport: En, isCreditCard: wn, isHexColor: Rt, isRGB: Vt, isRGBA: Kt, isColor: kn, isDate: Cn, isJSON: Sn, isEmpty: Ln, isWhitespace: Dn, isNumber: Hn, isInteger: Mn, isFloat: In, isPositive: Tn, isNegative: An, isAlpha: zn, isAlphaNumeric: Pn, isChinese: $n, isLength: Bn, minLength: qn, maxLength: On, matches: Fn, equals: Nn, contains: Wt, notContains: Rn, isArray: Vn, arrayLength: Kn, arrayMinLength: Wn, arrayMaxLength: Un, isObject: Yn, hasKeys: Xn, validate: jn };
1000
- function Jn(i) {
999
+ const Ut = { isEmail: yn, isPhone: vn, isURL: bn, isIPv4: Ft, isIPv6: Nt, isIP: xn, isIDCard: En, isPassport: wn, isCreditCard: kn, isHexColor: Rt, isRGB: Vt, isRGBA: Kt, isColor: Cn, isDate: Sn, isJSON: Ln, isEmpty: Dn, isWhitespace: Hn, isNumber: Mn, isInteger: Tn, isFloat: In, isPositive: An, isNegative: zn, isAlpha: Pn, isAlphaNumeric: $n, isChinese: Bn, isLength: qn, minLength: On, maxLength: Fn, matches: Nn, equals: Rn, contains: Wt, notContains: Vn, isArray: Kn, arrayLength: Wn, arrayMinLength: Un, arrayMaxLength: Yn, isObject: Xn, hasKeys: jn, validate: Jn };
1000
+ function Zn(i) {
1001
1001
  const t = i ? String(i) : "", e = [1732584193, 4023233417, 2562383102, 271733878], s = [3614090360, 3905402710, 606105819, 3250441966, 4118548399, 1200080426, 2821735955, 4249261313, 1770035416, 2336552879, 4294925233, 2304563134, 1804603682, 4254626195, 2792965006, 1236535329, 4129170786, 3225465664, 643717713, 3921069994, 3593408605, 38016083, 3634488961, 3889429448, 568446438, 3275163606, 4107603335, 1163531501, 2850285829, 4243563512, 1735328473, 2368359562, 4294588738, 2272392833, 1839030562, 4259657740, 2763975236, 1272893353, 4139469664, 3200236656, 681279174, 3936430074, 3572445317, 76029189, 3654602809, 3873151461, 530742520, 3299628645, 4096336452, 1126891415, 2878612391, 4237533241, 1700485571, 2399980690, 4293915773, 2240044497, 1873313359, 4264355552, 2734768916, 1309151649, 4149444226, 3174756917, 718787259, 3951481745], n = [[7, 12, 17, 22], [5, 9, 14, 20], [4, 11, 16, 23], [6, 10, 15, 21]];
1002
- function r(d, u) {
1003
- return d << u | d >>> 32 - u;
1002
+ function r(h, u) {
1003
+ return h << u | h >>> 32 - u;
1004
1004
  }
1005
- function a(d) {
1006
- const u = d.length * 8;
1007
- for (d += "€"; d.length % 64 !== 56; )
1008
- d += "\0";
1005
+ function a(h) {
1006
+ const u = h.length * 8;
1007
+ for (h += "€"; h.length % 64 !== 56; )
1008
+ h += "\0";
1009
1009
  const f = u & 4294967295, p = u >>> 32 & 4294967295;
1010
1010
  for (let m = 0; m < 4; m++)
1011
- d += String.fromCharCode(f >>> 8 * m & 255);
1011
+ h += String.fromCharCode(f >>> 8 * m & 255);
1012
1012
  for (let m = 0; m < 4; m++)
1013
- d += String.fromCharCode(p >>> 8 * m & 255);
1014
- return d;
1013
+ h += String.fromCharCode(p >>> 8 * m & 255);
1014
+ return h;
1015
1015
  }
1016
- function o(d, u) {
1016
+ function o(h, u) {
1017
1017
  const [f, p, m, y] = u, _ = [];
1018
1018
  for (let S = 0; S < 16; S++)
1019
- _[S] = d.charCodeAt(S * 4) & 255 | (d.charCodeAt(S * 4 + 1) & 255) << 8 | (d.charCodeAt(S * 4 + 2) & 255) << 16 | (d.charCodeAt(S * 4 + 3) & 255) << 24;
1019
+ _[S] = h.charCodeAt(S * 4) & 255 | (h.charCodeAt(S * 4 + 1) & 255) << 8 | (h.charCodeAt(S * 4 + 2) & 255) << 16 | (h.charCodeAt(S * 4 + 3) & 255) << 24;
1020
1020
  let b = f, x = p, v = m, C = y;
1021
1021
  for (let S = 0; S < 64; S++) {
1022
1022
  let k, A;
@@ -1029,44 +1029,44 @@ function Jn(i) {
1029
1029
  }
1030
1030
  const l = a(t);
1031
1031
  let c = [...e];
1032
- for (let d = 0; d < l.length; d += 64)
1033
- c = o(l.substring(d, d + 64), c);
1034
- let h = "";
1035
- return c.forEach((d) => {
1032
+ for (let h = 0; h < l.length; h += 64)
1033
+ c = o(l.substring(h, h + 64), c);
1034
+ let d = "";
1035
+ return c.forEach((h) => {
1036
1036
  for (let u = 0; u < 4; u++)
1037
- h += (d >>> 8 * u & 255).toString(16).padStart(2, "0");
1038
- }), h;
1037
+ d += (h >>> 8 * u & 255).toString(16).padStart(2, "0");
1038
+ }), d;
1039
1039
  }
1040
- function Zn(i) {
1040
+ function Gn(i) {
1041
1041
  const t = i ? String(i) : "", e = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
1042
- function s(c, h) {
1043
- return c >>> h | c << 32 - h;
1042
+ function s(c, d) {
1043
+ return c >>> d | c << 32 - d;
1044
1044
  }
1045
1045
  function n(c) {
1046
- const h = c.length * 8;
1046
+ const d = c.length * 8;
1047
1047
  for (c += "€"; c.length % 64 !== 56; )
1048
1048
  c += "\0";
1049
- const d = h & 4294967295, u = h >>> 32 & 4294967295;
1049
+ const h = d & 4294967295, u = d >>> 32 & 4294967295;
1050
1050
  for (let f = 0; f < 4; f++)
1051
1051
  c += String.fromCharCode(u >>> 8 * f & 255);
1052
1052
  for (let f = 0; f < 4; f++)
1053
- c += String.fromCharCode(d >>> 8 * f & 255);
1053
+ c += String.fromCharCode(h >>> 8 * f & 255);
1054
1054
  return c;
1055
1055
  }
1056
- function r(c, h) {
1057
- const d = [];
1056
+ function r(c, d) {
1057
+ const h = [];
1058
1058
  for (let v = 0; v < 16; v++)
1059
- d[v] = c.charCodeAt(v * 4) & 255 | (c.charCodeAt(v * 4 + 1) & 255) << 8 | (c.charCodeAt(v * 4 + 2) & 255) << 16 | (c.charCodeAt(v * 4 + 3) & 255) << 24;
1059
+ h[v] = c.charCodeAt(v * 4) & 255 | (c.charCodeAt(v * 4 + 1) & 255) << 8 | (c.charCodeAt(v * 4 + 2) & 255) << 16 | (c.charCodeAt(v * 4 + 3) & 255) << 24;
1060
1060
  for (let v = 16; v < 64; v++) {
1061
- const C = s(d[v - 15], 7) ^ s(d[v - 15], 18) ^ d[v - 15] >>> 3, S = s(d[v - 2], 17) ^ s(d[v - 2], 19) ^ d[v - 2] >>> 10;
1062
- d[v] = d[v - 16] + C + d[v - 7] + S & 4294967295;
1061
+ const C = s(h[v - 15], 7) ^ s(h[v - 15], 18) ^ h[v - 15] >>> 3, S = s(h[v - 2], 17) ^ s(h[v - 2], 19) ^ h[v - 2] >>> 10;
1062
+ h[v] = h[v - 16] + C + h[v - 7] + S & 4294967295;
1063
1063
  }
1064
- let [u, f, p, m, y, _, b, x] = h;
1064
+ let [u, f, p, m, y, _, b, x] = d;
1065
1065
  for (let v = 0; v < 64; v++) {
1066
- const C = s(y, 6) ^ s(y, 11) ^ s(y, 25), S = y & _ ^ ~y & b, k = x + C + S + e[v] + d[v] & 4294967295, A = s(u, 2) ^ s(u, 13) ^ s(u, 22), z = u & f ^ u & p ^ f & p, D = A + z & 4294967295;
1066
+ const C = s(y, 6) ^ s(y, 11) ^ s(y, 25), S = y & _ ^ ~y & b, k = x + C + S + e[v] + h[v] & 4294967295, A = s(u, 2) ^ s(u, 13) ^ s(u, 22), z = u & f ^ u & p ^ f & p, D = A + z & 4294967295;
1067
1067
  x = b, b = _, _ = y, y = m + k & 4294967295, m = p, p = f, f = u, u = k + D & 4294967295;
1068
1068
  }
1069
- return [h[0] + u & 4294967295, h[1] + f & 4294967295, h[2] + p & 4294967295, h[3] + m & 4294967295, h[4] + y & 4294967295, h[5] + _ & 4294967295, h[6] + b & 4294967295, h[7] + x & 4294967295];
1069
+ return [d[0] + u & 4294967295, d[1] + f & 4294967295, d[2] + p & 4294967295, d[3] + m & 4294967295, d[4] + y & 4294967295, d[5] + _ & 4294967295, d[6] + b & 4294967295, d[7] + x & 4294967295];
1070
1070
  }
1071
1071
  const a = n(t);
1072
1072
  let o = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225];
@@ -1074,36 +1074,36 @@ function Zn(i) {
1074
1074
  o = r(a.substring(c, c + 64), o);
1075
1075
  let l = "";
1076
1076
  return o.forEach((c) => {
1077
- for (let h = 3; h >= 0; h--)
1078
- l += (c >>> 8 * h & 255).toString(16).padStart(2, "0");
1077
+ for (let d = 3; d >= 0; d--)
1078
+ l += (c >>> 8 * d & 255).toString(16).padStart(2, "0");
1079
1079
  }), l;
1080
1080
  }
1081
- function Gn(i) {
1081
+ function Qn(i) {
1082
1082
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1083
1083
  let e = "", s = 0;
1084
1084
  const n = i ? i.split("").map((r) => r.charCodeAt(0)) : [];
1085
1085
  for (; s < n.length; ) {
1086
- const r = n[s++], a = n[s++] || 0, o = n[s++] || 0, l = r >> 2, c = (r & 3) << 4 | a >> 4, h = (a & 15) << 2 | o >> 6, d = o & 63;
1087
- e += t[l] + t[c] + (s > n.length + 1 ? "=" : t[h]) + (s > n.length ? "=" : t[d]);
1086
+ const r = n[s++], a = n[s++] || 0, o = n[s++] || 0, l = r >> 2, c = (r & 3) << 4 | a >> 4, d = (a & 15) << 2 | o >> 6, h = o & 63;
1087
+ e += t[l] + t[c] + (s > n.length + 1 ? "=" : t[d]) + (s > n.length ? "=" : t[h]);
1088
1088
  }
1089
1089
  return e;
1090
1090
  }
1091
- function Qn(i) {
1091
+ function tr(i) {
1092
1092
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1093
1093
  let e = "", s = 0;
1094
1094
  for (i = i.replace(/[^A-Za-z0-9+/=]/g, ""); s < i.length; ) {
1095
- const n = t.indexOf(i.charAt(s++)), r = t.indexOf(i.charAt(s++)), a = t.indexOf(i.charAt(s++)), o = t.indexOf(i.charAt(s++)), l = n << 2 | r >> 4, c = (r & 15) << 4 | a >> 2, h = (a & 3) << 6 | o;
1096
- e += String.fromCharCode(l), a !== 64 && (e += String.fromCharCode(c)), o !== 64 && (e += String.fromCharCode(h));
1095
+ const n = t.indexOf(i.charAt(s++)), r = t.indexOf(i.charAt(s++)), a = t.indexOf(i.charAt(s++)), o = t.indexOf(i.charAt(s++)), l = n << 2 | r >> 4, c = (r & 15) << 4 | a >> 2, d = (a & 3) << 6 | o;
1096
+ e += String.fromCharCode(l), a !== 64 && (e += String.fromCharCode(c)), o !== 64 && (e += String.fromCharCode(d));
1097
1097
  }
1098
1098
  return e;
1099
1099
  }
1100
- function tr() {
1100
+ function er() {
1101
1101
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
1102
1102
  const t = Math.random() * 16 | 0;
1103
1103
  return (i === "x" ? t : t & 3 | 8).toString(16);
1104
1104
  });
1105
1105
  }
1106
- const er = { md5: Jn, sha256: Zn, base64Encode: Gn, base64Decode: Qn, uuid: tr }, B = /* @__PURE__ */ new Map();
1106
+ const sr = { md5: Zn, sha256: Gn, base64Encode: Qn, base64Decode: tr, uuid: er }, B = /* @__PURE__ */ new Map();
1107
1107
  async function Z(i, t = {}) {
1108
1108
  const { crossOrigin: e = "anonymous" } = t;
1109
1109
  return B.has(i) ? B.get(i) : new Promise((s, n) => {
@@ -1115,7 +1115,7 @@ async function Z(i, t = {}) {
1115
1115
  }, r.src = i;
1116
1116
  });
1117
1117
  }
1118
- async function sr(i, t = {}) {
1118
+ async function ir(i, t = {}) {
1119
1119
  const { parallel: e = !0 } = t;
1120
1120
  if (e) return Promise.all(i.map((n) => Z(n, t)));
1121
1121
  const s = [];
@@ -1145,7 +1145,7 @@ async function Xt(i, t = {}) {
1145
1145
  }, document.head.appendChild(r);
1146
1146
  });
1147
1147
  }
1148
- async function ir(i, t, e = {}) {
1148
+ async function nr(i, t, e = {}) {
1149
1149
  const { weight: s = "normal", style: n = "normal" } = e, r = new FontFace(i, `url(${t})`, { weight: s, style: n });
1150
1150
  try {
1151
1151
  return await r.load(), document.fonts.add(r), r;
@@ -1153,7 +1153,7 @@ async function ir(i, t, e = {}) {
1153
1153
  throw new Error(`Failed to load font: ${i}`);
1154
1154
  }
1155
1155
  }
1156
- async function nr(i, t = "image") {
1156
+ async function rr(i, t = "image") {
1157
1157
  switch (t) {
1158
1158
  case "image":
1159
1159
  return Z(i);
@@ -1166,28 +1166,28 @@ async function nr(i, t = "image") {
1166
1166
  throw new Error(`Unsupported preload type: ${t}`);
1167
1167
  }
1168
1168
  }
1169
- function rr(i) {
1169
+ function ar(i) {
1170
1170
  return B.has(i);
1171
1171
  }
1172
- function ar() {
1172
+ function or() {
1173
1173
  B.clear();
1174
1174
  }
1175
- function or(i) {
1175
+ function lr(i) {
1176
1176
  B.delete(i);
1177
1177
  }
1178
- const lr = { loadImage: Z, loadImages: sr, loadScript: Yt, loadStylesheet: Xt, loadFont: ir, preload: nr, isLoaded: rr, clearCache: ar, clearCacheByUrl: or }, Oa = {
1179
- string: es,
1180
- array: Ks,
1181
- object: hi,
1182
- number: Bi,
1183
- date: fn,
1184
- debounce: mn,
1185
- throttle: gn,
1178
+ const cr = { loadImage: Z, loadImages: ir, loadScript: Yt, loadStylesheet: Xt, loadFont: nr, preload: rr, isLoaded: ar, clearCache: or, clearCacheByUrl: lr }, Oa = {
1179
+ string: ss,
1180
+ array: Ws,
1181
+ object: di,
1182
+ number: qi,
1183
+ date: mn,
1184
+ debounce: gn,
1185
+ throttle: _n,
1186
1186
  validator: Ut,
1187
- crypto: er,
1188
- preload: lr
1187
+ crypto: sr,
1188
+ preload: cr
1189
1189
  };
1190
- function cr(i) {
1190
+ function hr(i) {
1191
1191
  if (!i) return "";
1192
1192
  let t = String(i);
1193
1193
  const e = /<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*>[\s\S]*?<\s*\/\s*\1\s*>|<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*\/?>/gi;
@@ -1197,20 +1197,20 @@ function cr(i) {
1197
1197
  while (t !== s);
1198
1198
  return t = t.replace(/\bon\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi, ""), t = t.replace(/(href|src|action|background)\s*=\s*(?:"[^"]*(?:javascript|vbscript|data)\s*:[^"]*"|'[^']*(?:javascript|vbscript|data)\s*:[^']*'|[^\s>]*(?:javascript|vbscript|data)\s*:[^\s>]*)/gi, '$1=""'), t = t.replace(/expression\s*\([^)]*\)/gi, ""), t;
1199
1199
  }
1200
- class vt {
1200
+ class yt {
1201
1201
  constructor() {
1202
1202
  this.children = {}, this.keys = [];
1203
1203
  }
1204
1204
  }
1205
1205
  class at {
1206
1206
  constructor() {
1207
- this.root = new vt();
1207
+ this.root = new yt();
1208
1208
  }
1209
1209
  insert(t) {
1210
1210
  let e = this.root;
1211
1211
  const s = t.split(".");
1212
1212
  s.forEach((n, r) => {
1213
- e.children[n] || (e.children[n] = new vt()), e = e.children[n], r === s.length - 1 && e.keys.push(t);
1213
+ e.children[n] || (e.children[n] = new yt()), e = e.children[n], r === s.length - 1 && e.keys.push(t);
1214
1214
  });
1215
1215
  }
1216
1216
  getSubKeys(t) {
@@ -1242,7 +1242,7 @@ const g = {
1242
1242
  path: Symbol("reactive_path"),
1243
1243
  isReactive: Symbol("reactive_is_reactive")
1244
1244
  };
1245
- class hr {
1245
+ class dr {
1246
1246
  constructor() {
1247
1247
  this.rawData = {}, this.data = null, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new at(), this.updateQueue = /* @__PURE__ */ new Map(), this.isProcessing = !1, this.pendingComputed = /* @__PURE__ */ new Set(), this.persistedKeys = /* @__PURE__ */ new Map(), this.snapshots = [], this.snapshotLimit = 10, this._proxyCache = /* @__PURE__ */ new WeakMap(), this.createReactiveData();
1248
1248
  }
@@ -1280,8 +1280,8 @@ class hr {
1280
1280
  set: (r, a, o, l) => {
1281
1281
  if (a === g.parent || a === g.path || a === g.isReactive || a === "__parent__" || a === "__path__" || a === "__isReactive__")
1282
1282
  return !0;
1283
- const c = Reflect.get(r, a, l), h = Reflect.set(r, a, o, l), d = `${r[g.path]}${r[g.path] ? "." : ""}${a}`;
1284
- return this.notify(d, o, c), this.queueUpdate(d, o), h;
1283
+ const c = Reflect.get(r, a, l), d = Reflect.set(r, a, o, l), h = `${r[g.path]}${r[g.path] ? "." : ""}${a}`;
1284
+ return this.notify(h, o, c), this.queueUpdate(h, o), d;
1285
1285
  },
1286
1286
  deleteProperty: (r, a) => {
1287
1287
  if (a === g.parent || a === g.path || a === g.isReactive)
@@ -1382,7 +1382,7 @@ class hr {
1382
1382
  t.textContent !== String(e ?? "") && (t.textContent = e ?? "");
1383
1383
  break;
1384
1384
  case "html":
1385
- const c = cr(e);
1385
+ const c = hr(e);
1386
1386
  t.innerHTML !== c && (t.innerHTML = c);
1387
1387
  break;
1388
1388
  case "value":
@@ -1395,8 +1395,8 @@ class hr {
1395
1395
  t.disabled !== !!e && (t.disabled = !!e);
1396
1396
  break;
1397
1397
  case "hidden":
1398
- const h = e ? "none" : "";
1399
- t.style.display !== h && (t.style.display = h);
1398
+ const d = e ? "none" : "";
1399
+ t.style.display !== d && (t.style.display = d);
1400
1400
  break;
1401
1401
  case "class":
1402
1402
  l && (e ? t.classList.add(l) : t.classList.remove(l));
@@ -1459,18 +1459,18 @@ class hr {
1459
1459
  encryptionKey: o
1460
1460
  });
1461
1461
  const c = this.get(t);
1462
- c !== void 0 && this._persistSave(t, c, l, { version: r, encrypt: a, encryptionKey: o }), this.observe(t, (h) => {
1463
- const d = this.persistedKeys.get(t);
1464
- d && (d.debounce > 0 ? (d.timeout && clearTimeout(d.timeout), d.timeout = setTimeout(() => {
1465
- this._persistSave(t, h, d.storage, {
1466
- version: d.version,
1467
- encrypt: d.encrypt,
1468
- encryptionKey: d.encryptionKey
1462
+ c !== void 0 && this._persistSave(t, c, l, { version: r, encrypt: a, encryptionKey: o }), this.observe(t, (d) => {
1463
+ const h = this.persistedKeys.get(t);
1464
+ h && (h.debounce > 0 ? (h.timeout && clearTimeout(h.timeout), h.timeout = setTimeout(() => {
1465
+ this._persistSave(t, d, h.storage, {
1466
+ version: h.version,
1467
+ encrypt: h.encrypt,
1468
+ encryptionKey: h.encryptionKey
1469
1469
  });
1470
- }, d.debounce)) : this._persistSave(t, h, d.storage, {
1471
- version: d.version,
1472
- encrypt: d.encrypt,
1473
- encryptionKey: d.encryptionKey
1470
+ }, h.debounce)) : this._persistSave(t, d, h.storage, {
1471
+ version: h.version,
1472
+ encrypt: h.encrypt,
1473
+ encryptionKey: h.encryptionKey
1474
1474
  }));
1475
1475
  });
1476
1476
  }
@@ -1636,8 +1636,8 @@ class hr {
1636
1636
  set: (r, a, o, l) => {
1637
1637
  if (a === g.parent || a === g.path || a === g.isReactive || a === "__parent__" || a === "__path__" || a === "__isReactive__")
1638
1638
  return !0;
1639
- const c = Reflect.get(r, a, l), h = Reflect.set(r, a, o, l), d = `${r[g.path]}${r[g.path] ? "." : ""}${a}`;
1640
- return this.notify(d, o, c), this.queueUpdate(d, o), h;
1639
+ const c = Reflect.get(r, a, l), d = Reflect.set(r, a, o, l), h = `${r[g.path]}${r[g.path] ? "." : ""}${a}`;
1640
+ return this.notify(h, o, c), this.queueUpdate(h, o), d;
1641
1641
  },
1642
1642
  deleteProperty: (r, a) => {
1643
1643
  if (a === g.parent || a === g.path || a === g.isReactive)
@@ -1709,7 +1709,7 @@ class hr {
1709
1709
  }), this.persistedKeys.clear(), this.rawData = {}, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new at(), this.updateQueue.clear(), this.snapshots = [];
1710
1710
  }
1711
1711
  }
1712
- class bt {
1712
+ class vt {
1713
1713
  constructor(t, e = {}) {
1714
1714
  this.name = t, this._stateKey = `__store_${t}__`;
1715
1715
  const s = e.state ? e.state() : {};
@@ -1779,25 +1779,25 @@ class bt {
1779
1779
  };
1780
1780
  }
1781
1781
  }
1782
- class dr {
1782
+ class ur {
1783
1783
  constructor() {
1784
1784
  this.stores = /* @__PURE__ */ new Map();
1785
1785
  }
1786
1786
  createStore(t, e) {
1787
- const s = new bt(t, e);
1787
+ const s = new vt(t, e);
1788
1788
  return this.stores.set(t, s), s;
1789
1789
  }
1790
1790
  getStore(t) {
1791
1791
  return this.stores.get(t);
1792
1792
  }
1793
1793
  registerStore(t) {
1794
- t instanceof bt && this.stores.set(t.name, t);
1794
+ t instanceof vt && this.stores.set(t.name, t);
1795
1795
  }
1796
1796
  dispose() {
1797
1797
  this.stores.clear();
1798
1798
  }
1799
1799
  }
1800
- class ur {
1800
+ class pr {
1801
1801
  constructor() {
1802
1802
  this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
1803
1803
  }
@@ -1854,7 +1854,7 @@ class ur {
1854
1854
  }), this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
1855
1855
  }
1856
1856
  }
1857
- function T(i = null) {
1857
+ function I(i = null) {
1858
1858
  const t = {
1859
1859
  _value: i,
1860
1860
  _subscribers: /* @__PURE__ */ new Set()
@@ -1874,7 +1874,7 @@ function T(i = null) {
1874
1874
  }
1875
1875
  }), t;
1876
1876
  }
1877
- const O = new hr(), Fa = new ur(), jt = new dr();
1877
+ const O = new dr(), Fa = new pr(), jt = new ur();
1878
1878
  function Na(i, t) {
1879
1879
  return jt.createStore(i, t);
1880
1880
  }
@@ -1976,10 +1976,10 @@ const M = {
1976
1976
  silentErrors: !1
1977
1977
  }
1978
1978
  }, G = [];
1979
- function xt() {
1979
+ function bt() {
1980
1980
  if (typeof window < "u" && window.kupolaConfig)
1981
1981
  try {
1982
- mt(M, window.kupolaConfig), Jt();
1982
+ pt(M, window.kupolaConfig), Jt();
1983
1983
  } catch (i) {
1984
1984
  console.warn("[Kupola] Failed to parse window.kupolaConfig:", i);
1985
1985
  }
@@ -1993,24 +1993,24 @@ function Jt() {
1993
1993
  }
1994
1994
  });
1995
1995
  }
1996
- function pr(i) {
1996
+ function fr(i) {
1997
1997
  typeof i == "function" && G.push(i);
1998
1998
  }
1999
1999
  function Va(i) {
2000
2000
  const t = G.indexOf(i);
2001
2001
  t > -1 && G.splice(t, 1);
2002
2002
  }
2003
- typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", xt) : xt());
2004
- function fr(i) {
2005
- mt(M, i), Jt();
2003
+ typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", bt) : bt());
2004
+ function Ka(i) {
2005
+ pt(M, i), Jt();
2006
2006
  }
2007
- function pt(i) {
2007
+ function ut(i) {
2008
2008
  return i ? xr(M, i) : M;
2009
2009
  }
2010
- function ft() {
2010
+ function Zt() {
2011
2011
  return M.paths.base + M.paths.icons.replace(/^\//, "");
2012
2012
  }
2013
- function Ka() {
2013
+ function Wa() {
2014
2014
  return M.paths.base;
2015
2015
  }
2016
2016
  function mr() {
@@ -2019,7 +2019,7 @@ function mr() {
2019
2019
  function gr() {
2020
2020
  return M.theme.brand;
2021
2021
  }
2022
- function Wa() {
2022
+ function Ua() {
2023
2023
  return M.http;
2024
2024
  }
2025
2025
  function j() {
@@ -2028,7 +2028,7 @@ function j() {
2028
2028
  function W() {
2029
2029
  return M.zIndex;
2030
2030
  }
2031
- function nt() {
2031
+ function it() {
2032
2032
  return M.security;
2033
2033
  }
2034
2034
  function _r() {
@@ -2043,21 +2043,21 @@ function vr() {
2043
2043
  function br() {
2044
2044
  return M.validation;
2045
2045
  }
2046
- function mt(i, t) {
2046
+ function pt(i, t) {
2047
2047
  for (const e in t)
2048
- t[e] instanceof Object && e in i && i[e] instanceof Object ? mt(i[e], t[e]) : i[e] = t[e];
2048
+ t[e] instanceof Object && e in i && i[e] instanceof Object ? pt(i[e], t[e]) : i[e] = t[e];
2049
2049
  return i;
2050
2050
  }
2051
2051
  function xr(i, t) {
2052
2052
  return t.split(".").reduce((e, s) => (e && e[s]) !== void 0 ? e[s] : void 0, i);
2053
2053
  }
2054
- const Zt = "kupola-theme", Gt = "kupola-brand";
2055
- let Et = !1;
2056
- pr((i) => {
2054
+ const Gt = "kupola-theme", Qt = "kupola-brand";
2055
+ let xt = !1;
2056
+ fr((i) => {
2057
2057
  const t = document.querySelector("[data-theme-toggle]");
2058
2058
  if (t) {
2059
2059
  const e = F();
2060
- ct(t), Q(e);
2060
+ ft(t), nt(e);
2061
2061
  }
2062
2062
  });
2063
2063
  const X = [
@@ -2074,28 +2074,21 @@ const X = [
2074
2074
  { id: "roulan", name: "柔蓝", color: "#106898" }
2075
2075
  ];
2076
2076
  function F() {
2077
- return localStorage.getItem(Zt) || mr();
2077
+ return localStorage.getItem(Gt) || mr();
2078
2078
  }
2079
- function Q(i) {
2079
+ function nt(i) {
2080
2080
  if (i !== "dark" && i !== "light") return;
2081
- document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Zt, i);
2081
+ document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Gt, i);
2082
2082
  const t = document.querySelector("[data-theme-toggle]");
2083
- if (t) {
2084
- t.setAttribute("data-current-theme", i);
2085
- const e = t.querySelector(".theme-icon");
2086
- if (e) {
2087
- const s = e.src.substring(0, e.src.lastIndexOf("/") + 1);
2088
- e.src = i === "dark" ? s + "sun.svg" : s + "moon.svg";
2089
- }
2090
- }
2083
+ t && (t.setAttribute("data-current-theme", i), ft(t));
2091
2084
  }
2092
2085
  function J() {
2093
- return localStorage.getItem(Gt) || gr();
2086
+ return localStorage.getItem(Qt) || gr();
2094
2087
  }
2095
2088
  function lt(i) {
2096
2089
  const t = X.find((n) => n.id === i);
2097
2090
  if (!t) return;
2098
- document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Gt, i);
2091
+ document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Qt, i);
2099
2092
  const e = document.querySelector("[data-brand-toggle]");
2100
2093
  if (e) {
2101
2094
  e.setAttribute("data-current-brand", i);
@@ -2108,78 +2101,67 @@ function lt(i) {
2108
2101
  n.getAttribute("data-brand-btn") === i ? n.classList.add("is-active") : n.classList.remove("is-active");
2109
2102
  });
2110
2103
  }
2111
- function ct(i) {
2104
+ function ft(i) {
2112
2105
  const t = i.querySelector(".theme-icon");
2113
2106
  if (t) {
2114
- const e = F(), s = ft();
2107
+ const e = F(), s = Zt();
2115
2108
  t.src = e === "dark" ? s + "sun.svg" : s + "moon.svg";
2116
2109
  }
2117
2110
  }
2111
+ function Et(i) {
2112
+ i.preventDefault();
2113
+ const e = F() === "dark" ? "light" : "dark";
2114
+ nt(e);
2115
+ }
2118
2116
  function Er() {
2119
2117
  const i = document.querySelector("[data-theme-toggle]");
2120
- if (!Et && (Et = !0, i)) {
2121
- const o = i.querySelector(".theme-icon");
2122
- if (o && o.src && ft() === "/icons/") {
2123
- const c = o.src.substring(0, o.src.lastIndexOf("/") + 1), h = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/") + 1), d = c.replace(window.location.origin + h, "");
2124
- d !== c && fr({
2125
- paths: {
2126
- icons: d,
2127
- base: h
2128
- }
2129
- });
2130
- }
2131
- }
2132
- const t = F();
2133
- Q(t);
2134
- const e = J();
2135
- if (lt(e), i) {
2136
- ct(i);
2137
- const o = i.onclick;
2138
- i.onclick = function(l) {
2139
- l.preventDefault();
2140
- const h = F() === "dark" ? "light" : "dark";
2141
- Q(h), ct(i), typeof o == "function" && o.call(this, l);
2142
- };
2143
- }
2144
- let s = document.getElementById("brand-picker");
2145
- s || (s = document.createElement("div"), s.id = "brand-picker", s.style.position = "fixed", s.style.top = "64px", s.style.right = "16px", s.style.zIndex = "9998", s.style.display = "none", s.style.padding = "12px", s.style.width = "200px", s.style.gridTemplateColumns = "repeat(3, 1fr)", s.style.gap = "6px", s.style.backgroundColor = "var(--bg-base-secondary)", s.style.border = "1px solid var(--border-neutral-l1)", s.style.borderRadius = "8px", s.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", s.style.overflow = "hidden", X.forEach((o) => {
2146
- const l = document.createElement("button");
2147
- l.setAttribute("data-brand-btn", o.id), l.style.display = "flex", l.style.justifyContent = "center", l.style.alignItems = "center", l.style.height = "60px", l.style.backgroundColor = o.color, l.style.color = ["#32F08C", "#FF9900", "#E2C027", "#0EB0C9", "#B1A6CC"].includes(o.color) ? "#0C0C0D" : "#FFFFFF", l.style.fontWeight = "500", l.style.borderRadius = "4px", l.style.border = "none", l.style.cursor = "pointer", l.style.margin = "0", l.style.padding = "0", l.textContent = o.name, s.appendChild(l);
2148
- }), document.body.appendChild(s));
2149
- const n = document.querySelector("[data-brand-toggle]");
2150
- n && s && (n.onclick = function(o) {
2151
- o.stopPropagation(), o.preventDefault();
2152
- const l = s.style.display === "none";
2153
- s.style.display = l ? "grid" : "none", l ? setTimeout(() => {
2154
- document.addEventListener("click", r, !0);
2155
- }, 0) : document.removeEventListener("click", r, !0);
2156
- }, s.onclick = function(o) {
2157
- o.stopPropagation();
2118
+ if (!xt) {
2119
+ xt = !0;
2120
+ const r = F();
2121
+ nt(r);
2122
+ const a = J();
2123
+ lt(a);
2124
+ }
2125
+ i && (ft(i), i.removeEventListener("click", Et), i.addEventListener("click", Et));
2126
+ let t = document.getElementById("brand-picker");
2127
+ t || (t = document.createElement("div"), t.id = "brand-picker", t.style.position = "fixed", t.style.top = "64px", t.style.right = "16px", t.style.zIndex = "9998", t.style.display = "none", t.style.padding = "12px", t.style.width = "200px", t.style.gridTemplateColumns = "repeat(3, 1fr)", t.style.gap = "6px", t.style.backgroundColor = "var(--bg-base-secondary)", t.style.border = "1px solid var(--border-neutral-l1)", t.style.borderRadius = "8px", t.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", t.style.overflow = "hidden", X.forEach((r) => {
2128
+ const a = document.createElement("button");
2129
+ a.setAttribute("data-brand-btn", r.id), a.style.display = "flex", a.style.justifyContent = "center", a.style.alignItems = "center", a.style.height = "60px", a.style.backgroundColor = r.color, a.style.color = ["#32F08C", "#FF9900", "#E2C027", "#0EB0C9", "#B1A6CC"].includes(r.color) ? "#0C0C0D" : "#FFFFFF", a.style.fontWeight = "500", a.style.borderRadius = "4px", a.style.border = "none", a.style.cursor = "pointer", a.style.margin = "0", a.style.padding = "0", a.textContent = r.name, t.appendChild(a);
2130
+ }), document.body.appendChild(t));
2131
+ const e = document.querySelector("[data-brand-toggle]");
2132
+ e && t && (e.onclick = function(r) {
2133
+ r.stopPropagation(), r.preventDefault();
2134
+ const a = t.style.display === "none";
2135
+ t.style.display = a ? "grid" : "none", a ? setTimeout(() => {
2136
+ document.addEventListener("click", s, !0);
2137
+ }, 0) : document.removeEventListener("click", s, !0);
2138
+ }, t.onclick = function(r) {
2139
+ r.stopPropagation();
2158
2140
  });
2159
- function r(o) {
2160
- s && n && !s.contains(o.target) && !n.contains(o.target) && (s.style.display = "none", document.removeEventListener("click", r, !0));
2161
- }
2162
- document.querySelectorAll("[data-brand-btn]").forEach((o) => {
2163
- o.addEventListener("click", (l) => {
2164
- l.stopPropagation();
2165
- const c = o.getAttribute("data-brand-btn");
2166
- lt(c), s && (s.style.display = "none");
2141
+ function s(r) {
2142
+ t && e && !t.contains(r.target) && !e.contains(r.target) && (t.style.display = "none", document.removeEventListener("click", s, !0));
2143
+ }
2144
+ document.querySelectorAll("[data-brand-btn]").forEach((r) => {
2145
+ r.addEventListener("click", (a) => {
2146
+ a.stopPropagation();
2147
+ const o = r.getAttribute("data-brand-btn");
2148
+ lt(o), t && (t.style.display = "none");
2167
2149
  });
2168
2150
  });
2169
2151
  }
2170
- function Ua() {
2152
+ function Ya() {
2171
2153
  const i = document.createElement("button");
2172
2154
  i.setAttribute("data-theme-toggle", ""), i.setAttribute("data-current-theme", F()), i.className = "ds-btn ds-btn--ghost ds-btn--sm ds-btn--icon", i.style.position = "fixed", i.style.top = "16px", i.style.right = "16px", i.style.zIndex = "9999";
2173
2155
  const t = document.createElement("img");
2174
2156
  t.className = "theme-icon";
2175
- const e = ft();
2157
+ const e = Zt();
2176
2158
  return t.src = F() === "dark" ? e + "sun.svg" : e + "moon.svg", t.width = 14, t.height = 14, t.alt = "Toggle theme", i.appendChild(t), document.body.appendChild(i), i.onclick = function(s) {
2177
2159
  s.preventDefault();
2178
2160
  const r = F() === "dark" ? "light" : "dark";
2179
- Q(r);
2161
+ nt(r);
2180
2162
  }, i;
2181
2163
  }
2182
- function Ya() {
2164
+ function Xa() {
2183
2165
  const i = document.createElement("div");
2184
2166
  i.id = "brand-picker-auto", i.style.position = "fixed", i.style.top = "56px", i.style.right = "16px", i.style.zIndex = "9998", i.style.display = "none", i.style.padding = "12px", i.style.width = "200px", i.style.gridTemplateColumns = "repeat(3, 1fr)", i.style.gap = "6px", i.style.backgroundColor = "var(--bg-base-secondary)", i.style.border = "1px solid var(--border-neutral-l1)", i.style.borderRadius = "8px", i.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", i.style.overflow = "hidden", X.forEach((a) => {
2185
2167
  const o = document.createElement("button");
@@ -2210,8 +2192,8 @@ function Ya() {
2210
2192
  });
2211
2193
  }), { toggleBtn: t, container: i };
2212
2194
  }
2213
- function Xa(i, t = {}) {
2214
- const s = nt()?.sanitizeHtml || {};
2195
+ function ja(i, t = {}) {
2196
+ const s = it()?.sanitizeHtml || {};
2215
2197
  if (!s.enabled && !t.force)
2216
2198
  return i;
2217
2199
  const n = t.allowedTags || s.allowedTags || [], r = t.allowedAttributes || s.allowedAttributes || {};
@@ -2219,28 +2201,28 @@ function Xa(i, t = {}) {
2219
2201
  return i;
2220
2202
  const o = new DOMParser().parseFromString(i, "text/html");
2221
2203
  return o.body.querySelectorAll("*").forEach((c) => {
2222
- const h = c.tagName.toLowerCase();
2223
- if (!n.includes(h)) {
2204
+ const d = c.tagName.toLowerCase();
2205
+ if (!n.includes(d)) {
2224
2206
  c.remove();
2225
2207
  return;
2226
2208
  }
2227
- Array.from(c.attributes).forEach((d) => {
2228
- const u = d.name.toLowerCase();
2229
- (r[h] || []).includes(u) || c.removeAttribute(d.name);
2209
+ Array.from(c.attributes).forEach((h) => {
2210
+ const u = h.name.toLowerCase();
2211
+ (r[d] || []).includes(u) || c.removeAttribute(h.name);
2230
2212
  });
2231
2213
  }), o.body.innerHTML;
2232
2214
  }
2233
- function ja(i) {
2215
+ function Ja(i) {
2234
2216
  if (typeof i != "string")
2235
2217
  return i;
2236
2218
  const t = document.createElement("div");
2237
2219
  return t.textContent = i, t.innerHTML;
2238
2220
  }
2239
- function Ja(i) {
2221
+ function Za(i) {
2240
2222
  return typeof i != "string" ? i : new DOMParser().parseFromString(i, "text/html").body.textContent || "";
2241
2223
  }
2242
- function Za(i, t, e = {}) {
2243
- const n = nt()?.maskData || {};
2224
+ function Ga(i, t, e = {}) {
2225
+ const n = it()?.maskData || {};
2244
2226
  if (!n.enabled && !e.force || i == null)
2245
2227
  return i;
2246
2228
  const a = (e.patterns || n.patterns || {})[t];
@@ -2249,8 +2231,8 @@ function Za(i, t, e = {}) {
2249
2231
  const o = typeof a.regex == "string" ? new RegExp(a.regex) : a.regex;
2250
2232
  return String(i).replace(o, a.replace);
2251
2233
  }
2252
- function Ga(i, t) {
2253
- const s = nt()?.secureId || {}, n = i || s.length || 16, r = s.charset || "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
2234
+ function Qa(i, t) {
2235
+ const s = it()?.secureId || {}, n = i || s.length || 16, r = s.charset || "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
2254
2236
  if (typeof crypto > "u" || !crypto.getRandomValues) {
2255
2237
  let l = "";
2256
2238
  for (let c = 0; c < n; c++)
@@ -2395,9 +2377,9 @@ const E = new wr(), kr = [
2395
2377
  ];
2396
2378
  for (const i of kr)
2397
2379
  i.attr && !E._dataAttrs.includes(i.attr) && E._dataAttrs.push(i.attr), i.cls && !E._cssClasses.includes(i.cls) && E._cssClasses.push(i.cls);
2398
- class tt {
2380
+ class Q {
2399
2381
  constructor(t) {
2400
- this.element = t, this.isMounted = !1, this.isDestroyed = !1, this.props = this._parseProps(), this.state = {}, this.slots = this._parseSlots(), this._eventListeners = {}, this._appliedMixins = [], this.lifecycle = new ut(), this.setupContext = null;
2382
+ this.element = t, this.isMounted = !1, this.isDestroyed = !1, this.props = this._parseProps(), this.state = {}, this.slots = this._parseSlots(), this._eventListeners = {}, this._appliedMixins = [], this.lifecycle = new dt(), this.setupContext = null;
2401
2383
  }
2402
2384
  _parseProps() {
2403
2385
  const t = {};
@@ -2496,7 +2478,7 @@ class tt {
2496
2478
  };
2497
2479
  let e = Object.getPrototypeOf(this);
2498
2480
  const s = /* @__PURE__ */ new Set();
2499
- for (; e && e.constructor !== Object && e.constructor !== tt; ) {
2481
+ for (; e && e.constructor !== Object && e.constructor !== Q; ) {
2500
2482
  for (const [n, r] of Object.entries(t))
2501
2483
  s.has(n) || e.hasOwnProperty(n) && (Array.isArray(r) ? r.forEach((a) => {
2502
2484
  n === "render" && this.lifecycle.on(a, () => this.render?.());
@@ -2547,7 +2529,7 @@ class Cr {
2547
2529
  this.components = /* @__PURE__ */ new Map(), this.lazyComponents = /* @__PURE__ */ new Map(), this.loadedComponents = /* @__PURE__ */ new Map(), this.instances = /* @__PURE__ */ new Map(), this.observer = null, this.mixins = /* @__PURE__ */ new Map(), this.loadingPromises = /* @__PURE__ */ new Map();
2548
2530
  }
2549
2531
  register(t, e) {
2550
- if (!(e.prototype instanceof tt))
2532
+ if (!(e.prototype instanceof Q))
2551
2533
  throw new Error(`Component ${t} must extend KupolaComponent`);
2552
2534
  this.components.set(t, e);
2553
2535
  }
@@ -2571,7 +2553,7 @@ class Cr {
2571
2553
  const n = (async () => {
2572
2554
  try {
2573
2555
  const r = await s(), a = r.default || r;
2574
- if (!(a.prototype instanceof tt))
2556
+ if (!(a.prototype instanceof Q))
2575
2557
  throw new Error(`Component ${t} must extend KupolaComponent`);
2576
2558
  return this.loadedComponents.set(t, a), a;
2577
2559
  } catch (r) {
@@ -2672,10 +2654,10 @@ class Cr {
2672
2654
  }), this.instances.clear(), this.components.clear(), this.mixins.clear();
2673
2655
  }
2674
2656
  }
2675
- let I = null;
2676
- typeof window < "u" && (I = new Cr());
2657
+ let T = null;
2658
+ typeof window < "u" && (T = new Cr());
2677
2659
  function Sr() {
2678
- if (nt().xssProtection && typeof document < "u") {
2660
+ if (it().xssProtection && typeof document < "u") {
2679
2661
  let t = document.querySelector('meta[http-equiv="X-XSS-Protection"]');
2680
2662
  t || (t = document.createElement("meta"), t.setAttribute("http-equiv", "X-XSS-Protection"), t.setAttribute("content", "1; mode=block"), document.head.insertBefore(t, document.head.firstChild)), t = document.querySelector('meta[http-equiv="X-Content-Type-Options"]'), t || (t = document.createElement("meta"), t.setAttribute("http-equiv", "X-Content-Type-Options"), t.setAttribute("content", "nosniff"), document.head.insertBefore(t, document.head.firstChild));
2681
2663
  }
@@ -2683,30 +2665,30 @@ function Sr() {
2683
2665
  async function kt() {
2684
2666
  if (typeof window < "u") {
2685
2667
  Sr();
2686
- const i = pt();
2687
- O.loadPersisted(), O.bind(), Er(), i.components?.autoInit !== !1 && (await E.initializeAll(), I && await I.bootstrap());
2668
+ const i = ut();
2669
+ O.loadPersisted(), O.bind(), Er(), i.components?.autoInit !== !1 && (await E.initializeAll(), T && await T.bootstrap());
2688
2670
  }
2689
2671
  }
2690
2672
  typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", kt) : typeof window < "u" && setTimeout(kt, 0);
2691
- function Qa(i, t) {
2692
- I && I.register(i, t);
2693
- }
2694
2673
  function to(i, t) {
2695
- I && I.registerLazy(i, t);
2674
+ T && T.register(i, t);
2675
+ }
2676
+ function eo(i, t) {
2677
+ T && T.registerLazy(i, t);
2696
2678
  }
2697
- function eo(i) {
2698
- return I ? I.bootstrap(i) : Promise.resolve();
2679
+ function so(i) {
2680
+ return T ? T.bootstrap(i) : Promise.resolve();
2699
2681
  }
2700
- function so(i, t) {
2701
- I && I.defineMixin(i, t);
2682
+ function io(i, t) {
2683
+ T && T.defineMixin(i, t);
2702
2684
  }
2703
- function io(i, ...t) {
2704
- I && I.useMixin(i, ...t);
2685
+ function no(i, ...t) {
2686
+ T && T.useMixin(i, ...t);
2705
2687
  }
2706
- function no(i, t) {
2688
+ function ro(i, t) {
2707
2689
  if (!t || typeof t != "object")
2708
2690
  throw new Error(`defineComponent("${i}"): options must be an object`);
2709
- t.componentClass ? I && I.register(i, t.componentClass) : t.lazy && I && I.registerLazy(i, t.lazy), t.init ? E.register(i, t.init, t.cleanup || null, {
2691
+ t.componentClass ? T && T.register(i, t.componentClass) : t.lazy && T && T.registerLazy(i, t.lazy), t.init ? E.register(i, t.init, t.cleanup || null, {
2710
2692
  dataAttribute: t.dataAttribute,
2711
2693
  cssClass: t.cssClass
2712
2694
  }) : (t.dataAttribute || t.cssClass) && E.register(i, () => {
@@ -2715,9 +2697,9 @@ function no(i, t) {
2715
2697
  cssClass: t.cssClass
2716
2698
  });
2717
2699
  }
2718
- class Qt {
2700
+ class te {
2719
2701
  constructor(t = {}) {
2720
- const e = pt();
2702
+ const e = ut();
2721
2703
  this.locales = t.locales || {}, this.currentLocale = t.defaultLocale || e.i18n?.locale || "zh-CN", this.fallbackLocale = t.fallbackLocale || e.i18n?.fallbackLocale || "en-US", this.delimiter = t.delimiter || ".", this.missingHandler = t.missingHandler || ((s) => (console.warn(`Missing translation: ${s}`), s)), this._initFromDOM();
2722
2704
  }
2723
2705
  _initFromDOM() {
@@ -2813,29 +2795,29 @@ class Qt {
2813
2795
  return new Intl.RelativeTimeFormat(n, s).format(t, e);
2814
2796
  }
2815
2797
  }
2816
- const R = new Qt();
2817
- function ro(i) {
2818
- return new Qt(i);
2798
+ const R = new te();
2799
+ function ao(i) {
2800
+ return new te(i);
2819
2801
  }
2820
- function ao(i, t = {}) {
2802
+ function oo(i, t = {}) {
2821
2803
  return R.t(i, t);
2822
2804
  }
2823
- function oo(i, t, e = {}) {
2805
+ function lo(i, t, e = {}) {
2824
2806
  return R.n(i, t, e);
2825
2807
  }
2826
- function lo(i) {
2808
+ function co(i) {
2827
2809
  return R.setLocale(i);
2828
2810
  }
2829
- function co() {
2811
+ function ho() {
2830
2812
  return R.getLocale();
2831
2813
  }
2832
- function ho(i, t = {}) {
2814
+ function uo(i, t = {}) {
2833
2815
  return R.formatDate(i, t);
2834
2816
  }
2835
- function uo(i, t = {}) {
2817
+ function po(i, t = {}) {
2836
2818
  return R.formatNumber(i, t);
2837
2819
  }
2838
- function po(i, t, e = {}) {
2820
+ function fo(i, t, e = {}) {
2839
2821
  return R.formatCurrency(i, t, e);
2840
2822
  }
2841
2823
  class Lr {
@@ -2843,7 +2825,7 @@ class Lr {
2843
2825
  this._listeners = /* @__PURE__ */ new Map(), this._scopeListeners = /* @__PURE__ */ new Map();
2844
2826
  }
2845
2827
  on(t, e, s, n = {}) {
2846
- const { scope: r = null, once: a = !1, passive: o = !1, capture: l = !1 } = n, c = this._generateId(), h = {
2828
+ const { scope: r = null, once: a = !1, passive: o = !1, capture: l = !1 } = n, c = this._generateId(), d = {
2847
2829
  id: c,
2848
2830
  target: t,
2849
2831
  eventName: e,
@@ -2852,11 +2834,11 @@ class Lr {
2852
2834
  once: a,
2853
2835
  wrappedHandler: null
2854
2836
  };
2855
- h.wrappedHandler = (u) => {
2837
+ d.wrappedHandler = (u) => {
2856
2838
  a && this.offById(c), s.call(t, u);
2857
2839
  };
2858
- const d = this._getEventKey(t, e);
2859
- return this._listeners.has(d) || this._listeners.set(d, []), this._listeners.get(d).push(h), r && (this._scopeListeners.has(r) || this._scopeListeners.set(r, []), this._scopeListeners.get(r).push(c)), t.addEventListener(e, h.wrappedHandler, {
2840
+ const h = this._getEventKey(t, e);
2841
+ return this._listeners.has(h) || this._listeners.set(h, []), this._listeners.get(h).push(d), r && (this._scopeListeners.has(r) || this._scopeListeners.set(r, []), this._scopeListeners.get(r).push(c)), t.addEventListener(e, d.wrappedHandler, {
2860
2842
  passive: o,
2861
2843
  capture: l
2862
2844
  }), {
@@ -2969,28 +2951,28 @@ class Lr {
2969
2951
  }
2970
2952
  }
2971
2953
  const H = new Lr();
2972
- function fo(i, t, e, s) {
2954
+ function mo(i, t, e, s) {
2973
2955
  return H.on(i, t, e, s);
2974
2956
  }
2975
- function mo(i, t, e, s) {
2957
+ function go(i, t, e, s) {
2976
2958
  return H.once(i, t, e, s);
2977
2959
  }
2978
- function go(i, t, e) {
2960
+ function _o(i, t, e) {
2979
2961
  H.off(i, t, e);
2980
2962
  }
2981
- function _o(i, t, e) {
2963
+ function yo(i, t, e) {
2982
2964
  return H.emit(i, t, e);
2983
2965
  }
2984
- function yo(i, t) {
2966
+ function vo(i, t) {
2985
2967
  return H.emitGlobal(i, t);
2986
2968
  }
2987
- function vo(i) {
2969
+ function bo(i) {
2988
2970
  H.offByScope(i);
2989
2971
  }
2990
- function bo(i, t) {
2972
+ function xo(i, t) {
2991
2973
  H.offAll(i, t);
2992
2974
  }
2993
- function xo(i, t) {
2975
+ function Eo(i, t) {
2994
2976
  return H.getListenerCount(i, t);
2995
2977
  }
2996
2978
  class Dr {
@@ -3128,25 +3110,25 @@ class Dr {
3128
3110
  }), this._mouseenterHandler && this.menu.removeEventListener("mouseenter", this._mouseenterHandler), this._mouseleaveHandler && this.menu.removeEventListener("mouseleave", this._mouseleaveHandler)), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.appendToBody && this._originalParent && this._restoreMenuFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._itemClickHandler = null, this._keydownHandler = null, this._mouseenterHandler = null, this._mouseleaveHandler = null, this._triggerMouseenterHandler = null, this._triggerMouseleaveHandler = null, this._triggerKeydownHandler = null, this.element.__kupolaInitialized = !1);
3129
3111
  }
3130
3112
  }
3131
- function te(i, t) {
3113
+ function ee(i, t) {
3132
3114
  i._kupolaDropdown && i._kupolaDropdown.destroy();
3133
3115
  const e = new Dr(i, t);
3134
3116
  e.init(), i._kupolaDropdown = e;
3135
3117
  }
3136
- function Eo(i = document) {
3118
+ function wo(i = document) {
3137
3119
  i.querySelectorAll(".ds-dropdown").forEach((t) => {
3138
- te(t);
3120
+ ee(t);
3139
3121
  });
3140
3122
  }
3141
- function ee(i) {
3123
+ function se(i) {
3142
3124
  i._kupolaDropdown && (i._kupolaDropdown.destroy(), i._kupolaDropdown = null);
3143
3125
  }
3144
- function wo() {
3126
+ function ko() {
3145
3127
  document.querySelectorAll(".ds-dropdown").forEach((i) => {
3146
- ee(i);
3128
+ se(i);
3147
3129
  });
3148
3130
  }
3149
- E.register("dropdown", te, ee);
3131
+ E.register("dropdown", ee, se);
3150
3132
  class Hr {
3151
3133
  constructor(t, e = {}) {
3152
3134
  this.element = t, this.trigger = t.querySelector(".ds-select__trigger"), this.valueEl = t.querySelector(".ds-select__value") || t.querySelector(".ds-select__trigger span"), this.optionsEl = t.querySelector(".ds-select__options") || t.querySelector(".ds-select__menu"), this.nativeSelect = t.querySelector("select"), this.icon = t.querySelector(".ds-select__icon"), this.scope = `select-${Math.random().toString(36).substr(2, 9)}`, this.multiple = e.multiple || t.hasAttribute("data-select-multiple"), this.searchable = e.searchable || t.hasAttribute("data-select-search"), this.clearable = e.clearable || t.hasAttribute("data-select-clear"), this.placeholder = e.placeholder || t.getAttribute("data-select-placeholder") || "", this.disabled = e.disabled || t.hasAttribute("data-select-disabled"), this.maxSelection = e.maxSelection || parseInt(t.getAttribute("data-select-max")) || 1 / 0, this.remoteMethod = e.remoteMethod || null, this.onChange = e.onChange || null, this.appendToBody = e.appendToBody !== !1, this.isOpen = !1, this.selectedValues = /* @__PURE__ */ new Set(), this.allOptions = [], this.filteredOptions = [], this.focusIndex = -1, this.searchInput = null, this.clearBtn = null, this.tagsWrap = null, this._originalParent = null, this._originalPosition = null, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._optionClickHandler = null, this._keydownHandler = null;
@@ -3393,20 +3375,20 @@ class Hr {
3393
3375
  }), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.searchInput && this.searchInput.remove(), this.clearBtn && this.clearBtn.remove(), this.tagsWrap && this.tagsWrap.remove(), this.appendToBody && this._originalParent && this._restoreOptionsFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._optionClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3394
3376
  }
3395
3377
  }
3396
- function se(i, t) {
3378
+ function ie(i, t) {
3397
3379
  const e = new Hr(i, t);
3398
3380
  e.init(), i._kupolaSelect = e;
3399
3381
  }
3400
- function ko(i = document) {
3382
+ function Co(i = document) {
3401
3383
  i.querySelectorAll(".ds-select").forEach((t) => {
3402
- se(t);
3384
+ ie(t);
3403
3385
  });
3404
3386
  }
3405
3387
  function Mr(i) {
3406
3388
  i._kupolaSelect && (i._kupolaSelect.destroy(), i._kupolaSelect = null);
3407
3389
  }
3408
- E.register("select", se, Mr);
3409
- class Ir {
3390
+ E.register("select", ie, Mr);
3391
+ class Tr {
3410
3392
  constructor(t, e = {}) {
3411
3393
  this.element = t, this.input = t.querySelector("input"), this.endInput = t.querySelector(".ds-datepicker__end-input"), this.icon = t.querySelector(".ds-datepicker__icon"), this.calendarEl = t.querySelector(".ds-datepicker__calendar"), this.scope = `datepicker-${Math.random().toString(36).substr(2, 9)}`;
3412
3394
  const s = j(), n = s.datepicker?.weekStart !== void 0 ? s.datepicker.weekStart : 1;
@@ -3534,20 +3516,20 @@ class Ir {
3534
3516
  const m = document.createElement("span");
3535
3517
  m.className = "ds-datepicker__weekday", m.textContent = p, l.appendChild(m);
3536
3518
  }), t.appendChild(l);
3537
- const h = document.createElement("div");
3538
- h.className = "ds-datepicker__days";
3539
- const d = new Date(e, s, 1).getDay(), u = new Date(e, s + 1, 0).getDate(), f = (d - this.weekStart + 7) % 7;
3519
+ const d = document.createElement("div");
3520
+ d.className = "ds-datepicker__days";
3521
+ const h = new Date(e, s, 1).getDay(), u = new Date(e, s + 1, 0).getDate(), f = (h - this.weekStart + 7) % 7;
3540
3522
  for (let p = 0; p < f; p++) {
3541
3523
  const m = document.createElement("span");
3542
- m.className = "ds-datepicker__day ds-datepicker__day--empty", h.appendChild(m);
3524
+ m.className = "ds-datepicker__day ds-datepicker__day--empty", d.appendChild(m);
3543
3525
  }
3544
3526
  for (let p = 1; p <= u; p++) {
3545
3527
  const m = new Date(e, s, p), y = document.createElement("button");
3546
3528
  y.className = "ds-datepicker__day", y.type = "button", y.textContent = p, this._formatDate(m), this._isToday(m) && y.classList.add("is-today"), this.range ? ((this._isSameDay(m, this.rangeStart) || this._isSameDay(m, this.rangeEnd)) && y.classList.add("is-selected"), this._isInRange(m) && y.classList.add("is-in-range")) : this._isSameDay(m, this.selectedDate) && y.classList.add("is-selected"), this._isDateDisabled(m) && (y.classList.add("is-disabled"), y.disabled = !0);
3547
3529
  const _ = () => this._selectDate(m);
3548
- y.addEventListener("click", _), y._dayClickHandler = _, h.appendChild(y);
3530
+ y.addEventListener("click", _), y._dayClickHandler = _, d.appendChild(y);
3549
3531
  }
3550
- if (t.appendChild(h), this.showToday) {
3532
+ if (t.appendChild(d), this.showToday) {
3551
3533
  const p = document.createElement("div");
3552
3534
  p.className = "ds-datepicker__footer";
3553
3535
  const m = document.createElement("button");
@@ -3580,10 +3562,10 @@ class Ir {
3580
3562
  const l = document.createElement("div");
3581
3563
  l.className = "ds-datepicker__years-grid";
3582
3564
  for (let c = 0; c < 12; c++) {
3583
- const h = s + c, d = document.createElement("button");
3584
- d.className = "ds-datepicker__year-cell", d.type = "button", d.textContent = h, h === e && d.classList.add("is-selected"), d.addEventListener("click", (u) => {
3585
- u.stopPropagation(), this.currentDate.setFullYear(h), this.viewMode = "months", this._renderCalendar();
3586
- }), l.appendChild(d);
3565
+ const d = s + c, h = document.createElement("button");
3566
+ h.className = "ds-datepicker__year-cell", h.type = "button", h.textContent = d, d === e && h.classList.add("is-selected"), h.addEventListener("click", (u) => {
3567
+ u.stopPropagation(), this.currentDate.setFullYear(d), this.viewMode = "months", this._renderCalendar();
3568
+ }), l.appendChild(h);
3587
3569
  }
3588
3570
  t.appendChild(l);
3589
3571
  }
@@ -3606,10 +3588,10 @@ class Ir {
3606
3588
  }), s.appendChild(n), s.appendChild(r), s.appendChild(a), t.appendChild(s);
3607
3589
  const o = document.createElement("div");
3608
3590
  o.className = "ds-datepicker__months-grid", this.months.forEach((l, c) => {
3609
- const h = document.createElement("button");
3610
- h.className = "ds-datepicker__month-cell", h.type = "button", h.textContent = l, c === this.currentDate.getMonth() && h.classList.add("is-selected"), h.addEventListener("click", (d) => {
3611
- d.stopPropagation(), this.currentDate.setMonth(c), this.viewMode = "days", this._renderCalendar();
3612
- }), o.appendChild(h);
3591
+ const d = document.createElement("button");
3592
+ d.className = "ds-datepicker__month-cell", d.type = "button", d.textContent = l, c === this.currentDate.getMonth() && d.classList.add("is-selected"), d.addEventListener("click", (h) => {
3593
+ h.stopPropagation(), this.currentDate.setMonth(c), this.viewMode = "days", this._renderCalendar();
3594
+ }), o.appendChild(d);
3613
3595
  }), t.appendChild(o);
3614
3596
  }
3615
3597
  _selectDate(t) {
@@ -3669,19 +3651,19 @@ class Ir {
3669
3651
  }), this.appendToBody && this._originalParent && this._restoreCalendarFromBody(), this._documentClickHandler = null, this._resizeHandler = null, this._documentClickListener = null, this._resizeListener = null, this._iconClickHandler = null, this._inputClickHandler = null, this._endInputClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3670
3652
  }
3671
3653
  }
3672
- function ie(i, t) {
3673
- const e = new Ir(i, t);
3654
+ function ne(i, t) {
3655
+ const e = new Tr(i, t);
3674
3656
  e.init(), i._kupolaDatepicker = e;
3675
3657
  }
3676
- function Co(i = document) {
3658
+ function So(i = document) {
3677
3659
  i.querySelectorAll(".ds-datepicker").forEach((t) => {
3678
- ie(t);
3660
+ ne(t);
3679
3661
  });
3680
3662
  }
3681
- function Tr(i) {
3663
+ function Ir(i) {
3682
3664
  i._kupolaDatepicker && (i._kupolaDatepicker.destroy(), i._kupolaDatepicker = null);
3683
3665
  }
3684
- E.register("datepicker", ie, Tr);
3666
+ E.register("datepicker", ne, Ir);
3685
3667
  class Ar {
3686
3668
  constructor(t, e = {}) {
3687
3669
  this.element = t, this.input = t.querySelector("input"), this.inputWrap = t.querySelector(".ds-timepicker__input-wrap"), this.panelEl = null, this.scope = `timepicker-${Math.random().toString(36).substr(2, 9)}`, this.showSeconds = e.showSeconds || t.hasAttribute("data-timepicker-seconds"), this.use12Hour = e.use12Hour || t.hasAttribute("data-timepicker-12h"), this.hourStep = e.hourStep || parseInt(t.getAttribute("data-timepicker-hour-step")) || 1, this.minuteStep = e.minuteStep || parseInt(t.getAttribute("data-timepicker-minute-step")) || 5, this.secondStep = e.secondStep || parseInt(t.getAttribute("data-timepicker-second-step")) || 5, this.minTime = e.minTime || t.getAttribute("data-timepicker-min") || null, this.maxTime = e.maxTime || t.getAttribute("data-timepicker-max") || null, this.disabledTime = e.disabledTime || null, this.placeholder = e.placeholder || t.getAttribute("data-timepicker-placeholder") || "", this.clearable = e.clearable || t.hasAttribute("data-timepicker-clear"), this.onChange = e.onChange || null, this.selectedHour = 12, this.selectedMinute = 0, this.selectedSecond = 0, this.isPM = !1, this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null;
@@ -3864,19 +3846,19 @@ class Ar {
3864
3846
  this.element.__kupolaInitialized && (this.inputWrap && this._inputWrapClickHandler && this.inputWrap.removeEventListener("click", this._inputWrapClickHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._resizeListener && this._resizeListener.unsubscribe ? this._resizeListener.unsubscribe() : this._resizeHandler && window.removeEventListener("resize", this._resizeHandler), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this.panelEl && (this.panelEl.remove(), this.panelEl = null), this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3865
3847
  }
3866
3848
  }
3867
- function ne(i, t) {
3849
+ function re(i, t) {
3868
3850
  const e = new Ar(i, t);
3869
3851
  e.init(), i._kupolaTimepicker = e;
3870
3852
  }
3871
- function So(i = document) {
3853
+ function Lo(i = document) {
3872
3854
  i.querySelectorAll(".ds-timepicker").forEach((t) => {
3873
- ne(t);
3855
+ re(t);
3874
3856
  });
3875
3857
  }
3876
3858
  function zr(i) {
3877
3859
  i._kupolaTimepicker && (i._kupolaTimepicker.destroy(), i._kupolaTimepicker = null);
3878
3860
  }
3879
- E.register("timepicker", ne, zr);
3861
+ E.register("timepicker", re, zr);
3880
3862
  class Pr {
3881
3863
  constructor(t, e = {}) {
3882
3864
  if (this.element = t, this.track = t.querySelector(".ds-slider__track"), this.fill = t.querySelector(".ds-slider__fill"), this.input = t.querySelector(".ds-slider__input"), this.valueEl = t.querySelector(".ds-slider__value"), this.range = e.range || t.hasAttribute("data-slider-range"), this.vertical = e.vertical || t.hasAttribute("data-slider-vertical"), this.disabled = e.disabled || t.hasAttribute("data-slider-disabled"), this.showTooltip = e.showTooltip !== !1, this.showMarks = e.marks || t.hasAttribute("data-slider-marks"), this.markStep = e.markStep || parseInt(t.getAttribute("data-slider-mark-step")) || 10, this.tooltipFormat = e.tooltipFormat || ((s) => s), this.onChange = e.onChange || null, this.onInput = e.onInput || null, this.inputEnd = t.querySelector(".ds-slider__input--end"), this.fillEnd = null, this.thumbStart = null, this.thumbEnd = null, this.tooltipStart = null, this.tooltipEnd = null, this.marksEl = null, this._listeners = [], this._isDragging = !1, this._activeThumb = null, !this.track || !this.fill)
@@ -3933,11 +3915,11 @@ class Pr {
3933
3915
  if (!this._isDragging) return;
3934
3916
  a.preventDefault();
3935
3917
  const o = a.touches ? a.touches[0].clientX : a.clientX, l = a.touches ? a.touches[0].clientY : a.clientY, c = this.track.getBoundingClientRect();
3936
- let h;
3937
- this.vertical ? h = 1 - (l - c.top) / c.height : h = (o - c.left) / c.width, h = Math.max(0, Math.min(1, h));
3938
- const d = parseFloat(this.input?.min || 0), u = parseFloat(this.input?.max || 100), f = parseFloat(this.input?.step || 1);
3939
- let p = d + h * (u - d);
3940
- if (p = Math.round(p / f) * f, p = Math.max(d, Math.min(u, p)), e === "start" && this.range && this.inputEnd) {
3918
+ let d;
3919
+ this.vertical ? d = 1 - (l - c.top) / c.height : d = (o - c.left) / c.width, d = Math.max(0, Math.min(1, d));
3920
+ const h = parseFloat(this.input?.min || 0), u = parseFloat(this.input?.max || 100), f = parseFloat(this.input?.step || 1);
3921
+ let p = h + d * (u - h);
3922
+ if (p = Math.round(p / f) * f, p = Math.max(h, Math.min(u, p)), e === "start" && this.range && this.inputEnd) {
3941
3923
  const m = parseFloat(this.inputEnd.value);
3942
3924
  p > m && (p = m);
3943
3925
  }
@@ -3945,7 +3927,7 @@ class Pr {
3945
3927
  const m = parseFloat(this.input.value);
3946
3928
  p < m && (p = m);
3947
3929
  }
3948
- e === "start" && this.input ? this.input.value = p : e === "end" && this.inputEnd && (this.inputEnd.value = p), this.updateSlider(), this.onInput && this.onInput({ value: this.getValue(), percentage: h });
3930
+ e === "start" && this.input ? this.input.value = p : e === "end" && this.inputEnd && (this.inputEnd.value = p), this.updateSlider(), this.onInput && this.onInput({ value: this.getValue(), percentage: d });
3949
3931
  }, r = () => {
3950
3932
  this._isDragging = !1, this._activeThumb = null, this.element.classList.remove("is-dragging"), document.removeEventListener("mousemove", n), document.removeEventListener("mouseup", r), document.removeEventListener("touchmove", n), document.removeEventListener("touchend", r), this.onChange && this.onChange({ value: this.getValue() }), this.element.dispatchEvent(new CustomEvent("kupola:slider-change", {
3951
3933
  detail: { value: this.getValue() },
@@ -3965,8 +3947,8 @@ class Pr {
3965
3947
  const a = parseFloat(this.input?.min || 0), o = parseFloat(this.input?.max || 100), l = parseFloat(this.input?.step || 1);
3966
3948
  let c = a + r * (o - a);
3967
3949
  if (c = Math.round(c / l) * l, this.range) {
3968
- const h = parseFloat(this.input?.value || 0), d = parseFloat(this.inputEnd?.value || 0), u = Math.abs(c - h), f = Math.abs(c - d);
3969
- u <= f ? this.input && (this.input.value = Math.min(c, d)) : this.inputEnd && (this.inputEnd.value = Math.max(c, h));
3950
+ const d = parseFloat(this.input?.value || 0), h = parseFloat(this.inputEnd?.value || 0), u = Math.abs(c - d), f = Math.abs(c - h);
3951
+ u <= f ? this.input && (this.input.value = Math.min(c, h)) : this.inputEnd && (this.inputEnd.value = Math.max(c, d));
3970
3952
  } else
3971
3953
  this.input && (this.input.value = c);
3972
3954
  this.updateSlider();
@@ -4025,7 +4007,7 @@ class Pr {
4025
4007
  this.disabled = !0, this.element.classList.add("is-disabled");
4026
4008
  }
4027
4009
  }
4028
- function re(i, t) {
4010
+ function ae(i, t) {
4029
4011
  if (!i.__kupolaInitialized)
4030
4012
  try {
4031
4013
  const e = new Pr(i, t);
@@ -4038,12 +4020,12 @@ function $r(i) {
4038
4020
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4039
4021
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4040
4022
  }
4041
- function Lo() {
4023
+ function Do() {
4042
4024
  document.querySelectorAll(".ds-slider").forEach((i) => {
4043
- re(i);
4025
+ ae(i);
4044
4026
  });
4045
4027
  }
4046
- E.register("slider", re, $r);
4028
+ E.register("slider", ae, $r);
4047
4029
  class Br {
4048
4030
  constructor(t, e = {}) {
4049
4031
  this.element = t, this.track = t.querySelector(".ds-carousel__track"), this.items = t.querySelectorAll(".ds-carousel__item"), this.prevBtn = t.querySelector(".ds-carousel__prev"), this.nextBtn = t.querySelector(".ds-carousel__next"), this.indicators = t.querySelectorAll(".ds-carousel__indicator"), this.autoBtn = t.querySelector(".ds-carousel__auto"), this.mode = e.mode || t.getAttribute("data-carousel-mode") || "slide", this.vertical = e.vertical || t.hasAttribute("data-carousel-vertical"), this.autoPlay = e.autoPlay !== !1, this.interval = e.interval || parseInt(t.getAttribute("data-carousel-interval")) || 3e3, this.transitionDuration = e.transitionDuration || parseInt(t.getAttribute("data-carousel-duration")) || 500, this.loop = e.loop !== !1, this.pauseOnHover = e.pauseOnHover !== !1, this.swipe = e.swipe !== !1, this.swipeThreshold = e.swipeThreshold || 50, this.keyboardNav = e.keyboardNav || t.hasAttribute("data-carousel-keyboard"), this.onChange = e.onChange || null, this.currentIndex = 0, this.totalItems = this.items.length, this.autoPlayTimer = null, this.isAutoPlaying = !1, this.isTransitioning = !1, this.touchStartX = 0, this.touchStartY = 0, this.touchDeltaX = 0, this.touchDeltaY = 0, this.isSwiping = !1, this._mouseEnterHandler = () => {
@@ -4125,21 +4107,21 @@ class Br {
4125
4107
  }), this._touchStartHandler && this.element.removeEventListener("touchstart", this._touchStartHandler), this._touchMoveHandler && this.element.removeEventListener("touchmove", this._touchMoveHandler), this._touchEndHandler && this.element.removeEventListener("touchend", this._touchEndHandler), this._keydownHandler && this.element.removeEventListener("keydown", this._keydownHandler), this._prevClickHandler = null, this._nextClickHandler = null, this._autoClickHandler = null, this._indicatorClickHandlers = null;
4126
4108
  }
4127
4109
  }
4128
- function ae(i, t) {
4110
+ function oe(i, t) {
4129
4111
  if (i.__kupolaInitialized) return;
4130
4112
  const e = new Br(i, t);
4131
4113
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4132
4114
  }
4133
- function Do(i = document) {
4115
+ function Ho(i = document) {
4134
4116
  i.querySelectorAll(".ds-carousel").forEach((t) => {
4135
- ae(t);
4117
+ oe(t);
4136
4118
  });
4137
4119
  }
4138
4120
  function qr(i) {
4139
4121
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4140
4122
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4141
4123
  }
4142
- E.register("carousel", ae, qr);
4124
+ E.register("carousel", oe, qr);
4143
4125
  class Or {
4144
4126
  constructor(t, e = {}) {
4145
4127
  this.element = t, this.mask = t.querySelector(".ds-drawer-mask"), this.drawerEl = t.querySelector(".ds-drawer"), this.placement = e.placement || t.getAttribute("data-drawer-placement") || "right", this.width = e.width || t.getAttribute("data-drawer-width") || "400px", this.height = e.height || t.getAttribute("data-drawer-height") || "400px", this.escClose = e.escClose !== !1, this.maskClosable = e.maskClosable !== !1, this.showMask = e.showMask !== !1, this.onOpen = e.onOpen || null, this.onClose = e.onClose || null, this.onBeforeClose = e.onBeforeClose || null, this._keydownHandler = null, this._bindEvents();
@@ -4177,7 +4159,7 @@ class Or {
4177
4159
  return this.drawerEl?.classList.contains("is-visible") || !1;
4178
4160
  }
4179
4161
  }
4180
- function ht(i, t) {
4162
+ function ct(i, t) {
4181
4163
  if (i.__kupolaInitialized) return;
4182
4164
  const e = new Or(i, t);
4183
4165
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -4186,11 +4168,11 @@ function Fr(i) {
4186
4168
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4187
4169
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4188
4170
  }
4189
- function Ho() {
4171
+ function Mo() {
4190
4172
  document.querySelectorAll("[data-drawer]").forEach((i) => {
4191
4173
  i.addEventListener("click", () => {
4192
4174
  const t = i.getAttribute("data-drawer"), e = document.getElementById(t);
4193
- e && (ht(e, {
4175
+ e && (ct(e, {
4194
4176
  placement: i.getAttribute("data-drawer-placement") || "right",
4195
4177
  width: i.getAttribute("data-drawer-width"),
4196
4178
  height: i.getAttribute("data-drawer-height")
@@ -4198,10 +4180,10 @@ function Ho() {
4198
4180
  });
4199
4181
  }), document.querySelectorAll(".ds-drawer-mask").forEach((i) => {
4200
4182
  const t = i.parentElement;
4201
- t && ht(t);
4183
+ t && ct(t);
4202
4184
  });
4203
4185
  }
4204
- E.register("drawer", ht, Fr);
4186
+ E.register("drawer", ct, Fr);
4205
4187
  class $ {
4206
4188
  constructor(t, e = {}) {
4207
4189
  this.element = t, this.mask = t.querySelector(".ds-modal-mask"), this.modal = t.querySelector(".ds-modal"), this.closeBtn = t.querySelector(".ds-modal__close");
@@ -4238,7 +4220,7 @@ class $ {
4238
4220
  }
4239
4221
  }
4240
4222
  $._openCount = 0;
4241
- function oe(i = {}) {
4223
+ function le(i = {}) {
4242
4224
  const {
4243
4225
  title: t = "",
4244
4226
  content: e = "",
@@ -4249,8 +4231,8 @@ function oe(i = {}) {
4249
4231
  showConfirm: o = !0,
4250
4232
  confirmText: l = "OK",
4251
4233
  cancelText: c = "Cancel",
4252
- confirmClass: h = "ds-btn--brand",
4253
- cancelClass: d = "ds-btn--ghost",
4234
+ confirmClass: d = "ds-btn--brand",
4235
+ cancelClass: h = "ds-btn--ghost",
4254
4236
  closable: u = !0,
4255
4237
  maskClosable: f = !0,
4256
4238
  onConfirm: p,
@@ -4263,8 +4245,8 @@ function oe(i = {}) {
4263
4245
  C.className = "ds-modal-container";
4264
4246
  let S = "";
4265
4247
  b !== null && (typeof b == "string" ? S = `<div class="ds-modal__footer">${b}</div>` : (o || a) && (S = `<div class="ds-modal__footer">
4266
- ${a ? `<button class="ds-btn ${v} ${d}" data-modal-cancel>${c}</button>` : ""}
4267
- ${o ? `<button class="ds-btn ${v} ${h}" data-modal-confirm>${l}</button>` : ""}
4248
+ ${a ? `<button class="ds-btn ${v} ${h}" data-modal-cancel>${c}</button>` : ""}
4249
+ ${o ? `<button class="ds-btn ${v} ${d}" data-modal-confirm>${l}</button>` : ""}
4268
4250
  </div>`)), C.innerHTML = `
4269
4251
  <div class="ds-modal-mask">
4270
4252
  <div class="ds-modal${r ? " ds-modal--fullscreen" : ""}" style="${r ? "" : "max-width: " + n}">
@@ -4286,8 +4268,8 @@ function oe(i = {}) {
4286
4268
  const z = C.querySelector(".ds-modal__body");
4287
4269
  z && (s ? z.innerHTML = e : z.textContent = e);
4288
4270
  const D = C.querySelector("[data-modal-confirm]"), q = C.querySelector("[data-modal-cancel]");
4289
- let gt = !1;
4290
- const _t = async () => {
4271
+ let mt = !1;
4272
+ const gt = async () => {
4291
4273
  if (p) {
4292
4274
  D.disabled = !0, D.classList.add("is-loading");
4293
4275
  try {
@@ -4300,35 +4282,35 @@ function oe(i = {}) {
4300
4282
  return;
4301
4283
  }
4302
4284
  }
4303
- gt = !0, k.close();
4304
- }, yt = () => {
4285
+ mt = !0, k.close();
4286
+ }, _t = () => {
4305
4287
  m && m(), k.close();
4306
4288
  };
4307
- D && D.addEventListener("click", _t), q && q.addEventListener("click", yt);
4308
- const De = () => {
4289
+ D && D.addEventListener("click", gt), q && q.addEventListener("click", _t);
4290
+ const He = () => {
4309
4291
  setTimeout(() => {
4310
- D && D.removeEventListener("click", _t), q && q.removeEventListener("click", yt), k.destroy(), C.remove(), _ && _(gt);
4292
+ D && D.removeEventListener("click", gt), q && q.removeEventListener("click", _t), k.destroy(), C.remove(), _ && _(mt);
4311
4293
  }, 300);
4312
- }, He = k.close.bind(k);
4294
+ }, Me = k.close.bind(k);
4313
4295
  return k.close = () => {
4314
- He(), De();
4296
+ Me(), He();
4315
4297
  }, k.open(), y && setTimeout(() => y(), 50), k;
4316
4298
  }
4317
- function Mo(i) {
4318
- return typeof i == "string" && (i = { content: i }), oe({
4299
+ function To(i) {
4300
+ return typeof i == "string" && (i = { content: i }), le({
4319
4301
  ...i,
4320
4302
  showCancel: !0,
4321
4303
  showConfirm: !0
4322
4304
  });
4323
4305
  }
4324
4306
  function Io(i) {
4325
- return typeof i == "string" && (i = { content: i }), oe({
4307
+ return typeof i == "string" && (i = { content: i }), le({
4326
4308
  ...i,
4327
4309
  showCancel: !1,
4328
4310
  showConfirm: !0
4329
4311
  });
4330
4312
  }
4331
- function le(i) {
4313
+ function ce(i) {
4332
4314
  if (i.__kupolaInitialized)
4333
4315
  return;
4334
4316
  const t = new $(i);
@@ -4339,13 +4321,13 @@ function Nr(i) {
4339
4321
  return;
4340
4322
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4341
4323
  }
4342
- function To() {
4324
+ function Ao() {
4343
4325
  document.querySelectorAll(".ds-modal-container").forEach((i) => {
4344
- le(i);
4326
+ ce(i);
4345
4327
  });
4346
4328
  }
4347
- E.register("modal", le, Nr);
4348
- class Ao {
4329
+ E.register("modal", ce, Nr);
4330
+ class zo {
4349
4331
  static normal(t = {}) {
4350
4332
  return this._create({ type: "normal", ...t });
4351
4333
  }
@@ -4396,7 +4378,7 @@ class Ao {
4396
4378
  </div>
4397
4379
  </div>
4398
4380
  `, document.body.appendChild(l), s && (l.querySelector(".ds-dialog__title").textContent = s), l.querySelector(".ds-dialog__content").textContent = n;
4399
- const c = l.querySelector(".ds-modal-mask"), h = l.querySelector("[data-dialog-confirm]"), d = l.querySelector("[data-dialog-cancel]"), u = function(_) {
4381
+ const c = l.querySelector(".ds-modal-mask"), d = l.querySelector("[data-dialog-confirm]"), h = l.querySelector("[data-dialog-cancel]"), u = function(_) {
4400
4382
  _.key === "Escape" && (a && a(), y());
4401
4383
  }, f = function(_) {
4402
4384
  _.target === c && (a && a(), y());
@@ -4405,12 +4387,12 @@ class Ao {
4405
4387
  }, m = function() {
4406
4388
  a && a(), y();
4407
4389
  }, y = () => {
4408
- c.classList.remove("is-visible"), document.body.style.overflow = "", document.removeEventListener("keydown", u), c.removeEventListener("click", f), h && h.removeEventListener("click", p), d && d.removeEventListener("click", m), setTimeout(() => l.remove(), 300);
4390
+ c.classList.remove("is-visible"), document.body.style.overflow = "", document.removeEventListener("keydown", u), c.removeEventListener("click", f), d && d.removeEventListener("click", p), h && h.removeEventListener("click", m), setTimeout(() => l.remove(), 300);
4409
4391
  };
4410
- return c.classList.add("is-visible"), document.body.style.overflow = "hidden", h && h.addEventListener("click", p), d && d.addEventListener("click", m), c.addEventListener("click", f), document.addEventListener("keydown", u), { close: y };
4392
+ return c.classList.add("is-visible"), document.body.style.overflow = "hidden", d && d.addEventListener("click", p), h && h.addEventListener("click", m), c.addEventListener("click", f), document.addEventListener("keydown", u), { close: y };
4411
4393
  }
4412
4394
  }
4413
- const zo = {
4395
+ const Po = {
4414
4396
  normal: function(i) {
4415
4397
  this.show({ ...i, type: "normal" });
4416
4398
  },
@@ -4449,8 +4431,8 @@ const zo = {
4449
4431
  let c = document.querySelector(".ds-notification");
4450
4432
  if (!c) {
4451
4433
  c = document.createElement("div"), c.className = `ds-notification ds-notification--${a}`;
4452
- const h = W().notification;
4453
- c.style.zIndex = h, c.style.transform = "translateZ(0)", document.body.appendChild(c);
4434
+ const d = W().notification;
4435
+ c.style.zIndex = d, c.style.transform = "translateZ(0)", document.body.appendChild(c);
4454
4436
  }
4455
4437
  c.appendChild(o), setTimeout(() => {
4456
4438
  o.classList.add("is-visible");
@@ -4461,9 +4443,9 @@ const zo = {
4461
4443
  }, r);
4462
4444
  }
4463
4445
  };
4464
- function Po() {
4446
+ function $o() {
4465
4447
  }
4466
- const $o = {
4448
+ const Bo = {
4467
4449
  normal: function(i, t = {}) {
4468
4450
  this.show(i, "normal", t);
4469
4451
  },
@@ -4496,13 +4478,13 @@ const $o = {
4496
4478
  let c = document.querySelector(".ds-message");
4497
4479
  if (!c) {
4498
4480
  c = document.createElement("div"), c.className = `ds-message ds-message--${r}`;
4499
- const d = W().message;
4500
- c.style.zIndex = d, c.style.transform = "translateZ(0)", document.body.appendChild(c);
4481
+ const h = W().message;
4482
+ c.style.zIndex = h, c.style.transform = "translateZ(0)", document.body.appendChild(c);
4501
4483
  }
4502
- const h = c.querySelectorAll(".ds-message__item");
4503
- if (h.length >= a) {
4504
- const d = h[0];
4505
- d.classList.remove("is-visible"), d.classList.add("is-exiting"), setTimeout(() => d.remove(), 300);
4484
+ const d = c.querySelectorAll(".ds-message__item");
4485
+ if (d.length >= a) {
4486
+ const h = d[0];
4487
+ h.classList.remove("is-visible"), h.classList.add("is-exiting"), setTimeout(() => h.remove(), 300);
4506
4488
  }
4507
4489
  c.appendChild(o), setTimeout(() => {
4508
4490
  o.classList.add("is-visible");
@@ -4511,7 +4493,7 @@ const $o = {
4511
4493
  }, n);
4512
4494
  }
4513
4495
  };
4514
- function Bo() {
4496
+ function qo() {
4515
4497
  }
4516
4498
  function Ct(i) {
4517
4499
  return i ? i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;") : "";
@@ -4674,7 +4656,7 @@ class Rr {
4674
4656
  }), this._listeners = null, this.files = [], this.dropzone = null, this.input = null, this.list = null, this.progress = null, this.preview = null, this.element = null;
4675
4657
  }
4676
4658
  }
4677
- function ce(i) {
4659
+ function he(i) {
4678
4660
  if (i.__kupolaInitialized) return;
4679
4661
  const t = new Rr(i);
4680
4662
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
@@ -4683,12 +4665,12 @@ function Vr(i) {
4683
4665
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4684
4666
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4685
4667
  }
4686
- function qo() {
4668
+ function Oo() {
4687
4669
  document.querySelectorAll(".ds-fileupload").forEach((i) => {
4688
- ce(i);
4670
+ he(i);
4689
4671
  });
4690
4672
  }
4691
- E.register("fileupload", ce, Vr);
4673
+ E.register("fileupload", he, Vr);
4692
4674
  class Kr {
4693
4675
  constructor(t, e = {}) {
4694
4676
  this.element = t, this.headers = [], this._listeners = [], this.accordion = e.accordion || t.hasAttribute("data-collapse-accordion"), this.animationDuration = e.animationDuration || parseInt(t.getAttribute("data-collapse-duration")) || 300, this.disabledItems = e.disabledItems || [], this.defaultExpanded = e.defaultExpanded || [], this._init();
@@ -4706,8 +4688,8 @@ class Kr {
4706
4688
  const l = () => {
4707
4689
  if (a) return;
4708
4690
  const c = n.classList.contains("is-active");
4709
- this.accordion && !c && this.headers.forEach((h, d) => {
4710
- d !== s && h.item.classList.contains("is-active") && this._collapseItem(h);
4691
+ this.accordion && !c && this.headers.forEach((d, h) => {
4692
+ h !== s && d.item.classList.contains("is-active") && this._collapseItem(d);
4711
4693
  }), c ? this._collapseItem({ item: n, content: r }) : this._expandItem({ item: n, content: r }), this.element.dispatchEvent(new CustomEvent("kupola:collapse-toggle", {
4712
4694
  detail: { index: s, expanded: !c, item: n },
4713
4695
  bubbles: !0
@@ -4771,7 +4753,7 @@ class Kr {
4771
4753
  this.headers[t] && (this.headers[t].isDisabled = !1, this.headers[t].item.classList.remove("is-disabled"));
4772
4754
  }
4773
4755
  }
4774
- function he(i, t) {
4756
+ function de(i, t) {
4775
4757
  if (i.__kupolaInitialized) return;
4776
4758
  const e = new Kr(i, t);
4777
4759
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -4780,12 +4762,12 @@ function Wr(i) {
4780
4762
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4781
4763
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4782
4764
  }
4783
- function Oo() {
4765
+ function Fo() {
4784
4766
  document.querySelectorAll(".ds-collapse").forEach((i) => {
4785
- he(i);
4767
+ de(i);
4786
4768
  });
4787
4769
  }
4788
- E.register("collapse", he, Wr);
4770
+ E.register("collapse", de, Wr);
4789
4771
  class Ur {
4790
4772
  constructor(t, e = {}) {
4791
4773
  this.element = t, this.trigger = t.querySelector(".ds-color-picker__trigger"), this.panel = t.querySelector(".ds-color-picker__panel"), this.valueSpan = t.querySelector(".ds-color-picker__value"), this.customInput = t.querySelector(".ds-color-picker__input"), this.scope = `colorpicker-${Math.random().toString(36).substr(2, 9)}`, this.options = e, this.value = e.value || "#007bff", this.showAlpha = e.showAlpha !== !1, this.mode = e.mode || "hex", this.previousColors = e.previousColors || this._getStoredColors(), this.previousColorsLimit = e.previousColorsLimit || 12, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.hue = 210, this.saturation = 100, this.brightness = 50, this.alpha = 100, this._colorStringToHSB(this.value);
@@ -4810,9 +4792,9 @@ class Ur {
4810
4792
  }
4811
4793
  _colorStringToHSB(t) {
4812
4794
  const e = t.replace(/^#/, ""), s = parseInt(e.substring(0, 2), 16) / 255, n = parseInt(e.substring(2, 4), 16) / 255, r = parseInt(e.substring(4, 6), 16) / 255, a = e.length === 8 ? parseInt(e.substring(6, 8), 16) / 255 : 1, o = Math.max(s, n, r), l = Math.min(s, n, r);
4813
- let c = 0, h = 0, d = o;
4795
+ let c = 0, d = 0, h = o;
4814
4796
  const u = o - l;
4815
- if (h = o === 0 ? 0 : u / o, o !== l)
4797
+ if (d = o === 0 ? 0 : u / o, o !== l)
4816
4798
  switch (o) {
4817
4799
  case s:
4818
4800
  c = ((n - r) / u + (n < r ? 6 : 0)) / 6;
@@ -4824,17 +4806,17 @@ class Ur {
4824
4806
  c = ((s - n) / u + 4) / 6;
4825
4807
  break;
4826
4808
  }
4827
- this.hue = Math.round(c * 360), this.saturation = Math.round(h * 100), this.brightness = Math.round(d * 100), this.alpha = Math.round(a * 100);
4809
+ this.hue = Math.round(c * 360), this.saturation = Math.round(d * 100), this.brightness = Math.round(h * 100), this.alpha = Math.round(a * 100);
4828
4810
  }
4829
4811
  _HSBToColorString(t, e, s, n = 1) {
4830
4812
  e /= 100, s /= 100, n /= 100;
4831
- const r = (d) => (d + t / 60) % 6, a = (d) => s * (1 - e * Math.max(0, Math.min(r(d), 4 - r(d), 1))), o = Math.round(a(5) * 255), l = Math.round(a(3) * 255), c = Math.round(a(1) * 255);
4813
+ const r = (h) => (h + t / 60) % 6, a = (h) => s * (1 - e * Math.max(0, Math.min(r(h), 4 - r(h), 1))), o = Math.round(a(5) * 255), l = Math.round(a(3) * 255), c = Math.round(a(1) * 255);
4832
4814
  if (this.mode === "rgb")
4833
4815
  return n < 1 ? `rgba(${o}, ${l}, ${c}, ${n.toFixed(2)})` : `rgb(${o}, ${l}, ${c})`;
4834
4816
  if (this.mode === "hsl")
4835
4817
  return n < 1 ? `hsla(${t}, ${Math.round(e * 100)}%, ${Math.round(s * 100)}%, ${n.toFixed(2)})` : `hsl(${t}, ${Math.round(e * 100)}%, ${Math.round(s * 100)}%)`;
4836
- const h = `#${o.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}`;
4837
- return n < 1 ? h + Math.round(n * 255).toString(16).padStart(2, "0") : h;
4818
+ const d = `#${o.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}`;
4819
+ return n < 1 ? d + Math.round(n * 255).toString(16).padStart(2, "0") : d;
4838
4820
  }
4839
4821
  _renderPreviousColors() {
4840
4822
  const t = this.panel.querySelector(".ds-color-picker__previous");
@@ -4951,19 +4933,19 @@ class Ur {
4951
4933
  }), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.element.__kupolaInitialized = !1;
4952
4934
  }
4953
4935
  }
4954
- function de(i, t) {
4936
+ function ue(i, t) {
4955
4937
  const e = new Ur(i, t);
4956
4938
  e.init(), i._kupolaColorPicker = e;
4957
4939
  }
4958
- function Fo(i = document) {
4940
+ function No(i = document) {
4959
4941
  i.querySelectorAll(".ds-color-picker").forEach((t) => {
4960
- de(t);
4942
+ ue(t);
4961
4943
  });
4962
4944
  }
4963
4945
  function Yr(i) {
4964
4946
  i._kupolaColorPicker && (i._kupolaColorPicker.destroy(), i._kupolaColorPicker = null);
4965
4947
  }
4966
- E.register("color-picker", de, Yr);
4948
+ E.register("color-picker", ue, Yr);
4967
4949
  class Xr {
4968
4950
  constructor(t, e = {}) {
4969
4951
  if (this.element = t, this.titleEl = t.querySelector(".ds-calendar__title"), this.daysEl = t.querySelector(".ds-calendar__days"), this.prevBtn = t.querySelector(".ds-calendar__nav--prev"), this.nextBtn = t.querySelector(".ds-calendar__nav--next"), this.todayBtn = t.querySelector(".ds-calendar__nav--today"), this._listeners = [], !this.titleEl || !this.daysEl)
@@ -5044,22 +5026,22 @@ class Xr {
5044
5026
  for (let o = 1; o <= n; o++) {
5045
5027
  const l = new Date(t, e, o), c = document.createElement("button");
5046
5028
  c.className = "ds-calendar__day", c.textContent = o;
5047
- const h = this._formatDate(l);
5048
- h === a && c.classList.add("is-today"), this._isSameDay(l, this.selectedDate) && c.classList.add("is-selected"), this.isRangeMode && (this._isRangeStart(l) && c.classList.add("is-range-start"), this._isRangeEnd(l) && c.classList.add("is-range-end"), this._isDateInRange(l) && c.classList.add("is-in-range"));
5049
- const d = this._getEventsForDate(l);
5050
- if (d.length > 0) {
5029
+ const d = this._formatDate(l);
5030
+ d === a && c.classList.add("is-today"), this._isSameDay(l, this.selectedDate) && c.classList.add("is-selected"), this.isRangeMode && (this._isRangeStart(l) && c.classList.add("is-range-start"), this._isRangeEnd(l) && c.classList.add("is-range-end"), this._isDateInRange(l) && c.classList.add("is-in-range"));
5031
+ const h = this._getEventsForDate(l);
5032
+ if (h.length > 0) {
5051
5033
  c.classList.add("has-events");
5052
5034
  const f = document.createElement("span");
5053
- f.className = "ds-calendar__day-event", f.style.backgroundColor = d[0].color || "#007bff", c.appendChild(f);
5035
+ f.className = "ds-calendar__day-event", f.style.backgroundColor = h[0].color || "#007bff", c.appendChild(f);
5054
5036
  }
5055
5037
  const u = () => {
5056
5038
  this.element.querySelectorAll(".ds-calendar__day").forEach((f) => f.classList.remove("is-selected")), c.classList.add("is-selected"), this.isRangeMode ? !this.rangeStart || this.rangeEnd && !this._isSameDay(l, this.rangeEnd) ? (this.rangeStart = l, this.rangeEnd = null) : this.rangeStart && !this.rangeEnd && (l < this.rangeStart ? (this.rangeEnd = this.rangeStart, this.rangeStart = l) : this.rangeEnd = l, this.onRangeSelect && this.onRangeSelect({ start: this.rangeStart, end: this.rangeEnd }), this.element.dispatchEvent(new CustomEvent("kupola:calendar-range-select", {
5057
5039
  detail: { start: this.rangeStart, end: this.rangeEnd },
5058
5040
  bubbles: !0
5059
- }))) : (this.selectedDate = l, this.onSelect && this.onSelect({ date: l, dateStr: h }), this.element.dispatchEvent(new CustomEvent("kupola:calendar-select", {
5060
- detail: { date: l, dateStr: h },
5041
+ }))) : (this.selectedDate = l, this.onSelect && this.onSelect({ date: l, dateStr: d }), this.element.dispatchEvent(new CustomEvent("kupola:calendar-select", {
5042
+ detail: { date: l, dateStr: d },
5061
5043
  bubbles: !0
5062
- }))), d.forEach((f) => {
5044
+ }))), h.forEach((f) => {
5063
5045
  this.onEventClick && this.onEventClick(f, l);
5064
5046
  }), this.render();
5065
5047
  };
@@ -5071,31 +5053,31 @@ class Xr {
5071
5053
  a.setDate(n.getDate() + 6), this.titleEl.textContent = `${this.i18n.shortMonths[r.getMonth()]} ${r.getDate()} - ${this.i18n.shortMonths[a.getMonth()]} ${a.getDate()} ${t}`, this.daysEl.innerHTML = "";
5072
5054
  const o = /* @__PURE__ */ new Date(), l = this._formatDate(o);
5073
5055
  for (let c = 0; c < 7; c++) {
5074
- const h = new Date(n);
5075
- h.setDate(n.getDate() + c);
5076
- const d = document.createElement("button");
5077
- d.className = "ds-calendar__day ds-calendar__day--week";
5056
+ const d = new Date(n);
5057
+ d.setDate(n.getDate() + c);
5058
+ const h = document.createElement("button");
5059
+ h.className = "ds-calendar__day ds-calendar__day--week";
5078
5060
  const u = document.createElement("span");
5079
- u.className = "ds-calendar__day-header", u.textContent = this.i18n.shortWeekdays[h.getDay()], d.appendChild(u);
5061
+ u.className = "ds-calendar__day-header", u.textContent = this.i18n.shortWeekdays[d.getDay()], h.appendChild(u);
5080
5062
  const f = document.createElement("span");
5081
- f.className = "ds-calendar__day-number", f.textContent = h.getDate(), d.appendChild(f);
5082
- const p = this._formatDate(h);
5083
- p === l && d.classList.add("is-today"), this._isSameDay(h, this.selectedDate) && d.classList.add("is-selected");
5084
- const m = this._getEventsForDate(h);
5063
+ f.className = "ds-calendar__day-number", f.textContent = d.getDate(), h.appendChild(f);
5064
+ const p = this._formatDate(d);
5065
+ p === l && h.classList.add("is-today"), this._isSameDay(d, this.selectedDate) && h.classList.add("is-selected");
5066
+ const m = this._getEventsForDate(d);
5085
5067
  if (m.length > 0) {
5086
5068
  const _ = document.createElement("span");
5087
5069
  _.className = "ds-calendar__day-events", m.slice(0, 3).forEach((b) => {
5088
5070
  const x = document.createElement("span");
5089
5071
  x.className = "ds-calendar__day-event", x.style.backgroundColor = b.color || "#007bff", _.appendChild(x);
5090
- }), d.appendChild(_);
5072
+ }), h.appendChild(_);
5091
5073
  }
5092
5074
  const y = () => {
5093
- this.element.querySelectorAll(".ds-calendar__day").forEach((_) => _.classList.remove("is-selected")), d.classList.add("is-selected"), this.selectedDate = h, this.onSelect && this.onSelect({ date: h, dateStr: p }), this.element.dispatchEvent(new CustomEvent("kupola:calendar-select", {
5094
- detail: { date: h, dateStr: p },
5075
+ this.element.querySelectorAll(".ds-calendar__day").forEach((_) => _.classList.remove("is-selected")), h.classList.add("is-selected"), this.selectedDate = d, this.onSelect && this.onSelect({ date: d, dateStr: p }), this.element.dispatchEvent(new CustomEvent("kupola:calendar-select", {
5076
+ detail: { date: d, dateStr: p },
5095
5077
  bubbles: !0
5096
5078
  })), this.render();
5097
5079
  };
5098
- d.addEventListener("click", y), this._listeners.push({ el: d, event: "click", handler: y }), this.daysEl.appendChild(d);
5080
+ h.addEventListener("click", y), this._listeners.push({ el: h, event: "click", handler: y }), this.daysEl.appendChild(h);
5099
5081
  }
5100
5082
  }
5101
5083
  destroy() {
@@ -5161,7 +5143,7 @@ class Xr {
5161
5143
  this.isRangeMode = !this.isRangeMode, this.rangeStart = null, this.rangeEnd = null, this.render(), this._emitChange();
5162
5144
  }
5163
5145
  }
5164
- function ue(i, t) {
5146
+ function pe(i, t) {
5165
5147
  if (!i.__kupolaInitialized)
5166
5148
  try {
5167
5149
  const e = new Xr(i, t);
@@ -5174,12 +5156,12 @@ function jr(i) {
5174
5156
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5175
5157
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5176
5158
  }
5177
- function No() {
5159
+ function Ro() {
5178
5160
  document.querySelectorAll(".ds-calendar").forEach((i) => {
5179
- ue(i);
5161
+ pe(i);
5180
5162
  });
5181
5163
  }
5182
- E.register("calendar", ue, jr);
5164
+ E.register("calendar", pe, jr);
5183
5165
  class Jr {
5184
5166
  constructor(t, e = {}) {
5185
5167
  this.element = t, this.input = t.querySelector(".ds-dynamic-tags__input"), this._listeners = [], this.maxCount = e.maxCount || parseInt(t.getAttribute("data-dynamic-tags-max")) || 1 / 0, this.allowDuplicates = e.allowDuplicates !== !1, this.color = e.color || t.getAttribute("data-dynamic-tags-color") || "default", this.init();
@@ -5326,7 +5308,7 @@ class Jr {
5326
5308
  }), this._listeners = null, this.input = null, this.element = null;
5327
5309
  }
5328
5310
  }
5329
- function pe(i, t) {
5311
+ function fe(i, t) {
5330
5312
  if (i.__kupolaInitialized) return;
5331
5313
  const e = new Jr(i, t);
5332
5314
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -5335,13 +5317,13 @@ function Zr(i) {
5335
5317
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5336
5318
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5337
5319
  }
5338
- function Ro() {
5320
+ function Vo() {
5339
5321
  document.querySelectorAll(".ds-dynamic-tags").forEach((i) => {
5340
- pe(i);
5322
+ fe(i);
5341
5323
  });
5342
5324
  }
5343
- E.register("dynamic-tags", pe, Zr);
5344
- class fe {
5325
+ E.register("dynamic-tags", fe, Zr);
5326
+ class me {
5345
5327
  constructor(t = {}) {
5346
5328
  this.images = t.images || [], this.currentIndex = t.currentIndex || 0, this.overlay = null, this.closeHandler = this.close.bind(this), this.keyHandler = this.handleKeydown.bind(this), this.clickHandler = this.handleOverlayClick.bind(this), this.zoom = 1, this.rotation = 0, this.zoomStep = t.zoomStep || 0.2, this.minZoom = t.minZoom || 0.5, this.maxZoom = t.maxZoom || 3, this.init();
5347
5329
  }
@@ -5533,16 +5515,16 @@ class fe {
5533
5515
  }
5534
5516
  }
5535
5517
  let V = null;
5536
- function Vo() {
5537
- V || (V = new fe()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5518
+ function Ko() {
5519
+ V || (V = new me()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5538
5520
  i.addEventListener("click", () => {
5539
5521
  const t = JSON.parse(i.getAttribute("data-image-preview")), e = parseInt(i.getAttribute("data-image-index")) || 0;
5540
5522
  V.show(t, e);
5541
5523
  });
5542
5524
  });
5543
5525
  }
5544
- function Ko(i, t = 0) {
5545
- V || (V = new fe()), V.show(i, t);
5526
+ function Wo(i, t = 0) {
5527
+ V || (V = new me()), V.show(i, t);
5546
5528
  }
5547
5529
  class Gr {
5548
5530
  constructor(t, e = {}) {
@@ -5674,7 +5656,7 @@ class Gr {
5674
5656
  }), this._listeners = [], this.closeBtn = null, this.checkbox = null, this.editInput = null, this.element = null;
5675
5657
  }
5676
5658
  }
5677
- function me(i, t) {
5659
+ function ge(i, t) {
5678
5660
  if (i.__kupolaInitialized) return;
5679
5661
  const e = new Gr(i, t);
5680
5662
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
@@ -5683,12 +5665,12 @@ function Qr(i) {
5683
5665
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5684
5666
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5685
5667
  }
5686
- function Wo() {
5668
+ function Uo() {
5687
5669
  document.querySelectorAll(".ds-tag").forEach((i) => {
5688
- me(i);
5670
+ ge(i);
5689
5671
  });
5690
5672
  }
5691
- E.register("tag", me, Qr);
5673
+ E.register("tag", ge, Qr);
5692
5674
  class ta {
5693
5675
  constructor(t) {
5694
5676
  this.element = t, this.valueElement = t.querySelector(".ds-statcard__value"), this.progressFill = t.querySelector(".ds-statcard__progress-fill"), this.animated = !1, this._observer = null, this.init();
@@ -5704,8 +5686,8 @@ class ta {
5704
5686
  if (!this.valueElement) return;
5705
5687
  const t = this.valueElement.textContent, e = t.match(/[\d.,]+/);
5706
5688
  if (!e) return;
5707
- const s = parseFloat(e[0].replace(",", "")), n = t.substring(0, e.index), r = t.substring(e.index + e[0].length), a = 1500, o = performance.now(), l = 0, c = (h) => {
5708
- const d = h - o, u = Math.min(d / a, 1), f = 1 - Math.pow(1 - u, 3), p = l + (s - l) * f;
5689
+ const s = parseFloat(e[0].replace(",", "")), n = t.substring(0, e.index), r = t.substring(e.index + e[0].length), a = 1500, o = performance.now(), l = 0, c = (d) => {
5690
+ const h = d - o, u = Math.min(h / a, 1), f = 1 - Math.pow(1 - u, 3), p = l + (s - l) * f;
5709
5691
  let m;
5710
5692
  s >= 1e6 ? m = (p / 1e6).toFixed(1) + "M" : s >= 1e3 ? m = (p / 1e3).toFixed(1) + "K" : Number.isInteger(s) ? m = Math.floor(p).toLocaleString() : m = p.toFixed(2), this.valueElement.textContent = n + m + r, u < 1 && requestAnimationFrame(c);
5711
5693
  };
@@ -5723,18 +5705,18 @@ class ta {
5723
5705
  this.valueElement.textContent = t;
5724
5706
  return;
5725
5707
  }
5726
- const a = n.substring(0, r.index), o = n.substring(r.index + r[0].length), l = parseFloat(r[0].replace(",", "")), c = parseFloat(t), h = performance.now(), d = (u) => {
5727
- const f = u - h, p = Math.min(f / s, 1), m = 1 - Math.pow(1 - p, 3), y = l + (c - l) * m;
5708
+ const a = n.substring(0, r.index), o = n.substring(r.index + r[0].length), l = parseFloat(r[0].replace(",", "")), c = parseFloat(t), d = performance.now(), h = (u) => {
5709
+ const f = u - d, p = Math.min(f / s, 1), m = 1 - Math.pow(1 - p, 3), y = l + (c - l) * m;
5728
5710
  let _;
5729
- c >= 1e6 ? _ = (y / 1e6).toFixed(1) + "M" : c >= 1e3 ? _ = (y / 1e3).toFixed(1) + "K" : Number.isInteger(c) ? _ = Math.floor(y).toLocaleString() : _ = y.toFixed(2), this.valueElement.textContent = a + _ + o, p < 1 && requestAnimationFrame(d);
5711
+ c >= 1e6 ? _ = (y / 1e6).toFixed(1) + "M" : c >= 1e3 ? _ = (y / 1e3).toFixed(1) + "K" : Number.isInteger(c) ? _ = Math.floor(y).toLocaleString() : _ = y.toFixed(2), this.valueElement.textContent = a + _ + o, p < 1 && requestAnimationFrame(h);
5730
5712
  };
5731
- requestAnimationFrame(d);
5713
+ requestAnimationFrame(h);
5732
5714
  }
5733
5715
  updateProgress(t, e = {}) {
5734
5716
  if (!this.progressFill) return;
5735
5717
  const s = e.duration || 600, n = parseFloat(this.progressFill.style.width || "0"), r = Math.min(Math.max(t, 0), 100), a = performance.now(), o = (l) => {
5736
- const c = l - a, h = Math.min(c / s, 1), d = 1 - Math.pow(1 - h, 3), u = n + (r - n) * d;
5737
- this.progressFill.style.width = u + "%", h < 1 && requestAnimationFrame(o);
5718
+ const c = l - a, d = Math.min(c / s, 1), h = 1 - Math.pow(1 - d, 3), u = n + (r - n) * h;
5719
+ this.progressFill.style.width = u + "%", d < 1 && requestAnimationFrame(o);
5738
5720
  };
5739
5721
  requestAnimationFrame(o);
5740
5722
  }
@@ -5749,7 +5731,7 @@ class ta {
5749
5731
  this._observer && (this._observer.disconnect(), this._observer = null), this.animated = !1, this.valueElement = null, this.progressFill = null, this.element = null;
5750
5732
  }
5751
5733
  }
5752
- function ge(i) {
5734
+ function _e(i) {
5753
5735
  if (i.__kupolaInitialized) return;
5754
5736
  const t = new ta(i);
5755
5737
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
@@ -5758,12 +5740,12 @@ function ea(i) {
5758
5740
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5759
5741
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5760
5742
  }
5761
- function Uo() {
5743
+ function Yo() {
5762
5744
  document.querySelectorAll(".ds-statcard").forEach((i) => {
5763
- ge(i);
5745
+ _e(i);
5764
5746
  });
5765
5747
  }
5766
- E.register("statcard", ge, ea);
5748
+ E.register("statcard", _e, ea);
5767
5749
  class sa {
5768
5750
  constructor(t, e = {}) {
5769
5751
  this.element = t, this.data = e.data || [], this.startDate = e.startDate || this.getOneYearAgo(), this.endDate = e.endDate || /* @__PURE__ */ new Date(), this.cellSize = e.cellSize || 14, this.onCellClick = e.onCellClick || null, this.tooltip = null, this.baseColor = e.color || t.getAttribute("data-color") || "#22c55e", this._listeners = [], this.init();
@@ -5835,15 +5817,15 @@ class sa {
5835
5817
  s.push(new Date(_)), (_.getDay() === 6 || _.getTime() === this.endDate.getTime()) && (e.push(s), s = []);
5836
5818
  const a = e.length, o = this.element.classList.contains("ds-heatmap--compact") ? 12 : 16, l = a * o, c = document.createElement("div");
5837
5819
  c.className = "ds-heatmap__container";
5838
- const h = document.createElement("div");
5839
- h.className = "ds-heatmap__labels-and-grid";
5840
5820
  const d = document.createElement("div");
5841
- d.className = "ds-heatmap__weekday-labels";
5821
+ d.className = "ds-heatmap__labels-and-grid";
5822
+ const h = document.createElement("div");
5823
+ h.className = "ds-heatmap__weekday-labels";
5842
5824
  const u = this.element.classList.contains("ds-heatmap--compact") ? 12 : 16;
5843
5825
  this.getWeekdayLabels().forEach((_) => {
5844
5826
  const b = document.createElement("div");
5845
- b.className = "ds-heatmap__weekday-label", b.textContent = _, b.style.height = u + "px", b.style.lineHeight = u + "px", d.appendChild(b);
5846
- }), h.appendChild(d);
5827
+ b.className = "ds-heatmap__weekday-label", b.textContent = _, b.style.height = u + "px", b.style.lineHeight = u + "px", h.appendChild(b);
5828
+ }), d.appendChild(h);
5847
5829
  const f = document.createElement("div");
5848
5830
  f.className = "ds-heatmap__grid-container";
5849
5831
  const p = document.createElement("div");
@@ -5876,7 +5858,7 @@ class sa {
5876
5858
  ), b.appendChild(k);
5877
5859
  }
5878
5860
  }), y.appendChild(b);
5879
- }), f.appendChild(y), h.appendChild(f), c.appendChild(h), t.appendChild(c), this.renderLegend(t);
5861
+ }), f.appendChild(y), d.appendChild(f), c.appendChild(d), t.appendChild(c), this.renderLegend(t);
5880
5862
  }
5881
5863
  renderLegend(t) {
5882
5864
  const e = document.createElement("div");
@@ -5919,7 +5901,7 @@ class sa {
5919
5901
  }), this._listeners = null, this.tooltip && this.tooltip.parentNode && this.tooltip.parentNode.removeChild(this.tooltip), this.tooltip = null, this.data = [], this.element = null;
5920
5902
  }
5921
5903
  }
5922
- function _e(i) {
5904
+ function ye(i) {
5923
5905
  if (i.__kupolaInitialized) return;
5924
5906
  const t = i.getAttribute("data-heatmap-data");
5925
5907
  let e = [];
@@ -5942,9 +5924,9 @@ function ia(i) {
5942
5924
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5943
5925
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5944
5926
  }
5945
- function Yo() {
5927
+ function Xo() {
5946
5928
  document.querySelectorAll(".ds-heatmap").forEach((i) => {
5947
- _e(i);
5929
+ ye(i);
5948
5930
  });
5949
5931
  }
5950
5932
  function St() {
@@ -5959,7 +5941,7 @@ function St() {
5959
5941
  }
5960
5942
  return i;
5961
5943
  }
5962
- E.register("heatmap", _e, ia);
5944
+ E.register("heatmap", ye, ia);
5963
5945
  class na {
5964
5946
  constructor(t, e = {}) {
5965
5947
  this.element = t, this.tooltipEl = null, this.options = e;
@@ -6061,19 +6043,19 @@ class na {
6061
6043
  this.element.__kupolaInitialized && (this._showTimer && (clearTimeout(this._showTimer), this._showTimer = null), this._hideTimer && (clearTimeout(this._hideTimer), this._hideTimer = null), (this.trigger === "hover" || this.trigger === "focus") && (this.element.removeEventListener("mouseenter", this._showTooltip), this.element.removeEventListener("mouseleave", this._hideTooltip)), this.trigger === "click" && this.element.removeEventListener("click", this._clickHandler), (this.trigger === "focus" || this.trigger === "hover") && (this.element.removeEventListener("focus", this._showTooltip), this.element.removeEventListener("blur", this._hideTooltip)), this.mouseFollow && this.element.removeEventListener("mousemove", this._mouseMoveHandler), this.tooltipEl && (this.tooltipEl.remove(), this.tooltipEl = null), this.isVisible = !1, this._showTooltip = null, this._hideTooltip = null, this._clickHandler = null, this._mouseMoveHandler = null, this.element.__kupolaInitialized = !1);
6062
6044
  }
6063
6045
  }
6064
- function ye(i, t) {
6046
+ function ve(i, t) {
6065
6047
  const e = new na(i, t);
6066
6048
  e.init(), i._kupolaTooltip = e;
6067
6049
  }
6068
- function Xo(i = document) {
6050
+ function jo(i = document) {
6069
6051
  i.querySelectorAll("[data-tooltip]").forEach((t) => {
6070
- ye(t);
6052
+ ve(t);
6071
6053
  });
6072
6054
  }
6073
6055
  function ra(i) {
6074
6056
  i._kupolaTooltip && (i._kupolaTooltip.destroy(), i._kupolaTooltip = null);
6075
6057
  }
6076
- E.register("tooltip", ye, ra);
6058
+ E.register("tooltip", ve, ra);
6077
6059
  class aa {
6078
6060
  constructor() {
6079
6061
  this.validators = {
@@ -6102,11 +6084,11 @@ class aa {
6102
6084
  let r = !1;
6103
6085
  return n.forEach((a) => {
6104
6086
  const o = a.name || a.id, l = this.parseRules(a.getAttribute("data-validate")), c = this.getValue(a);
6105
- for (const [h, d] of Object.entries(l))
6106
- if ((this.customValidators[h] || this.validators[h])?.(c, d))
6087
+ for (const [d, h] of Object.entries(l))
6088
+ if ((this.customValidators[d] || this.validators[d])?.(c, h))
6107
6089
  this.clearError(a);
6108
6090
  else {
6109
- s[o] = this.getErrorMessage(h, d, a), this.showError(a, s[o]), r = !0;
6091
+ s[o] = this.getErrorMessage(d, h, a), this.showError(a, s[o]), r = !0;
6110
6092
  break;
6111
6093
  }
6112
6094
  }), this.formStates[e] = {
@@ -6149,8 +6131,8 @@ class aa {
6149
6131
  await this.validateInputAsync(l) || (a = !0);
6150
6132
  const o = {};
6151
6133
  return r.forEach((l) => {
6152
- const c = l.name || l.id, h = l.parentElement.querySelector(".ds-input__error");
6153
- h && (o[c] = h.textContent);
6134
+ const c = l.name || l.id, d = l.parentElement.querySelector(".ds-input__error");
6135
+ d && (o[c] = d.textContent);
6154
6136
  }), this.formStates[s] = {
6155
6137
  valid: !a,
6156
6138
  errors: o,
@@ -6340,9 +6322,9 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
6340
6322
  };
6341
6323
  (s === "blur" || s === "both") && t.addEventListener("blur", n);
6342
6324
  const r = (l, c) => {
6343
- let h;
6344
- return (...d) => {
6345
- clearTimeout(h), h = setTimeout(() => l(...d), c);
6325
+ let d;
6326
+ return (...h) => {
6327
+ clearTimeout(d), d = setTimeout(() => l(...h), c);
6346
6328
  };
6347
6329
  }, a = _r(), o = r(() => {
6348
6330
  if (!e.showErrors)
@@ -6480,9 +6462,9 @@ class oa {
6480
6462
  const c = t ? this.itemWidth : this.itemHeight;
6481
6463
  l = n * c;
6482
6464
  }
6483
- a.forEach((c, h) => {
6484
- const d = n + h, u = c[this.keyField] || d, f = this.selectedKey === u, p = this.getItemSize(d);
6485
- o += this._buildItemHtml(c, d, u, f, p, l, t), l += p;
6465
+ a.forEach((c, d) => {
6466
+ const h = n + d, u = c[this.keyField] || h, f = this.selectedKey === u, p = this.getItemSize(h);
6467
+ o += this._buildItemHtml(c, h, u, f, p, l, t), l += p;
6486
6468
  }), this.container.innerHTML = o, this.useDynamicHeight && this.updateDynamicHeights(), this.container.querySelectorAll(".ds-virtual-list__item").forEach((c) => {
6487
6469
  c.addEventListener("click", () => this.handleItemClick(c));
6488
6470
  });
@@ -6634,7 +6616,7 @@ function ca(i) {
6634
6616
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6635
6617
  }
6636
6618
  E.register("virtual-list", la, ca);
6637
- const ha = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', ve = {
6619
+ const ha = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', be = {
6638
6620
  globe: '<circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 0 20"/><path d="M12 2a15.3 15.3 0 0 0 0 20"/>',
6639
6621
  dashboard: '<rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/>',
6640
6622
  mouse: '<rect x="6" y="2" width="12" height="20" rx="6"/><line x1="12" y1="6" x2="12" y2="11"/>',
@@ -6744,18 +6726,18 @@ const ha = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0
6744
6726
  code: '<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>',
6745
6727
  apple: '<path fill="currentColor" stroke="none" d="M17.05 12.04c-.03-3.04 2.49-4.5 2.6-4.57-1.42-2.07-3.62-2.36-4.4-2.39-1.87-.19-3.65 1.1-4.6 1.1-.96 0-2.42-1.08-3.98-1.05-2.05.03-3.94 1.19-4.99 3.02-2.13 3.69-.54 9.13 1.53 12.12 1.01 1.46 2.21 3.1 3.78 3.04 1.52-.06 2.09-.98 3.93-.98 1.83 0 2.36.98 3.97.95 1.64-.03 2.68-1.49 3.68-2.96 1.16-1.7 1.64-3.35 1.66-3.43-.04-.02-3.18-1.22-3.21-4.85zM14.06 4.34c.83-1.01 1.39-2.41 1.24-3.81-1.2.05-2.65.8-3.51 1.8-.77.89-1.45 2.31-1.27 3.68 1.34.1 2.71-.68 3.54-1.67z"/>'
6746
6728
  };
6747
- function be(i, t = 16, e = "0 0 24 24") {
6748
- const s = ve[i];
6729
+ function xe(i, t = 16, e = "0 0 24 24") {
6730
+ const s = be[i];
6749
6731
  return s ? `<svg ${ha.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
6750
6732
  }
6751
- function dt(i = document) {
6733
+ function ht(i = document) {
6752
6734
  i.querySelectorAll("[data-icon]").forEach((t) => {
6753
6735
  const e = t.getAttribute("data-icon"), s = +t.getAttribute("data-size") || 16, n = t.getAttribute("data-viewbox") || "0 0 24 24";
6754
- t.innerHTML = be(e, s, n), t.classList.add("icon");
6736
+ t.innerHTML = xe(e, s, n), t.classList.add("icon");
6755
6737
  });
6756
6738
  }
6757
- const jo = { svg: be, render: dt, PATHS: ve };
6758
- typeof document < "u" && (document.readyState !== "loading" ? dt() : document.addEventListener("DOMContentLoaded", () => dt()));
6739
+ const Jo = { svg: xe, render: ht, PATHS: be };
6740
+ typeof document < "u" && (document.readyState !== "loading" ? ht() : document.addEventListener("DOMContentLoaded", () => ht()));
6759
6741
  class da {
6760
6742
  constructor(t) {
6761
6743
  this.element = t, this.hoursEl = t.querySelector(".ds-countdown__item--hours .ds-countdown__value"), this.minutesEl = t.querySelector(".ds-countdown__item--minutes .ds-countdown__value"), this.secondsEl = t.querySelector(".ds-countdown__item--seconds .ds-countdown__value"), this.endTime = this.parseEndTime(), this.interval = null, this.init();
@@ -6808,7 +6790,7 @@ class da {
6808
6790
  this.stop(), this.hoursEl = null, this.minutesEl = null, this.secondsEl = null, this.element = null;
6809
6791
  }
6810
6792
  }
6811
- function xe(i) {
6793
+ function Ee(i) {
6812
6794
  if (i.__kupolaInitialized) return;
6813
6795
  const t = new da(i);
6814
6796
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
@@ -6817,12 +6799,12 @@ function ua(i) {
6817
6799
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6818
6800
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6819
6801
  }
6820
- function Jo() {
6802
+ function Zo() {
6821
6803
  document.querySelectorAll(".ds-countdown").forEach((t) => {
6822
- xe(t);
6804
+ Ee(t);
6823
6805
  });
6824
6806
  }
6825
- E.register("countdown", xe, ua);
6807
+ E.register("countdown", Ee, ua);
6826
6808
  class pa {
6827
6809
  constructor(t) {
6828
6810
  if (this.element = t, this.minusBtn = t.querySelector(".ds-number-input__btn--decrease"), this.plusBtn = t.querySelector(".ds-number-input__btn--increase"), this.inputEl = t.querySelector(".ds-number-input__input"), this._listeners = [], !this.minusBtn || !this.plusBtn || !this.inputEl)
@@ -6874,7 +6856,7 @@ class pa {
6874
6856
  }), this._listeners = null, this.minusBtn = null, this.plusBtn = null, this.inputEl = null, this.element = null;
6875
6857
  }
6876
6858
  }
6877
- function Ee(i) {
6859
+ function we(i) {
6878
6860
  if (!i.__kupolaInitialized)
6879
6861
  try {
6880
6862
  const t = new pa(i);
@@ -6887,12 +6869,12 @@ function fa(i) {
6887
6869
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6888
6870
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6889
6871
  }
6890
- function Zo() {
6872
+ function Go() {
6891
6873
  document.querySelectorAll(".ds-number-input").forEach((i) => {
6892
- Ee(i);
6874
+ we(i);
6893
6875
  });
6894
6876
  }
6895
- E.register("number-input", Ee, fa);
6877
+ E.register("number-input", we, fa);
6896
6878
  class ma {
6897
6879
  constructor(t) {
6898
6880
  this.container = t, this.track = t.querySelector(".ds-slider-captcha__track"), this.btn = t.querySelector(".ds-slider-captcha__btn"), this.text = t.querySelector(".ds-slider-captcha__text"), this.progress = t.querySelector(".ds-slider-captcha__progress"), this.statusEl = t.querySelector(".ds-slider-captcha__status"), this.refreshBtn = t.querySelector(".ds-slider-captcha__refresh"), this.footerRefreshBtn = t.querySelector(".ds-slider-captcha__footer-refresh"), this.config = {
@@ -6953,11 +6935,11 @@ class ma {
6953
6935
  const n = Date.now() - this.startTime;
6954
6936
  let r = 0, a = 0;
6955
6937
  if (this.trackData.length > 0) {
6956
- const l = this.trackData[this.trackData.length - 1], c = this.currentX - l.x, h = n - l.t;
6957
- if (h > 0 && (r = c / h, this.trackData.length > 1)) {
6958
- const d = this.trackData[this.trackData.length - 2], u = l.t - d.t;
6938
+ const l = this.trackData[this.trackData.length - 1], c = this.currentX - l.x, d = n - l.t;
6939
+ if (d > 0 && (r = c / d, this.trackData.length > 1)) {
6940
+ const h = this.trackData[this.trackData.length - 2], u = l.t - h.t;
6959
6941
  if (u > 0) {
6960
- const f = (l.x - d.x) / u;
6942
+ const f = (l.x - h.x) / u;
6961
6943
  a = r - f;
6962
6944
  }
6963
6945
  }
@@ -6981,9 +6963,9 @@ class ma {
6981
6963
  if (s > this.config.tolerance)
6982
6964
  return { passed: !1, msg: "验证失败" };
6983
6965
  const n = [];
6984
- for (let h = 1; h < this.trackData.length; h++) {
6985
- const d = this.trackData[h].x - this.trackData[h - 1].x, u = this.trackData[h].t - this.trackData[h - 1].t;
6986
- u > 0 && u < 500 && n.push(d / u);
6966
+ for (let d = 1; d < this.trackData.length; d++) {
6967
+ const h = this.trackData[d].x - this.trackData[d - 1].x, u = this.trackData[d].t - this.trackData[d - 1].t;
6968
+ u > 0 && u < 500 && n.push(h / u);
6987
6969
  }
6988
6970
  if (n.length < 3)
6989
6971
  return { passed: !1, msg: "验证失败" };
@@ -6991,8 +6973,8 @@ class ma {
6991
6973
  if (r - a < this.config.minSpeedDelta)
6992
6974
  return { passed: !1, msg: "验证失败" };
6993
6975
  let o = !1;
6994
- for (const h of this.trackData)
6995
- if (Math.abs(h.y) > 2) {
6976
+ for (const d of this.trackData)
6977
+ if (Math.abs(d.y) > 2) {
6996
6978
  o = !0;
6997
6979
  break;
6998
6980
  }
@@ -7004,9 +6986,9 @@ class ma {
7004
6986
  if (l > this.config.maxDuration)
7005
6987
  return { passed: !1, msg: "验证失败" };
7006
6988
  const c = [];
7007
- for (let h = 1; h < n.length; h++)
7008
- c.push(Math.abs(n[h] - n[h - 1]));
7009
- return c.length > 2 && c.reduce((d, u) => d + u, 0) / c.length < 0.05 ? { passed: !1, msg: "验证失败" } : { passed: !0, msg: "验证通过" };
6989
+ for (let d = 1; d < n.length; d++)
6990
+ c.push(Math.abs(n[d] - n[d - 1]));
6991
+ return c.length > 2 && c.reduce((h, u) => h + u, 0) / c.length < 0.05 ? { passed: !1, msg: "验证失败" } : { passed: !0, msg: "验证通过" };
7010
6992
  }
7011
6993
  verifyCaptcha() {
7012
6994
  this.isProcessing || this.isVerified || (this.isProcessing = !0, this.statusEl && (this.statusEl.textContent = "验证中...", this.statusEl.className = "ds-slider-captcha__status is-loading"), this.btn.style.cursor = "wait", this.container.classList.add("is-disabled"), setTimeout(() => {
@@ -7199,10 +7181,10 @@ function ba(i) {
7199
7181
  e._kupolaForm = s;
7200
7182
  }), t.length;
7201
7183
  }
7202
- function Go(i) {
7184
+ function Qo(i) {
7203
7185
  return i._kupolaForm;
7204
7186
  }
7205
- function Qo(i) {
7187
+ function tl(i) {
7206
7188
  const t = i._kupolaForm;
7207
7189
  return t ? t.validate() : !1;
7208
7190
  }
@@ -7246,7 +7228,7 @@ class wa {
7246
7228
  return !this.isFresh;
7247
7229
  }
7248
7230
  }
7249
- class we {
7231
+ class ke {
7250
7232
  constructor() {
7251
7233
  this._store = /* @__PURE__ */ new Map();
7252
7234
  }
@@ -7278,15 +7260,15 @@ class N extends Error {
7278
7260
  }
7279
7261
  }
7280
7262
  let rt = typeof globalThis < "u" && globalThis.fetch ? globalThis.fetch.bind(globalThis) : typeof window < "u" && window.fetch ? window.fetch.bind(window) : null;
7281
- function tl(i) {
7263
+ function el(i) {
7282
7264
  if (!i || typeof i.fetch != "function")
7283
7265
  throw new TypeError("[Kupola] configureHttpClient: client must provide a fetch function");
7284
7266
  rt = i.fetch.bind(i);
7285
7267
  }
7286
- function el() {
7268
+ function sl() {
7287
7269
  return rt;
7288
7270
  }
7289
- function sl() {
7271
+ function il() {
7290
7272
  rt = typeof globalThis < "u" && globalThis.fetch ? globalThis.fetch.bind(globalThis) : typeof window < "u" && window.fetch ? window.fetch.bind(window) : null;
7291
7273
  }
7292
7274
  class U {
@@ -7354,7 +7336,7 @@ class ka extends U {
7354
7336
  }
7355
7337
  async fetch(t) {
7356
7338
  let e = this.config.source;
7357
- const s = pt("http");
7339
+ const s = ut("http");
7358
7340
  s?.baseURL && !e.startsWith("http://") && !e.startsWith("https://") && (e = s.baseURL + e.replace(/^\//, ""));
7359
7341
  for (const u in t)
7360
7342
  e = e.replace(`:${u}`, encodeURIComponent(t[u]));
@@ -7372,13 +7354,13 @@ class ka extends U {
7372
7354
  const o = rt;
7373
7355
  if (!o)
7374
7356
  throw new N("No HTTP client available. Use configureHttpClient() to set one.", "NO_HTTP_CLIENT");
7375
- const l = await o(e, a), c = typeof l.ok == "boolean" ? l.ok : l.status >= 200 && l.status < 300, h = typeof l.status == "number" ? l.status : 0;
7357
+ const l = await o(e, a), c = typeof l.ok == "boolean" ? l.ok : l.status >= 200 && l.status < 300, d = typeof l.status == "number" ? l.status : 0;
7376
7358
  if (!c)
7377
- throw new N(`HTTP ${h}`, "HTTP_ERROR");
7359
+ throw new N(`HTTP ${d}`, "HTTP_ERROR");
7378
7360
  return typeof l.json == "function" ? await l.json() : l.data !== void 0 ? l.data : l;
7379
7361
  }
7380
7362
  }
7381
- class ke extends U {
7363
+ class Ce extends U {
7382
7364
  constructor(t, e) {
7383
7365
  super(t, e), this.storageKey = t.source.replace("localStorage:", ""), this.defaultValue = t.default, this.sync = t.sync !== !1, this.sync && typeof window < "u" && (this._storageHandler = (s) => {
7384
7366
  s.key === this.storageKey && (this.cache.delete(this.cacheKey), this.notify());
@@ -7425,7 +7407,7 @@ class La extends U {
7425
7407
  return this.config.source;
7426
7408
  }
7427
7409
  }
7428
- class Ce extends U {
7410
+ class Se extends U {
7429
7411
  constructor(t, e) {
7430
7412
  super(t, e), this.ws = null, this.reconnect = t.reconnect !== !1, this.reconnectDelay = t.reconnectDelay || 3e3, this._reconnectAttempt = 0, this._maxReconnectDelay = t.maxReconnectDelay || 3e4, this.messageHandler = null, this._connected = !1, this._destroyed = !1;
7431
7413
  }
@@ -7465,12 +7447,12 @@ class Ce extends U {
7465
7447
  this._destroyed = !0, super.destroy(), this.ws && (this.ws.onmessage = null, this.ws.onclose = null, this.ws.close(), this.ws = null);
7466
7448
  }
7467
7449
  }
7468
- function Se(i, t) {
7450
+ function Le(i, t) {
7469
7451
  const e = i.source;
7470
- return typeof e == "function" ? new Sa(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new Ce(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ka(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new ke(i, t) : typeof e == "string" && e.startsWith("route:") ? new Ca(i, t) : new La(i, t);
7452
+ return typeof e == "function" ? new Sa(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new Se(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ka(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new Ce(i, t) : typeof e == "string" && e.startsWith("route:") ? new Ca(i, t) : new La(i, t);
7471
7453
  }
7472
- function il(i, t) {
7473
- const e = {}, s = new we(), n = [];
7454
+ function nl(i, t) {
7455
+ const e = {}, s = new ke(), n = [];
7474
7456
  for (const r in t) {
7475
7457
  let p = function() {
7476
7458
  return Dt(i);
@@ -7479,20 +7461,20 @@ function il(i, t) {
7479
7461
  const o = {
7480
7462
  ...a,
7481
7463
  cacheKey: a.cacheKey || `${r}-${JSON.stringify(Dt(i))}`
7482
- }, l = Se(o, s), c = T(null), h = T(!0), d = T(null), u = T(null);
7464
+ }, l = Le(o, s), c = I(null), d = I(!0), h = I(null), u = I(null);
7483
7465
  let f = 0;
7484
7466
  async function m() {
7485
7467
  const b = ++f;
7486
- h.value = !0, d.value = null;
7468
+ d.value = !0, h.value = null;
7487
7469
  try {
7488
7470
  const x = await l.getValue(p());
7489
7471
  if (b !== f) return;
7490
7472
  c.value = x, u.value = Date.now();
7491
7473
  } catch (x) {
7492
7474
  if (b !== f) return;
7493
- d.value = x.message || "Unknown error";
7475
+ h.value = x.message || "Unknown error";
7494
7476
  } finally {
7495
- b === f && (h.value = !1);
7477
+ b === f && (d.value = !1);
7496
7478
  }
7497
7479
  }
7498
7480
  m();
@@ -7512,19 +7494,19 @@ function il(i, t) {
7512
7494
  }
7513
7495
  }), e[r] = {
7514
7496
  data: c,
7515
- loading: h,
7516
- error: d,
7497
+ loading: d,
7498
+ error: h,
7517
7499
  lastUpdated: u,
7518
7500
  refresh() {
7519
7501
  return l.invalidate(), m();
7520
7502
  },
7521
7503
  // For StorageSource
7522
7504
  setValue(b) {
7523
- l instanceof ke && (l.setValue(b), c.value = b);
7505
+ l instanceof Ce && (l.setValue(b), c.value = b);
7524
7506
  },
7525
7507
  // For WebSocketSource
7526
7508
  send(b) {
7527
- l instanceof Ce && l.send(b);
7509
+ l instanceof Se && l.send(b);
7528
7510
  },
7529
7511
  _source: l
7530
7512
  };
@@ -7536,8 +7518,8 @@ function il(i, t) {
7536
7518
  }
7537
7519
  }, window.__kupolaDepInstances || (window.__kupolaDepInstances = []), window.__kupolaDepInstances.push(e), e;
7538
7520
  }
7539
- function nl(i) {
7540
- const t = new we(), e = Se(i, t), s = T(null), n = T(!0), r = T(null);
7521
+ function rl(i) {
7522
+ const t = new ke(), e = Le(i, t), s = I(null), n = I(!0), r = I(null);
7541
7523
  let a = 0;
7542
7524
  async function o() {
7543
7525
  const l = ++a;
@@ -7573,11 +7555,11 @@ function Dt(i) {
7573
7555
  }
7574
7556
  return t;
7575
7557
  }
7576
- function rl() {
7558
+ function al() {
7577
7559
  }
7578
7560
  class Da {
7579
7561
  constructor(t, e = {}) {
7580
- this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this.columns = (e.columns || []).map((s, n) => ({ ...s, _index: n })), this.rowKey = e.rowKey || "id", this._data = [], this._loading = !1, this.striped = e.striped !== !1, this.bordered = e.bordered || !1, this.hoverable = e.hoverable !== !1, this.compact = e.compact || !1, this.emptyText = e.emptyText || "暂无数据", this.loadingText = e.loadingText || "加载中...", this.multiSort = e.multiSort || !1, this._sorts = [], this._filterText = "", this._showPagination = e.pagination !== !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._pageSize = e.pageSize || 10, this._currentPage = 1, this._total = 0, this.selection = e.selection || null, this._selectedKeys = /* @__PURE__ */ new Set(), this.selectionColumnTitle = e.selectionColumnTitle || "", this.expandable = e.expandable || null, this._expandedKeys = /* @__PURE__ */ new Set(), this.expandColumnTitle = e.expandColumnTitle || "", this.editable = e.editable || !1, this._editingCell = null, this._editBuffer = {}, this.resizable = e.resizable || !1, this.draggable = e.draggable || !1, this._dragState = null, this.tree = e.tree || null, this._treeExpandedKeys = /* @__PURE__ */ new Set(), e.tree?.defaultExpandAll && (this._treeExpandAll = !0), this.virtualScroll = e.virtualScroll || null, this._scrollContainer = null, this._scrollHandler = null, this._resizeCleanups = [], this._filterDebounceTimer = null, this._reactiveCleanups = [], this.mergeCells = e.mergeCells || null, this.onSort = e.onSort || null, this.onPageChange = e.onPageChange || null, this.onRowClick = e.onRowClick || null, this.onFilter = e.onFilter || null, this.onSelect = e.onSelect || null, this.onExpand = e.onExpand || null, this.onEditSave = e.onEditSave || null, this.onEditCancel = e.onEditCancel || null, this.onRowDragEnd = e.onRowDragEnd || null, this.onColumnResize = e.onColumnResize || null, this.sortKey = T(null), this.sortOrder = T(null), this.currentPage = T(1), this.filterText = T(""), this.selectedKeys = T([]), this._init();
7562
+ this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this.columns = (e.columns || []).map((s, n) => ({ ...s, _index: n })), this.rowKey = e.rowKey || "id", this._data = [], this._loading = !1, this.striped = e.striped !== !1, this.bordered = e.bordered || !1, this.hoverable = e.hoverable !== !1, this.compact = e.compact || !1, this.emptyText = e.emptyText || "暂无数据", this.loadingText = e.loadingText || "加载中...", this.multiSort = e.multiSort || !1, this._sorts = [], this._filterText = "", this._showPagination = e.pagination !== !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._pageSize = e.pageSize || 10, this._currentPage = 1, this._total = 0, this.selection = e.selection || null, this._selectedKeys = /* @__PURE__ */ new Set(), this.selectionColumnTitle = e.selectionColumnTitle || "", this.expandable = e.expandable || null, this._expandedKeys = /* @__PURE__ */ new Set(), this.expandColumnTitle = e.expandColumnTitle || "", this.editable = e.editable || !1, this._editingCell = null, this._editBuffer = {}, this.resizable = e.resizable || !1, this.draggable = e.draggable || !1, this._dragState = null, this.tree = e.tree || null, this._treeExpandedKeys = /* @__PURE__ */ new Set(), e.tree?.defaultExpandAll && (this._treeExpandAll = !0), this.virtualScroll = e.virtualScroll || null, this._scrollContainer = null, this._scrollHandler = null, this._resizeCleanups = [], this._filterDebounceTimer = null, this._reactiveCleanups = [], this.mergeCells = e.mergeCells || null, this.onSort = e.onSort || null, this.onPageChange = e.onPageChange || null, this.onRowClick = e.onRowClick || null, this.onFilter = e.onFilter || null, this.onSelect = e.onSelect || null, this.onExpand = e.onExpand || null, this.onEditSave = e.onEditSave || null, this.onEditCancel = e.onEditCancel || null, this.onRowDragEnd = e.onRowDragEnd || null, this.onColumnResize = e.onColumnResize || null, this.sortKey = I(null), this.sortOrder = I(null), this.currentPage = I(1), this.filterText = I(""), this.selectedKeys = I([]), this._init();
7581
7563
  }
7582
7564
  _init() {
7583
7565
  this.element.classList.add("kupola-table-wrapper"), this.virtualScroll && this.element.classList.add("kupola-table-virtual-wrapper"), this.render();
@@ -7729,8 +7711,8 @@ class Da {
7729
7711
  s.forEach((a) => n.set(`${a.row}-${a.col}`, a));
7730
7712
  const r = /* @__PURE__ */ new Set();
7731
7713
  t.forEach((a, o) => {
7732
- const l = a[this.rowKey] ?? o, c = this._selectedKeys.has(l), h = this._expandedKeys.has(l), d = this._renderDataRow(a, o, l, c, r, n);
7733
- if (e.appendChild(d), this.expandable && h) {
7714
+ const l = a[this.rowKey] ?? o, c = this._selectedKeys.has(l), d = this._expandedKeys.has(l), h = this._renderDataRow(a, o, l, c, r, n);
7715
+ if (e.appendChild(h), this.expandable && d) {
7734
7716
  const u = document.createElement("tr");
7735
7717
  u.className = "kupola-table-expand-row";
7736
7718
  const f = document.createElement("td"), p = this.columns.length + (this.selection ? 1 : 0) + 1;
@@ -7746,8 +7728,8 @@ class Da {
7746
7728
  const o = document.createElement("tr");
7747
7729
  return o.setAttribute("data-row-key", s), n && o.classList.add("kupola-table-row-selected"), this.draggable && (o.draggable = !0, o.classList.add("kupola-table-draggable")), this.selection && this._renderSelectionCell(o, s, n), this.expandable && this._renderExpandCell(o, s), this.columns.forEach((l, c) => {
7748
7730
  if (r.has(`${e}-${c}`)) return;
7749
- const h = this._renderDataCell(t, e, s, l, c, r, a);
7750
- o.appendChild(h);
7731
+ const d = this._renderDataCell(t, e, s, l, c, r, a);
7732
+ o.appendChild(d);
7751
7733
  }), this.onRowClick && (o.style.cursor = "pointer", o.addEventListener("click", (l) => {
7752
7734
  l.target.closest(".kupola-table-expand-btn, .kupola-table-tree-toggle, input, button") || this.onRowClick(t, e, l);
7753
7735
  })), o;
@@ -7772,20 +7754,20 @@ class Da {
7772
7754
  const c = o.get(`${e}-${r}`);
7773
7755
  if (c) {
7774
7756
  c.rowSpan > 1 && (l.rowSpan = c.rowSpan), c.colSpan > 1 && (l.colSpan = c.colSpan);
7775
- for (let d = 0; d < (c.rowSpan || 1); d++)
7757
+ for (let h = 0; h < (c.rowSpan || 1); h++)
7776
7758
  for (let u = 0; u < (c.colSpan || 1); u++)
7777
- d === 0 && u === 0 || a.add(`${e + d}-${r + u}`);
7759
+ h === 0 && u === 0 || a.add(`${e + h}-${r + u}`);
7778
7760
  }
7779
7761
  this.tree && r === 0 && t._level > 0 && this._renderTreeIndent(l, t);
7780
- const h = this._editingCell && this._editingCell.rowKey === s && this._editingCell.colKey === n.key;
7781
- if (h)
7762
+ const d = this._editingCell && this._editingCell.rowKey === s && this._editingCell.colKey === n.key;
7763
+ if (d)
7782
7764
  l.appendChild(this._renderEditCell(n, t));
7783
7765
  else if (n.render) {
7784
- const d = n.render(t[n.key], t, e);
7785
- typeof d == "string" ? l.innerHTML = d : d instanceof HTMLElement && l.appendChild(d);
7766
+ const h = n.render(t[n.key], t, e);
7767
+ typeof h == "string" ? l.innerHTML = h : h instanceof HTMLElement && l.appendChild(h);
7786
7768
  } else
7787
7769
  l.textContent = t[n.key] ?? "";
7788
- return this.editable && !h && n.editable !== !1 && (l.classList.add("kupola-table-editable-cell"), l.addEventListener("dblclick", () => this._startEdit(s, n.key, t[n.key]))), l;
7770
+ return this.editable && !d && n.editable !== !1 && (l.classList.add("kupola-table-editable-cell"), l.addEventListener("dblclick", () => this._startEdit(s, n.key, t[n.key]))), l;
7789
7771
  }
7790
7772
  _renderTreeIndent(t, e) {
7791
7773
  const s = document.createElement("span");
@@ -7823,16 +7805,16 @@ class Da {
7823
7805
  if (!this._virtualData) return;
7824
7806
  const { data: t, rowHeight: e, overscan: s, tbody: n, topSpacer: r } = this._virtualData, a = this.element.querySelector(".kupola-table-container");
7825
7807
  if (!a) return;
7826
- const o = a.scrollTop, l = a.clientHeight, c = Math.max(0, Math.floor(o / e) - s), h = Math.min(t.length, Math.ceil((o + l) / e) + s);
7808
+ const o = a.scrollTop, l = a.clientHeight, c = Math.max(0, Math.floor(o / e) - s), d = Math.min(t.length, Math.ceil((o + l) / e) + s);
7827
7809
  n.querySelectorAll(".kupola-table-virtual-row").forEach((p) => p.remove());
7828
7810
  const u = document.createDocumentFragment();
7829
- for (let p = c; p < h; p++) {
7811
+ for (let p = c; p < d; p++) {
7830
7812
  const m = t[p], y = m[this.rowKey] ?? p, _ = this._renderDataRow(m, p, y, this._selectedKeys.has(y), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Map());
7831
7813
  _.classList.add("kupola-table-virtual-row"), _.style.height = e + "px", u.appendChild(_);
7832
7814
  }
7833
7815
  r.style.height = c * e + "px";
7834
7816
  const f = n.querySelector(".kupola-table-virtual-spacer-bottom");
7835
- f && (f.style.height = (t.length - h) * e + "px"), r.after(u);
7817
+ f && (f.style.height = (t.length - d) * e + "px"), r.after(u);
7836
7818
  }
7837
7819
  // ================================================================
7838
7820
  // INLINE EDIT
@@ -7844,8 +7826,8 @@ class Da {
7844
7826
  if (n.type = t.editType || "text", n.className = "ds-input kupola-table-edit-input", n.value = this._editBuffer[t.key] ?? e[t.key] ?? "", t.editOptions) {
7845
7827
  const l = document.createElement("select");
7846
7828
  l.className = "ds-input kupola-table-edit-input", t.editOptions.forEach((c) => {
7847
- const h = document.createElement("option");
7848
- h.value = typeof c == "object" ? c.value : c, h.textContent = typeof c == "object" ? c.label : c, String(h.value) === String(n.value) && (h.selected = !0), l.appendChild(h);
7829
+ const d = document.createElement("option");
7830
+ d.value = typeof c == "object" ? c.value : c, d.textContent = typeof c == "object" ? c.label : c, String(d.value) === String(n.value) && (d.selected = !0), l.appendChild(d);
7849
7831
  }), l.addEventListener("change", () => {
7850
7832
  this._editBuffer[t.key] = l.value;
7851
7833
  }), s.appendChild(l);
@@ -7935,11 +7917,11 @@ class Da {
7935
7917
  this.element.querySelectorAll(".kupola-table-resize-handle").forEach((e) => {
7936
7918
  e.addEventListener("mousedown", (s) => {
7937
7919
  s.preventDefault();
7938
- const n = e.getAttribute("data-col-key"), r = e.parentElement, a = s.clientX, o = r.offsetWidth, l = (h) => {
7939
- const d = Math.max(50, o + (h.clientX - a));
7940
- r.style.width = d + "px";
7920
+ const n = e.getAttribute("data-col-key"), r = e.parentElement, a = s.clientX, o = r.offsetWidth, l = (d) => {
7921
+ const h = Math.max(50, o + (d.clientX - a));
7922
+ r.style.width = h + "px";
7941
7923
  const u = this.columns.find((f) => f.key === n);
7942
- u && (u.width = d), this.onColumnResize && this.onColumnResize(n, d);
7924
+ u && (u.width = h), this.onColumnResize && this.onColumnResize(n, h);
7943
7925
  }, c = () => {
7944
7926
  document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", c);
7945
7927
  };
@@ -8083,9 +8065,9 @@ class Da {
8083
8065
  // ================================================================
8084
8066
  exportCSV(t = "export.csv") {
8085
8067
  const e = this.getProcessedData(), s = this.columns.map((c) => c.title || c.key), n = e.map(
8086
- (c) => this.columns.map((h) => {
8087
- let d = c[h.key];
8088
- return d == null && (d = ""), d = String(d).replace(/"/g, '""'), `"${d}"`;
8068
+ (c) => this.columns.map((d) => {
8069
+ let h = c[d.key];
8070
+ return h == null && (h = ""), h = String(h).replace(/"/g, '""'), `"${h}"`;
8089
8071
  }).join(",")
8090
8072
  ), r = "\uFEFF" + [s.join(","), ...n].join(`
8091
8073
  `), a = new Blob([r], { type: "text/csv;charset=utf-8;" }), o = URL.createObjectURL(a), l = document.createElement("a");
@@ -8115,10 +8097,10 @@ class Da {
8115
8097
  this._filterDebounceTimer && (clearTimeout(this._filterDebounceTimer), this._filterDebounceTimer = null), this._resizeCleanups.forEach((t) => t()), this._resizeCleanups = [], this._reactiveCleanups.forEach((t) => t.unsubscribe()), this._reactiveCleanups = [], this.element.innerHTML = "", this.element.classList.remove("kupola-table-wrapper", "kupola-table-virtual-wrapper"), this._data = [], this._virtualData = null, this._dragState = null, this._editingCell = null, this._editBuffer = {};
8116
8098
  }
8117
8099
  }
8118
- function Le(i, t) {
8100
+ function De(i, t) {
8119
8101
  return new Da(i, t);
8120
8102
  }
8121
- function al() {
8103
+ function ol() {
8122
8104
  document.querySelectorAll("[data-kupola-table]").forEach((i) => {
8123
8105
  const t = i.getAttribute("data-kupola-table");
8124
8106
  let e = {};
@@ -8127,13 +8109,13 @@ function al() {
8127
8109
  e = JSON.parse(t);
8128
8110
  } catch {
8129
8111
  }
8130
- Le(i, e);
8112
+ De(i, e);
8131
8113
  });
8132
8114
  }
8133
- E.register("table", Le);
8115
+ E.register("table", De);
8134
8116
  class Ha {
8135
8117
  constructor(t, e = {}) {
8136
- this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current = T(this._current), this.total = T(this._total), this.onChange = e.onChange || null, this.onPageSizeChange = e.onPageSizeChange || null, this._init();
8118
+ this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current = I(this._current), this.total = I(this._total), this.onChange = e.onChange || null, this.onPageSizeChange = e.onPageSizeChange || null, this._init();
8137
8119
  }
8138
8120
  _init() {
8139
8121
  this.element.classList.add("kupola-pagination"), this.render();
@@ -8251,11 +8233,11 @@ function Ma() {
8251
8233
  .kupola-pagination-jumper input:focus { outline: none; border-color: #1890ff; }
8252
8234
  `, document.head.appendChild(i), Ht = !0;
8253
8235
  }
8254
- function ol(i, t) {
8236
+ function ll(i, t) {
8255
8237
  return Ma(), new Ha(i, t);
8256
8238
  }
8257
8239
  let Mt = !1;
8258
- class Ia extends HTMLElement {
8240
+ class Ta extends HTMLElement {
8259
8241
  static get observedAttributes() {
8260
8242
  return ["open"];
8261
8243
  }
@@ -8277,7 +8259,7 @@ class Ia extends HTMLElement {
8277
8259
  }
8278
8260
  }
8279
8261
  }
8280
- class Ta extends HTMLElement {
8262
+ class Ia extends HTMLElement {
8281
8263
  static get observedAttributes() {
8282
8264
  return ["title", "position"];
8283
8265
  }
@@ -8377,12 +8359,12 @@ class $a extends HTMLElement {
8377
8359
  this.removeAttribute("open");
8378
8360
  }
8379
8361
  }
8380
- function ll() {
8362
+ function cl() {
8381
8363
  if (Mt || typeof customElements > "u") return;
8382
8364
  Mt = !0;
8383
8365
  const i = [
8384
- ["k-dropdown", Ia],
8385
- ["k-tooltip", Ta],
8366
+ ["k-dropdown", Ta],
8367
+ ["k-tooltip", Ia],
8386
8368
  ["k-collapse", Aa],
8387
8369
  ["k-collapse-item", za],
8388
8370
  ["k-drawer", Pa],
@@ -8394,17 +8376,17 @@ function ll() {
8394
8376
  export {
8395
8377
  X as BRAND_OPTIONS,
8396
8378
  wa as CacheEntry,
8397
- we as CacheManager,
8379
+ ke as CacheManager,
8398
8380
  Xr as Calendar,
8399
8381
  Br as Carousel,
8400
8382
  Kr as Collapse,
8401
8383
  Ur as ColorPicker,
8402
8384
  wr as ComponentInitializerRegistry,
8403
8385
  da as Countdown,
8404
- Ir as Datepicker,
8386
+ Tr as Datepicker,
8405
8387
  N as DependsError,
8406
8388
  U as DependsSource,
8407
- Ao as Dialog,
8389
+ zo as Dialog,
8408
8390
  Or as Drawer,
8409
8391
  Dr as Dropdown,
8410
8392
  Jr as DynamicTags,
@@ -8413,26 +8395,26 @@ export {
8413
8395
  Sa as FunctionSource,
8414
8396
  Lr as GlobalEvents,
8415
8397
  sa as Heatmap,
8416
- jo as Icons,
8417
- fe as ImagePreview,
8418
- tt as KupolaComponent,
8398
+ Jo as Icons,
8399
+ me as ImagePreview,
8400
+ Q as KupolaComponent,
8419
8401
  Cr as KupolaComponentRegistry,
8420
- hr as KupolaDataBind,
8421
- ur as KupolaEventBus,
8402
+ dr as KupolaDataBind,
8403
+ pr as KupolaEventBus,
8422
8404
  va as KupolaForm,
8423
- Qt as KupolaI18n,
8424
- ut as KupolaLifecycle,
8405
+ te as KupolaI18n,
8406
+ dt as KupolaLifecycle,
8425
8407
  Ha as KupolaPagination,
8426
- bt as KupolaStore,
8427
- dr as KupolaStoreManager,
8408
+ vt as KupolaStore,
8409
+ ur as KupolaStoreManager,
8428
8410
  Da as KupolaTable,
8429
8411
  Oa as KupolaUtils,
8430
8412
  aa as KupolaValidator,
8431
- $o as Message,
8413
+ Bo as Message,
8432
8414
  $ as Modal,
8433
- zo as Notification,
8415
+ Po as Notification,
8434
8416
  pa as NumberInput,
8435
- ve as PATHS,
8417
+ be as PATHS,
8436
8418
  Ca as RouteSource,
8437
8419
  xa as Scheduler,
8438
8420
  Hr as Select,
@@ -8440,26 +8422,26 @@ export {
8440
8422
  Pr as Slider,
8441
8423
  ta as StatCard,
8442
8424
  La as StaticSource,
8443
- ke as StorageSource,
8425
+ Ce as StorageSource,
8444
8426
  Gr as Tag,
8445
8427
  Ar as Timepicker,
8446
8428
  na as Tooltip,
8447
8429
  oa as VirtualList,
8448
- Ce as WebSocketSource,
8430
+ Se as WebSocketSource,
8449
8431
  Io as alertModal,
8450
8432
  wt as applyMixin,
8451
- Ks as arrayUtils,
8452
- eo as bootstrapComponents,
8453
- wo as cleanupAllDropdowns,
8433
+ Ws as arrayUtils,
8434
+ so as bootstrapComponents,
8435
+ ko as cleanupAllDropdowns,
8454
8436
  ya as cleanupAllSlideCaptchas,
8455
8437
  jr as cleanupCalendar,
8456
8438
  qr as cleanupCarousel,
8457
8439
  Wr as cleanupCollapse,
8458
8440
  Yr as cleanupColorPicker,
8459
8441
  ua as cleanupCountdown,
8460
- Tr as cleanupDatepicker,
8442
+ Ir as cleanupDatepicker,
8461
8443
  Fr as cleanupDrawer,
8462
- ee as cleanupDropdown,
8444
+ se as cleanupDropdown,
8463
8445
  Zr as cleanupDynamicTags,
8464
8446
  Vr as cleanupFileUpload,
8465
8447
  ia as cleanupHeatmap,
@@ -8473,95 +8455,95 @@ export {
8473
8455
  zr as cleanupTimepicker,
8474
8456
  ra as cleanupTooltip,
8475
8457
  ca as cleanupVirtualList,
8476
- rl as clearCache,
8477
- tl as configureHttpClient,
8478
- Mo as confirmModal,
8479
- Ya as createBrandPicker,
8480
- ro as createI18n,
8458
+ al as clearCache,
8459
+ el as configureHttpClient,
8460
+ To as confirmModal,
8461
+ Xa as createBrandPicker,
8462
+ ao as createI18n,
8481
8463
  qa as createLifecycle,
8482
- oe as createModal,
8483
- Se as createSource,
8464
+ le as createModal,
8465
+ Le as createSource,
8484
8466
  Na as createStore,
8485
- Ua as createThemeToggle,
8486
- er as cryptoUtils,
8487
- fn as dateUtils,
8488
- mn as debounce,
8489
- no as defineComponent,
8490
- so as defineMixin,
8491
- _o as emit,
8492
- yo as emitGlobal,
8493
- ja as escapeHtml,
8494
- po as formatCurrency,
8495
- ho as formatDate,
8496
- uo as formatNumber,
8497
- Ga as generateSecureId,
8498
- Ka as getBasePath,
8467
+ Ya as createThemeToggle,
8468
+ sr as cryptoUtils,
8469
+ mn as dateUtils,
8470
+ gn as debounce,
8471
+ ro as defineComponent,
8472
+ io as defineMixin,
8473
+ yo as emit,
8474
+ vo as emitGlobal,
8475
+ Ja as escapeHtml,
8476
+ fo as formatCurrency,
8477
+ uo as formatDate,
8478
+ po as formatNumber,
8479
+ Qa as generateSecureId,
8480
+ Wa as getBasePath,
8499
8481
  J as getBrand,
8500
- pt as getConfig,
8482
+ ut as getConfig,
8501
8483
  gr as getDefaultBrand,
8502
8484
  mr as getDefaultTheme,
8503
- Go as getFormInstance,
8504
- el as getHttpClient,
8505
- Wa as getHttpConfig,
8506
- ft as getIconsPath,
8507
- xo as getListenerCount,
8508
- co as getLocale,
8485
+ Qo as getFormInstance,
8486
+ sl as getHttpClient,
8487
+ Ua as getHttpConfig,
8488
+ Zt as getIconsPath,
8489
+ Eo as getListenerCount,
8490
+ ho as getLocale,
8509
8491
  yr as getMessageConfig,
8510
8492
  vr as getNotificationConfig,
8511
8493
  _r as getPerformanceConfig,
8512
- nt as getSecurityConfig,
8494
+ it as getSecurityConfig,
8513
8495
  Ra as getStore,
8514
8496
  F as getTheme,
8515
8497
  j as getUiConfig,
8516
8498
  br as getValidationConfig,
8517
8499
  H as globalEvents,
8518
- al as initAllTables,
8519
- ue as initCalendar,
8520
- No as initCalendars,
8521
- ae as initCarousel,
8522
- Do as initCarousels,
8523
- he as initCollapse,
8524
- Oo as initCollapses,
8525
- de as initColorPicker,
8526
- Fo as initColorPickers,
8527
- xe as initCountdown,
8528
- Jo as initCountdowns,
8529
- ie as initDatepicker,
8530
- Co as initDatepickers,
8531
- ht as initDrawer,
8532
- Ho as initDrawers,
8533
- te as initDropdown,
8534
- Eo as initDropdowns,
8535
- pe as initDynamicTags,
8536
- Ro as initDynamicTagsAll,
8537
- ce as initFileUpload,
8538
- qo as initFileUploads,
8500
+ ol as initAllTables,
8501
+ pe as initCalendar,
8502
+ Ro as initCalendars,
8503
+ oe as initCarousel,
8504
+ Ho as initCarousels,
8505
+ de as initCollapse,
8506
+ Fo as initCollapses,
8507
+ ue as initColorPicker,
8508
+ No as initColorPickers,
8509
+ Ee as initCountdown,
8510
+ Zo as initCountdowns,
8511
+ ne as initDatepicker,
8512
+ So as initDatepickers,
8513
+ ct as initDrawer,
8514
+ Mo as initDrawers,
8515
+ ee as initDropdown,
8516
+ wo as initDropdowns,
8517
+ fe as initDynamicTags,
8518
+ Vo as initDynamicTagsAll,
8519
+ he as initFileUpload,
8520
+ Oo as initFileUploads,
8539
8521
  ba as initFormValidation,
8540
- _e as initHeatmap,
8541
- Yo as initHeatmaps,
8542
- Vo as initImagePreview,
8543
- Bo as initMessages,
8544
- le as initModal,
8545
- To as initModals,
8546
- Po as initNotifications,
8547
- Ee as initNumberInput,
8548
- Zo as initNumberInputs,
8549
- ol as initPagination,
8550
- se as initSelect,
8551
- ko as initSelects,
8522
+ ye as initHeatmap,
8523
+ Xo as initHeatmaps,
8524
+ Ko as initImagePreview,
8525
+ qo as initMessages,
8526
+ ce as initModal,
8527
+ Ao as initModals,
8528
+ $o as initNotifications,
8529
+ we as initNumberInput,
8530
+ Go as initNumberInputs,
8531
+ ll as initPagination,
8532
+ ie as initSelect,
8533
+ Co as initSelects,
8552
8534
  ga as initSlideCaptchas,
8553
- re as initSlider,
8554
- Lo as initSliders,
8555
- ge as initStatCard,
8556
- Uo as initStatCards,
8557
- Le as initTable,
8558
- me as initTag,
8559
- Wo as initTags,
8535
+ ae as initSlider,
8536
+ Do as initSliders,
8537
+ _e as initStatCard,
8538
+ Yo as initStatCards,
8539
+ De as initTable,
8540
+ ge as initTag,
8541
+ Uo as initTags,
8560
8542
  Er as initTheme,
8561
- ne as initTimepicker,
8562
- So as initTimepickers,
8563
- ye as initTooltip,
8564
- Xo as initTooltips,
8543
+ re as initTimepicker,
8544
+ Lo as initTimepickers,
8545
+ ve as initTooltip,
8546
+ jo as initTooltips,
8565
8547
  la as initVirtualList,
8566
8548
  kt as kupolaBootstrap,
8567
8549
  O as kupolaData,
@@ -8569,41 +8551,41 @@ export {
8569
8551
  R as kupolaI18n,
8570
8552
  E as kupolaInitializer,
8571
8553
  Ba as kupolaLifecycle,
8572
- I as kupolaRegistry,
8554
+ T as kupolaRegistry,
8573
8555
  jt as kupolaStoreManager,
8574
- Za as maskData,
8575
- oo as n,
8576
- Bi as numberUtils,
8577
- hi as objectUtils,
8578
- go as off,
8579
- bo as offAll,
8580
- vo as offByScope,
8556
+ Ga as maskData,
8557
+ lo as n,
8558
+ qi as numberUtils,
8559
+ di as objectUtils,
8560
+ _o as off,
8561
+ xo as offAll,
8562
+ bo as offByScope,
8581
8563
  Va as offConfigChange,
8582
- fo as on,
8583
- pr as onConfigChange,
8584
- mo as once,
8585
- lr as preloadUtils,
8586
- T as ref,
8587
- Qa as registerComponent,
8588
- to as registerLazyComponent,
8589
- ll as registerWebComponents,
8590
- dt as renderIcon,
8591
- sl as resetHttpClient,
8592
- Xa as sanitizeHtml,
8564
+ mo as on,
8565
+ fr as onConfigChange,
8566
+ go as once,
8567
+ cr as preloadUtils,
8568
+ I as ref,
8569
+ to as registerComponent,
8570
+ eo as registerLazyComponent,
8571
+ cl as registerWebComponents,
8572
+ ht as renderIcon,
8573
+ il as resetHttpClient,
8574
+ ja as sanitizeHtml,
8593
8575
  lt as setBrand,
8594
- fr as setConfig,
8595
- lo as setLocale,
8596
- Q as setTheme,
8597
- Ko as showImagePreview,
8598
- es as stringUtils,
8599
- Ja as stripHtml,
8600
- be as svg,
8601
- ao as t,
8602
- gn as throttle,
8603
- il as useDeps,
8604
- io as useMixin,
8605
- nl as useQuery,
8606
- Qo as validateForm,
8576
+ Ka as setConfig,
8577
+ co as setLocale,
8578
+ nt as setTheme,
8579
+ Wo as showImagePreview,
8580
+ ss as stringUtils,
8581
+ Za as stripHtml,
8582
+ xe as svg,
8583
+ oo as t,
8584
+ _n as throttle,
8585
+ nl as useDeps,
8586
+ no as useMixin,
8587
+ rl as useQuery,
8588
+ tl as validateForm,
8607
8589
  P as validator,
8608
8590
  Ut as validatorUtils
8609
8591
  };