@vtj/ui 0.0.1-alpha.3 → 0.0.1-alpha.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.
package/lib/index.js CHANGED
@@ -1,3205 +1,97 @@
1
- import { ref as fn, unref as Gt, defineComponent as ln, renderSlot as ir, getCurrentInstance as sr, provide as ar, h as cr } from "vue";
2
- import "@vueuse/core";
3
- const pn = (t, e) => {
4
- if (t.install = (n) => {
5
- for (const r of [t, ...Object.values(e ?? {})])
6
- typeof r == "function" ? n.use(r) : r.name && n.component(r.name, r);
7
- }, e)
8
- for (const [n, r] of Object.entries(e))
9
- t[n] = r;
10
- return t;
11
- };
12
- var ur = typeof global == "object" && global && global.Object === Object && global;
13
- const dn = ur;
14
- var fr = typeof self == "object" && self && self.Object === Object && self, lr = dn || fr || Function("return this")();
15
- const V = lr;
16
- var pr = V.Symbol;
17
- const J = pr;
18
- var hn = Object.prototype, dr = hn.hasOwnProperty, hr = hn.toString, vt = J ? J.toStringTag : void 0;
19
- function mr(t) {
20
- var e = dr.call(t, vt), n = t[vt];
21
- try {
22
- t[vt] = void 0;
23
- var r = !0;
24
- } catch {
25
- }
26
- var o = hr.call(t);
27
- return r && (e ? t[vt] = n : delete t[vt]), o;
28
- }
29
- var yr = Object.prototype, gr = yr.toString;
30
- function vr(t) {
31
- return gr.call(t);
32
- }
33
- var br = "[object Null]", wr = "[object Undefined]", Ee = J ? J.toStringTag : void 0;
34
- function it(t) {
35
- return t == null ? t === void 0 ? wr : br : Ee && Ee in Object(t) ? mr(t) : vr(t);
36
- }
37
- function dt(t) {
38
- return t != null && typeof t == "object";
39
- }
40
- var _r = Array.isArray;
41
- const Xt = _r;
42
- var Ae = J ? J.prototype : void 0;
43
- Ae && Ae.toString;
44
- function st(t) {
45
- var e = typeof t;
46
- return t != null && (e == "object" || e == "function");
47
- }
48
- function mn(t) {
49
- return t;
50
- }
51
- var Or = "[object AsyncFunction]", Sr = "[object Function]", jr = "[object GeneratorFunction]", xr = "[object Proxy]";
52
- function me(t) {
53
- if (!st(t))
54
- return !1;
55
- var e = it(t);
56
- return e == Sr || e == jr || e == Or || e == xr;
57
- }
58
- var Er = V["__core-js_shared__"];
59
- const Yt = Er;
60
- var Re = function() {
61
- var t = /[^.]+$/.exec(Yt && Yt.keys && Yt.keys.IE_PROTO || "");
62
- return t ? "Symbol(src)_1." + t : "";
63
- }();
64
- function Ar(t) {
65
- return !!Re && Re in t;
66
- }
67
- var Rr = Function.prototype, Tr = Rr.toString;
68
- function at(t) {
69
- if (t != null) {
70
- try {
71
- return Tr.call(t);
72
- } catch {
73
- }
74
- try {
75
- return t + "";
76
- } catch {
77
- }
78
- }
79
- return "";
80
- }
81
- var Cr = /[\\^$.*+?()[\]{}|]/g, Dr = /^\[object .+?Constructor\]$/, Mr = Function.prototype, Pr = Object.prototype, Nr = Mr.toString, Br = Pr.hasOwnProperty, Fr = RegExp(
82
- "^" + Nr.call(Br).replace(Cr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
83
- );
84
- function Lr(t) {
85
- if (!st(t) || Ar(t))
86
- return !1;
87
- var e = me(t) ? Fr : Dr;
88
- return e.test(at(t));
89
- }
90
- function kr(t, e) {
91
- return t?.[e];
92
- }
93
- function ct(t, e) {
94
- var n = kr(t, e);
95
- return Lr(n) ? n : void 0;
96
- }
97
- var Ur = ct(V, "WeakMap");
98
- const Zt = Ur;
99
- var Te = Object.create, $r = function() {
100
- function t() {
101
- }
102
- return function(e) {
103
- if (!st(e))
104
- return {};
105
- if (Te)
106
- return Te(e);
107
- t.prototype = e;
108
- var n = new t();
109
- return t.prototype = void 0, n;
110
- };
111
- }();
112
- const Ir = $r;
113
- function yn(t, e, n) {
114
- switch (n.length) {
115
- case 0:
116
- return t.call(e);
117
- case 1:
118
- return t.call(e, n[0]);
119
- case 2:
120
- return t.call(e, n[0], n[1]);
121
- case 3:
122
- return t.call(e, n[0], n[1], n[2]);
123
- }
124
- return t.apply(e, n);
125
- }
126
- function zr(t, e) {
127
- var n = -1, r = t.length;
128
- for (e || (e = Array(r)); ++n < r; )
129
- e[n] = t[n];
130
- return e;
131
- }
132
- var Hr = 800, Yr = 16, Wr = Date.now;
133
- function qr(t) {
134
- var e = 0, n = 0;
135
- return function() {
136
- var r = Wr(), o = Yr - (r - n);
137
- if (n = r, o > 0) {
138
- if (++e >= Hr)
139
- return arguments[0];
140
- } else
141
- e = 0;
142
- return t.apply(void 0, arguments);
143
- };
144
- }
145
- function Jr(t) {
146
- return function() {
147
- return t;
148
- };
149
- }
150
- var Vr = function() {
151
- try {
152
- var t = ct(Object, "defineProperty");
153
- return t({}, "", {}), t;
154
- } catch {
155
- }
156
- }();
157
- const Mt = Vr;
158
- var Kr = Mt ? function(t, e) {
159
- return Mt(t, "toString", {
160
- configurable: !0,
161
- enumerable: !1,
162
- value: Jr(e),
163
- writable: !0
164
- });
165
- } : mn;
166
- const Gr = Kr;
167
- var Xr = qr(Gr);
168
- const Zr = Xr;
169
- var Qr = 9007199254740991, to = /^(?:0|[1-9]\d*)$/;
170
- function gn(t, e) {
171
- var n = typeof t;
172
- return e = e ?? Qr, !!e && (n == "number" || n != "symbol" && to.test(t)) && t > -1 && t % 1 == 0 && t < e;
173
- }
174
- function ye(t, e, n) {
175
- e == "__proto__" && Mt ? Mt(t, e, {
176
- configurable: !0,
177
- enumerable: !0,
178
- value: n,
179
- writable: !0
180
- }) : t[e] = n;
181
- }
182
- function Ft(t, e) {
183
- return t === e || t !== t && e !== e;
184
- }
185
- var eo = Object.prototype, no = eo.hasOwnProperty;
186
- function ro(t, e, n) {
187
- var r = t[e];
188
- (!(no.call(t, e) && Ft(r, n)) || n === void 0 && !(e in t)) && ye(t, e, n);
189
- }
190
- function vn(t, e, n, r) {
191
- var o = !n;
192
- n || (n = {});
193
- for (var i = -1, s = e.length; ++i < s; ) {
194
- var u = e[i], c = r ? r(n[u], t[u], u, n, t) : void 0;
195
- c === void 0 && (c = t[u]), o ? ye(n, u, c) : ro(n, u, c);
196
- }
197
- return n;
198
- }
199
- var Ce = Math.max;
200
- function oo(t, e, n) {
201
- return e = Ce(e === void 0 ? t.length - 1 : e, 0), function() {
202
- for (var r = arguments, o = -1, i = Ce(r.length - e, 0), s = Array(i); ++o < i; )
203
- s[o] = r[e + o];
204
- o = -1;
205
- for (var u = Array(e + 1); ++o < e; )
206
- u[o] = r[o];
207
- return u[e] = n(s), yn(t, this, u);
208
- };
209
- }
210
- function bn(t, e) {
211
- return Zr(oo(t, e, mn), t + "");
212
- }
213
- var io = 9007199254740991;
214
- function wn(t) {
215
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= io;
216
- }
217
- function ge(t) {
218
- return t != null && wn(t.length) && !me(t);
219
- }
220
- function so(t, e, n) {
221
- if (!st(n))
222
- return !1;
223
- var r = typeof e;
224
- return (r == "number" ? ge(n) && gn(e, n.length) : r == "string" && e in n) ? Ft(n[e], t) : !1;
225
- }
226
- function _n(t) {
227
- return bn(function(e, n) {
228
- var r = -1, o = n.length, i = o > 1 ? n[o - 1] : void 0, s = o > 2 ? n[2] : void 0;
229
- for (i = t.length > 3 && typeof i == "function" ? (o--, i) : void 0, s && so(n[0], n[1], s) && (i = o < 3 ? void 0 : i, o = 1), e = Object(e); ++r < o; ) {
230
- var u = n[r];
231
- u && t(e, u, r, i);
232
- }
233
- return e;
234
- });
235
- }
236
- var ao = Object.prototype;
237
- function On(t) {
238
- var e = t && t.constructor, n = typeof e == "function" && e.prototype || ao;
239
- return t === n;
240
- }
241
- function co(t, e) {
242
- for (var n = -1, r = Array(t); ++n < t; )
243
- r[n] = e(n);
244
- return r;
245
- }
246
- var uo = "[object Arguments]";
247
- function De(t) {
248
- return dt(t) && it(t) == uo;
249
- }
250
- var Sn = Object.prototype, fo = Sn.hasOwnProperty, lo = Sn.propertyIsEnumerable, po = De(function() {
251
- return arguments;
252
- }()) ? De : function(t) {
253
- return dt(t) && fo.call(t, "callee") && !lo.call(t, "callee");
254
- };
255
- const Qt = po;
256
- function ho() {
257
- return !1;
258
- }
259
- var jn = typeof exports == "object" && exports && !exports.nodeType && exports, Me = jn && typeof module == "object" && module && !module.nodeType && module, mo = Me && Me.exports === jn, Pe = mo ? V.Buffer : void 0, yo = Pe ? Pe.isBuffer : void 0, go = yo || ho;
260
- const xn = go;
261
- var vo = "[object Arguments]", bo = "[object Array]", wo = "[object Boolean]", _o = "[object Date]", Oo = "[object Error]", So = "[object Function]", jo = "[object Map]", xo = "[object Number]", Eo = "[object Object]", Ao = "[object RegExp]", Ro = "[object Set]", To = "[object String]", Co = "[object WeakMap]", Do = "[object ArrayBuffer]", Mo = "[object DataView]", Po = "[object Float32Array]", No = "[object Float64Array]", Bo = "[object Int8Array]", Fo = "[object Int16Array]", Lo = "[object Int32Array]", ko = "[object Uint8Array]", Uo = "[object Uint8ClampedArray]", $o = "[object Uint16Array]", Io = "[object Uint32Array]", U = {};
262
- U[Po] = U[No] = U[Bo] = U[Fo] = U[Lo] = U[ko] = U[Uo] = U[$o] = U[Io] = !0;
263
- U[vo] = U[bo] = U[Do] = U[wo] = U[Mo] = U[_o] = U[Oo] = U[So] = U[jo] = U[xo] = U[Eo] = U[Ao] = U[Ro] = U[To] = U[Co] = !1;
264
- function zo(t) {
265
- return dt(t) && wn(t.length) && !!U[it(t)];
266
- }
267
- function Ho(t) {
268
- return function(e) {
269
- return t(e);
270
- };
271
- }
272
- var En = typeof exports == "object" && exports && !exports.nodeType && exports, wt = En && typeof module == "object" && module && !module.nodeType && module, Yo = wt && wt.exports === En, Wt = Yo && dn.process, Wo = function() {
273
- try {
274
- var t = wt && wt.require && wt.require("util").types;
275
- return t || Wt && Wt.binding && Wt.binding("util");
276
- } catch {
277
- }
278
- }();
279
- const lt = Wo;
280
- var Ne = lt && lt.isTypedArray, qo = Ne ? Ho(Ne) : zo;
281
- const An = qo;
282
- var Jo = Object.prototype, Vo = Jo.hasOwnProperty;
283
- function Ko(t, e) {
284
- var n = Xt(t), r = !n && Qt(t), o = !n && !r && xn(t), i = !n && !r && !o && An(t), s = n || r || o || i, u = s ? co(t.length, String) : [], c = u.length;
285
- for (var a in t)
286
- (e || Vo.call(t, a)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
287
- (a == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
288
- o && (a == "offset" || a == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
289
- i && (a == "buffer" || a == "byteLength" || a == "byteOffset") || // Skip index properties.
290
- gn(a, c))) && u.push(a);
291
- return u;
292
- }
293
- function Go(t, e) {
294
- return function(n) {
295
- return t(e(n));
296
- };
297
- }
298
- function Xo(t) {
299
- var e = [];
300
- if (t != null)
301
- for (var n in Object(t))
302
- e.push(n);
303
- return e;
304
- }
305
- var Zo = Object.prototype, Qo = Zo.hasOwnProperty;
306
- function ti(t) {
307
- if (!st(t))
308
- return Xo(t);
309
- var e = On(t), n = [];
310
- for (var r in t)
311
- r == "constructor" && (e || !Qo.call(t, r)) || n.push(r);
312
- return n;
313
- }
314
- function ve(t) {
315
- return ge(t) ? Ko(t, !0) : ti(t);
316
- }
317
- _n(function(t, e, n, r) {
318
- vn(e, ve(e), t, r);
319
- });
320
- var ei = ct(Object, "create");
321
- const _t = ei;
322
- function ni() {
323
- this.__data__ = _t ? _t(null) : {}, this.size = 0;
324
- }
325
- function ri(t) {
326
- var e = this.has(t) && delete this.__data__[t];
327
- return this.size -= e ? 1 : 0, e;
328
- }
329
- var oi = "__lodash_hash_undefined__", ii = Object.prototype, si = ii.hasOwnProperty;
330
- function ai(t) {
331
- var e = this.__data__;
332
- if (_t) {
333
- var n = e[t];
334
- return n === oi ? void 0 : n;
335
- }
336
- return si.call(e, t) ? e[t] : void 0;
337
- }
338
- var ci = Object.prototype, ui = ci.hasOwnProperty;
339
- function fi(t) {
340
- var e = this.__data__;
341
- return _t ? e[t] !== void 0 : ui.call(e, t);
342
- }
343
- var li = "__lodash_hash_undefined__";
344
- function pi(t, e) {
345
- var n = this.__data__;
346
- return this.size += this.has(t) ? 0 : 1, n[t] = _t && e === void 0 ? li : e, this;
347
- }
348
- function ot(t) {
349
- var e = -1, n = t == null ? 0 : t.length;
350
- for (this.clear(); ++e < n; ) {
351
- var r = t[e];
352
- this.set(r[0], r[1]);
353
- }
354
- }
355
- ot.prototype.clear = ni;
356
- ot.prototype.delete = ri;
357
- ot.prototype.get = ai;
358
- ot.prototype.has = fi;
359
- ot.prototype.set = pi;
360
- function di() {
361
- this.__data__ = [], this.size = 0;
362
- }
363
- function Lt(t, e) {
364
- for (var n = t.length; n--; )
365
- if (Ft(t[n][0], e))
366
- return n;
367
- return -1;
368
- }
369
- var hi = Array.prototype, mi = hi.splice;
370
- function yi(t) {
371
- var e = this.__data__, n = Lt(e, t);
372
- if (n < 0)
373
- return !1;
374
- var r = e.length - 1;
375
- return n == r ? e.pop() : mi.call(e, n, 1), --this.size, !0;
376
- }
377
- function gi(t) {
378
- var e = this.__data__, n = Lt(e, t);
379
- return n < 0 ? void 0 : e[n][1];
380
- }
381
- function vi(t) {
382
- return Lt(this.__data__, t) > -1;
383
- }
384
- function bi(t, e) {
385
- var n = this.__data__, r = Lt(n, t);
386
- return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
387
- }
388
- function X(t) {
389
- var e = -1, n = t == null ? 0 : t.length;
390
- for (this.clear(); ++e < n; ) {
391
- var r = t[e];
392
- this.set(r[0], r[1]);
393
- }
394
- }
395
- X.prototype.clear = di;
396
- X.prototype.delete = yi;
397
- X.prototype.get = gi;
398
- X.prototype.has = vi;
399
- X.prototype.set = bi;
400
- var wi = ct(V, "Map");
401
- const Ot = wi;
402
- function _i() {
403
- this.size = 0, this.__data__ = {
404
- hash: new ot(),
405
- map: new (Ot || X)(),
406
- string: new ot()
407
- };
408
- }
409
- function Oi(t) {
410
- var e = typeof t;
411
- return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
412
- }
413
- function kt(t, e) {
414
- var n = t.__data__;
415
- return Oi(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
416
- }
417
- function Si(t) {
418
- var e = kt(this, t).delete(t);
419
- return this.size -= e ? 1 : 0, e;
420
- }
421
- function ji(t) {
422
- return kt(this, t).get(t);
423
- }
424
- function xi(t) {
425
- return kt(this, t).has(t);
426
- }
427
- function Ei(t, e) {
428
- var n = kt(this, t), r = n.size;
429
- return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
430
- }
431
- function nt(t) {
432
- var e = -1, n = t == null ? 0 : t.length;
433
- for (this.clear(); ++e < n; ) {
434
- var r = t[e];
435
- this.set(r[0], r[1]);
436
- }
437
- }
438
- nt.prototype.clear = _i;
439
- nt.prototype.delete = Si;
440
- nt.prototype.get = ji;
441
- nt.prototype.has = xi;
442
- nt.prototype.set = Ei;
443
- var Ai = "Expected a function";
444
- function be(t, e) {
445
- if (typeof t != "function" || e != null && typeof e != "function")
446
- throw new TypeError(Ai);
447
- var n = function() {
448
- var r = arguments, o = e ? e.apply(this, r) : r[0], i = n.cache;
449
- if (i.has(o))
450
- return i.get(o);
451
- var s = t.apply(this, r);
452
- return n.cache = i.set(o, s) || i, s;
453
- };
454
- return n.cache = new (be.Cache || nt)(), n;
455
- }
456
- be.Cache = nt;
457
- var Ri = 500;
458
- function Ti(t) {
459
- var e = be(t, function(r) {
460
- return n.size === Ri && n.clear(), r;
461
- }), n = e.cache;
462
- return e;
463
- }
464
- var Ci = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Di = /\\(\\)?/g;
465
- Ti(function(t) {
466
- var e = [];
467
- return t.charCodeAt(0) === 46 && e.push(""), t.replace(Ci, function(n, r, o, i) {
468
- e.push(o ? i.replace(Di, "$1") : r || n);
469
- }), e;
470
- });
471
- var Mi = Go(Object.getPrototypeOf, Object);
472
- const Rn = Mi;
473
- var Pi = "[object Object]", Ni = Function.prototype, Bi = Object.prototype, Tn = Ni.toString, Fi = Bi.hasOwnProperty, Li = Tn.call(Object);
474
- function Cn(t) {
475
- if (!dt(t) || it(t) != Pi)
476
- return !1;
477
- var e = Rn(t);
478
- if (e === null)
479
- return !0;
480
- var n = Fi.call(e, "constructor") && e.constructor;
481
- return typeof n == "function" && n instanceof n && Tn.call(n) == Li;
482
- }
483
- var ki = "[object DOMException]", Ui = "[object Error]";
484
- function $i(t) {
485
- if (!dt(t))
486
- return !1;
487
- var e = it(t);
488
- return e == Ui || e == ki || typeof t.message == "string" && typeof t.name == "string" && !Cn(t);
489
- }
490
- bn(function(t, e) {
491
- try {
492
- return yn(t, void 0, e);
493
- } catch (n) {
494
- return $i(n) ? n : new Error(n);
495
- }
496
- });
497
- function Ii() {
498
- this.__data__ = new X(), this.size = 0;
499
- }
500
- function zi(t) {
501
- var e = this.__data__, n = e.delete(t);
502
- return this.size = e.size, n;
503
- }
504
- function Hi(t) {
505
- return this.__data__.get(t);
506
- }
507
- function Yi(t) {
508
- return this.__data__.has(t);
509
- }
510
- var Wi = 200;
511
- function qi(t, e) {
512
- var n = this.__data__;
513
- if (n instanceof X) {
514
- var r = n.__data__;
515
- if (!Ot || r.length < Wi - 1)
516
- return r.push([t, e]), this.size = ++n.size, this;
517
- n = this.__data__ = new nt(r);
518
- }
519
- return n.set(t, e), this.size = n.size, this;
520
- }
521
- function ht(t) {
522
- var e = this.__data__ = new X(t);
523
- this.size = e.size;
524
- }
525
- ht.prototype.clear = Ii;
526
- ht.prototype.delete = zi;
527
- ht.prototype.get = Hi;
528
- ht.prototype.has = Yi;
529
- ht.prototype.set = qi;
530
- var Dn = typeof exports == "object" && exports && !exports.nodeType && exports, Be = Dn && typeof module == "object" && module && !module.nodeType && module, Ji = Be && Be.exports === Dn, Fe = Ji ? V.Buffer : void 0, Le = Fe ? Fe.allocUnsafe : void 0;
531
- function Vi(t, e) {
532
- if (e)
533
- return t.slice();
534
- var n = t.length, r = Le ? Le(n) : new t.constructor(n);
535
- return t.copy(r), r;
536
- }
537
- var Ki = ct(V, "DataView");
538
- const te = Ki;
539
- var Gi = ct(V, "Promise");
540
- const ee = Gi;
541
- var Xi = ct(V, "Set");
542
- const ne = Xi;
543
- var ke = "[object Map]", Zi = "[object Object]", Ue = "[object Promise]", $e = "[object Set]", Ie = "[object WeakMap]", ze = "[object DataView]", Qi = at(te), ts = at(Ot), es = at(ee), ns = at(ne), rs = at(Zt), ft = it;
544
- (te && ft(new te(new ArrayBuffer(1))) != ze || Ot && ft(new Ot()) != ke || ee && ft(ee.resolve()) != Ue || ne && ft(new ne()) != $e || Zt && ft(new Zt()) != Ie) && (ft = function(t) {
545
- var e = it(t), n = e == Zi ? t.constructor : void 0, r = n ? at(n) : "";
546
- if (r)
547
- switch (r) {
548
- case Qi:
549
- return ze;
550
- case ts:
551
- return ke;
552
- case es:
553
- return Ue;
554
- case ns:
555
- return $e;
556
- case rs:
557
- return Ie;
558
- }
559
- return e;
560
- });
561
- var os = V.Uint8Array;
562
- const He = os;
563
- function is(t) {
564
- var e = new t.constructor(t.byteLength);
565
- return new He(e).set(new He(t)), e;
566
- }
567
- var Ye = J ? J.prototype : void 0;
568
- Ye && Ye.valueOf;
569
- function ss(t, e) {
570
- var n = e ? is(t.buffer) : t.buffer;
571
- return new t.constructor(n, t.byteOffset, t.length);
572
- }
573
- function as(t) {
574
- return typeof t.constructor == "function" && !On(t) ? Ir(Rn(t)) : {};
575
- }
576
- lt && lt.isMap;
577
- lt && lt.isSet;
578
- var We = J ? J.prototype : void 0;
579
- We && We.valueOf;
580
- function cs(t) {
581
- return function(e, n, r) {
582
- for (var o = -1, i = Object(e), s = r(e), u = s.length; u--; ) {
583
- var c = s[t ? u : ++o];
584
- if (n(i[c], c, i) === !1)
585
- break;
586
- }
587
- return e;
588
- };
589
- }
590
- var us = cs();
591
- const fs = us;
592
- function re(t, e, n) {
593
- (n !== void 0 && !Ft(t[e], n) || n === void 0 && !(e in t)) && ye(t, e, n);
594
- }
595
- function ls(t) {
596
- return dt(t) && ge(t);
597
- }
598
- function oe(t, e) {
599
- if (!(e === "constructor" && typeof t[e] == "function") && e != "__proto__")
600
- return t[e];
601
- }
602
- function ps(t) {
603
- return vn(t, ve(t));
604
- }
605
- function ds(t, e, n, r, o, i, s) {
606
- var u = oe(t, n), c = oe(e, n), a = s.get(c);
607
- if (a) {
608
- re(t, n, a);
609
- return;
610
- }
611
- var m = i ? i(u, c, n + "", t, e, s) : void 0, b = m === void 0;
612
- if (b) {
613
- var S = Xt(c), y = !S && xn(c), x = !S && !y && An(c);
614
- m = c, S || y || x ? Xt(u) ? m = u : ls(u) ? m = zr(u) : y ? (b = !1, m = Vi(c, !0)) : x ? (b = !1, m = ss(c, !0)) : m = [] : Cn(c) || Qt(c) ? (m = u, Qt(u) ? m = ps(u) : (!st(u) || me(u)) && (m = as(c))) : b = !1;
615
- }
616
- b && (s.set(c, m), o(m, c, r, i, s), s.delete(c)), re(t, n, m);
617
- }
618
- function Mn(t, e, n, r, o) {
619
- t !== e && fs(e, function(i, s) {
620
- if (o || (o = new ht()), st(i))
621
- ds(t, e, s, n, Mn, r, o);
622
- else {
623
- var u = r ? r(oe(t, s), i, s + "", t, e, o) : void 0;
624
- u === void 0 && (u = i), re(t, s, u);
625
- }
626
- }, ve);
627
- }
628
- var hs = _n(function(t, e, n) {
629
- Mn(t, e, n);
630
- });
631
- const ms = hs;
632
- function ys(t = !0) {
633
- const e = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
634
- /[xy]/g,
635
- function(n) {
636
- const r = Math.random() * 16 | 0;
637
- return (n === "x" ? r : r & 3 | 8).toString(16);
638
- }
639
- );
640
- return t ? e.toLowerCase() : e.replace(/-/gi, "");
641
- }
642
- function gs(t, e) {
643
- const n = /* @__PURE__ */ Object.create(null), r = e || ((o) => o != null);
644
- return Object.entries(t).forEach(([o, i]) => {
645
- r(i) && (n[o] = i);
646
- }), n;
647
- }
648
- function Pt(t) {
649
- const e = typeof t;
650
- return e === "string" ? t.trim() : Array.isArray(t) ? t.map((n) => Pt(n)) : (t && e === "object" && Object.entries(t).forEach(([n, r]) => {
651
- t[n] = Pt(r);
652
- }), t);
653
- }
654
- function Pn(t, e) {
655
- return function() {
656
- return t.apply(e, arguments);
657
- };
658
- }
659
- const { toString: Nn } = Object.prototype, { getPrototypeOf: we } = Object, _e = ((t) => (e) => {
660
- const n = Nn.call(e);
661
- return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
662
- })(/* @__PURE__ */ Object.create(null)), Z = (t) => (t = t.toLowerCase(), (e) => _e(e) === t), Ut = (t) => (e) => typeof e === t, { isArray: mt } = Array, St = Ut("undefined");
663
- function vs(t) {
664
- return t !== null && !St(t) && t.constructor !== null && !St(t.constructor) && et(t.constructor.isBuffer) && t.constructor.isBuffer(t);
665
- }
666
- const Bn = Z("ArrayBuffer");
667
- function bs(t) {
668
- let e;
669
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Bn(t.buffer), e;
670
- }
671
- const ws = Ut("string"), et = Ut("function"), Fn = Ut("number"), Oe = (t) => t !== null && typeof t == "object", _s = (t) => t === !0 || t === !1, Rt = (t) => {
672
- if (_e(t) !== "object")
673
- return !1;
674
- const e = we(t);
675
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
676
- }, Os = Z("Date"), Ss = Z("File"), js = Z("Blob"), xs = Z("FileList"), Es = (t) => Oe(t) && et(t.pipe), As = (t) => {
677
- const e = "[object FormData]";
678
- return t && (typeof FormData == "function" && t instanceof FormData || Nn.call(t) === e || et(t.toString) && t.toString() === e);
679
- }, Rs = Z("URLSearchParams"), Ts = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
680
- function jt(t, e, { allOwnKeys: n = !1 } = {}) {
681
- if (t === null || typeof t > "u")
682
- return;
683
- let r, o;
684
- if (typeof t != "object" && (t = [t]), mt(t))
685
- for (r = 0, o = t.length; r < o; r++)
686
- e.call(null, t[r], r, t);
687
- else {
688
- const i = n ? Object.getOwnPropertyNames(t) : Object.keys(t), s = i.length;
689
- let u;
690
- for (r = 0; r < s; r++)
691
- u = i[r], e.call(null, t[u], u, t);
692
- }
693
- }
694
- function Ln(t, e) {
695
- e = e.toLowerCase();
696
- const n = Object.keys(t);
697
- let r = n.length, o;
698
- for (; r-- > 0; )
699
- if (o = n[r], e === o.toLowerCase())
700
- return o;
701
- return null;
702
- }
703
- const kn = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Un = (t) => !St(t) && t !== kn;
704
- function ie() {
705
- const { caseless: t } = Un(this) && this || {}, e = {}, n = (r, o) => {
706
- const i = t && Ln(e, o) || o;
707
- Rt(e[i]) && Rt(r) ? e[i] = ie(e[i], r) : Rt(r) ? e[i] = ie({}, r) : mt(r) ? e[i] = r.slice() : e[i] = r;
708
- };
709
- for (let r = 0, o = arguments.length; r < o; r++)
710
- arguments[r] && jt(arguments[r], n);
711
- return e;
712
- }
713
- const Cs = (t, e, n, { allOwnKeys: r } = {}) => (jt(e, (o, i) => {
714
- n && et(o) ? t[i] = Pn(o, n) : t[i] = o;
715
- }, { allOwnKeys: r }), t), Ds = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ms = (t, e, n, r) => {
716
- t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
717
- value: e.prototype
718
- }), n && Object.assign(t.prototype, n);
719
- }, Ps = (t, e, n, r) => {
720
- let o, i, s;
721
- const u = {};
722
- if (e = e || {}, t == null)
723
- return e;
724
- do {
725
- for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
726
- s = o[i], (!r || r(s, t, e)) && !u[s] && (e[s] = t[s], u[s] = !0);
727
- t = n !== !1 && we(t);
728
- } while (t && (!n || n(t, e)) && t !== Object.prototype);
729
- return e;
730
- }, Ns = (t, e, n) => {
731
- t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
732
- const r = t.indexOf(e, n);
733
- return r !== -1 && r === n;
734
- }, Bs = (t) => {
735
- if (!t)
736
- return null;
737
- if (mt(t))
738
- return t;
739
- let e = t.length;
740
- if (!Fn(e))
741
- return null;
742
- const n = new Array(e);
743
- for (; e-- > 0; )
744
- n[e] = t[e];
1
+ import { ref as a, getCurrentInstance as g, inject as d, computed as v, unref as l, defineComponent as r, renderSlot as C, provide as E, h as f } from "vue";
2
+ import { merge as S } from "@vtj/utils";
3
+ const i = (n, t) => {
4
+ if (n.install = (e) => {
5
+ for (const o of [n, ...Object.values(t ?? {})])
6
+ typeof o == "function" ? e.use(o) : o.name && e.component(o.name, o);
7
+ }, t)
8
+ for (const [e, o] of Object.entries(t))
9
+ n[e] = o;
745
10
  return n;
746
- }, Fs = ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && we(Uint8Array)), Ls = (t, e) => {
747
- const n = (t && t[Symbol.iterator]).call(t);
748
- let r;
749
- for (; (r = n.next()) && !r.done; ) {
750
- const o = r.value;
751
- e.call(t, o[0], o[1]);
752
- }
753
- }, ks = (t, e) => {
754
- let n;
755
- const r = [];
756
- for (; (n = t.exec(e)) !== null; )
757
- r.push(n);
758
- return r;
759
- }, Us = Z("HTMLFormElement"), $s = (t) => t.toLowerCase().replace(
760
- /[-_\s]([a-z\d])(\w*)/g,
761
- function(e, n, r) {
762
- return n.toUpperCase() + r;
763
- }
764
- ), qe = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Is = Z("RegExp"), $n = (t, e) => {
765
- const n = Object.getOwnPropertyDescriptors(t), r = {};
766
- jt(n, (o, i) => {
767
- e(o, i, t) !== !1 && (r[i] = o);
768
- }), Object.defineProperties(t, r);
769
- }, zs = (t) => {
770
- $n(t, (e, n) => {
771
- if (et(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
772
- return !1;
773
- const r = t[n];
774
- if (et(r)) {
775
- if (e.enumerable = !1, "writable" in e) {
776
- e.writable = !1;
777
- return;
778
- }
779
- e.set || (e.set = () => {
780
- throw Error("Can not rewrite read-only method '" + n + "'");
781
- });
782
- }
783
- });
784
- }, Hs = (t, e) => {
785
- const n = {}, r = (o) => {
786
- o.forEach((i) => {
787
- n[i] = !0;
788
- });
789
- };
790
- return mt(t) ? r(t) : r(String(t).split(e)), n;
791
- }, Ys = () => {
792
- }, Ws = (t, e) => (t = +t, Number.isFinite(t) ? t : e), qt = "abcdefghijklmnopqrstuvwxyz", Je = "0123456789", In = {
793
- DIGIT: Je,
794
- ALPHA: qt,
795
- ALPHA_DIGIT: qt + qt.toUpperCase() + Je
796
- }, qs = (t = 16, e = In.ALPHA_DIGIT) => {
797
- let n = "";
798
- const { length: r } = e;
799
- for (; t--; )
800
- n += e[Math.random() * r | 0];
801
- return n;
802
- };
803
- function Js(t) {
804
- return !!(t && et(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
805
- }
806
- const Vs = (t) => {
807
- const e = new Array(10), n = (r, o) => {
808
- if (Oe(r)) {
809
- if (e.indexOf(r) >= 0)
810
- return;
811
- if (!("toJSON" in r)) {
812
- e[o] = r;
813
- const i = mt(r) ? [] : {};
814
- return jt(r, (s, u) => {
815
- const c = n(s, o + 1);
816
- !St(c) && (i[u] = c);
817
- }), e[o] = void 0, i;
818
- }
819
- }
820
- return r;
821
- };
822
- return n(t, 0);
823
- }, f = {
824
- isArray: mt,
825
- isArrayBuffer: Bn,
826
- isBuffer: vs,
827
- isFormData: As,
828
- isArrayBufferView: bs,
829
- isString: ws,
830
- isNumber: Fn,
831
- isBoolean: _s,
832
- isObject: Oe,
833
- isPlainObject: Rt,
834
- isUndefined: St,
835
- isDate: Os,
836
- isFile: Ss,
837
- isBlob: js,
838
- isRegExp: Is,
839
- isFunction: et,
840
- isStream: Es,
841
- isURLSearchParams: Rs,
842
- isTypedArray: Fs,
843
- isFileList: xs,
844
- forEach: jt,
845
- merge: ie,
846
- extend: Cs,
847
- trim: Ts,
848
- stripBOM: Ds,
849
- inherits: Ms,
850
- toFlatObject: Ps,
851
- kindOf: _e,
852
- kindOfTest: Z,
853
- endsWith: Ns,
854
- toArray: Bs,
855
- forEachEntry: Ls,
856
- matchAll: ks,
857
- isHTMLForm: Us,
858
- hasOwnProperty: qe,
859
- hasOwnProp: qe,
860
- // an alias to avoid ESLint no-prototype-builtins detection
861
- reduceDescriptors: $n,
862
- freezeMethods: zs,
863
- toObjectSet: Hs,
864
- toCamelCase: $s,
865
- noop: Ys,
866
- toFiniteNumber: Ws,
867
- findKey: Ln,
868
- global: kn,
869
- isContextDefined: Un,
870
- ALPHABET: In,
871
- generateString: qs,
872
- isSpecCompliantForm: Js,
873
- toJSONObject: Vs
874
- };
875
- function L(t, e, n, r, o) {
876
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o);
877
- }
878
- f.inherits(L, Error, {
879
- toJSON: function() {
880
- return {
881
- // Standard
882
- message: this.message,
883
- name: this.name,
884
- // Microsoft
885
- description: this.description,
886
- number: this.number,
887
- // Mozilla
888
- fileName: this.fileName,
889
- lineNumber: this.lineNumber,
890
- columnNumber: this.columnNumber,
891
- stack: this.stack,
892
- // Axios
893
- config: f.toJSONObject(this.config),
894
- code: this.code,
895
- status: this.response && this.response.status ? this.response.status : null
896
- };
897
- }
898
- });
899
- const zn = L.prototype, Hn = {};
900
- [
901
- "ERR_BAD_OPTION_VALUE",
902
- "ERR_BAD_OPTION",
903
- "ECONNABORTED",
904
- "ETIMEDOUT",
905
- "ERR_NETWORK",
906
- "ERR_FR_TOO_MANY_REDIRECTS",
907
- "ERR_DEPRECATED",
908
- "ERR_BAD_RESPONSE",
909
- "ERR_BAD_REQUEST",
910
- "ERR_CANCELED",
911
- "ERR_NOT_SUPPORT",
912
- "ERR_INVALID_URL"
913
- // eslint-disable-next-line func-names
914
- ].forEach((t) => {
915
- Hn[t] = { value: t };
916
- });
917
- Object.defineProperties(L, Hn);
918
- Object.defineProperty(zn, "isAxiosError", { value: !0 });
919
- L.from = (t, e, n, r, o, i) => {
920
- const s = Object.create(zn);
921
- return f.toFlatObject(t, s, function(u) {
922
- return u !== Error.prototype;
923
- }, (u) => u !== "isAxiosError"), L.call(s, t.message, e, n, r, o), s.cause = t, s.name = t.name, i && Object.assign(s, i), s;
924
- };
925
- const Ks = null;
926
- function se(t) {
927
- return f.isPlainObject(t) || f.isArray(t);
11
+ }, c = a({});
12
+ function X(n, t) {
13
+ const e = g() ? d(p, c) : c;
14
+ return v(() => n ? e.value[n] ?? t : e);
928
15
  }
929
- function Yn(t) {
930
- return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
16
+ function x(n) {
17
+ c.value = S(l(c), l(n));
931
18
  }
932
- function Ve(t, e, n) {
933
- return t ? t.concat(e).map(function(r, o) {
934
- return r = Yn(r), !n && o ? "[" + r + "]" : r;
935
- }).join(n ? "." : "") : e;
936
- }
937
- function Gs(t) {
938
- return f.isArray(t) && !t.some(se);
939
- }
940
- const Xs = f.toFlatObject(f, {}, null, function(t) {
941
- return /^is[A-Z]/.test(t);
942
- });
943
- function $t(t, e, n) {
944
- if (!f.isObject(t))
945
- throw new TypeError("target must be an object");
946
- e = e || new FormData(), n = f.toFlatObject(n, {
947
- metaTokens: !0,
948
- dots: !1,
949
- indexes: !1
950
- }, !1, function(y, x) {
951
- return !f.isUndefined(x[y]);
952
- });
953
- const r = n.metaTokens, o = n.visitor || a, i = n.dots, s = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
954
- if (!f.isFunction(o))
955
- throw new TypeError("visitor must be a function");
956
- function c(y) {
957
- if (y === null)
958
- return "";
959
- if (f.isDate(y))
960
- return y.toISOString();
961
- if (!u && f.isBlob(y))
962
- throw new L("Blob is not supported. Use a Buffer instead.");
963
- return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
964
- }
965
- function a(y, x, E) {
966
- let A = y;
967
- if (y && !E && typeof y == "object") {
968
- if (f.endsWith(x, "{}"))
969
- x = r ? x : x.slice(0, -2), y = JSON.stringify(y);
970
- else if (f.isArray(y) && Gs(y) || (f.isFileList(y) || f.endsWith(x, "[]")) && (A = f.toArray(y)))
971
- return x = Yn(x), A.forEach(function($, h) {
972
- !(f.isUndefined($) || $ === null) && e.append(
973
- // eslint-disable-next-line no-nested-ternary
974
- s === !0 ? Ve([x], h, i) : s === null ? x : x + "[]",
975
- c($)
976
- );
977
- }), !1;
978
- }
979
- return se(y) ? !0 : (e.append(Ve(E, x, i), c(y)), !1);
980
- }
981
- const m = [], b = Object.assign(Xs, {
982
- defaultVisitor: a,
983
- convertValue: c,
984
- isVisitable: se
985
- });
986
- function S(y, x) {
987
- if (!f.isUndefined(y)) {
988
- if (m.indexOf(y) !== -1)
989
- throw Error("Circular reference detected in " + x.join("."));
990
- m.push(y), f.forEach(y, function(E, A) {
991
- (!(f.isUndefined(E) || E === null) && o.call(
992
- e,
993
- E,
994
- f.isString(A) ? A.trim() : A,
995
- x,
996
- b
997
- )) === !0 && S(E, x ? x.concat(A) : [A]);
998
- }), m.pop();
999
- }
1000
- }
1001
- if (!f.isObject(t))
1002
- throw new TypeError("data must be an object");
1003
- return S(t), e;
1004
- }
1005
- function Ke(t) {
1006
- const e = {
1007
- "!": "%21",
1008
- "'": "%27",
1009
- "(": "%28",
1010
- ")": "%29",
1011
- "~": "%7E",
1012
- "%20": "+",
1013
- "%00": "\0"
1014
- };
1015
- return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
1016
- return e[n];
1017
- });
1018
- }
1019
- function Se(t, e) {
1020
- this._pairs = [], t && $t(t, this, e);
1021
- }
1022
- const Wn = Se.prototype;
1023
- Wn.append = function(t, e) {
1024
- this._pairs.push([t, e]);
1025
- };
1026
- Wn.toString = function(t) {
1027
- const e = t ? function(n) {
1028
- return t.call(this, n, Ke);
1029
- } : Ke;
1030
- return this._pairs.map(function(n) {
1031
- return e(n[0]) + "=" + e(n[1]);
1032
- }, "").join("&");
1033
- };
1034
- function Zs(t) {
1035
- return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1036
- }
1037
- function qn(t, e, n) {
1038
- if (!e)
1039
- return t;
1040
- const r = n && n.encode || Zs, o = n && n.serialize;
1041
- let i;
1042
- if (o ? i = o(e, n) : i = f.isURLSearchParams(e) ? e.toString() : new Se(e, n).toString(r), i) {
1043
- const s = t.indexOf("#");
1044
- s !== -1 && (t = t.slice(0, s)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
1045
- }
1046
- return t;
1047
- }
1048
- class Qs {
1049
- constructor() {
1050
- this.handlers = [];
1051
- }
1052
- /**
1053
- * Add a new interceptor to the stack
1054
- *
1055
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
1056
- * @param {Function} rejected The function to handle `reject` for a `Promise`
1057
- *
1058
- * @return {Number} An ID used to remove interceptor later
1059
- */
1060
- use(e, n, r) {
1061
- return this.handlers.push({
1062
- fulfilled: e,
1063
- rejected: n,
1064
- synchronous: r ? r.synchronous : !1,
1065
- runWhen: r ? r.runWhen : null
1066
- }), this.handlers.length - 1;
1067
- }
1068
- /**
1069
- * Remove an interceptor from the stack
1070
- *
1071
- * @param {Number} id The ID that was returned by `use`
1072
- *
1073
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1074
- */
1075
- eject(e) {
1076
- this.handlers[e] && (this.handlers[e] = null);
1077
- }
1078
- /**
1079
- * Clear all interceptors from the stack
1080
- *
1081
- * @returns {void}
1082
- */
1083
- clear() {
1084
- this.handlers && (this.handlers = []);
1085
- }
1086
- /**
1087
- * Iterate over all the registered interceptors
1088
- *
1089
- * This method is particularly useful for skipping over any
1090
- * interceptors that may have become `null` calling `eject`.
1091
- *
1092
- * @param {Function} fn The function to call for each interceptor
1093
- *
1094
- * @returns {void}
1095
- */
1096
- forEach(e) {
1097
- f.forEach(this.handlers, function(n) {
1098
- n !== null && e(n);
1099
- });
1100
- }
1101
- }
1102
- const Ge = Qs, Jn = {
1103
- silentJSONParsing: !0,
1104
- forcedJSONParsing: !0,
1105
- clarifyTimeoutError: !1
1106
- }, ta = typeof URLSearchParams < "u" ? URLSearchParams : Se, ea = FormData, na = (() => {
1107
- let t;
1108
- return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
1109
- })(), ra = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1110
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), q = {
1111
- isBrowser: !0,
1112
- classes: {
1113
- URLSearchParams: ta,
1114
- FormData: ea,
1115
- Blob
1116
- },
1117
- isStandardBrowserEnv: na,
1118
- isStandardBrowserWebWorkerEnv: ra,
1119
- protocols: ["http", "https", "file", "blob", "url", "data"]
1120
- };
1121
- function oa(t, e) {
1122
- return $t(t, new q.classes.URLSearchParams(), Object.assign({
1123
- visitor: function(n, r, o, i) {
1124
- return q.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
1125
- }
1126
- }, e));
1127
- }
1128
- function ia(t) {
1129
- return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
1130
- }
1131
- function sa(t) {
1132
- const e = {}, n = Object.keys(t);
1133
- let r;
1134
- const o = n.length;
1135
- let i;
1136
- for (r = 0; r < o; r++)
1137
- i = n[r], e[i] = t[i];
1138
- return e;
1139
- }
1140
- function Vn(t) {
1141
- function e(n, r, o, i) {
1142
- let s = n[i++];
1143
- const u = Number.isFinite(+s), c = i >= n.length;
1144
- return s = !s && f.isArray(o) ? o.length : s, c ? (f.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !u) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), e(n, r, o[s], i) && f.isArray(o[s]) && (o[s] = sa(o[s])), !u);
1145
- }
1146
- if (f.isFormData(t) && f.isFunction(t.entries)) {
1147
- const n = {};
1148
- return f.forEachEntry(t, (r, o) => {
1149
- e(ia(r), o, n, 0);
1150
- }), n;
1151
- }
1152
- return null;
1153
- }
1154
- const aa = {
1155
- "Content-Type": void 0
1156
- };
1157
- function ca(t, e, n) {
1158
- if (f.isString(t))
1159
- try {
1160
- return (e || JSON.parse)(t), f.trim(t);
1161
- } catch (r) {
1162
- if (r.name !== "SyntaxError")
1163
- throw r;
1164
- }
1165
- return (n || JSON.stringify)(t);
1166
- }
1167
- const It = {
1168
- transitional: Jn,
1169
- adapter: ["xhr", "http"],
1170
- transformRequest: [function(t, e) {
1171
- const n = e.getContentType() || "", r = n.indexOf("application/json") > -1, o = f.isObject(t);
1172
- if (o && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
1173
- return r && r ? JSON.stringify(Vn(t)) : t;
1174
- if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t))
1175
- return t;
1176
- if (f.isArrayBufferView(t))
1177
- return t.buffer;
1178
- if (f.isURLSearchParams(t))
1179
- return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1180
- let i;
1181
- if (o) {
1182
- if (n.indexOf("application/x-www-form-urlencoded") > -1)
1183
- return oa(t, this.formSerializer).toString();
1184
- if ((i = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
1185
- const s = this.env && this.env.FormData;
1186
- return $t(
1187
- i ? { "files[]": t } : t,
1188
- s && new s(),
1189
- this.formSerializer
1190
- );
1191
- }
1192
- }
1193
- return o || r ? (e.setContentType("application/json", !1), ca(t)) : t;
1194
- }],
1195
- transformResponse: [function(t) {
1196
- const e = this.transitional || It.transitional, n = e && e.forcedJSONParsing, r = this.responseType === "json";
1197
- if (t && f.isString(t) && (n && !this.responseType || r)) {
1198
- const o = !(e && e.silentJSONParsing) && r;
1199
- try {
1200
- return JSON.parse(t);
1201
- } catch (i) {
1202
- if (o)
1203
- throw i.name === "SyntaxError" ? L.from(i, L.ERR_BAD_RESPONSE, this, null, this.response) : i;
1204
- }
1205
- }
1206
- return t;
1207
- }],
1208
- /**
1209
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
1210
- * timeout is not created.
1211
- */
1212
- timeout: 0,
1213
- xsrfCookieName: "XSRF-TOKEN",
1214
- xsrfHeaderName: "X-XSRF-TOKEN",
1215
- maxContentLength: -1,
1216
- maxBodyLength: -1,
1217
- env: {
1218
- FormData: q.classes.FormData,
1219
- Blob: q.classes.Blob
1220
- },
1221
- validateStatus: function(t) {
1222
- return t >= 200 && t < 300;
1223
- },
1224
- headers: {
1225
- common: {
1226
- Accept: "application/json, text/plain, */*"
1227
- }
1228
- }
1229
- };
1230
- f.forEach(["delete", "get", "head"], function(t) {
1231
- It.headers[t] = {};
1232
- });
1233
- f.forEach(["post", "put", "patch"], function(t) {
1234
- It.headers[t] = f.merge(aa);
1235
- });
1236
- const je = It, ua = f.toObjectSet([
1237
- "age",
1238
- "authorization",
1239
- "content-length",
1240
- "content-type",
1241
- "etag",
1242
- "expires",
1243
- "from",
1244
- "host",
1245
- "if-modified-since",
1246
- "if-unmodified-since",
1247
- "last-modified",
1248
- "location",
1249
- "max-forwards",
1250
- "proxy-authorization",
1251
- "referer",
1252
- "retry-after",
1253
- "user-agent"
1254
- ]), fa = (t) => {
1255
- const e = {};
1256
- let n, r, o;
1257
- return t && t.split(`
1258
- `).forEach(function(i) {
1259
- o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && ua[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
1260
- }), e;
1261
- }, Xe = Symbol("internals");
1262
- function bt(t) {
1263
- return t && String(t).trim().toLowerCase();
1264
- }
1265
- function Tt(t) {
1266
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(Tt) : String(t);
1267
- }
1268
- function la(t) {
1269
- const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1270
- let r;
1271
- for (; r = n.exec(t); )
1272
- e[r[1]] = r[2];
1273
- return e;
1274
- }
1275
- function pa(t) {
1276
- return /^[-_a-zA-Z]+$/.test(t.trim());
1277
- }
1278
- function Jt(t, e, n, r) {
1279
- if (f.isFunction(r))
1280
- return r.call(this, e, n);
1281
- if (f.isString(e)) {
1282
- if (f.isString(r))
1283
- return e.indexOf(r) !== -1;
1284
- if (f.isRegExp(r))
1285
- return r.test(e);
19
+ const y = {
20
+ tag: {
21
+ type: String,
22
+ default: "div"
1286
23
  }
24
+ }, p = Symbol("ConfigContext");
25
+ function m(n, t) {
26
+ const e = !!g(), o = t?.provide ?? (e ? E : void 0), s = a(n);
27
+ return o ? o(p, s) : x(s), s;
1287
28
  }
1288
- function da(t) {
1289
- return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
1290
- }
1291
- function ha(t, e) {
1292
- const n = f.toCamelCase(" " + e);
1293
- ["get", "set", "has"].forEach((r) => {
1294
- Object.defineProperty(t, r + n, {
1295
- value: function(o, i, s) {
1296
- return this[r].call(this, e, o, i, s);
1297
- },
1298
- configurable: !0
1299
- });
1300
- });
1301
- }
1302
- let zt = class {
1303
- constructor(t) {
1304
- t && this.set(t);
1305
- }
1306
- set(t, e, n) {
1307
- const r = this;
1308
- function o(s, u, c) {
1309
- const a = bt(u);
1310
- if (!a)
1311
- throw new Error("header name must be a non-empty string");
1312
- const m = f.findKey(r, a);
1313
- (!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || u] = Tt(s));
1314
- }
1315
- const i = (s, u) => f.forEach(s, (c, a) => o(c, a, u));
1316
- return f.isPlainObject(t) || t instanceof this.constructor ? i(t, e) : f.isString(t) && (t = t.trim()) && !pa(t) ? i(fa(t), e) : t != null && o(e, t, n), this;
1317
- }
1318
- get(t, e) {
1319
- if (t = bt(t), t) {
1320
- const n = f.findKey(this, t);
1321
- if (n) {
1322
- const r = this[n];
1323
- if (!e)
1324
- return r;
1325
- if (e === !0)
1326
- return la(r);
1327
- if (f.isFunction(e))
1328
- return e.call(this, r, n);
1329
- if (f.isRegExp(e))
1330
- return e.exec(r);
1331
- throw new TypeError("parser must be boolean|regexp|function");
1332
- }
1333
- }
1334
- }
1335
- has(t, e) {
1336
- if (t = bt(t), t) {
1337
- const n = f.findKey(this, t);
1338
- return !!(n && this[n] !== void 0 && (!e || Jt(this, this[n], n, e)));
1339
- }
1340
- return !1;
1341
- }
1342
- delete(t, e) {
1343
- const n = this;
1344
- let r = !1;
1345
- function o(i) {
1346
- if (i = bt(i), i) {
1347
- const s = f.findKey(n, i);
1348
- s && (!e || Jt(n, n[s], s, e)) && (delete n[s], r = !0);
1349
- }
1350
- }
1351
- return f.isArray(t) ? t.forEach(o) : o(t), r;
1352
- }
1353
- clear(t) {
1354
- const e = Object.keys(this);
1355
- let n = e.length, r = !1;
1356
- for (; n--; ) {
1357
- const o = e[n];
1358
- (!t || Jt(this, this[o], o, t)) && (delete this[o], r = !0);
1359
- }
1360
- return r;
1361
- }
1362
- normalize(t) {
1363
- const e = this, n = {};
1364
- return f.forEach(this, (r, o) => {
1365
- const i = f.findKey(n, o);
1366
- if (i) {
1367
- e[i] = Tt(r), delete e[o];
1368
- return;
1369
- }
1370
- const s = t ? da(o) : String(o).trim();
1371
- s !== o && delete e[o], e[s] = Tt(r), n[s] = !0;
1372
- }), this;
1373
- }
1374
- concat(...t) {
1375
- return this.constructor.concat(this, ...t);
1376
- }
1377
- toJSON(t) {
1378
- const e = /* @__PURE__ */ Object.create(null);
1379
- return f.forEach(this, (n, r) => {
1380
- n != null && n !== !1 && (e[r] = t && f.isArray(n) ? n.join(", ") : n);
1381
- }), e;
1382
- }
1383
- [Symbol.iterator]() {
1384
- return Object.entries(this.toJSON())[Symbol.iterator]();
1385
- }
1386
- toString() {
1387
- return Object.entries(this.toJSON()).map(([t, e]) => t + ": " + e).join(`
1388
- `);
1389
- }
1390
- get [Symbol.toStringTag]() {
1391
- return "AxiosHeaders";
1392
- }
1393
- static from(t) {
1394
- return t instanceof this ? t : new this(t);
1395
- }
1396
- static concat(t, ...e) {
1397
- const n = new this(t);
1398
- return e.forEach((r) => n.set(r)), n;
1399
- }
1400
- static accessor(t) {
1401
- const e = (this[Xe] = this[Xe] = {
1402
- accessors: {}
1403
- }).accessors, n = this.prototype;
1404
- function r(o) {
1405
- const i = bt(o);
1406
- e[i] || (ha(n, o), e[i] = !0);
1407
- }
1408
- return f.isArray(t) ? t.forEach(r) : r(t), this;
29
+ const b = r({
30
+ name: "XConfig",
31
+ props: y,
32
+ setup(n, { slots: t }) {
33
+ const e = m(n);
34
+ return () => C(t, "default", { config: l(e) });
1409
35
  }
1410
- };
1411
- zt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1412
- f.freezeMethods(zt.prototype);
1413
- f.freezeMethods(zt);
1414
- const G = zt;
1415
- function Vt(t, e) {
1416
- const n = this || je, r = e || n, o = G.from(r.headers);
1417
- let i = r.data;
1418
- return f.forEach(t, function(s) {
1419
- i = s.call(n, i, o.normalize(), e ? e.status : void 0);
1420
- }), o.normalize(), i;
1421
- }
1422
- function Kn(t) {
1423
- return !!(t && t.__CANCEL__);
1424
- }
1425
- function xt(t, e, n) {
1426
- L.call(this, t ?? "canceled", L.ERR_CANCELED, e, n), this.name = "CanceledError";
1427
- }
1428
- f.inherits(xt, L, {
1429
- __CANCEL__: !0
1430
- });
1431
- function ma(t, e, n) {
1432
- const r = n.config.validateStatus;
1433
- !n.status || !r || r(n.status) ? t(n) : e(new L(
1434
- "Request failed with status code " + n.status,
1435
- [L.ERR_BAD_REQUEST, L.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1436
- n.config,
1437
- n.request,
1438
- n
1439
- ));
1440
- }
1441
- const ya = q.isStandardBrowserEnv ? (
1442
- // Standard browser envs support document.cookie
1443
- function() {
1444
- return {
1445
- write: function(t, e, n, r, o, i) {
1446
- const s = [];
1447
- s.push(t + "=" + encodeURIComponent(e)), f.isNumber(n) && s.push("expires=" + new Date(n).toGMTString()), f.isString(r) && s.push("path=" + r), f.isString(o) && s.push("domain=" + o), i === !0 && s.push("secure"), document.cookie = s.join("; ");
1448
- },
1449
- read: function(t) {
1450
- const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
1451
- return e ? decodeURIComponent(e[3]) : null;
1452
- },
1453
- remove: function(t) {
1454
- this.write(t, "", Date.now() - 864e5);
1455
- }
1456
- };
1457
- }()
1458
- ) : (
1459
- // Non standard browser env (web workers, react-native) lack needed support.
1460
- function() {
1461
- return {
1462
- write: function() {
1463
- },
1464
- read: function() {
1465
- return null;
36
+ }), k = i(b), I = r({
37
+ name: "XPage",
38
+ setup(n, { slots: t }) {
39
+ return () => f(
40
+ "div",
41
+ {
42
+ class: "x-page"
1466
43
  },
1467
- remove: function() {
1468
- }
1469
- };
1470
- }()
1471
- );
1472
- function ga(t) {
1473
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
1474
- }
1475
- function va(t, e) {
1476
- return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t;
1477
- }
1478
- function Gn(t, e) {
1479
- return t && !ga(e) ? va(t, e) : e;
1480
- }
1481
- const ba = q.isStandardBrowserEnv ? (
1482
- // Standard browser envs have full support of the APIs needed to test
1483
- // whether the request URL is of the same origin as current location.
1484
- function() {
1485
- const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a");
1486
- let n;
1487
- function r(o) {
1488
- let i = o;
1489
- return t && (e.setAttribute("href", i), i = e.href), e.setAttribute("href", i), {
1490
- href: e.href,
1491
- protocol: e.protocol ? e.protocol.replace(/:$/, "") : "",
1492
- host: e.host,
1493
- search: e.search ? e.search.replace(/^\?/, "") : "",
1494
- hash: e.hash ? e.hash.replace(/^#/, "") : "",
1495
- hostname: e.hostname,
1496
- port: e.port,
1497
- pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname
1498
- };
1499
- }
1500
- return n = r(window.location.href), function(o) {
1501
- const i = f.isString(o) ? r(o) : o;
1502
- return i.protocol === n.protocol && i.host === n.host;
1503
- };
1504
- }()
1505
- ) : (
1506
- // Non standard browser envs (web workers, react-native) lack needed support.
1507
- function() {
1508
- return function() {
1509
- return !0;
1510
- };
1511
- }()
1512
- );
1513
- function wa(t) {
1514
- const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
1515
- return e && e[1] || "";
1516
- }
1517
- function _a(t, e) {
1518
- t = t || 10;
1519
- const n = new Array(t), r = new Array(t);
1520
- let o = 0, i = 0, s;
1521
- return e = e !== void 0 ? e : 1e3, function(u) {
1522
- const c = Date.now(), a = r[i];
1523
- s || (s = c), n[o] = u, r[o] = c;
1524
- let m = i, b = 0;
1525
- for (; m !== o; )
1526
- b += n[m++], m = m % t;
1527
- if (o = (o + 1) % t, o === i && (i = (i + 1) % t), c - s < e)
1528
- return;
1529
- const S = a && c - a;
1530
- return S ? Math.round(b * 1e3 / S) : void 0;
1531
- };
1532
- }
1533
- function Ze(t, e) {
1534
- let n = 0;
1535
- const r = _a(50, 250);
1536
- return (o) => {
1537
- const i = o.loaded, s = o.lengthComputable ? o.total : void 0, u = i - n, c = r(u), a = i <= s;
1538
- n = i;
1539
- const m = {
1540
- loaded: i,
1541
- total: s,
1542
- progress: s ? i / s : void 0,
1543
- bytes: u,
1544
- rate: c || void 0,
1545
- estimated: c && s && a ? (s - i) / c : void 0,
1546
- event: o
1547
- };
1548
- m[e ? "download" : "upload"] = !0, t(m);
1549
- };
1550
- }
1551
- const Oa = typeof XMLHttpRequest < "u", Sa = Oa && function(t) {
1552
- return new Promise(function(e, n) {
1553
- let r = t.data;
1554
- const o = G.from(t.headers).normalize(), i = t.responseType;
1555
- let s;
1556
- function u() {
1557
- t.cancelToken && t.cancelToken.unsubscribe(s), t.signal && t.signal.removeEventListener("abort", s);
1558
- }
1559
- f.isFormData(r) && (q.isStandardBrowserEnv || q.isStandardBrowserWebWorkerEnv) && o.setContentType(!1);
1560
- let c = new XMLHttpRequest();
1561
- if (t.auth) {
1562
- const S = t.auth.username || "", y = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
1563
- o.set("Authorization", "Basic " + btoa(S + ":" + y));
1564
- }
1565
- const a = Gn(t.baseURL, t.url);
1566
- c.open(t.method.toUpperCase(), qn(a, t.params, t.paramsSerializer), !0), c.timeout = t.timeout;
1567
- function m() {
1568
- if (!c)
1569
- return;
1570
- const S = G.from(
1571
- "getAllResponseHeaders" in c && c.getAllResponseHeaders()
1572
- ), y = {
1573
- data: !i || i === "text" || i === "json" ? c.responseText : c.response,
1574
- status: c.status,
1575
- statusText: c.statusText,
1576
- headers: S,
1577
- config: t,
1578
- request: c
1579
- };
1580
- ma(function(x) {
1581
- e(x), u();
1582
- }, function(x) {
1583
- n(x), u();
1584
- }, y), c = null;
1585
- }
1586
- if ("onloadend" in c ? c.onloadend = m : c.onreadystatechange = function() {
1587
- !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(m);
1588
- }, c.onabort = function() {
1589
- c && (n(new L("Request aborted", L.ECONNABORTED, t, c)), c = null);
1590
- }, c.onerror = function() {
1591
- n(new L("Network Error", L.ERR_NETWORK, t, c)), c = null;
1592
- }, c.ontimeout = function() {
1593
- let S = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
1594
- const y = t.transitional || Jn;
1595
- t.timeoutErrorMessage && (S = t.timeoutErrorMessage), n(new L(
1596
- S,
1597
- y.clarifyTimeoutError ? L.ETIMEDOUT : L.ECONNABORTED,
1598
- t,
1599
- c
1600
- )), c = null;
1601
- }, q.isStandardBrowserEnv) {
1602
- const S = (t.withCredentials || ba(a)) && t.xsrfCookieName && ya.read(t.xsrfCookieName);
1603
- S && o.set(t.xsrfHeaderName, S);
1604
- }
1605
- r === void 0 && o.setContentType(null), "setRequestHeader" in c && f.forEach(o.toJSON(), function(S, y) {
1606
- c.setRequestHeader(y, S);
1607
- }), f.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), i && i !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", Ze(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Ze(t.onUploadProgress)), (t.cancelToken || t.signal) && (s = (S) => {
1608
- c && (n(!S || S.type ? new xt(null, t, c) : S), c.abort(), c = null);
1609
- }, t.cancelToken && t.cancelToken.subscribe(s), t.signal && (t.signal.aborted ? s() : t.signal.addEventListener("abort", s)));
1610
- const b = wa(a);
1611
- if (b && q.protocols.indexOf(b) === -1) {
1612
- n(new L("Unsupported protocol " + b + ":", L.ERR_BAD_REQUEST, t));
1613
- return;
1614
- }
1615
- c.send(r || null);
1616
- });
1617
- }, Ct = {
1618
- http: Ks,
1619
- xhr: Sa
1620
- };
1621
- f.forEach(Ct, (t, e) => {
1622
- if (t) {
1623
- try {
1624
- Object.defineProperty(t, "name", { value: e });
1625
- } catch {
1626
- }
1627
- Object.defineProperty(t, "adapterName", { value: e });
1628
- }
1629
- });
1630
- const ja = {
1631
- getAdapter: (t) => {
1632
- t = f.isArray(t) ? t : [t];
1633
- const { length: e } = t;
1634
- let n, r;
1635
- for (let o = 0; o < e && (n = t[o], !(r = f.isString(n) ? Ct[n.toLowerCase()] : n)); o++)
1636
- ;
1637
- if (!r)
1638
- throw r === !1 ? new L(
1639
- `Adapter ${n} is not supported by the environment`,
1640
- "ERR_NOT_SUPPORT"
1641
- ) : new Error(
1642
- f.hasOwnProp(Ct, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
1643
- );
1644
- if (!f.isFunction(r))
1645
- throw new TypeError("adapter is not a function");
1646
- return r;
1647
- },
1648
- adapters: Ct
1649
- };
1650
- function Kt(t) {
1651
- if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1652
- throw new xt(null, t);
1653
- }
1654
- function Qe(t) {
1655
- return Kt(t), t.headers = G.from(t.headers), t.data = Vt.call(
1656
- t,
1657
- t.transformRequest
1658
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ja.getAdapter(t.adapter || je.adapter)(t).then(function(e) {
1659
- return Kt(t), e.data = Vt.call(
1660
- t,
1661
- t.transformResponse,
1662
- e
1663
- ), e.headers = G.from(e.headers), e;
1664
- }, function(e) {
1665
- return Kn(e) || (Kt(t), e && e.response && (e.response.data = Vt.call(
1666
- t,
1667
- t.transformResponse,
1668
- e.response
1669
- ), e.response.headers = G.from(e.response.headers))), Promise.reject(e);
1670
- });
1671
- }
1672
- const tn = (t) => t instanceof G ? t.toJSON() : t;
1673
- function pt(t, e) {
1674
- e = e || {};
1675
- const n = {};
1676
- function r(a, m, b) {
1677
- return f.isPlainObject(a) && f.isPlainObject(m) ? f.merge.call({ caseless: b }, a, m) : f.isPlainObject(m) ? f.merge({}, m) : f.isArray(m) ? m.slice() : m;
1678
- }
1679
- function o(a, m, b) {
1680
- if (f.isUndefined(m)) {
1681
- if (!f.isUndefined(a))
1682
- return r(void 0, a, b);
1683
- } else
1684
- return r(a, m, b);
1685
- }
1686
- function i(a, m) {
1687
- if (!f.isUndefined(m))
1688
- return r(void 0, m);
1689
- }
1690
- function s(a, m) {
1691
- if (f.isUndefined(m)) {
1692
- if (!f.isUndefined(a))
1693
- return r(void 0, a);
1694
- } else
1695
- return r(void 0, m);
1696
- }
1697
- function u(a, m, b) {
1698
- if (b in e)
1699
- return r(a, m);
1700
- if (b in t)
1701
- return r(void 0, a);
1702
- }
1703
- const c = {
1704
- url: i,
1705
- method: i,
1706
- data: i,
1707
- baseURL: s,
1708
- transformRequest: s,
1709
- transformResponse: s,
1710
- paramsSerializer: s,
1711
- timeout: s,
1712
- timeoutMessage: s,
1713
- withCredentials: s,
1714
- adapter: s,
1715
- responseType: s,
1716
- xsrfCookieName: s,
1717
- xsrfHeaderName: s,
1718
- onUploadProgress: s,
1719
- onDownloadProgress: s,
1720
- decompress: s,
1721
- maxContentLength: s,
1722
- maxBodyLength: s,
1723
- beforeRedirect: s,
1724
- transport: s,
1725
- httpAgent: s,
1726
- httpsAgent: s,
1727
- cancelToken: s,
1728
- socketPath: s,
1729
- responseEncoding: s,
1730
- validateStatus: u,
1731
- headers: (a, m) => o(tn(a), tn(m), !0)
1732
- };
1733
- return f.forEach(Object.keys(t).concat(Object.keys(e)), function(a) {
1734
- const m = c[a] || o, b = m(t[a], e[a], a);
1735
- f.isUndefined(b) && m !== u || (n[a] = b);
1736
- }), n;
1737
- }
1738
- const Xn = "1.3.1", xe = {};
1739
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1740
- xe[t] = function(n) {
1741
- return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1742
- };
1743
- });
1744
- const en = {};
1745
- xe.transitional = function(t, e, n) {
1746
- function r(o, i) {
1747
- return "[Axios v" + Xn + "] Transitional option '" + o + "'" + i + (n ? ". " + n : "");
1748
- }
1749
- return (o, i, s) => {
1750
- if (t === !1)
1751
- throw new L(
1752
- r(i, " has been removed" + (e ? " in " + e : "")),
1753
- L.ERR_DEPRECATED
1754
- );
1755
- return e && !en[i] && (en[i] = !0, console.warn(
1756
- r(
1757
- i,
1758
- " has been deprecated since v" + e + " and will be removed in the near future"
1759
- )
1760
- )), t ? t(o, i, s) : !0;
1761
- };
1762
- };
1763
- function xa(t, e, n) {
1764
- if (typeof t != "object")
1765
- throw new L("options must be an object", L.ERR_BAD_OPTION_VALUE);
1766
- const r = Object.keys(t);
1767
- let o = r.length;
1768
- for (; o-- > 0; ) {
1769
- const i = r[o], s = e[i];
1770
- if (s) {
1771
- const u = t[i], c = u === void 0 || s(u, i, t);
1772
- if (c !== !0)
1773
- throw new L("option " + i + " must be " + c, L.ERR_BAD_OPTION_VALUE);
1774
- continue;
1775
- }
1776
- if (n !== !0)
1777
- throw new L("Unknown option " + i, L.ERR_BAD_OPTION);
1778
- }
1779
- }
1780
- const ae = {
1781
- assertOptions: xa,
1782
- validators: xe
1783
- }, tt = ae.validators;
1784
- let Nt = class {
1785
- constructor(t) {
1786
- this.defaults = t, this.interceptors = {
1787
- request: new Ge(),
1788
- response: new Ge()
1789
- };
1790
- }
1791
- /**
1792
- * Dispatch a request
1793
- *
1794
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1795
- * @param {?Object} config
1796
- *
1797
- * @returns {Promise} The Promise to be fulfilled
1798
- */
1799
- request(t, e) {
1800
- typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = pt(this.defaults, e);
1801
- const { transitional: n, paramsSerializer: r, headers: o } = e;
1802
- n !== void 0 && ae.assertOptions(n, {
1803
- silentJSONParsing: tt.transitional(tt.boolean),
1804
- forcedJSONParsing: tt.transitional(tt.boolean),
1805
- clarifyTimeoutError: tt.transitional(tt.boolean)
1806
- }, !1), r !== void 0 && ae.assertOptions(r, {
1807
- encode: tt.function,
1808
- serialize: tt.function
1809
- }, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
1810
- let i;
1811
- i = o && f.merge(
1812
- o.common,
1813
- o[e.method]
1814
- ), i && f.forEach(
1815
- ["delete", "get", "head", "post", "put", "patch", "common"],
1816
- (y) => {
1817
- delete o[y];
1818
- }
1819
- ), e.headers = G.concat(i, o);
1820
- const s = [];
1821
- let u = !0;
1822
- this.interceptors.request.forEach(function(y) {
1823
- typeof y.runWhen == "function" && y.runWhen(e) === !1 || (u = u && y.synchronous, s.unshift(y.fulfilled, y.rejected));
1824
- });
1825
- const c = [];
1826
- this.interceptors.response.forEach(function(y) {
1827
- c.push(y.fulfilled, y.rejected);
1828
- });
1829
- let a, m = 0, b;
1830
- if (!u) {
1831
- const y = [Qe.bind(this), void 0];
1832
- for (y.unshift.apply(y, s), y.push.apply(y, c), b = y.length, a = Promise.resolve(e); m < b; )
1833
- a = a.then(y[m++], y[m++]);
1834
- return a;
1835
- }
1836
- b = s.length;
1837
- let S = e;
1838
- for (m = 0; m < b; ) {
1839
- const y = s[m++], x = s[m++];
1840
- try {
1841
- S = y(S);
1842
- } catch (E) {
1843
- x.call(this, E);
1844
- break;
1845
- }
1846
- }
1847
- try {
1848
- a = Qe.call(this, S);
1849
- } catch (y) {
1850
- return Promise.reject(y);
1851
- }
1852
- for (m = 0, b = c.length; m < b; )
1853
- a = a.then(c[m++], c[m++]);
1854
- return a;
1855
- }
1856
- getUri(t) {
1857
- t = pt(this.defaults, t);
1858
- const e = Gn(t.baseURL, t.url);
1859
- return qn(e, t.params, t.paramsSerializer);
1860
- }
1861
- };
1862
- f.forEach(["delete", "get", "head", "options"], function(t) {
1863
- Nt.prototype[t] = function(e, n) {
1864
- return this.request(pt(n || {}, {
1865
- method: t,
1866
- url: e,
1867
- data: (n || {}).data
1868
- }));
1869
- };
1870
- });
1871
- f.forEach(["post", "put", "patch"], function(t) {
1872
- function e(n) {
1873
- return function(r, o, i) {
1874
- return this.request(pt(i || {}, {
1875
- method: t,
1876
- headers: n ? {
1877
- "Content-Type": "multipart/form-data"
1878
- } : {},
1879
- url: r,
1880
- data: o
1881
- }));
1882
- };
1883
- }
1884
- Nt.prototype[t] = e(), Nt.prototype[t + "Form"] = e(!0);
1885
- });
1886
- const Dt = Nt;
1887
- let Ea = class Zn {
1888
- constructor(e) {
1889
- if (typeof e != "function")
1890
- throw new TypeError("executor must be a function.");
1891
- let n;
1892
- this.promise = new Promise(function(o) {
1893
- n = o;
1894
- });
1895
- const r = this;
1896
- this.promise.then((o) => {
1897
- if (!r._listeners)
1898
- return;
1899
- let i = r._listeners.length;
1900
- for (; i-- > 0; )
1901
- r._listeners[i](o);
1902
- r._listeners = null;
1903
- }), this.promise.then = (o) => {
1904
- let i;
1905
- const s = new Promise((u) => {
1906
- r.subscribe(u), i = u;
1907
- }).then(o);
1908
- return s.cancel = function() {
1909
- r.unsubscribe(i);
1910
- }, s;
1911
- }, e(function(o, i, s) {
1912
- r.reason || (r.reason = new xt(o, i, s), n(r.reason));
1913
- });
1914
- }
1915
- /**
1916
- * Throws a `CanceledError` if cancellation has been requested.
1917
- */
1918
- throwIfRequested() {
1919
- if (this.reason)
1920
- throw this.reason;
1921
- }
1922
- /**
1923
- * Subscribe to the cancel signal
1924
- */
1925
- subscribe(e) {
1926
- if (this.reason) {
1927
- e(this.reason);
1928
- return;
1929
- }
1930
- this._listeners ? this._listeners.push(e) : this._listeners = [e];
1931
- }
1932
- /**
1933
- * Unsubscribe from the cancel signal
1934
- */
1935
- unsubscribe(e) {
1936
- if (!this._listeners)
1937
- return;
1938
- const n = this._listeners.indexOf(e);
1939
- n !== -1 && this._listeners.splice(n, 1);
1940
- }
1941
- /**
1942
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1943
- * cancels the `CancelToken`.
1944
- */
1945
- static source() {
1946
- let e;
1947
- return {
1948
- token: new Zn(function(n) {
1949
- e = n;
1950
- }),
1951
- cancel: e
1952
- };
1953
- }
1954
- };
1955
- const Aa = Ea;
1956
- function Ra(t) {
1957
- return function(e) {
1958
- return t.apply(null, e);
1959
- };
1960
- }
1961
- function Ta(t) {
1962
- return f.isObject(t) && t.isAxiosError === !0;
1963
- }
1964
- const ce = {
1965
- Continue: 100,
1966
- SwitchingProtocols: 101,
1967
- Processing: 102,
1968
- EarlyHints: 103,
1969
- Ok: 200,
1970
- Created: 201,
1971
- Accepted: 202,
1972
- NonAuthoritativeInformation: 203,
1973
- NoContent: 204,
1974
- ResetContent: 205,
1975
- PartialContent: 206,
1976
- MultiStatus: 207,
1977
- AlreadyReported: 208,
1978
- ImUsed: 226,
1979
- MultipleChoices: 300,
1980
- MovedPermanently: 301,
1981
- Found: 302,
1982
- SeeOther: 303,
1983
- NotModified: 304,
1984
- UseProxy: 305,
1985
- Unused: 306,
1986
- TemporaryRedirect: 307,
1987
- PermanentRedirect: 308,
1988
- BadRequest: 400,
1989
- Unauthorized: 401,
1990
- PaymentRequired: 402,
1991
- Forbidden: 403,
1992
- NotFound: 404,
1993
- MethodNotAllowed: 405,
1994
- NotAcceptable: 406,
1995
- ProxyAuthenticationRequired: 407,
1996
- RequestTimeout: 408,
1997
- Conflict: 409,
1998
- Gone: 410,
1999
- LengthRequired: 411,
2000
- PreconditionFailed: 412,
2001
- PayloadTooLarge: 413,
2002
- UriTooLong: 414,
2003
- UnsupportedMediaType: 415,
2004
- RangeNotSatisfiable: 416,
2005
- ExpectationFailed: 417,
2006
- ImATeapot: 418,
2007
- MisdirectedRequest: 421,
2008
- UnprocessableEntity: 422,
2009
- Locked: 423,
2010
- FailedDependency: 424,
2011
- TooEarly: 425,
2012
- UpgradeRequired: 426,
2013
- PreconditionRequired: 428,
2014
- TooManyRequests: 429,
2015
- RequestHeaderFieldsTooLarge: 431,
2016
- UnavailableForLegalReasons: 451,
2017
- InternalServerError: 500,
2018
- NotImplemented: 501,
2019
- BadGateway: 502,
2020
- ServiceUnavailable: 503,
2021
- GatewayTimeout: 504,
2022
- HttpVersionNotSupported: 505,
2023
- VariantAlsoNegotiates: 506,
2024
- InsufficientStorage: 507,
2025
- LoopDetected: 508,
2026
- NotExtended: 510,
2027
- NetworkAuthenticationRequired: 511
2028
- };
2029
- Object.entries(ce).forEach(([t, e]) => {
2030
- ce[e] = t;
2031
- });
2032
- const Ca = ce;
2033
- function Qn(t) {
2034
- const e = new Dt(t), n = Pn(Dt.prototype.request, e);
2035
- return f.extend(n, Dt.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(r) {
2036
- return Qn(pt(t, r));
2037
- }, n;
2038
- }
2039
- const I = Qn(je);
2040
- I.Axios = Dt;
2041
- I.CanceledError = xt;
2042
- I.CancelToken = Aa;
2043
- I.isCancel = Kn;
2044
- I.VERSION = Xn;
2045
- I.toFormData = $t;
2046
- I.AxiosError = L;
2047
- I.Cancel = I.CanceledError;
2048
- I.all = function(t) {
2049
- return Promise.all(t);
2050
- };
2051
- I.spread = Ra;
2052
- I.isAxiosError = Ta;
2053
- I.mergeConfig = pt;
2054
- I.AxiosHeaders = G;
2055
- I.formToJSON = (t) => Vn(f.isHTMLForm(t) ? new FormData(t) : t);
2056
- I.HttpStatusCode = Ca;
2057
- I.default = I;
2058
- const tr = I, {
2059
- Axios: pc,
2060
- AxiosError: Da,
2061
- CanceledError: dc,
2062
- isCancel: hc,
2063
- CancelToken: mc,
2064
- VERSION: yc,
2065
- all: gc,
2066
- Cancel: vc,
2067
- isAxiosError: bc,
2068
- spread: wc,
2069
- toFormData: _c,
2070
- AxiosHeaders: Oc,
2071
- HttpStatusCode: Sc,
2072
- formToJSON: jc,
2073
- mergeConfig: xc
2074
- } = tr, er = tr.create({
2075
- headers: {
2076
- "Content-Type": "application/x-www-form-urlencoded"
2077
- },
2078
- timeout: 60 * 1e3
2079
- }), Ma = {
2080
- form: "application/x-www-form-urlencoded",
2081
- json: "application/json",
2082
- data: "multipart/form-data"
2083
- }, nr = "Local-Request-Id", Pa = ["put", "post", "patch"], ue = {}, fe = [];
2084
- let le = null, Bt = !1;
2085
- const Na = {
2086
- loading: !0,
2087
- // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
2088
- loadingTime: 50,
2089
- // 发送数据类型,支持:form、json、data
2090
- type: "form",
2091
- // 响应原始 Response 对象
2092
- originResponse: !1,
2093
- // 校验成功
2094
- validSuccess: !0,
2095
- // 校验成功函数
2096
- validate: (t) => !!t.data?.success,
2097
- // 显示失败信息
2098
- failMessage: !0,
2099
- // 覆盖 axios 实例的 defaults 属性
2100
- defaults: /* @__PURE__ */ Object.create(null),
2101
- // 清除字段值两旁的空格
2102
- trim: !0,
2103
- // 剔除null、undefined 空字符串的参数
2104
- picked: !0,
2105
- // 自定义剔除函数
2106
- pickFilter: (t) => t != null && t !== "",
2107
- // 警告响应code编码值
2108
- skipWarnResponseCode: 7,
2109
- skipWarn: !1
2110
- };
2111
- function Ba(t, e) {
2112
- const n = t.headers || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), o = Ma[e.type || "form"];
2113
- o && (r["Content-Type"] = o);
2114
- const { injectHeaders: i, skipWarnExecutor: s } = e;
2115
- if (i && Object.assign(r, i(t)), s) {
2116
- const u = ys(!1);
2117
- r[nr] = u, ue[u] = {
2118
- options: t,
2119
- settings: e
2120
- };
2121
- }
2122
- return Object.assign(r, n);
2123
- }
2124
- function nn(t, e) {
2125
- return !t || Array.isArray(t) ? t : gs(t, e);
2126
- }
2127
- function Fa(t, e = "data") {
2128
- if (t instanceof FormData || t instanceof URLSearchParams)
2129
- return t;
2130
- const n = e === "data" ? new FormData() : new URLSearchParams();
2131
- return Object.entries(t).forEach(([r, o]) => {
2132
- n.append(r, o);
2133
- }), n;
2134
- }
2135
- function La(t) {
2136
- const { loading: e, loadingTime: n, showLoading: r } = t;
2137
- !e || !r || (fe.push(!0), clearTimeout(le), le = setTimeout(() => {
2138
- Bt || (Bt = !0, r());
2139
- }, n));
2140
- }
2141
- function ka(t) {
2142
- const { loading: e, hideLoading: n } = t;
2143
- !e || !n || (clearTimeout(le), fe.pop(), fe.length === 0 && Bt && (n(), Bt = !1));
2144
- }
2145
- function rr(t, e, n) {
2146
- const { showError: r, failMessage: o } = t;
2147
- !o || !r || r(e, n);
2148
- }
2149
- function Ua(t, e) {
2150
- const { originResponse: n, validSuccess: r, validate: o } = t, i = e.data;
2151
- return i && i.promise ? i.promise : r && o ? o(e) ? n ? e : i.data : Ia(t, e) : n ? e : i;
2152
- }
2153
- function $a(t, e) {
2154
- e && e.message && rr(t, e.message, e);
2155
- }
2156
- function Ia(t, e) {
2157
- const n = e.data;
2158
- if (n) {
2159
- let r = (n.message || n.msg || "").replace(
2160
- /^\[4:ReqFailure]/,
2161
- ""
2162
- );
2163
- n && n.code === 500 && (r = "系统繁忙,请稍后重试!"), rr(t, r, e);
2164
- }
2165
- return Promise.reject(e);
2166
- }
2167
- async function za(t, e) {
2168
- const { url: n, method: r = "get" } = t, o = {
2169
- ...Na,
2170
- ...t.settings || {},
2171
- ...e
2172
- }, i = Ba(t, o);
2173
- delete t.settings;
2174
- let { data: s, params: u } = t;
2175
- if (o.picked) {
2176
- const { pickFilter: S } = o;
2177
- s = s && nn(s, S), u = u && nn(u, S);
2178
- }
2179
- o.trim && (s = s && Pt(s), u = u && Pt(u));
2180
- const { skipWarnExecutor: c, skipWarn: a } = o;
2181
- Pa.includes(r.toLowerCase()) ? (s = c ? Object.assign(s || {}, { skipWarn: a }) : s, s = o.type !== "json" ? Fa(s || {}, o.type) : s) : (u = c ? Object.assign(u || {}, { skipWarn: a }) : u, u = {
2182
- ...u,
2183
- ...s
2184
- });
2185
- const m = {
2186
- ...t,
2187
- url: n,
2188
- method: r,
2189
- params: u,
2190
- data: s,
2191
- headers: i
2192
- };
2193
- La(o);
2194
- const b = await er(m).catch((S) => S).finally(() => {
2195
- ka(o);
2196
- });
2197
- return b instanceof Da && $a(o, b), Ua(o, b);
2198
- }
2199
- function rn(t) {
2200
- return !!t.success;
2201
- }
2202
- er.interceptors.response.use((t) => {
2203
- const e = (t.config?.headers || {})[nr], n = ue[e];
2204
- delete ue[e];
2205
- const { data: r } = t;
2206
- if (r && typeof r == "object" && (r.isSuccess = () => rn(r), r.isFail = () => !rn(r)), !n)
2207
- return t;
2208
- const { settings: o = {}, options: i } = n, {
2209
- skipWarnExecutor: s,
2210
- skipWarnResponseCode: u,
2211
- skipWarnCallback: c,
2212
- skipWarnFinally: a
2213
- } = o;
2214
- if (!s || r && typeof r != "object")
2215
- return t;
2216
- if (Number.parseInt(r?.code, 10) === u) {
2217
- c && c(r);
2218
- const m = new Promise(s).then(() => {
2219
- o.skipWarn = !0;
2220
- const b = Object.assign({}, i.settings, o);
2221
- return za({
2222
- ...i,
2223
- settings: b
2224
- });
2225
- });
2226
- m.catch((b) => b).finally(() => {
2227
- a && a();
2228
- }), r.promise = m;
2229
- }
2230
- return t;
2231
- });
2232
- /*! js-cookie v3.0.1 | MIT */
2233
- function At(t) {
2234
- for (var e = 1; e < arguments.length; e++) {
2235
- var n = arguments[e];
2236
- for (var r in n)
2237
- t[r] = n[r];
2238
- }
2239
- return t;
2240
- }
2241
- var Ha = {
2242
- read: function(t) {
2243
- return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2244
- },
2245
- write: function(t) {
2246
- return encodeURIComponent(t).replace(
2247
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2248
- decodeURIComponent
44
+ t
2249
45
  );
2250
46
  }
2251
- };
2252
- function pe(t, e) {
2253
- function n(o, i, s) {
2254
- if (!(typeof document > "u")) {
2255
- s = At({}, e, s), typeof s.expires == "number" && (s.expires = new Date(Date.now() + s.expires * 864e5)), s.expires && (s.expires = s.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2256
- var u = "";
2257
- for (var c in s)
2258
- s[c] && (u += "; " + c, s[c] !== !0 && (u += "=" + s[c].split(";")[0]));
2259
- return document.cookie = o + "=" + t.write(i, o) + u;
2260
- }
2261
- }
2262
- function r(o) {
2263
- if (!(typeof document > "u" || arguments.length && !o)) {
2264
- for (var i = document.cookie ? document.cookie.split("; ") : [], s = {}, u = 0; u < i.length; u++) {
2265
- var c = i[u].split("="), a = c.slice(1).join("=");
2266
- try {
2267
- var m = decodeURIComponent(c[0]);
2268
- if (s[m] = t.read(a, m), o === m)
2269
- break;
2270
- } catch {
2271
- }
2272
- }
2273
- return o ? s[o] : s;
2274
- }
2275
- }
2276
- return Object.create(
2277
- {
2278
- set: n,
2279
- get: r,
2280
- remove: function(o, i) {
2281
- n(
2282
- o,
2283
- "",
2284
- At({}, i, {
2285
- expires: -1
2286
- })
2287
- );
2288
- },
2289
- withAttributes: function(o) {
2290
- return pe(this.converter, At({}, this.attributes, o));
47
+ }), P = i(I), L = r({
48
+ name: "XBlock",
49
+ setup(n, { slots: t }) {
50
+ return () => f(
51
+ "div",
52
+ {
53
+ class: "x-block"
2291
54
  },
2292
- withConverter: function(o) {
2293
- return pe(At({}, this.converter, o), this.attributes);
2294
- }
2295
- },
2296
- {
2297
- attributes: { value: Object.freeze(e) },
2298
- converter: { value: Object.freeze(t) }
2299
- }
2300
- );
2301
- }
2302
- pe(Ha, { path: "/" });
2303
- var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2304
- function Ya(t) {
2305
- if (t.__esModule)
2306
- return t;
2307
- var e = t.default;
2308
- if (typeof e == "function") {
2309
- var n = function r() {
2310
- if (this instanceof r) {
2311
- var o = [null];
2312
- o.push.apply(o, arguments);
2313
- var i = Function.bind.apply(e, o);
2314
- return new i();
2315
- }
2316
- return e.apply(this, arguments);
2317
- };
2318
- n.prototype = e.prototype;
2319
- } else
2320
- n = {};
2321
- return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
2322
- var o = Object.getOwnPropertyDescriptor(t, r);
2323
- Object.defineProperty(n, r, o.get ? o : {
2324
- enumerable: !0,
2325
- get: function() {
2326
- return t[r];
2327
- }
2328
- });
2329
- }), n;
2330
- }
2331
- var on = {}, Wa = {
2332
- get exports() {
2333
- return on;
2334
- },
2335
- set exports(t) {
2336
- on = t;
2337
- }
2338
- };
2339
- function qa(t) {
2340
- throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2341
- }
2342
- var de = {}, Ja = {
2343
- get exports() {
2344
- return de;
2345
- },
2346
- set exports(t) {
2347
- de = t;
2348
- }
2349
- };
2350
- const Va = {}, Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2351
- __proto__: null,
2352
- default: Va
2353
- }, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ya(Ka);
2354
- var sn;
2355
- function Xa() {
2356
- return sn || (sn = 1, function(t, e) {
2357
- (function(n, r) {
2358
- t.exports = r();
2359
- })(rt, function() {
2360
- var n = n || function(r, o) {
2361
- var i;
2362
- if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof rt < "u" && rt.crypto && (i = rt.crypto), !i && typeof qa == "function")
2363
- try {
2364
- i = Ga;
2365
- } catch {
2366
- }
2367
- var s = function() {
2368
- if (i) {
2369
- if (typeof i.getRandomValues == "function")
2370
- try {
2371
- return i.getRandomValues(new Uint32Array(1))[0];
2372
- } catch {
2373
- }
2374
- if (typeof i.randomBytes == "function")
2375
- try {
2376
- return i.randomBytes(4).readInt32LE();
2377
- } catch {
2378
- }
2379
- }
2380
- throw new Error("Native crypto module could not be used to get secure random number.");
2381
- }, u = Object.create || function() {
2382
- function h() {
2383
- }
2384
- return function(_) {
2385
- var j;
2386
- return h.prototype = _, j = new h(), h.prototype = null, j;
2387
- };
2388
- }(), c = {}, a = c.lib = {}, m = a.Base = function() {
2389
- return {
2390
- /**
2391
- * Creates a new object that inherits from this object.
2392
- *
2393
- * @param {Object} overrides Properties to copy into the new object.
2394
- *
2395
- * @return {Object} The new object.
2396
- *
2397
- * @static
2398
- *
2399
- * @example
2400
- *
2401
- * var MyType = CryptoJS.lib.Base.extend({
2402
- * field: 'value',
2403
- *
2404
- * method: function () {
2405
- * }
2406
- * });
2407
- */
2408
- extend: function(h) {
2409
- var _ = u(this);
2410
- return h && _.mixIn(h), (!_.hasOwnProperty("init") || this.init === _.init) && (_.init = function() {
2411
- _.$super.init.apply(this, arguments);
2412
- }), _.init.prototype = _, _.$super = this, _;
2413
- },
2414
- /**
2415
- * Extends this object and runs the init method.
2416
- * Arguments to create() will be passed to init().
2417
- *
2418
- * @return {Object} The new object.
2419
- *
2420
- * @static
2421
- *
2422
- * @example
2423
- *
2424
- * var instance = MyType.create();
2425
- */
2426
- create: function() {
2427
- var h = this.extend();
2428
- return h.init.apply(h, arguments), h;
2429
- },
2430
- /**
2431
- * Initializes a newly created object.
2432
- * Override this method to add some logic when your objects are created.
2433
- *
2434
- * @example
2435
- *
2436
- * var MyType = CryptoJS.lib.Base.extend({
2437
- * init: function () {
2438
- * // ...
2439
- * }
2440
- * });
2441
- */
2442
- init: function() {
2443
- },
2444
- /**
2445
- * Copies properties into this object.
2446
- *
2447
- * @param {Object} properties The properties to mix in.
2448
- *
2449
- * @example
2450
- *
2451
- * MyType.mixIn({
2452
- * field: 'value'
2453
- * });
2454
- */
2455
- mixIn: function(h) {
2456
- for (var _ in h)
2457
- h.hasOwnProperty(_) && (this[_] = h[_]);
2458
- h.hasOwnProperty("toString") && (this.toString = h.toString);
2459
- },
2460
- /**
2461
- * Creates a copy of this object.
2462
- *
2463
- * @return {Object} The clone.
2464
- *
2465
- * @example
2466
- *
2467
- * var clone = instance.clone();
2468
- */
2469
- clone: function() {
2470
- return this.init.prototype.extend(this);
2471
- }
2472
- };
2473
- }(), b = a.WordArray = m.extend({
2474
- /**
2475
- * Initializes a newly created word array.
2476
- *
2477
- * @param {Array} words (Optional) An array of 32-bit words.
2478
- * @param {number} sigBytes (Optional) The number of significant bytes in the words.
2479
- *
2480
- * @example
2481
- *
2482
- * var wordArray = CryptoJS.lib.WordArray.create();
2483
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
2484
- * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
2485
- */
2486
- init: function(h, _) {
2487
- h = this.words = h || [], _ != o ? this.sigBytes = _ : this.sigBytes = h.length * 4;
2488
- },
2489
- /**
2490
- * Converts this word array to a string.
2491
- *
2492
- * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
2493
- *
2494
- * @return {string} The stringified word array.
2495
- *
2496
- * @example
2497
- *
2498
- * var string = wordArray + '';
2499
- * var string = wordArray.toString();
2500
- * var string = wordArray.toString(CryptoJS.enc.Utf8);
2501
- */
2502
- toString: function(h) {
2503
- return (h || y).stringify(this);
2504
- },
2505
- /**
2506
- * Concatenates a word array to this word array.
2507
- *
2508
- * @param {WordArray} wordArray The word array to append.
2509
- *
2510
- * @return {WordArray} This word array.
2511
- *
2512
- * @example
2513
- *
2514
- * wordArray1.concat(wordArray2);
2515
- */
2516
- concat: function(h) {
2517
- var _ = this.words, j = h.words, R = this.sigBytes, P = h.sigBytes;
2518
- if (this.clamp(), R % 4)
2519
- for (var k = 0; k < P; k++) {
2520
- var z = j[k >>> 2] >>> 24 - k % 4 * 8 & 255;
2521
- _[R + k >>> 2] |= z << 24 - (R + k) % 4 * 8;
2522
- }
2523
- else
2524
- for (var B = 0; B < P; B += 4)
2525
- _[R + B >>> 2] = j[B >>> 2];
2526
- return this.sigBytes += P, this;
2527
- },
2528
- /**
2529
- * Removes insignificant bits.
2530
- *
2531
- * @example
2532
- *
2533
- * wordArray.clamp();
2534
- */
2535
- clamp: function() {
2536
- var h = this.words, _ = this.sigBytes;
2537
- h[_ >>> 2] &= 4294967295 << 32 - _ % 4 * 8, h.length = r.ceil(_ / 4);
2538
- },
2539
- /**
2540
- * Creates a copy of this word array.
2541
- *
2542
- * @return {WordArray} The clone.
2543
- *
2544
- * @example
2545
- *
2546
- * var clone = wordArray.clone();
2547
- */
2548
- clone: function() {
2549
- var h = m.clone.call(this);
2550
- return h.words = this.words.slice(0), h;
2551
- },
2552
- /**
2553
- * Creates a word array filled with random bytes.
2554
- *
2555
- * @param {number} nBytes The number of random bytes to generate.
2556
- *
2557
- * @return {WordArray} The random word array.
2558
- *
2559
- * @static
2560
- *
2561
- * @example
2562
- *
2563
- * var wordArray = CryptoJS.lib.WordArray.random(16);
2564
- */
2565
- random: function(h) {
2566
- for (var _ = [], j = 0; j < h; j += 4)
2567
- _.push(s());
2568
- return new b.init(_, h);
2569
- }
2570
- }), S = c.enc = {}, y = S.Hex = {
2571
- /**
2572
- * Converts a word array to a hex string.
2573
- *
2574
- * @param {WordArray} wordArray The word array.
2575
- *
2576
- * @return {string} The hex string.
2577
- *
2578
- * @static
2579
- *
2580
- * @example
2581
- *
2582
- * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
2583
- */
2584
- stringify: function(h) {
2585
- for (var _ = h.words, j = h.sigBytes, R = [], P = 0; P < j; P++) {
2586
- var k = _[P >>> 2] >>> 24 - P % 4 * 8 & 255;
2587
- R.push((k >>> 4).toString(16)), R.push((k & 15).toString(16));
2588
- }
2589
- return R.join("");
2590
- },
2591
- /**
2592
- * Converts a hex string to a word array.
2593
- *
2594
- * @param {string} hexStr The hex string.
2595
- *
2596
- * @return {WordArray} The word array.
2597
- *
2598
- * @static
2599
- *
2600
- * @example
2601
- *
2602
- * var wordArray = CryptoJS.enc.Hex.parse(hexString);
2603
- */
2604
- parse: function(h) {
2605
- for (var _ = h.length, j = [], R = 0; R < _; R += 2)
2606
- j[R >>> 3] |= parseInt(h.substr(R, 2), 16) << 24 - R % 8 * 4;
2607
- return new b.init(j, _ / 2);
2608
- }
2609
- }, x = S.Latin1 = {
2610
- /**
2611
- * Converts a word array to a Latin1 string.
2612
- *
2613
- * @param {WordArray} wordArray The word array.
2614
- *
2615
- * @return {string} The Latin1 string.
2616
- *
2617
- * @static
2618
- *
2619
- * @example
2620
- *
2621
- * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
2622
- */
2623
- stringify: function(h) {
2624
- for (var _ = h.words, j = h.sigBytes, R = [], P = 0; P < j; P++) {
2625
- var k = _[P >>> 2] >>> 24 - P % 4 * 8 & 255;
2626
- R.push(String.fromCharCode(k));
2627
- }
2628
- return R.join("");
2629
- },
2630
- /**
2631
- * Converts a Latin1 string to a word array.
2632
- *
2633
- * @param {string} latin1Str The Latin1 string.
2634
- *
2635
- * @return {WordArray} The word array.
2636
- *
2637
- * @static
2638
- *
2639
- * @example
2640
- *
2641
- * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
2642
- */
2643
- parse: function(h) {
2644
- for (var _ = h.length, j = [], R = 0; R < _; R++)
2645
- j[R >>> 2] |= (h.charCodeAt(R) & 255) << 24 - R % 4 * 8;
2646
- return new b.init(j, _);
2647
- }
2648
- }, E = S.Utf8 = {
2649
- /**
2650
- * Converts a word array to a UTF-8 string.
2651
- *
2652
- * @param {WordArray} wordArray The word array.
2653
- *
2654
- * @return {string} The UTF-8 string.
2655
- *
2656
- * @static
2657
- *
2658
- * @example
2659
- *
2660
- * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
2661
- */
2662
- stringify: function(h) {
2663
- try {
2664
- return decodeURIComponent(escape(x.stringify(h)));
2665
- } catch {
2666
- throw new Error("Malformed UTF-8 data");
2667
- }
2668
- },
2669
- /**
2670
- * Converts a UTF-8 string to a word array.
2671
- *
2672
- * @param {string} utf8Str The UTF-8 string.
2673
- *
2674
- * @return {WordArray} The word array.
2675
- *
2676
- * @static
2677
- *
2678
- * @example
2679
- *
2680
- * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
2681
- */
2682
- parse: function(h) {
2683
- return x.parse(unescape(encodeURIComponent(h)));
2684
- }
2685
- }, A = a.BufferedBlockAlgorithm = m.extend({
2686
- /**
2687
- * Resets this block algorithm's data buffer to its initial state.
2688
- *
2689
- * @example
2690
- *
2691
- * bufferedBlockAlgorithm.reset();
2692
- */
2693
- reset: function() {
2694
- this._data = new b.init(), this._nDataBytes = 0;
2695
- },
2696
- /**
2697
- * Adds new data to this block algorithm's buffer.
2698
- *
2699
- * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
2700
- *
2701
- * @example
2702
- *
2703
- * bufferedBlockAlgorithm._append('data');
2704
- * bufferedBlockAlgorithm._append(wordArray);
2705
- */
2706
- _append: function(h) {
2707
- typeof h == "string" && (h = E.parse(h)), this._data.concat(h), this._nDataBytes += h.sigBytes;
2708
- },
2709
- /**
2710
- * Processes available data blocks.
2711
- *
2712
- * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
2713
- *
2714
- * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
2715
- *
2716
- * @return {WordArray} The processed data.
2717
- *
2718
- * @example
2719
- *
2720
- * var processedData = bufferedBlockAlgorithm._process();
2721
- * var processedData = bufferedBlockAlgorithm._process(!!'flush');
2722
- */
2723
- _process: function(h) {
2724
- var _, j = this._data, R = j.words, P = j.sigBytes, k = this.blockSize, z = k * 4, B = P / z;
2725
- h ? B = r.ceil(B) : B = r.max((B | 0) - this._minBufferSize, 0);
2726
- var N = B * k, Y = r.min(N * 4, P);
2727
- if (N) {
2728
- for (var W = 0; W < N; W += k)
2729
- this._doProcessBlock(R, W);
2730
- _ = R.splice(0, N), j.sigBytes -= Y;
2731
- }
2732
- return new b.init(_, Y);
2733
- },
2734
- /**
2735
- * Creates a copy of this object.
2736
- *
2737
- * @return {Object} The clone.
2738
- *
2739
- * @example
2740
- *
2741
- * var clone = bufferedBlockAlgorithm.clone();
2742
- */
2743
- clone: function() {
2744
- var h = m.clone.call(this);
2745
- return h._data = this._data.clone(), h;
2746
- },
2747
- _minBufferSize: 0
2748
- });
2749
- a.Hasher = A.extend({
2750
- /**
2751
- * Configuration options.
2752
- */
2753
- cfg: m.extend(),
2754
- /**
2755
- * Initializes a newly created hasher.
2756
- *
2757
- * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
2758
- *
2759
- * @example
2760
- *
2761
- * var hasher = CryptoJS.algo.SHA256.create();
2762
- */
2763
- init: function(h) {
2764
- this.cfg = this.cfg.extend(h), this.reset();
2765
- },
2766
- /**
2767
- * Resets this hasher to its initial state.
2768
- *
2769
- * @example
2770
- *
2771
- * hasher.reset();
2772
- */
2773
- reset: function() {
2774
- A.reset.call(this), this._doReset();
2775
- },
2776
- /**
2777
- * Updates this hasher with a message.
2778
- *
2779
- * @param {WordArray|string} messageUpdate The message to append.
2780
- *
2781
- * @return {Hasher} This hasher.
2782
- *
2783
- * @example
2784
- *
2785
- * hasher.update('message');
2786
- * hasher.update(wordArray);
2787
- */
2788
- update: function(h) {
2789
- return this._append(h), this._process(), this;
2790
- },
2791
- /**
2792
- * Finalizes the hash computation.
2793
- * Note that the finalize operation is effectively a destructive, read-once operation.
2794
- *
2795
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
2796
- *
2797
- * @return {WordArray} The hash.
2798
- *
2799
- * @example
2800
- *
2801
- * var hash = hasher.finalize();
2802
- * var hash = hasher.finalize('message');
2803
- * var hash = hasher.finalize(wordArray);
2804
- */
2805
- finalize: function(h) {
2806
- h && this._append(h);
2807
- var _ = this._doFinalize();
2808
- return _;
2809
- },
2810
- blockSize: 16,
2811
- /**
2812
- * Creates a shortcut function to a hasher's object interface.
2813
- *
2814
- * @param {Hasher} hasher The hasher to create a helper for.
2815
- *
2816
- * @return {Function} The shortcut function.
2817
- *
2818
- * @static
2819
- *
2820
- * @example
2821
- *
2822
- * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
2823
- */
2824
- _createHelper: function(h) {
2825
- return function(_, j) {
2826
- return new h.init(j).finalize(_);
2827
- };
2828
- },
2829
- /**
2830
- * Creates a shortcut function to the HMAC's object interface.
2831
- *
2832
- * @param {Hasher} hasher The hasher to use in this HMAC helper.
2833
- *
2834
- * @return {Function} The shortcut function.
2835
- *
2836
- * @static
2837
- *
2838
- * @example
2839
- *
2840
- * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
2841
- */
2842
- _createHmacHelper: function(h) {
2843
- return function(_, j) {
2844
- return new $.HMAC.init(h, j).finalize(_);
2845
- };
2846
- }
2847
- });
2848
- var $ = c.algo = {};
2849
- return c;
2850
- }(Math);
2851
- return n;
2852
- });
2853
- }(Ja)), de;
2854
- }
2855
- (function(t, e) {
2856
- (function(n, r) {
2857
- t.exports = r(Xa());
2858
- })(rt, function(n) {
2859
- return function(r) {
2860
- var o = n, i = o.lib, s = i.WordArray, u = i.Hasher, c = o.algo, a = [];
2861
- (function() {
2862
- for (var E = 0; E < 64; E++)
2863
- a[E] = r.abs(r.sin(E + 1)) * 4294967296 | 0;
2864
- })();
2865
- var m = c.MD5 = u.extend({
2866
- _doReset: function() {
2867
- this._hash = new s.init([
2868
- 1732584193,
2869
- 4023233417,
2870
- 2562383102,
2871
- 271733878
2872
- ]);
2873
- },
2874
- _doProcessBlock: function(E, A) {
2875
- for (var $ = 0; $ < 16; $++) {
2876
- var h = A + $, _ = E[h];
2877
- E[h] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360;
2878
- }
2879
- var j = this._hash.words, R = E[A + 0], P = E[A + 1], k = E[A + 2], z = E[A + 3], B = E[A + 4], N = E[A + 5], Y = E[A + 6], W = E[A + 7], T = E[A + 8], O = E[A + 9], v = E[A + 10], C = E[A + 11], w = E[A + 12], M = E[A + 13], D = E[A + 14], F = E[A + 15], p = j[0], l = j[1], d = j[2], g = j[3];
2880
- p = b(p, l, d, g, R, 7, a[0]), g = b(g, p, l, d, P, 12, a[1]), d = b(d, g, p, l, k, 17, a[2]), l = b(l, d, g, p, z, 22, a[3]), p = b(p, l, d, g, B, 7, a[4]), g = b(g, p, l, d, N, 12, a[5]), d = b(d, g, p, l, Y, 17, a[6]), l = b(l, d, g, p, W, 22, a[7]), p = b(p, l, d, g, T, 7, a[8]), g = b(g, p, l, d, O, 12, a[9]), d = b(d, g, p, l, v, 17, a[10]), l = b(l, d, g, p, C, 22, a[11]), p = b(p, l, d, g, w, 7, a[12]), g = b(g, p, l, d, M, 12, a[13]), d = b(d, g, p, l, D, 17, a[14]), l = b(l, d, g, p, F, 22, a[15]), p = S(p, l, d, g, P, 5, a[16]), g = S(g, p, l, d, Y, 9, a[17]), d = S(d, g, p, l, C, 14, a[18]), l = S(l, d, g, p, R, 20, a[19]), p = S(p, l, d, g, N, 5, a[20]), g = S(g, p, l, d, v, 9, a[21]), d = S(d, g, p, l, F, 14, a[22]), l = S(l, d, g, p, B, 20, a[23]), p = S(p, l, d, g, O, 5, a[24]), g = S(g, p, l, d, D, 9, a[25]), d = S(d, g, p, l, z, 14, a[26]), l = S(l, d, g, p, T, 20, a[27]), p = S(p, l, d, g, M, 5, a[28]), g = S(g, p, l, d, k, 9, a[29]), d = S(d, g, p, l, W, 14, a[30]), l = S(l, d, g, p, w, 20, a[31]), p = y(p, l, d, g, N, 4, a[32]), g = y(g, p, l, d, T, 11, a[33]), d = y(d, g, p, l, C, 16, a[34]), l = y(l, d, g, p, D, 23, a[35]), p = y(p, l, d, g, P, 4, a[36]), g = y(g, p, l, d, B, 11, a[37]), d = y(d, g, p, l, W, 16, a[38]), l = y(l, d, g, p, v, 23, a[39]), p = y(p, l, d, g, M, 4, a[40]), g = y(g, p, l, d, R, 11, a[41]), d = y(d, g, p, l, z, 16, a[42]), l = y(l, d, g, p, Y, 23, a[43]), p = y(p, l, d, g, O, 4, a[44]), g = y(g, p, l, d, w, 11, a[45]), d = y(d, g, p, l, F, 16, a[46]), l = y(l, d, g, p, k, 23, a[47]), p = x(p, l, d, g, R, 6, a[48]), g = x(g, p, l, d, W, 10, a[49]), d = x(d, g, p, l, D, 15, a[50]), l = x(l, d, g, p, N, 21, a[51]), p = x(p, l, d, g, w, 6, a[52]), g = x(g, p, l, d, z, 10, a[53]), d = x(d, g, p, l, v, 15, a[54]), l = x(l, d, g, p, P, 21, a[55]), p = x(p, l, d, g, T, 6, a[56]), g = x(g, p, l, d, F, 10, a[57]), d = x(d, g, p, l, Y, 15, a[58]), l = x(l, d, g, p, M, 21, a[59]), p = x(p, l, d, g, B, 6, a[60]), g = x(g, p, l, d, C, 10, a[61]), d = x(d, g, p, l, k, 15, a[62]), l = x(l, d, g, p, O, 21, a[63]), j[0] = j[0] + p | 0, j[1] = j[1] + l | 0, j[2] = j[2] + d | 0, j[3] = j[3] + g | 0;
2881
- },
2882
- _doFinalize: function() {
2883
- var E = this._data, A = E.words, $ = this._nDataBytes * 8, h = E.sigBytes * 8;
2884
- A[h >>> 5] |= 128 << 24 - h % 32;
2885
- var _ = r.floor($ / 4294967296), j = $;
2886
- A[(h + 64 >>> 9 << 4) + 15] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360, A[(h + 64 >>> 9 << 4) + 14] = (j << 8 | j >>> 24) & 16711935 | (j << 24 | j >>> 8) & 4278255360, E.sigBytes = (A.length + 1) * 4, this._process();
2887
- for (var R = this._hash, P = R.words, k = 0; k < 4; k++) {
2888
- var z = P[k];
2889
- P[k] = (z << 8 | z >>> 24) & 16711935 | (z << 24 | z >>> 8) & 4278255360;
2890
- }
2891
- return R;
2892
- },
2893
- clone: function() {
2894
- var E = u.clone.call(this);
2895
- return E._hash = this._hash.clone(), E;
2896
- }
2897
- });
2898
- function b(E, A, $, h, _, j, R) {
2899
- var P = E + (A & $ | ~A & h) + _ + R;
2900
- return (P << j | P >>> 32 - j) + A;
2901
- }
2902
- function S(E, A, $, h, _, j, R) {
2903
- var P = E + (A & h | $ & ~h) + _ + R;
2904
- return (P << j | P >>> 32 - j) + A;
2905
- }
2906
- function y(E, A, $, h, _, j, R) {
2907
- var P = E + (A ^ $ ^ h) + _ + R;
2908
- return (P << j | P >>> 32 - j) + A;
2909
- }
2910
- function x(E, A, $, h, _, j, R) {
2911
- var P = E + ($ ^ (A | ~h)) + _ + R;
2912
- return (P << j | P >>> 32 - j) + A;
2913
- }
2914
- o.MD5 = u._createHelper(m), o.HmacMD5 = u._createHmacHelper(m);
2915
- }(Math), n.MD5;
2916
- });
2917
- })(Wa);
2918
- var he = {}, Za = {
2919
- get exports() {
2920
- return he;
2921
- },
2922
- set exports(t) {
2923
- he = t;
2924
- }
2925
- };
2926
- (function(t, e) {
2927
- (function(n, r) {
2928
- t.exports = r();
2929
- })(rt, function() {
2930
- var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", s = "second", u = "minute", c = "hour", a = "day", m = "week", b = "month", S = "quarter", y = "year", x = "date", E = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, h = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
2931
- var O = ["th", "st", "nd", "rd"], v = T % 100;
2932
- return "[" + T + (O[(v - 20) % 10] || O[v] || O[0]) + "]";
2933
- } }, _ = function(T, O, v) {
2934
- var C = String(T);
2935
- return !C || C.length >= O ? T : "" + Array(O + 1 - C.length).join(v) + T;
2936
- }, j = { s: _, z: function(T) {
2937
- var O = -T.utcOffset(), v = Math.abs(O), C = Math.floor(v / 60), w = v % 60;
2938
- return (O <= 0 ? "+" : "-") + _(C, 2, "0") + ":" + _(w, 2, "0");
2939
- }, m: function T(O, v) {
2940
- if (O.date() < v.date())
2941
- return -T(v, O);
2942
- var C = 12 * (v.year() - O.year()) + (v.month() - O.month()), w = O.clone().add(C, b), M = v - w < 0, D = O.clone().add(C + (M ? -1 : 1), b);
2943
- return +(-(C + (v - w) / (M ? w - D : D - w)) || 0);
2944
- }, a: function(T) {
2945
- return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
2946
- }, p: function(T) {
2947
- return { M: b, y, w: m, d: a, D: x, h: c, m: u, s, ms: i, Q: S }[T] || String(T || "").toLowerCase().replace(/s$/, "");
2948
- }, u: function(T) {
2949
- return T === void 0;
2950
- } }, R = "en", P = {};
2951
- P[R] = h;
2952
- var k = function(T) {
2953
- return T instanceof Y;
2954
- }, z = function T(O, v, C) {
2955
- var w;
2956
- if (!O)
2957
- return R;
2958
- if (typeof O == "string") {
2959
- var M = O.toLowerCase();
2960
- P[M] && (w = M), v && (P[M] = v, w = M);
2961
- var D = O.split("-");
2962
- if (!w && D.length > 1)
2963
- return T(D[0]);
2964
- } else {
2965
- var F = O.name;
2966
- P[F] = O, w = F;
2967
- }
2968
- return !C && w && (R = w), w || !C && R;
2969
- }, B = function(T, O) {
2970
- if (k(T))
2971
- return T.clone();
2972
- var v = typeof O == "object" ? O : {};
2973
- return v.date = T, v.args = arguments, new Y(v);
2974
- }, N = j;
2975
- N.l = z, N.i = k, N.w = function(T, O) {
2976
- return B(T, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
2977
- };
2978
- var Y = function() {
2979
- function T(v) {
2980
- this.$L = z(v.locale, null, !0), this.parse(v);
2981
- }
2982
- var O = T.prototype;
2983
- return O.parse = function(v) {
2984
- this.$d = function(C) {
2985
- var w = C.date, M = C.utc;
2986
- if (w === null)
2987
- return new Date(NaN);
2988
- if (N.u(w))
2989
- return new Date();
2990
- if (w instanceof Date)
2991
- return new Date(w);
2992
- if (typeof w == "string" && !/Z$/i.test(w)) {
2993
- var D = w.match(A);
2994
- if (D) {
2995
- var F = D[2] - 1 || 0, p = (D[7] || "0").substring(0, 3);
2996
- return M ? new Date(Date.UTC(D[1], F, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, p)) : new Date(D[1], F, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, p);
2997
- }
2998
- }
2999
- return new Date(w);
3000
- }(v), this.$x = v.x || {}, this.init();
3001
- }, O.init = function() {
3002
- var v = this.$d;
3003
- this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
3004
- }, O.$utils = function() {
3005
- return N;
3006
- }, O.isValid = function() {
3007
- return this.$d.toString() !== E;
3008
- }, O.isSame = function(v, C) {
3009
- var w = B(v);
3010
- return this.startOf(C) <= w && w <= this.endOf(C);
3011
- }, O.isAfter = function(v, C) {
3012
- return B(v) < this.startOf(C);
3013
- }, O.isBefore = function(v, C) {
3014
- return this.endOf(C) < B(v);
3015
- }, O.$g = function(v, C, w) {
3016
- return N.u(v) ? this[C] : this.set(w, v);
3017
- }, O.unix = function() {
3018
- return Math.floor(this.valueOf() / 1e3);
3019
- }, O.valueOf = function() {
3020
- return this.$d.getTime();
3021
- }, O.startOf = function(v, C) {
3022
- var w = this, M = !!N.u(C) || C, D = N.p(v), F = function(ut, H) {
3023
- var Q = N.w(w.$u ? Date.UTC(w.$y, H, ut) : new Date(w.$y, H, ut), w);
3024
- return M ? Q : Q.endOf(a);
3025
- }, p = function(ut, H) {
3026
- return N.w(w.toDate()[ut].apply(w.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), w);
3027
- }, l = this.$W, d = this.$M, g = this.$D, K = "set" + (this.$u ? "UTC" : "");
3028
- switch (D) {
3029
- case y:
3030
- return M ? F(1, 0) : F(31, 11);
3031
- case b:
3032
- return M ? F(1, d) : F(0, d + 1);
3033
- case m:
3034
- var yt = this.$locale().weekStart || 0, gt = (l < yt ? l + 7 : l) - yt;
3035
- return F(M ? g - gt : g + (6 - gt), d);
3036
- case a:
3037
- case x:
3038
- return p(K + "Hours", 0);
3039
- case c:
3040
- return p(K + "Minutes", 1);
3041
- case u:
3042
- return p(K + "Seconds", 2);
3043
- case s:
3044
- return p(K + "Milliseconds", 3);
3045
- default:
3046
- return this.clone();
3047
- }
3048
- }, O.endOf = function(v) {
3049
- return this.startOf(v, !1);
3050
- }, O.$set = function(v, C) {
3051
- var w, M = N.p(v), D = "set" + (this.$u ? "UTC" : ""), F = (w = {}, w[a] = D + "Date", w[x] = D + "Date", w[b] = D + "Month", w[y] = D + "FullYear", w[c] = D + "Hours", w[u] = D + "Minutes", w[s] = D + "Seconds", w[i] = D + "Milliseconds", w)[M], p = M === a ? this.$D + (C - this.$W) : C;
3052
- if (M === b || M === y) {
3053
- var l = this.clone().set(x, 1);
3054
- l.$d[F](p), l.init(), this.$d = l.set(x, Math.min(this.$D, l.daysInMonth())).$d;
3055
- } else
3056
- F && this.$d[F](p);
3057
- return this.init(), this;
3058
- }, O.set = function(v, C) {
3059
- return this.clone().$set(v, C);
3060
- }, O.get = function(v) {
3061
- return this[N.p(v)]();
3062
- }, O.add = function(v, C) {
3063
- var w, M = this;
3064
- v = Number(v);
3065
- var D = N.p(C), F = function(d) {
3066
- var g = B(M);
3067
- return N.w(g.date(g.date() + Math.round(d * v)), M);
3068
- };
3069
- if (D === b)
3070
- return this.set(b, this.$M + v);
3071
- if (D === y)
3072
- return this.set(y, this.$y + v);
3073
- if (D === a)
3074
- return F(1);
3075
- if (D === m)
3076
- return F(7);
3077
- var p = (w = {}, w[u] = r, w[c] = o, w[s] = n, w)[D] || 1, l = this.$d.getTime() + v * p;
3078
- return N.w(l, this);
3079
- }, O.subtract = function(v, C) {
3080
- return this.add(-1 * v, C);
3081
- }, O.format = function(v) {
3082
- var C = this, w = this.$locale();
3083
- if (!this.isValid())
3084
- return w.invalidDate || E;
3085
- var M = v || "YYYY-MM-DDTHH:mm:ssZ", D = N.z(this), F = this.$H, p = this.$m, l = this.$M, d = w.weekdays, g = w.months, K = function(H, Q, Ht, Et) {
3086
- return H && (H[Q] || H(C, M)) || Ht[Q].slice(0, Et);
3087
- }, yt = function(H) {
3088
- return N.s(F % 12 || 12, H, "0");
3089
- }, gt = w.meridiem || function(H, Q, Ht) {
3090
- var Et = H < 12 ? "AM" : "PM";
3091
- return Ht ? Et.toLowerCase() : Et;
3092
- }, ut = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: l + 1, MM: N.s(l + 1, 2, "0"), MMM: K(w.monthsShort, l, g, 3), MMMM: K(g, l), D: this.$D, DD: N.s(this.$D, 2, "0"), d: String(this.$W), dd: K(w.weekdaysMin, this.$W, d, 2), ddd: K(w.weekdaysShort, this.$W, d, 3), dddd: d[this.$W], H: String(F), HH: N.s(F, 2, "0"), h: yt(1), hh: yt(2), a: gt(F, p, !0), A: gt(F, p, !1), m: String(p), mm: N.s(p, 2, "0"), s: String(this.$s), ss: N.s(this.$s, 2, "0"), SSS: N.s(this.$ms, 3, "0"), Z: D };
3093
- return M.replace($, function(H, Q) {
3094
- return Q || ut[H] || D.replace(":", "");
3095
- });
3096
- }, O.utcOffset = function() {
3097
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3098
- }, O.diff = function(v, C, w) {
3099
- var M, D = N.p(C), F = B(v), p = (F.utcOffset() - this.utcOffset()) * r, l = this - F, d = N.m(this, F);
3100
- return d = (M = {}, M[y] = d / 12, M[b] = d, M[S] = d / 3, M[m] = (l - p) / 6048e5, M[a] = (l - p) / 864e5, M[c] = l / o, M[u] = l / r, M[s] = l / n, M)[D] || l, w ? d : N.a(d);
3101
- }, O.daysInMonth = function() {
3102
- return this.endOf(b).$D;
3103
- }, O.$locale = function() {
3104
- return P[this.$L];
3105
- }, O.locale = function(v, C) {
3106
- if (!v)
3107
- return this.$L;
3108
- var w = this.clone(), M = z(v, C, !0);
3109
- return M && (w.$L = M), w;
3110
- }, O.clone = function() {
3111
- return N.w(this.$d, this);
3112
- }, O.toDate = function() {
3113
- return new Date(this.valueOf());
3114
- }, O.toJSON = function() {
3115
- return this.isValid() ? this.toISOString() : null;
3116
- }, O.toISOString = function() {
3117
- return this.$d.toISOString();
3118
- }, O.toString = function() {
3119
- return this.$d.toUTCString();
3120
- }, T;
3121
- }(), W = Y.prototype;
3122
- return B.prototype = W, [["$ms", i], ["$s", s], ["$m", u], ["$H", c], ["$W", a], ["$M", b], ["$y", y], ["$D", x]].forEach(function(T) {
3123
- W[T[1]] = function(O) {
3124
- return this.$g(O, T[0], T[1]);
3125
- };
3126
- }), B.extend = function(T, O) {
3127
- return T.$i || (T(O, Y, B), T.$i = !0), B;
3128
- }, B.locale = z, B.isDayjs = k, B.unix = function(T) {
3129
- return B(1e3 * T);
3130
- }, B.en = P[R], B.Ls = P, B.p = {}, B;
3131
- });
3132
- })(Za);
3133
- var an = {}, Qa = {
3134
- get exports() {
3135
- return an;
3136
- },
3137
- set exports(t) {
3138
- an = t;
3139
- }
3140
- };
3141
- (function(t, e) {
3142
- (function(n, r) {
3143
- t.exports = r(he);
3144
- })(rt, function(n) {
3145
- function r(s) {
3146
- return s && typeof s == "object" && "default" in s ? s : { default: s };
3147
- }
3148
- var o = r(n), i = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(s, u) {
3149
- return u === "W" ? s + "周" : s + "日";
3150
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(s, u) {
3151
- var c = 100 * s + u;
3152
- return c < 600 ? "凌晨" : c < 900 ? "早上" : c < 1100 ? "上午" : c < 1300 ? "中午" : c < 1800 ? "下午" : "晚上";
3153
- } };
3154
- return o.default.locale(i, null, !0), i;
3155
- });
3156
- })(Qa);
3157
- const cn = fn({});
3158
- function tc(t) {
3159
- cn.value = ms(Gt(cn), Gt(t));
3160
- }
3161
- const ec = {
3162
- tag: {
3163
- type: String
3164
- }
3165
- }, nc = Symbol("ConfigContext");
3166
- function or(t, e) {
3167
- const n = !!sr(), r = e?.provide ?? (n ? ar : void 0), o = fn(t);
3168
- return r && r(nc, o), tc(o), o;
3169
- }
3170
- const rc = ln({
3171
- name: "XConfig",
3172
- props: ec,
3173
- setup(t, { slots: e }) {
3174
- const n = or(t);
3175
- return () => ir(e, "default", { config: Gt(n) });
55
+ t
56
+ );
3176
57
  }
3177
- }), oc = pn(rc), ic = {
58
+ }), h = i(L), j = {
3178
59
  tag: {
3179
60
  type: String,
3180
- default: "div"
3181
- }
3182
- }, sc = ln({
3183
- name: "XPage",
3184
- props: ic,
3185
- setup(t, { slots: e }) {
3186
- return () => cr(
3187
- t.tag,
61
+ default: () => X("tag", "div").value
62
+ }
63
+ }, B = r({
64
+ name: "XElement",
65
+ props: j,
66
+ setup(n, { slots: t }) {
67
+ return () => f(
68
+ n.tag,
3188
69
  {
3189
- class: "x-page"
70
+ class: "x-element"
3190
71
  },
3191
- e
72
+ t
3192
73
  );
3193
74
  }
3194
- });
3195
- pn(sc);
3196
- const un = Symbol("INSTALLED_KEY"), ac = (t = []) => ({
3197
- install: (n, r) => {
3198
- n[un] || (n[un] = !0, t.forEach((o) => n.use(o)), r && or(r, n));
75
+ }), K = i(B), u = Symbol("INSTALLED_KEY"), A = (n = []) => ({
76
+ install: (e, o) => {
77
+ e[u] || (e[u] = !0, n.forEach((s) => e.use(s)), o && m(o, e));
3199
78
  }
3200
- }), cc = [oc], uc = ac(cc), Ec = uc.install;
79
+ }), D = [k, P, h, K], N = A(D), Y = N.install;
3201
80
  export {
3202
- cc as Components,
3203
- uc as default,
3204
- Ec as install
81
+ L as Block,
82
+ B as Element,
83
+ I as Page,
84
+ h as XBlock,
85
+ k as XConfig,
86
+ K as XElement,
87
+ P as XPage,
88
+ D as components,
89
+ p as configContextKey,
90
+ y as configProps,
91
+ N as default,
92
+ j as elementProps,
93
+ Y as install,
94
+ m as provideConfig,
95
+ x as setConfig,
96
+ X as useConfig
3205
97
  };