react-luminus-components 1.1.26 → 1.1.27

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.
@@ -4318,696 +4318,161 @@ const Yu = ({
4318
4318
  logoutUser: () => {
4319
4319
  }
4320
4320
  });
4321
- /*!
4322
- * cookie
4323
- * Copyright(c) 2012-2014 Roman Shtylman
4324
- * Copyright(c) 2015 Douglas Christopher Wilson
4325
- * MIT Licensed
4326
- */
4327
- var Ei = Xu, Eo = Gu, Ju = Object.prototype.toString, er = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
4328
- function Xu(e, t) {
4329
- if (typeof e != "string")
4330
- throw new TypeError("argument str must be a string");
4331
- for (var r = {}, n = t || {}, o = n.decode || Zu, i = 0; i < e.length; ) {
4332
- var a = e.indexOf("=", i);
4333
- if (a === -1)
4334
- break;
4335
- var s = e.indexOf(";", i);
4336
- if (s === -1)
4337
- s = e.length;
4338
- else if (s < a) {
4339
- i = e.lastIndexOf(";", a - 1) + 1;
4340
- continue;
4341
- }
4342
- var c = e.slice(i, a).trim();
4343
- if (r[c] === void 0) {
4344
- var u = e.slice(a + 1, s).trim();
4345
- u.charCodeAt(0) === 34 && (u = u.slice(1, -1)), r[c] = tl(u, o);
4346
- }
4347
- i = s + 1;
4348
- }
4349
- return r;
4350
- }
4351
- function Gu(e, t, r) {
4352
- var n = r || {}, o = n.encode || Qu;
4353
- if (typeof o != "function")
4354
- throw new TypeError("option encode is invalid");
4355
- if (!er.test(e))
4356
- throw new TypeError("argument name is invalid");
4357
- var i = o(t);
4358
- if (i && !er.test(i))
4359
- throw new TypeError("argument val is invalid");
4360
- var a = e + "=" + i;
4361
- if (n.maxAge != null) {
4362
- var s = n.maxAge - 0;
4363
- if (isNaN(s) || !isFinite(s))
4364
- throw new TypeError("option maxAge is invalid");
4365
- a += "; Max-Age=" + Math.floor(s);
4366
- }
4367
- if (n.domain) {
4368
- if (!er.test(n.domain))
4369
- throw new TypeError("option domain is invalid");
4370
- a += "; Domain=" + n.domain;
4371
- }
4372
- if (n.path) {
4373
- if (!er.test(n.path))
4374
- throw new TypeError("option path is invalid");
4375
- a += "; Path=" + n.path;
4376
- }
4377
- if (n.expires) {
4378
- var c = n.expires;
4379
- if (!el(c) || isNaN(c.valueOf()))
4380
- throw new TypeError("option expires is invalid");
4381
- a += "; Expires=" + c.toUTCString();
4382
- }
4383
- if (n.httpOnly && (a += "; HttpOnly"), n.secure && (a += "; Secure"), n.partitioned && (a += "; Partitioned"), n.priority) {
4384
- var u = typeof n.priority == "string" ? n.priority.toLowerCase() : n.priority;
4385
- switch (u) {
4386
- case "low":
4387
- a += "; Priority=Low";
4388
- break;
4389
- case "medium":
4390
- a += "; Priority=Medium";
4391
- break;
4392
- case "high":
4393
- a += "; Priority=High";
4394
- break;
4395
- default:
4396
- throw new TypeError("option priority is invalid");
4397
- }
4398
- }
4399
- if (n.sameSite) {
4400
- var l = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
4401
- switch (l) {
4402
- case !0:
4403
- a += "; SameSite=Strict";
4404
- break;
4405
- case "lax":
4406
- a += "; SameSite=Lax";
4407
- break;
4408
- case "strict":
4409
- a += "; SameSite=Strict";
4410
- break;
4411
- case "none":
4412
- a += "; SameSite=None";
4413
- break;
4414
- default:
4415
- throw new TypeError("option sameSite is invalid");
4416
- }
4417
- }
4418
- return a;
4419
- }
4420
- function Zu(e) {
4421
- return e.indexOf("%") !== -1 ? decodeURIComponent(e) : e;
4321
+ function Ei(e, t) {
4322
+ return function() {
4323
+ return e.apply(t, arguments);
4324
+ };
4422
4325
  }
4423
- function Qu(e) {
4424
- return encodeURIComponent(e);
4326
+ const { toString: Ju } = Object.prototype, { getPrototypeOf: wn } = Object, wr = /* @__PURE__ */ ((e) => (t) => {
4327
+ const r = Ju.call(t);
4328
+ return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
4329
+ })(/* @__PURE__ */ Object.create(null)), Le = (e) => (e = e.toLowerCase(), (t) => wr(t) === e), xr = (e) => (t) => typeof t === e, { isArray: Tt } = Array, Bt = xr("undefined");
4330
+ function Xu(e) {
4331
+ return e !== null && !Bt(e) && e.constructor !== null && !Bt(e.constructor) && je(e.constructor.isBuffer) && e.constructor.isBuffer(e);
4425
4332
  }
4426
- function el(e) {
4427
- return Ju.call(e) === "[object Date]" || e instanceof Date;
4333
+ const wi = Le("ArrayBuffer");
4334
+ function Gu(e) {
4335
+ let t;
4336
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && wi(e.buffer), t;
4428
4337
  }
4429
- function tl(e, t) {
4430
- try {
4431
- return t(e);
4432
- } catch {
4433
- return e;
4338
+ const Zu = xr("string"), je = xr("function"), xi = xr("number"), Or = (e) => e !== null && typeof e == "object", Qu = (e) => e === !0 || e === !1, sr = (e) => {
4339
+ if (wr(e) !== "object")
4340
+ return !1;
4341
+ const t = wn(e);
4342
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
4343
+ }, el = Le("Date"), tl = Le("File"), rl = Le("Blob"), nl = Le("FileList"), ol = (e) => Or(e) && je(e.pipe), il = (e) => {
4344
+ let t;
4345
+ return e && (typeof FormData == "function" && e instanceof FormData || je(e.append) && ((t = wr(e)) === "formdata" || // detect form-data instance
4346
+ t === "object" && je(e.toString) && e.toString() === "[object FormData]"));
4347
+ }, al = Le("URLSearchParams"), sl = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
4348
+ function Wt(e, t, { allOwnKeys: r = !1 } = {}) {
4349
+ if (e === null || typeof e > "u")
4350
+ return;
4351
+ let n, o;
4352
+ if (typeof e != "object" && (e = [e]), Tt(e))
4353
+ for (n = 0, o = e.length; n < o; n++)
4354
+ t.call(null, e[n], n, e);
4355
+ else {
4356
+ const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
4357
+ let s;
4358
+ for (n = 0; n < a; n++)
4359
+ s = i[n], t.call(null, e[s], s, e);
4434
4360
  }
4435
4361
  }
4436
- function rl() {
4437
- const e = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
4438
- return typeof e == "boolean" ? e : typeof document == "object" && typeof document.cookie == "string";
4439
- }
4440
- function nl(e) {
4441
- return typeof e == "string" ? Ei(e) : typeof e == "object" && e !== null ? e : {};
4442
- }
4443
- function Ir(e, t = {}) {
4444
- const r = ol(e);
4445
- if (!t.doNotParse)
4446
- try {
4447
- return JSON.parse(r);
4448
- } catch {
4449
- }
4450
- return e;
4362
+ function Oi(e, t) {
4363
+ t = t.toLowerCase();
4364
+ const r = Object.keys(e);
4365
+ let n = r.length, o;
4366
+ for (; n-- > 0; )
4367
+ if (o = r[n], t === o.toLowerCase())
4368
+ return o;
4369
+ return null;
4451
4370
  }
4452
- function ol(e) {
4453
- return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
4371
+ const Si = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ti = (e) => !Bt(e) && e !== Si;
4372
+ function on() {
4373
+ const { caseless: e } = Ti(this) && this || {}, t = {}, r = (n, o) => {
4374
+ const i = e && Oi(t, o) || o;
4375
+ sr(t[i]) && sr(n) ? t[i] = on(t[i], n) : sr(n) ? t[i] = on({}, n) : Tt(n) ? t[i] = n.slice() : t[i] = n;
4376
+ };
4377
+ for (let n = 0, o = arguments.length; n < o; n++)
4378
+ arguments[n] && Wt(arguments[n], r);
4379
+ return t;
4454
4380
  }
4455
- class il {
4456
- constructor(t, r = {}) {
4457
- this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
4458
- if (!this.HAS_DOCUMENT_COOKIE)
4459
- return;
4460
- const o = this.cookies;
4461
- this.cookies = Ei(document.cookie), this._checkChanges(o);
4462
- };
4463
- const n = typeof document > "u" ? "" : document.cookie;
4464
- this.cookies = nl(t || n), this.defaultSetOptions = r, this.HAS_DOCUMENT_COOKIE = rl();
4381
+ const cl = (e, t, r, { allOwnKeys: n } = {}) => (Wt(t, (o, i) => {
4382
+ r && je(o) ? e[i] = Ei(o, r) : e[i] = o;
4383
+ }, { allOwnKeys: n }), e), ul = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ll = (e, t, r, n) => {
4384
+ e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
4385
+ value: t.prototype
4386
+ }), r && Object.assign(e.prototype, r);
4387
+ }, fl = (e, t, r, n) => {
4388
+ let o, i, a;
4389
+ const s = {};
4390
+ if (t = t || {}, e == null)
4391
+ return t;
4392
+ do {
4393
+ for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
4394
+ a = o[i], (!n || n(a, e, t)) && !s[a] && (t[a] = e[a], s[a] = !0);
4395
+ e = r !== !1 && wn(e);
4396
+ } while (e && (!r || r(e, t)) && e !== Object.prototype);
4397
+ return t;
4398
+ }, dl = (e, t, r) => {
4399
+ e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
4400
+ const n = e.indexOf(t, r);
4401
+ return n !== -1 && n === r;
4402
+ }, pl = (e) => {
4403
+ if (!e)
4404
+ return null;
4405
+ if (Tt(e))
4406
+ return e;
4407
+ let t = e.length;
4408
+ if (!xi(t))
4409
+ return null;
4410
+ const r = new Array(t);
4411
+ for (; t-- > 0; )
4412
+ r[t] = e[t];
4413
+ return r;
4414
+ }, hl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && wn(Uint8Array)), vl = (e, t) => {
4415
+ const n = (e && e[Symbol.iterator]).call(e);
4416
+ let o;
4417
+ for (; (o = n.next()) && !o.done; ) {
4418
+ const i = o.value;
4419
+ t.call(e, i[0], i[1]);
4465
4420
  }
4466
- _emitChange(t) {
4467
- for (let r = 0; r < this.changeListeners.length; ++r)
4468
- this.changeListeners[r](t);
4421
+ }, ml = (e, t) => {
4422
+ let r;
4423
+ const n = [];
4424
+ for (; (r = e.exec(t)) !== null; )
4425
+ n.push(r);
4426
+ return n;
4427
+ }, yl = Le("HTMLFormElement"), gl = (e) => e.toLowerCase().replace(
4428
+ /[-_\s]([a-z\d])(\w*)/g,
4429
+ function(r, n, o) {
4430
+ return n.toUpperCase() + o;
4469
4431
  }
4470
- _checkChanges(t) {
4471
- new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((n) => {
4472
- t[n] !== this.cookies[n] && this._emitChange({
4473
- name: n,
4474
- value: Ir(this.cookies[n])
4432
+ ), Eo = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), bl = Le("RegExp"), Ri = (e, t) => {
4433
+ const r = Object.getOwnPropertyDescriptors(e), n = {};
4434
+ Wt(r, (o, i) => {
4435
+ let a;
4436
+ (a = t(o, i, e)) !== !1 && (n[i] = a || o);
4437
+ }), Object.defineProperties(e, n);
4438
+ }, El = (e) => {
4439
+ Ri(e, (t, r) => {
4440
+ if (je(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
4441
+ return !1;
4442
+ const n = e[r];
4443
+ if (je(n)) {
4444
+ if (t.enumerable = !1, "writable" in t) {
4445
+ t.writable = !1;
4446
+ return;
4447
+ }
4448
+ t.set || (t.set = () => {
4449
+ throw Error("Can not rewrite read-only method '" + r + "'");
4475
4450
  });
4476
- });
4477
- }
4478
- _startPolling() {
4479
- this.pollingInterval = setInterval(this.update, 300);
4480
- }
4481
- _stopPolling() {
4482
- this.pollingInterval && clearInterval(this.pollingInterval);
4483
- }
4484
- get(t, r = {}) {
4485
- return r.doNotUpdate || this.update(), Ir(this.cookies[t], r);
4486
- }
4487
- getAll(t = {}) {
4488
- t.doNotUpdate || this.update();
4489
- const r = {};
4490
- for (let n in this.cookies)
4491
- r[n] = Ir(this.cookies[n], t);
4492
- return r;
4493
- }
4494
- set(t, r, n) {
4495
- n ? n = Object.assign(Object.assign({}, this.defaultSetOptions), n) : n = this.defaultSetOptions;
4496
- const o = typeof r == "string" ? r : JSON.stringify(r);
4497
- this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: o }), this.HAS_DOCUMENT_COOKIE && (document.cookie = Eo(t, o, n)), this._emitChange({ name: t, value: r, options: n });
4498
- }
4499
- remove(t, r) {
4500
- const n = r = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), r), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
4501
- this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie = Eo(t, "", n)), this._emitChange({ name: t, value: void 0, options: r });
4502
- }
4503
- addChangeListener(t) {
4504
- this.changeListeners.push(t), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling());
4505
- }
4506
- removeChangeListener(t) {
4507
- const r = this.changeListeners.indexOf(t);
4508
- r >= 0 && this.changeListeners.splice(r, 1), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.removeEventListener("change", this.update) : this._stopPolling());
4509
- }
4510
- }
4511
- const al = ee.createContext(new il());
4512
- var on = { exports: {} }, ne = {};
4513
- /** @license React v16.13.1
4514
- * react-is.production.min.js
4515
- *
4516
- * Copyright (c) Facebook, Inc. and its affiliates.
4517
- *
4518
- * This source code is licensed under the MIT license found in the
4519
- * LICENSE file in the root directory of this source tree.
4520
- */
4521
- var wo;
4522
- function sl() {
4523
- if (wo)
4524
- return ne;
4525
- wo = 1;
4526
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
4527
- function R(p) {
4528
- if (typeof p == "object" && p !== null) {
4529
- var P = p.$$typeof;
4530
- switch (P) {
4531
- case t:
4532
- switch (p = p.type, p) {
4533
- case c:
4534
- case u:
4535
- case n:
4536
- case i:
4537
- case o:
4538
- case d:
4539
- return p;
4540
- default:
4541
- switch (p = p && p.$$typeof, p) {
4542
- case s:
4543
- case l:
4544
- case h:
4545
- case y:
4546
- case a:
4547
- return p;
4548
- default:
4549
- return P;
4550
- }
4551
- }
4552
- case r:
4553
- return P;
4554
- }
4555
- }
4556
- }
4557
- function O(p) {
4558
- return R(p) === u;
4559
- }
4560
- return ne.AsyncMode = c, ne.ConcurrentMode = u, ne.ContextConsumer = s, ne.ContextProvider = a, ne.Element = t, ne.ForwardRef = l, ne.Fragment = n, ne.Lazy = h, ne.Memo = y, ne.Portal = r, ne.Profiler = i, ne.StrictMode = o, ne.Suspense = d, ne.isAsyncMode = function(p) {
4561
- return O(p) || R(p) === c;
4562
- }, ne.isConcurrentMode = O, ne.isContextConsumer = function(p) {
4563
- return R(p) === s;
4564
- }, ne.isContextProvider = function(p) {
4565
- return R(p) === a;
4566
- }, ne.isElement = function(p) {
4567
- return typeof p == "object" && p !== null && p.$$typeof === t;
4568
- }, ne.isForwardRef = function(p) {
4569
- return R(p) === l;
4570
- }, ne.isFragment = function(p) {
4571
- return R(p) === n;
4572
- }, ne.isLazy = function(p) {
4573
- return R(p) === h;
4574
- }, ne.isMemo = function(p) {
4575
- return R(p) === y;
4576
- }, ne.isPortal = function(p) {
4577
- return R(p) === r;
4578
- }, ne.isProfiler = function(p) {
4579
- return R(p) === i;
4580
- }, ne.isStrictMode = function(p) {
4581
- return R(p) === o;
4582
- }, ne.isSuspense = function(p) {
4583
- return R(p) === d;
4584
- }, ne.isValidElementType = function(p) {
4585
- return typeof p == "string" || typeof p == "function" || p === n || p === u || p === i || p === o || p === d || p === v || typeof p == "object" && p !== null && (p.$$typeof === h || p.$$typeof === y || p.$$typeof === a || p.$$typeof === s || p.$$typeof === l || p.$$typeof === b || p.$$typeof === S || p.$$typeof === T || p.$$typeof === m);
4586
- }, ne.typeOf = R, ne;
4587
- }
4588
- var oe = {};
4589
- /** @license React v16.13.1
4590
- * react-is.development.js
4591
- *
4592
- * Copyright (c) Facebook, Inc. and its affiliates.
4593
- *
4594
- * This source code is licensed under the MIT license found in the
4595
- * LICENSE file in the root directory of this source tree.
4596
- */
4597
- var xo;
4598
- function cl() {
4599
- return xo || (xo = 1, process.env.NODE_ENV !== "production" && function() {
4600
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
4601
- function R(g) {
4602
- return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4603
- g === n || g === u || g === i || g === o || g === d || g === v || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === y || g.$$typeof === a || g.$$typeof === s || g.$$typeof === l || g.$$typeof === b || g.$$typeof === S || g.$$typeof === T || g.$$typeof === m);
4604
- }
4605
- function O(g) {
4606
- if (typeof g == "object" && g !== null) {
4607
- var ve = g.$$typeof;
4608
- switch (ve) {
4609
- case t:
4610
- var Te = g.type;
4611
- switch (Te) {
4612
- case c:
4613
- case u:
4614
- case n:
4615
- case i:
4616
- case o:
4617
- case d:
4618
- return Te;
4619
- default:
4620
- var Pe = Te && Te.$$typeof;
4621
- switch (Pe) {
4622
- case s:
4623
- case l:
4624
- case h:
4625
- case y:
4626
- case a:
4627
- return Pe;
4628
- default:
4629
- return ve;
4630
- }
4631
- }
4632
- case r:
4633
- return ve;
4634
- }
4635
- }
4636
- }
4637
- var p = c, P = u, L = s, J = a, G = t, K = l, ie = n, ue = h, z = y, X = r, Z = i, ae = o, ce = d, Ee = !1;
4638
- function be(g) {
4639
- return Ee || (Ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(g) || O(g) === c;
4640
- }
4641
- function w(g) {
4642
- return O(g) === u;
4643
- }
4644
- function _(g) {
4645
- return O(g) === s;
4646
- }
4647
- function k(g) {
4648
- return O(g) === a;
4649
- }
4650
- function N(g) {
4651
- return typeof g == "object" && g !== null && g.$$typeof === t;
4652
- }
4653
- function A(g) {
4654
- return O(g) === l;
4655
- }
4656
- function I(g) {
4657
- return O(g) === n;
4658
- }
4659
- function j(g) {
4660
- return O(g) === h;
4661
- }
4662
- function D(g) {
4663
- return O(g) === y;
4664
- }
4665
- function M(g) {
4666
- return O(g) === r;
4667
- }
4668
- function U(g) {
4669
- return O(g) === i;
4670
- }
4671
- function F(g) {
4672
- return O(g) === o;
4673
- }
4674
- function le(g) {
4675
- return O(g) === d;
4676
- }
4677
- oe.AsyncMode = p, oe.ConcurrentMode = P, oe.ContextConsumer = L, oe.ContextProvider = J, oe.Element = G, oe.ForwardRef = K, oe.Fragment = ie, oe.Lazy = ue, oe.Memo = z, oe.Portal = X, oe.Profiler = Z, oe.StrictMode = ae, oe.Suspense = ce, oe.isAsyncMode = be, oe.isConcurrentMode = w, oe.isContextConsumer = _, oe.isContextProvider = k, oe.isElement = N, oe.isForwardRef = A, oe.isFragment = I, oe.isLazy = j, oe.isMemo = D, oe.isPortal = M, oe.isProfiler = U, oe.isStrictMode = F, oe.isSuspense = le, oe.isValidElementType = R, oe.typeOf = O;
4678
- }()), oe;
4679
- }
4680
- process.env.NODE_ENV === "production" ? on.exports = sl() : on.exports = cl();
4681
- var ul = on.exports, wi = ul, ll = {
4682
- $$typeof: !0,
4683
- render: !0,
4684
- defaultProps: !0,
4685
- displayName: !0,
4686
- propTypes: !0
4687
- }, fl = {
4688
- $$typeof: !0,
4689
- compare: !0,
4690
- defaultProps: !0,
4691
- displayName: !0,
4692
- propTypes: !0,
4693
- type: !0
4694
- }, xi = {};
4695
- xi[wi.ForwardRef] = ll;
4696
- xi[wi.Memo] = fl;
4697
- function dl() {
4698
- return typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
4699
- }
4700
- function pl(e) {
4701
- const t = Ze(al);
4702
- if (!t)
4703
- throw new Error("Missing <CookiesProvider>");
4704
- const [r, n] = Ve(() => t.getAll({ doNotUpdate: !0 }));
4705
- dl() && No(() => {
4706
- function s() {
4707
- const c = t.getAll({
4708
- doNotUpdate: !0
4709
- });
4710
- hl(e || null, c, r) && n(c);
4711
- }
4712
- return t.addChangeListener(s), () => {
4713
- t.removeChangeListener(s);
4714
- };
4715
- }, [t, r]);
4716
- const o = Xe(() => t.set.bind(t), [t]), i = Xe(() => t.remove.bind(t), [t]), a = Xe(() => t.update.bind(t), [t]);
4717
- return [r, o, i, a];
4718
- }
4719
- function hl(e, t, r) {
4720
- if (!e)
4721
- return !0;
4722
- for (let n of e)
4723
- if (t[n] !== r[n])
4724
- return !0;
4725
- return !1;
4726
- }
4727
- const vl = () => {
4728
- const { axiosInstance: e, cookieDomain: t } = Ze(Fo), [, r, n] = pl(["Authorization"]), o = Y(() => localStorage.getItem("token") ?? null, []), i = Y(() => {
4729
- const c = o();
4730
- return c !== null && c.length > 0;
4731
- }, [o]), a = Y(async (c, u) => e.post("/user/login", { kid: c, password: u }).then((l) => (localStorage.setItem("token", l.data), r("Authorization", l.data, {
4732
- path: "/",
4733
- secure: !0,
4734
- sameSite: "none",
4735
- domain: t,
4736
- expires: ha(new Date(Date.now()), 24)
4737
- }), !0)).catch((l) => (console.log(l), !1)), [e, r, t]), s = Y(() => {
4738
- localStorage.removeItem("token"), localStorage.removeItem("user"), n("Authorization");
4739
- }, [n]);
4740
- return {
4741
- isAuthenticated: i,
4742
- getToken: o,
4743
- authenticate: a,
4744
- logout: s
4745
- };
4746
- };
4747
- let tr;
4748
- const ml = new Uint8Array(16);
4749
- function yl() {
4750
- if (!tr && (tr = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !tr))
4751
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4752
- return tr(ml);
4753
- }
4754
- const ge = [];
4755
- for (let e = 0; e < 256; ++e)
4756
- ge.push((e + 256).toString(16).slice(1));
4757
- function gl(e, t = 0) {
4758
- return ge[e[t + 0]] + ge[e[t + 1]] + ge[e[t + 2]] + ge[e[t + 3]] + "-" + ge[e[t + 4]] + ge[e[t + 5]] + "-" + ge[e[t + 6]] + ge[e[t + 7]] + "-" + ge[e[t + 8]] + ge[e[t + 9]] + "-" + ge[e[t + 10]] + ge[e[t + 11]] + ge[e[t + 12]] + ge[e[t + 13]] + ge[e[t + 14]] + ge[e[t + 15]];
4759
- }
4760
- const bl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Oo = {
4761
- randomUUID: bl
4762
- };
4763
- function El(e, t, r) {
4764
- if (Oo.randomUUID && !t && !e)
4765
- return Oo.randomUUID();
4766
- e = e || {};
4767
- const n = e.random || (e.rng || yl)();
4768
- if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
4769
- r = r || 0;
4770
- for (let o = 0; o < 16; ++o)
4771
- t[r + o] = n[o];
4772
- return t;
4773
- }
4774
- return gl(n);
4775
- }
4776
- const wl = "_toast_1s57i_1", Mt = {
4777
- toast: wl
4778
- }, xl = (e) => {
4779
- switch (e) {
4780
- case "success":
4781
- return 5e3;
4782
- case "info":
4783
- return 5e3;
4784
- case "danger":
4785
- return 1e4;
4786
- case "warning":
4787
- return 1e4;
4788
- case "prompt":
4789
- return 1e4;
4790
- default:
4791
- return 5e3;
4792
- }
4793
- }, Ol = () => ({ addNotification: (t, r) => {
4794
- const n = El(), o = aa(t), i = xl(r), a = /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
4795
- o,
4796
- /* @__PURE__ */ q.jsx(Ca, { onClick: () => ht.dismiss(n), type: "button", style: {
4797
- position: "absolute",
4798
- fontSize: "12px",
4799
- top: "calc(50% - 6px)",
4800
- right: "8px"
4801
- } })
4802
- ] });
4803
- switch (r) {
4804
- case "success": {
4805
- ht(a, {
4806
- id: n,
4807
- duration: i,
4808
- position: "top-center",
4809
- icon: /* @__PURE__ */ q.jsx(Ra, { size: 12 }),
4810
- className: Re("luminus-toast-success rounded shadow bg-success", Mt.toast)
4811
- });
4812
- break;
4813
- }
4814
- case "danger": {
4815
- ht(a, {
4816
- id: n,
4817
- duration: i,
4818
- position: "top-center",
4819
- icon: /* @__PURE__ */ q.jsx(Ta, { size: 12 }),
4820
- className: Re("luminus-toast-danger rounded shadow bg-danger", Mt.toast)
4821
- });
4822
- break;
4823
- }
4824
- case "warning": {
4825
- ht(a, {
4826
- id: n,
4827
- duration: i,
4828
- position: "top-center",
4829
- icon: /* @__PURE__ */ q.jsx(xa, { size: 12 }),
4830
- className: Re("luminus-toast-warning rounded shadow bg-warning", Mt.toast)
4831
- });
4832
- break;
4833
- }
4834
- case "info": {
4835
- ht(a, {
4836
- id: n,
4837
- duration: i,
4838
- position: "top-center",
4839
- icon: /* @__PURE__ */ q.jsx(Oa, { size: 12 }),
4840
- className: Re("luminus-toast-info rounded shadow bg-info", Mt.toast)
4841
- });
4842
- break;
4843
- }
4844
- case "prompt": {
4845
- ht(a, {
4846
- id: n,
4847
- duration: i,
4848
- position: "top-center",
4849
- icon: /* @__PURE__ */ q.jsx(Sa, { size: 12 }),
4850
- className: Re("luminus-toast-prompt rounded shadow bg-light", Mt.toast)
4851
- });
4852
- break;
4853
- }
4854
- }
4855
- } });
4856
- function Oi(e, t) {
4857
- return function() {
4858
- return e.apply(t, arguments);
4859
- };
4860
- }
4861
- const { toString: Sl } = Object.prototype, { getPrototypeOf: wn } = Object, wr = /* @__PURE__ */ ((e) => (t) => {
4862
- const r = Sl.call(t);
4863
- return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
4864
- })(/* @__PURE__ */ Object.create(null)), Le = (e) => (e = e.toLowerCase(), (t) => wr(t) === e), xr = (e) => (t) => typeof t === e, { isArray: Tt } = Array, Bt = xr("undefined");
4865
- function Tl(e) {
4866
- return e !== null && !Bt(e) && e.constructor !== null && !Bt(e.constructor) && je(e.constructor.isBuffer) && e.constructor.isBuffer(e);
4867
- }
4868
- const Si = Le("ArrayBuffer");
4869
- function Rl(e) {
4870
- let t;
4871
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Si(e.buffer), t;
4872
- }
4873
- const Cl = xr("string"), je = xr("function"), Ti = xr("number"), Or = (e) => e !== null && typeof e == "object", _l = (e) => e === !0 || e === !1, sr = (e) => {
4874
- if (wr(e) !== "object")
4875
- return !1;
4876
- const t = wn(e);
4877
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
4878
- }, Pl = Le("Date"), Al = Le("File"), jl = Le("Blob"), Dl = Le("FileList"), Ml = (e) => Or(e) && je(e.pipe), kl = (e) => {
4879
- let t;
4880
- return e && (typeof FormData == "function" && e instanceof FormData || je(e.append) && ((t = wr(e)) === "formdata" || // detect form-data instance
4881
- t === "object" && je(e.toString) && e.toString() === "[object FormData]"));
4882
- }, Nl = Le("URLSearchParams"), $l = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
4883
- function Wt(e, t, { allOwnKeys: r = !1 } = {}) {
4884
- if (e === null || typeof e > "u")
4885
- return;
4886
- let n, o;
4887
- if (typeof e != "object" && (e = [e]), Tt(e))
4888
- for (n = 0, o = e.length; n < o; n++)
4889
- t.call(null, e[n], n, e);
4890
- else {
4891
- const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
4892
- let s;
4893
- for (n = 0; n < a; n++)
4894
- s = i[n], t.call(null, e[s], s, e);
4895
- }
4896
- }
4897
- function Ri(e, t) {
4898
- t = t.toLowerCase();
4899
- const r = Object.keys(e);
4900
- let n = r.length, o;
4901
- for (; n-- > 0; )
4902
- if (o = r[n], t === o.toLowerCase())
4903
- return o;
4904
- return null;
4905
- }
4906
- const Ci = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _i = (e) => !Bt(e) && e !== Ci;
4907
- function an() {
4908
- const { caseless: e } = _i(this) && this || {}, t = {}, r = (n, o) => {
4909
- const i = e && Ri(t, o) || o;
4910
- sr(t[i]) && sr(n) ? t[i] = an(t[i], n) : sr(n) ? t[i] = an({}, n) : Tt(n) ? t[i] = n.slice() : t[i] = n;
4911
- };
4912
- for (let n = 0, o = arguments.length; n < o; n++)
4913
- arguments[n] && Wt(arguments[n], r);
4914
- return t;
4915
- }
4916
- const Ll = (e, t, r, { allOwnKeys: n } = {}) => (Wt(t, (o, i) => {
4917
- r && je(o) ? e[i] = Oi(o, r) : e[i] = o;
4918
- }, { allOwnKeys: n }), e), Il = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Fl = (e, t, r, n) => {
4919
- e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
4920
- value: t.prototype
4921
- }), r && Object.assign(e.prototype, r);
4922
- }, Ul = (e, t, r, n) => {
4923
- let o, i, a;
4924
- const s = {};
4925
- if (t = t || {}, e == null)
4926
- return t;
4927
- do {
4928
- for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0; )
4929
- a = o[i], (!n || n(a, e, t)) && !s[a] && (t[a] = e[a], s[a] = !0);
4930
- e = r !== !1 && wn(e);
4931
- } while (e && (!r || r(e, t)) && e !== Object.prototype);
4932
- return t;
4933
- }, Bl = (e, t, r) => {
4934
- e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
4935
- const n = e.indexOf(t, r);
4936
- return n !== -1 && n === r;
4937
- }, zl = (e) => {
4938
- if (!e)
4939
- return null;
4940
- if (Tt(e))
4941
- return e;
4942
- let t = e.length;
4943
- if (!Ti(t))
4944
- return null;
4945
- const r = new Array(t);
4946
- for (; t-- > 0; )
4947
- r[t] = e[t];
4948
- return r;
4949
- }, Hl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && wn(Uint8Array)), Vl = (e, t) => {
4950
- const n = (e && e[Symbol.iterator]).call(e);
4951
- let o;
4952
- for (; (o = n.next()) && !o.done; ) {
4953
- const i = o.value;
4954
- t.call(e, i[0], i[1]);
4955
- }
4956
- }, Wl = (e, t) => {
4957
- let r;
4958
- const n = [];
4959
- for (; (r = e.exec(t)) !== null; )
4960
- n.push(r);
4961
- return n;
4962
- }, ql = Le("HTMLFormElement"), Yl = (e) => e.toLowerCase().replace(
4963
- /[-_\s]([a-z\d])(\w*)/g,
4964
- function(r, n, o) {
4965
- return n.toUpperCase() + o;
4966
- }
4967
- ), So = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Kl = Le("RegExp"), Pi = (e, t) => {
4968
- const r = Object.getOwnPropertyDescriptors(e), n = {};
4969
- Wt(r, (o, i) => {
4970
- let a;
4971
- (a = t(o, i, e)) !== !1 && (n[i] = a || o);
4972
- }), Object.defineProperties(e, n);
4973
- }, Jl = (e) => {
4974
- Pi(e, (t, r) => {
4975
- if (je(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
4976
- return !1;
4977
- const n = e[r];
4978
- if (je(n)) {
4979
- if (t.enumerable = !1, "writable" in t) {
4980
- t.writable = !1;
4981
- return;
4982
- }
4983
- t.set || (t.set = () => {
4984
- throw Error("Can not rewrite read-only method '" + r + "'");
4985
- });
4986
- }
4987
- });
4988
- }, Xl = (e, t) => {
4989
- const r = {}, n = (o) => {
4990
- o.forEach((i) => {
4991
- r[i] = !0;
4451
+ }
4452
+ });
4453
+ }, wl = (e, t) => {
4454
+ const r = {}, n = (o) => {
4455
+ o.forEach((i) => {
4456
+ r[i] = !0;
4992
4457
  });
4993
4458
  };
4994
4459
  return Tt(e) ? n(e) : n(String(e).split(t)), r;
4995
- }, Gl = () => {
4996
- }, Zl = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Fr = "abcdefghijklmnopqrstuvwxyz", To = "0123456789", Ai = {
4997
- DIGIT: To,
4998
- ALPHA: Fr,
4999
- ALPHA_DIGIT: Fr + Fr.toUpperCase() + To
5000
- }, Ql = (e = 16, t = Ai.ALPHA_DIGIT) => {
4460
+ }, xl = () => {
4461
+ }, Ol = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Ir = "abcdefghijklmnopqrstuvwxyz", wo = "0123456789", Ci = {
4462
+ DIGIT: wo,
4463
+ ALPHA: Ir,
4464
+ ALPHA_DIGIT: Ir + Ir.toUpperCase() + wo
4465
+ }, Sl = (e = 16, t = Ci.ALPHA_DIGIT) => {
5001
4466
  let r = "";
5002
4467
  const { length: n } = t;
5003
4468
  for (; e--; )
5004
4469
  r += t[Math.random() * n | 0];
5005
4470
  return r;
5006
4471
  };
5007
- function ef(e) {
4472
+ function Tl(e) {
5008
4473
  return !!(e && je(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
5009
4474
  }
5010
- const tf = (e) => {
4475
+ const Rl = (e) => {
5011
4476
  const t = new Array(10), r = (n, o) => {
5012
4477
  if (Or(n)) {
5013
4478
  if (t.indexOf(n) >= 0)
@@ -5024,59 +4489,59 @@ const tf = (e) => {
5024
4489
  return n;
5025
4490
  };
5026
4491
  return r(e, 0);
5027
- }, rf = Le("AsyncFunction"), nf = (e) => e && (Or(e) || je(e)) && je(e.then) && je(e.catch), E = {
4492
+ }, Cl = Le("AsyncFunction"), _l = (e) => e && (Or(e) || je(e)) && je(e.then) && je(e.catch), E = {
5028
4493
  isArray: Tt,
5029
- isArrayBuffer: Si,
5030
- isBuffer: Tl,
5031
- isFormData: kl,
5032
- isArrayBufferView: Rl,
5033
- isString: Cl,
5034
- isNumber: Ti,
5035
- isBoolean: _l,
4494
+ isArrayBuffer: wi,
4495
+ isBuffer: Xu,
4496
+ isFormData: il,
4497
+ isArrayBufferView: Gu,
4498
+ isString: Zu,
4499
+ isNumber: xi,
4500
+ isBoolean: Qu,
5036
4501
  isObject: Or,
5037
4502
  isPlainObject: sr,
5038
4503
  isUndefined: Bt,
5039
- isDate: Pl,
5040
- isFile: Al,
5041
- isBlob: jl,
5042
- isRegExp: Kl,
4504
+ isDate: el,
4505
+ isFile: tl,
4506
+ isBlob: rl,
4507
+ isRegExp: bl,
5043
4508
  isFunction: je,
5044
- isStream: Ml,
5045
- isURLSearchParams: Nl,
5046
- isTypedArray: Hl,
5047
- isFileList: Dl,
4509
+ isStream: ol,
4510
+ isURLSearchParams: al,
4511
+ isTypedArray: hl,
4512
+ isFileList: nl,
5048
4513
  forEach: Wt,
5049
- merge: an,
5050
- extend: Ll,
5051
- trim: $l,
5052
- stripBOM: Il,
5053
- inherits: Fl,
5054
- toFlatObject: Ul,
4514
+ merge: on,
4515
+ extend: cl,
4516
+ trim: sl,
4517
+ stripBOM: ul,
4518
+ inherits: ll,
4519
+ toFlatObject: fl,
5055
4520
  kindOf: wr,
5056
4521
  kindOfTest: Le,
5057
- endsWith: Bl,
5058
- toArray: zl,
5059
- forEachEntry: Vl,
5060
- matchAll: Wl,
5061
- isHTMLForm: ql,
5062
- hasOwnProperty: So,
5063
- hasOwnProp: So,
4522
+ endsWith: dl,
4523
+ toArray: pl,
4524
+ forEachEntry: vl,
4525
+ matchAll: ml,
4526
+ isHTMLForm: yl,
4527
+ hasOwnProperty: Eo,
4528
+ hasOwnProp: Eo,
5064
4529
  // an alias to avoid ESLint no-prototype-builtins detection
5065
- reduceDescriptors: Pi,
5066
- freezeMethods: Jl,
5067
- toObjectSet: Xl,
5068
- toCamelCase: Yl,
5069
- noop: Gl,
5070
- toFiniteNumber: Zl,
5071
- findKey: Ri,
5072
- global: Ci,
5073
- isContextDefined: _i,
5074
- ALPHABET: Ai,
5075
- generateString: Ql,
5076
- isSpecCompliantForm: ef,
5077
- toJSONObject: tf,
5078
- isAsyncFn: rf,
5079
- isThenable: nf
4530
+ reduceDescriptors: Ri,
4531
+ freezeMethods: El,
4532
+ toObjectSet: wl,
4533
+ toCamelCase: gl,
4534
+ noop: xl,
4535
+ toFiniteNumber: Ol,
4536
+ findKey: Oi,
4537
+ global: Si,
4538
+ isContextDefined: Ti,
4539
+ ALPHABET: Ci,
4540
+ generateString: Sl,
4541
+ isSpecCompliantForm: Tl,
4542
+ toJSONObject: Rl,
4543
+ isAsyncFn: Cl,
4544
+ isThenable: _l
5080
4545
  };
5081
4546
  function W(e, t, r, n, o) {
5082
4547
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o);
@@ -5102,7 +4567,7 @@ E.inherits(W, Error, {
5102
4567
  };
5103
4568
  }
5104
4569
  });
5105
- const ji = W.prototype, Di = {};
4570
+ const _i = W.prototype, Pi = {};
5106
4571
  [
5107
4572
  "ERR_BAD_OPTION_VALUE",
5108
4573
  "ERR_BAD_OPTION",
@@ -5118,32 +4583,32 @@ const ji = W.prototype, Di = {};
5118
4583
  "ERR_INVALID_URL"
5119
4584
  // eslint-disable-next-line func-names
5120
4585
  ].forEach((e) => {
5121
- Di[e] = { value: e };
4586
+ Pi[e] = { value: e };
5122
4587
  });
5123
- Object.defineProperties(W, Di);
5124
- Object.defineProperty(ji, "isAxiosError", { value: !0 });
4588
+ Object.defineProperties(W, Pi);
4589
+ Object.defineProperty(_i, "isAxiosError", { value: !0 });
5125
4590
  W.from = (e, t, r, n, o, i) => {
5126
- const a = Object.create(ji);
4591
+ const a = Object.create(_i);
5127
4592
  return E.toFlatObject(e, a, function(c) {
5128
4593
  return c !== Error.prototype;
5129
4594
  }, (s) => s !== "isAxiosError"), W.call(a, e.message, t, r, n, o), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
5130
4595
  };
5131
- const of = null;
5132
- function sn(e) {
4596
+ const Pl = null;
4597
+ function an(e) {
5133
4598
  return E.isPlainObject(e) || E.isArray(e);
5134
4599
  }
5135
- function Mi(e) {
4600
+ function Ai(e) {
5136
4601
  return E.endsWith(e, "[]") ? e.slice(0, -2) : e;
5137
4602
  }
5138
- function Ro(e, t, r) {
4603
+ function xo(e, t, r) {
5139
4604
  return e ? e.concat(t).map(function(o, i) {
5140
- return o = Mi(o), !r && i ? "[" + o + "]" : o;
4605
+ return o = Ai(o), !r && i ? "[" + o + "]" : o;
5141
4606
  }).join(r ? "." : "") : t;
5142
4607
  }
5143
- function af(e) {
5144
- return E.isArray(e) && !e.some(sn);
4608
+ function Al(e) {
4609
+ return E.isArray(e) && !e.some(an);
5145
4610
  }
5146
- const sf = E.toFlatObject(E, {}, null, function(t) {
4611
+ const jl = E.toFlatObject(E, {}, null, function(t) {
5147
4612
  return /^is[A-Z]/.test(t);
5148
4613
  });
5149
4614
  function Sr(e, t, r) {
@@ -5173,21 +4638,21 @@ function Sr(e, t, r) {
5173
4638
  if (h && !b && typeof h == "object") {
5174
4639
  if (E.endsWith(m, "{}"))
5175
4640
  m = n ? m : m.slice(0, -2), h = JSON.stringify(h);
5176
- else if (E.isArray(h) && af(h) || (E.isFileList(h) || E.endsWith(m, "[]")) && (S = E.toArray(h)))
5177
- return m = Mi(m), S.forEach(function(R, O) {
4641
+ else if (E.isArray(h) && Al(h) || (E.isFileList(h) || E.endsWith(m, "[]")) && (S = E.toArray(h)))
4642
+ return m = Ai(m), S.forEach(function(R, O) {
5178
4643
  !(E.isUndefined(R) || R === null) && t.append(
5179
4644
  // eslint-disable-next-line no-nested-ternary
5180
- a === !0 ? Ro([m], O, i) : a === null ? m : m + "[]",
4645
+ a === !0 ? xo([m], O, i) : a === null ? m : m + "[]",
5181
4646
  u(R)
5182
4647
  );
5183
4648
  }), !1;
5184
4649
  }
5185
- return sn(h) ? !0 : (t.append(Ro(b, m, i), u(h)), !1);
4650
+ return an(h) ? !0 : (t.append(xo(b, m, i), u(h)), !1);
5186
4651
  }
5187
- const d = [], v = Object.assign(sf, {
4652
+ const d = [], v = Object.assign(jl, {
5188
4653
  defaultVisitor: l,
5189
4654
  convertValue: u,
5190
- isVisitable: sn
4655
+ isVisitable: an
5191
4656
  });
5192
4657
  function y(h, m) {
5193
4658
  if (!E.isUndefined(h)) {
@@ -5208,7 +4673,7 @@ function Sr(e, t, r) {
5208
4673
  throw new TypeError("data must be an object");
5209
4674
  return y(e), t;
5210
4675
  }
5211
- function Co(e) {
4676
+ function Oo(e) {
5212
4677
  const t = {
5213
4678
  "!": "%21",
5214
4679
  "'": "%27",
@@ -5225,25 +4690,25 @@ function Co(e) {
5225
4690
  function xn(e, t) {
5226
4691
  this._pairs = [], e && Sr(e, this, t);
5227
4692
  }
5228
- const ki = xn.prototype;
5229
- ki.append = function(t, r) {
4693
+ const ji = xn.prototype;
4694
+ ji.append = function(t, r) {
5230
4695
  this._pairs.push([t, r]);
5231
4696
  };
5232
- ki.toString = function(t) {
4697
+ ji.toString = function(t) {
5233
4698
  const r = t ? function(n) {
5234
- return t.call(this, n, Co);
5235
- } : Co;
4699
+ return t.call(this, n, Oo);
4700
+ } : Oo;
5236
4701
  return this._pairs.map(function(o) {
5237
4702
  return r(o[0]) + "=" + r(o[1]);
5238
4703
  }, "").join("&");
5239
4704
  };
5240
- function cf(e) {
4705
+ function Dl(e) {
5241
4706
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
5242
4707
  }
5243
- function Ni(e, t, r) {
4708
+ function Di(e, t, r) {
5244
4709
  if (!t)
5245
4710
  return e;
5246
- const n = r && r.encode || cf, o = r && r.serialize;
4711
+ const n = r && r.encode || Dl, o = r && r.serialize;
5247
4712
  let i;
5248
4713
  if (o ? i = o(t, r) : i = E.isURLSearchParams(t) ? t.toString() : new xn(t, r).toString(n), i) {
5249
4714
  const a = e.indexOf("#");
@@ -5251,7 +4716,7 @@ function Ni(e, t, r) {
5251
4716
  }
5252
4717
  return e;
5253
4718
  }
5254
- class _o {
4719
+ class So {
5255
4720
  constructor() {
5256
4721
  this.handlers = [];
5257
4722
  }
@@ -5305,1003 +4770,1537 @@ class _o {
5305
4770
  });
5306
4771
  }
5307
4772
  }
5308
- const $i = {
4773
+ const Mi = {
5309
4774
  silentJSONParsing: !0,
5310
4775
  forcedJSONParsing: !0,
5311
4776
  clarifyTimeoutError: !1
5312
- }, uf = typeof URLSearchParams < "u" ? URLSearchParams : xn, lf = typeof FormData < "u" ? FormData : null, ff = typeof Blob < "u" ? Blob : null, df = {
4777
+ }, Ml = typeof URLSearchParams < "u" ? URLSearchParams : xn, kl = typeof FormData < "u" ? FormData : null, Nl = typeof Blob < "u" ? Blob : null, $l = {
5313
4778
  isBrowser: !0,
5314
4779
  classes: {
5315
- URLSearchParams: uf,
5316
- FormData: lf,
5317
- Blob: ff
4780
+ URLSearchParams: Ml,
4781
+ FormData: kl,
4782
+ Blob: Nl
5318
4783
  },
5319
4784
  protocols: ["http", "https", "file", "blob", "url", "data"]
5320
- }, Li = typeof window < "u" && typeof document < "u", pf = ((e) => Li && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), hf = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
5321
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", vf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4785
+ }, ki = typeof window < "u" && typeof document < "u", Ll = ((e) => ki && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Il = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
4786
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5322
4787
  __proto__: null,
5323
- hasBrowserEnv: Li,
5324
- hasStandardBrowserEnv: pf,
5325
- hasStandardBrowserWebWorkerEnv: hf
4788
+ hasBrowserEnv: ki,
4789
+ hasStandardBrowserEnv: Ll,
4790
+ hasStandardBrowserWebWorkerEnv: Il
5326
4791
  }, Symbol.toStringTag, { value: "Module" })), ke = {
5327
- ...vf,
5328
- ...df
4792
+ ...Fl,
4793
+ ...$l
5329
4794
  };
5330
- function mf(e, t) {
4795
+ function Ul(e, t) {
5331
4796
  return Sr(e, new ke.classes.URLSearchParams(), Object.assign({
5332
4797
  visitor: function(r, n, o, i) {
5333
4798
  return ke.isNode && E.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
5334
4799
  }
5335
- }, t));
4800
+ }, t));
4801
+ }
4802
+ function Bl(e) {
4803
+ return E.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
4804
+ }
4805
+ function zl(e) {
4806
+ const t = {}, r = Object.keys(e);
4807
+ let n;
4808
+ const o = r.length;
4809
+ let i;
4810
+ for (n = 0; n < o; n++)
4811
+ i = r[n], t[i] = e[i];
4812
+ return t;
4813
+ }
4814
+ function Ni(e) {
4815
+ function t(r, n, o, i) {
4816
+ let a = r[i++];
4817
+ if (a === "__proto__")
4818
+ return !0;
4819
+ const s = Number.isFinite(+a), c = i >= r.length;
4820
+ return a = !a && E.isArray(o) ? o.length : a, c ? (E.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !E.isObject(o[a])) && (o[a] = []), t(r, n, o[a], i) && E.isArray(o[a]) && (o[a] = zl(o[a])), !s);
4821
+ }
4822
+ if (E.isFormData(e) && E.isFunction(e.entries)) {
4823
+ const r = {};
4824
+ return E.forEachEntry(e, (n, o) => {
4825
+ t(Bl(n), o, r, 0);
4826
+ }), r;
4827
+ }
4828
+ return null;
4829
+ }
4830
+ function Hl(e, t, r) {
4831
+ if (E.isString(e))
4832
+ try {
4833
+ return (t || JSON.parse)(e), E.trim(e);
4834
+ } catch (n) {
4835
+ if (n.name !== "SyntaxError")
4836
+ throw n;
4837
+ }
4838
+ return (r || JSON.stringify)(e);
4839
+ }
4840
+ const On = {
4841
+ transitional: Mi,
4842
+ adapter: ["xhr", "http"],
4843
+ transformRequest: [function(t, r) {
4844
+ const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = E.isObject(t);
4845
+ if (i && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
4846
+ return o ? JSON.stringify(Ni(t)) : t;
4847
+ if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t))
4848
+ return t;
4849
+ if (E.isArrayBufferView(t))
4850
+ return t.buffer;
4851
+ if (E.isURLSearchParams(t))
4852
+ return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
4853
+ let s;
4854
+ if (i) {
4855
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
4856
+ return Ul(t, this.formSerializer).toString();
4857
+ if ((s = E.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
4858
+ const c = this.env && this.env.FormData;
4859
+ return Sr(
4860
+ s ? { "files[]": t } : t,
4861
+ c && new c(),
4862
+ this.formSerializer
4863
+ );
4864
+ }
4865
+ }
4866
+ return i || o ? (r.setContentType("application/json", !1), Hl(t)) : t;
4867
+ }],
4868
+ transformResponse: [function(t) {
4869
+ const r = this.transitional || On.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
4870
+ if (t && E.isString(t) && (n && !this.responseType || o)) {
4871
+ const a = !(r && r.silentJSONParsing) && o;
4872
+ try {
4873
+ return JSON.parse(t);
4874
+ } catch (s) {
4875
+ if (a)
4876
+ throw s.name === "SyntaxError" ? W.from(s, W.ERR_BAD_RESPONSE, this, null, this.response) : s;
4877
+ }
4878
+ }
4879
+ return t;
4880
+ }],
4881
+ /**
4882
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
4883
+ * timeout is not created.
4884
+ */
4885
+ timeout: 0,
4886
+ xsrfCookieName: "XSRF-TOKEN",
4887
+ xsrfHeaderName: "X-XSRF-TOKEN",
4888
+ maxContentLength: -1,
4889
+ maxBodyLength: -1,
4890
+ env: {
4891
+ FormData: ke.classes.FormData,
4892
+ Blob: ke.classes.Blob
4893
+ },
4894
+ validateStatus: function(t) {
4895
+ return t >= 200 && t < 300;
4896
+ },
4897
+ headers: {
4898
+ common: {
4899
+ Accept: "application/json, text/plain, */*",
4900
+ "Content-Type": void 0
4901
+ }
4902
+ }
4903
+ };
4904
+ E.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
4905
+ On.headers[e] = {};
4906
+ });
4907
+ const Sn = On, Vl = E.toObjectSet([
4908
+ "age",
4909
+ "authorization",
4910
+ "content-length",
4911
+ "content-type",
4912
+ "etag",
4913
+ "expires",
4914
+ "from",
4915
+ "host",
4916
+ "if-modified-since",
4917
+ "if-unmodified-since",
4918
+ "last-modified",
4919
+ "location",
4920
+ "max-forwards",
4921
+ "proxy-authorization",
4922
+ "referer",
4923
+ "retry-after",
4924
+ "user-agent"
4925
+ ]), Wl = (e) => {
4926
+ const t = {};
4927
+ let r, n, o;
4928
+ return e && e.split(`
4929
+ `).forEach(function(a) {
4930
+ o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || t[r] && Vl[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
4931
+ }), t;
4932
+ }, To = Symbol("internals");
4933
+ function Mt(e) {
4934
+ return e && String(e).trim().toLowerCase();
4935
+ }
4936
+ function cr(e) {
4937
+ return e === !1 || e == null ? e : E.isArray(e) ? e.map(cr) : String(e);
4938
+ }
4939
+ function ql(e) {
4940
+ const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
4941
+ let n;
4942
+ for (; n = r.exec(e); )
4943
+ t[n[1]] = n[2];
4944
+ return t;
4945
+ }
4946
+ const Yl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
4947
+ function Fr(e, t, r, n, o) {
4948
+ if (E.isFunction(n))
4949
+ return n.call(this, t, r);
4950
+ if (o && (t = r), !!E.isString(t)) {
4951
+ if (E.isString(n))
4952
+ return t.indexOf(n) !== -1;
4953
+ if (E.isRegExp(n))
4954
+ return n.test(t);
4955
+ }
4956
+ }
4957
+ function Kl(e) {
4958
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
4959
+ }
4960
+ function Jl(e, t) {
4961
+ const r = E.toCamelCase(" " + t);
4962
+ ["get", "set", "has"].forEach((n) => {
4963
+ Object.defineProperty(e, n + r, {
4964
+ value: function(o, i, a) {
4965
+ return this[n].call(this, t, o, i, a);
4966
+ },
4967
+ configurable: !0
4968
+ });
4969
+ });
4970
+ }
4971
+ class Tr {
4972
+ constructor(t) {
4973
+ t && this.set(t);
4974
+ }
4975
+ set(t, r, n) {
4976
+ const o = this;
4977
+ function i(s, c, u) {
4978
+ const l = Mt(c);
4979
+ if (!l)
4980
+ throw new Error("header name must be a non-empty string");
4981
+ const d = E.findKey(o, l);
4982
+ (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || c] = cr(s));
4983
+ }
4984
+ const a = (s, c) => E.forEach(s, (u, l) => i(u, l, c));
4985
+ return E.isPlainObject(t) || t instanceof this.constructor ? a(t, r) : E.isString(t) && (t = t.trim()) && !Yl(t) ? a(Wl(t), r) : t != null && i(r, t, n), this;
4986
+ }
4987
+ get(t, r) {
4988
+ if (t = Mt(t), t) {
4989
+ const n = E.findKey(this, t);
4990
+ if (n) {
4991
+ const o = this[n];
4992
+ if (!r)
4993
+ return o;
4994
+ if (r === !0)
4995
+ return ql(o);
4996
+ if (E.isFunction(r))
4997
+ return r.call(this, o, n);
4998
+ if (E.isRegExp(r))
4999
+ return r.exec(o);
5000
+ throw new TypeError("parser must be boolean|regexp|function");
5001
+ }
5002
+ }
5003
+ }
5004
+ has(t, r) {
5005
+ if (t = Mt(t), t) {
5006
+ const n = E.findKey(this, t);
5007
+ return !!(n && this[n] !== void 0 && (!r || Fr(this, this[n], n, r)));
5008
+ }
5009
+ return !1;
5010
+ }
5011
+ delete(t, r) {
5012
+ const n = this;
5013
+ let o = !1;
5014
+ function i(a) {
5015
+ if (a = Mt(a), a) {
5016
+ const s = E.findKey(n, a);
5017
+ s && (!r || Fr(n, n[s], s, r)) && (delete n[s], o = !0);
5018
+ }
5019
+ }
5020
+ return E.isArray(t) ? t.forEach(i) : i(t), o;
5021
+ }
5022
+ clear(t) {
5023
+ const r = Object.keys(this);
5024
+ let n = r.length, o = !1;
5025
+ for (; n--; ) {
5026
+ const i = r[n];
5027
+ (!t || Fr(this, this[i], i, t, !0)) && (delete this[i], o = !0);
5028
+ }
5029
+ return o;
5030
+ }
5031
+ normalize(t) {
5032
+ const r = this, n = {};
5033
+ return E.forEach(this, (o, i) => {
5034
+ const a = E.findKey(n, i);
5035
+ if (a) {
5036
+ r[a] = cr(o), delete r[i];
5037
+ return;
5038
+ }
5039
+ const s = t ? Kl(i) : String(i).trim();
5040
+ s !== i && delete r[i], r[s] = cr(o), n[s] = !0;
5041
+ }), this;
5042
+ }
5043
+ concat(...t) {
5044
+ return this.constructor.concat(this, ...t);
5045
+ }
5046
+ toJSON(t) {
5047
+ const r = /* @__PURE__ */ Object.create(null);
5048
+ return E.forEach(this, (n, o) => {
5049
+ n != null && n !== !1 && (r[o] = t && E.isArray(n) ? n.join(", ") : n);
5050
+ }), r;
5051
+ }
5052
+ [Symbol.iterator]() {
5053
+ return Object.entries(this.toJSON())[Symbol.iterator]();
5054
+ }
5055
+ toString() {
5056
+ return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
5057
+ `);
5058
+ }
5059
+ get [Symbol.toStringTag]() {
5060
+ return "AxiosHeaders";
5061
+ }
5062
+ static from(t) {
5063
+ return t instanceof this ? t : new this(t);
5064
+ }
5065
+ static concat(t, ...r) {
5066
+ const n = new this(t);
5067
+ return r.forEach((o) => n.set(o)), n;
5068
+ }
5069
+ static accessor(t) {
5070
+ const n = (this[To] = this[To] = {
5071
+ accessors: {}
5072
+ }).accessors, o = this.prototype;
5073
+ function i(a) {
5074
+ const s = Mt(a);
5075
+ n[s] || (Jl(o, a), n[s] = !0);
5076
+ }
5077
+ return E.isArray(t) ? t.forEach(i) : i(t), this;
5078
+ }
5079
+ }
5080
+ Tr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
5081
+ E.reduceDescriptors(Tr.prototype, ({ value: e }, t) => {
5082
+ let r = t[0].toUpperCase() + t.slice(1);
5083
+ return {
5084
+ get: () => e,
5085
+ set(n) {
5086
+ this[r] = n;
5087
+ }
5088
+ };
5089
+ });
5090
+ E.freezeMethods(Tr);
5091
+ const Be = Tr;
5092
+ function Ur(e, t) {
5093
+ const r = this || Sn, n = t || r, o = Be.from(n.headers);
5094
+ let i = n.data;
5095
+ return E.forEach(e, function(s) {
5096
+ i = s.call(r, i, o.normalize(), t ? t.status : void 0);
5097
+ }), o.normalize(), i;
5336
5098
  }
5337
- function yf(e) {
5338
- return E.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
5099
+ function $i(e) {
5100
+ return !!(e && e.__CANCEL__);
5339
5101
  }
5340
- function gf(e) {
5341
- const t = {}, r = Object.keys(e);
5342
- let n;
5343
- const o = r.length;
5344
- let i;
5345
- for (n = 0; n < o; n++)
5346
- i = r[n], t[i] = e[i];
5347
- return t;
5102
+ function qt(e, t, r) {
5103
+ W.call(this, e ?? "canceled", W.ERR_CANCELED, t, r), this.name = "CanceledError";
5348
5104
  }
5349
- function Ii(e) {
5350
- function t(r, n, o, i) {
5351
- let a = r[i++];
5352
- if (a === "__proto__")
5353
- return !0;
5354
- const s = Number.isFinite(+a), c = i >= r.length;
5355
- return a = !a && E.isArray(o) ? o.length : a, c ? (E.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !E.isObject(o[a])) && (o[a] = []), t(r, n, o[a], i) && E.isArray(o[a]) && (o[a] = gf(o[a])), !s);
5105
+ E.inherits(qt, W, {
5106
+ __CANCEL__: !0
5107
+ });
5108
+ function Xl(e, t, r) {
5109
+ const n = r.config.validateStatus;
5110
+ !r.status || !n || n(r.status) ? e(r) : t(new W(
5111
+ "Request failed with status code " + r.status,
5112
+ [W.ERR_BAD_REQUEST, W.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
5113
+ r.config,
5114
+ r.request,
5115
+ r
5116
+ ));
5117
+ }
5118
+ const Gl = ke.hasStandardBrowserEnv ? (
5119
+ // Standard browser envs support document.cookie
5120
+ {
5121
+ write(e, t, r, n, o, i) {
5122
+ const a = [e + "=" + encodeURIComponent(t)];
5123
+ E.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), E.isString(n) && a.push("path=" + n), E.isString(o) && a.push("domain=" + o), i === !0 && a.push("secure"), document.cookie = a.join("; ");
5124
+ },
5125
+ read(e) {
5126
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
5127
+ return t ? decodeURIComponent(t[3]) : null;
5128
+ },
5129
+ remove(e) {
5130
+ this.write(e, "", Date.now() - 864e5);
5131
+ }
5356
5132
  }
5357
- if (E.isFormData(e) && E.isFunction(e.entries)) {
5358
- const r = {};
5359
- return E.forEachEntry(e, (n, o) => {
5360
- t(yf(n), o, r, 0);
5361
- }), r;
5133
+ ) : (
5134
+ // Non-standard browser env (web workers, react-native) lack needed support.
5135
+ {
5136
+ write() {
5137
+ },
5138
+ read() {
5139
+ return null;
5140
+ },
5141
+ remove() {
5142
+ }
5362
5143
  }
5363
- return null;
5144
+ );
5145
+ function Zl(e) {
5146
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
5364
5147
  }
5365
- function bf(e, t, r) {
5366
- if (E.isString(e))
5367
- try {
5368
- return (t || JSON.parse)(e), E.trim(e);
5369
- } catch (n) {
5370
- if (n.name !== "SyntaxError")
5371
- throw n;
5148
+ function Ql(e, t) {
5149
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
5150
+ }
5151
+ function Li(e, t) {
5152
+ return e && !Zl(t) ? Ql(e, t) : t;
5153
+ }
5154
+ const ef = ke.hasStandardBrowserEnv ? (
5155
+ // Standard browser envs have full support of the APIs needed to test
5156
+ // whether the request URL is of the same origin as current location.
5157
+ function() {
5158
+ const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
5159
+ let n;
5160
+ function o(i) {
5161
+ let a = i;
5162
+ return t && (r.setAttribute("href", a), a = r.href), r.setAttribute("href", a), {
5163
+ href: r.href,
5164
+ protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
5165
+ host: r.host,
5166
+ search: r.search ? r.search.replace(/^\?/, "") : "",
5167
+ hash: r.hash ? r.hash.replace(/^#/, "") : "",
5168
+ hostname: r.hostname,
5169
+ port: r.port,
5170
+ pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
5171
+ };
5372
5172
  }
5373
- return (r || JSON.stringify)(e);
5173
+ return n = o(window.location.href), function(a) {
5174
+ const s = E.isString(a) ? o(a) : a;
5175
+ return s.protocol === n.protocol && s.host === n.host;
5176
+ };
5177
+ }()
5178
+ ) : (
5179
+ // Non standard browser envs (web workers, react-native) lack needed support.
5180
+ /* @__PURE__ */ function() {
5181
+ return function() {
5182
+ return !0;
5183
+ };
5184
+ }()
5185
+ );
5186
+ function tf(e) {
5187
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
5188
+ return t && t[1] || "";
5374
5189
  }
5375
- const On = {
5376
- transitional: $i,
5377
- adapter: ["xhr", "http"],
5378
- transformRequest: [function(t, r) {
5379
- const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = E.isObject(t);
5380
- if (i && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
5381
- return o ? JSON.stringify(Ii(t)) : t;
5382
- if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t))
5383
- return t;
5384
- if (E.isArrayBufferView(t))
5385
- return t.buffer;
5386
- if (E.isURLSearchParams(t))
5387
- return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
5388
- let s;
5389
- if (i) {
5390
- if (n.indexOf("application/x-www-form-urlencoded") > -1)
5391
- return mf(t, this.formSerializer).toString();
5392
- if ((s = E.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
5393
- const c = this.env && this.env.FormData;
5394
- return Sr(
5395
- s ? { "files[]": t } : t,
5396
- c && new c(),
5397
- this.formSerializer
5398
- );
5399
- }
5190
+ function rf(e, t) {
5191
+ e = e || 10;
5192
+ const r = new Array(e), n = new Array(e);
5193
+ let o = 0, i = 0, a;
5194
+ return t = t !== void 0 ? t : 1e3, function(c) {
5195
+ const u = Date.now(), l = n[i];
5196
+ a || (a = u), r[o] = c, n[o] = u;
5197
+ let d = i, v = 0;
5198
+ for (; d !== o; )
5199
+ v += r[d++], d = d % e;
5200
+ if (o = (o + 1) % e, o === i && (i = (i + 1) % e), u - a < t)
5201
+ return;
5202
+ const y = l && u - l;
5203
+ return y ? Math.round(v * 1e3 / y) : void 0;
5204
+ };
5205
+ }
5206
+ function Ro(e, t) {
5207
+ let r = 0;
5208
+ const n = rf(50, 250);
5209
+ return (o) => {
5210
+ const i = o.loaded, a = o.lengthComputable ? o.total : void 0, s = i - r, c = n(s), u = i <= a;
5211
+ r = i;
5212
+ const l = {
5213
+ loaded: i,
5214
+ total: a,
5215
+ progress: a ? i / a : void 0,
5216
+ bytes: s,
5217
+ rate: c || void 0,
5218
+ estimated: c && a && u ? (a - i) / c : void 0,
5219
+ event: o
5220
+ };
5221
+ l[t ? "download" : "upload"] = !0, e(l);
5222
+ };
5223
+ }
5224
+ const nf = typeof XMLHttpRequest < "u", of = nf && function(e) {
5225
+ return new Promise(function(r, n) {
5226
+ let o = e.data;
5227
+ const i = Be.from(e.headers).normalize();
5228
+ let { responseType: a, withXSRFToken: s } = e, c;
5229
+ function u() {
5230
+ e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
5400
5231
  }
5401
- return i || o ? (r.setContentType("application/json", !1), bf(t)) : t;
5402
- }],
5403
- transformResponse: [function(t) {
5404
- const r = this.transitional || On.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
5405
- if (t && E.isString(t) && (n && !this.responseType || o)) {
5406
- const a = !(r && r.silentJSONParsing) && o;
5407
- try {
5408
- return JSON.parse(t);
5409
- } catch (s) {
5410
- if (a)
5411
- throw s.name === "SyntaxError" ? W.from(s, W.ERR_BAD_RESPONSE, this, null, this.response) : s;
5232
+ let l;
5233
+ if (E.isFormData(o)) {
5234
+ if (ke.hasStandardBrowserEnv || ke.hasStandardBrowserWebWorkerEnv)
5235
+ i.setContentType(!1);
5236
+ else if ((l = i.getContentType()) !== !1) {
5237
+ const [m, ...b] = l ? l.split(";").map((S) => S.trim()).filter(Boolean) : [];
5238
+ i.setContentType([m || "multipart/form-data", ...b].join("; "));
5412
5239
  }
5413
5240
  }
5414
- return t;
5415
- }],
5416
- /**
5417
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
5418
- * timeout is not created.
5419
- */
5420
- timeout: 0,
5421
- xsrfCookieName: "XSRF-TOKEN",
5422
- xsrfHeaderName: "X-XSRF-TOKEN",
5423
- maxContentLength: -1,
5424
- maxBodyLength: -1,
5425
- env: {
5426
- FormData: ke.classes.FormData,
5427
- Blob: ke.classes.Blob
5428
- },
5429
- validateStatus: function(t) {
5430
- return t >= 200 && t < 300;
5431
- },
5432
- headers: {
5433
- common: {
5434
- Accept: "application/json, text/plain, */*",
5435
- "Content-Type": void 0
5241
+ let d = new XMLHttpRequest();
5242
+ if (e.auth) {
5243
+ const m = e.auth.username || "", b = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
5244
+ i.set("Authorization", "Basic " + btoa(m + ":" + b));
5245
+ }
5246
+ const v = Li(e.baseURL, e.url);
5247
+ d.open(e.method.toUpperCase(), Di(v, e.params, e.paramsSerializer), !0), d.timeout = e.timeout;
5248
+ function y() {
5249
+ if (!d)
5250
+ return;
5251
+ const m = Be.from(
5252
+ "getAllResponseHeaders" in d && d.getAllResponseHeaders()
5253
+ ), S = {
5254
+ data: !a || a === "text" || a === "json" ? d.responseText : d.response,
5255
+ status: d.status,
5256
+ statusText: d.statusText,
5257
+ headers: m,
5258
+ config: e,
5259
+ request: d
5260
+ };
5261
+ Xl(function(R) {
5262
+ r(R), u();
5263
+ }, function(R) {
5264
+ n(R), u();
5265
+ }, S), d = null;
5266
+ }
5267
+ if ("onloadend" in d ? d.onloadend = y : d.onreadystatechange = function() {
5268
+ !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(y);
5269
+ }, d.onabort = function() {
5270
+ d && (n(new W("Request aborted", W.ECONNABORTED, e, d)), d = null);
5271
+ }, d.onerror = function() {
5272
+ n(new W("Network Error", W.ERR_NETWORK, e, d)), d = null;
5273
+ }, d.ontimeout = function() {
5274
+ let b = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
5275
+ const S = e.transitional || Mi;
5276
+ e.timeoutErrorMessage && (b = e.timeoutErrorMessage), n(new W(
5277
+ b,
5278
+ S.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
5279
+ e,
5280
+ d
5281
+ )), d = null;
5282
+ }, ke.hasStandardBrowserEnv && (s && E.isFunction(s) && (s = s(e)), s || s !== !1 && ef(v))) {
5283
+ const m = e.xsrfHeaderName && e.xsrfCookieName && Gl.read(e.xsrfCookieName);
5284
+ m && i.set(e.xsrfHeaderName, m);
5285
+ }
5286
+ o === void 0 && i.setContentType(null), "setRequestHeader" in d && E.forEach(i.toJSON(), function(b, S) {
5287
+ d.setRequestHeader(S, b);
5288
+ }), E.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), a && a !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", Ro(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ro(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (m) => {
5289
+ d && (n(!m || m.type ? new qt(null, e, d) : m), d.abort(), d = null);
5290
+ }, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
5291
+ const h = tf(v);
5292
+ if (h && ke.protocols.indexOf(h) === -1) {
5293
+ n(new W("Unsupported protocol " + h + ":", W.ERR_BAD_REQUEST, e));
5294
+ return;
5436
5295
  }
5437
- }
5296
+ d.send(o || null);
5297
+ });
5298
+ }, sn = {
5299
+ http: Pl,
5300
+ xhr: of
5438
5301
  };
5439
- E.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
5440
- On.headers[e] = {};
5441
- });
5442
- const Sn = On, Ef = E.toObjectSet([
5443
- "age",
5444
- "authorization",
5445
- "content-length",
5446
- "content-type",
5447
- "etag",
5448
- "expires",
5449
- "from",
5450
- "host",
5451
- "if-modified-since",
5452
- "if-unmodified-since",
5453
- "last-modified",
5454
- "location",
5455
- "max-forwards",
5456
- "proxy-authorization",
5457
- "referer",
5458
- "retry-after",
5459
- "user-agent"
5460
- ]), wf = (e) => {
5461
- const t = {};
5462
- let r, n, o;
5463
- return e && e.split(`
5464
- `).forEach(function(a) {
5465
- o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || t[r] && Ef[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
5466
- }), t;
5467
- }, Po = Symbol("internals");
5468
- function kt(e) {
5469
- return e && String(e).trim().toLowerCase();
5470
- }
5471
- function cr(e) {
5472
- return e === !1 || e == null ? e : E.isArray(e) ? e.map(cr) : String(e);
5473
- }
5474
- function xf(e) {
5475
- const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
5476
- let n;
5477
- for (; n = r.exec(e); )
5478
- t[n[1]] = n[2];
5479
- return t;
5480
- }
5481
- const Of = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
5482
- function Ur(e, t, r, n, o) {
5483
- if (E.isFunction(n))
5484
- return n.call(this, t, r);
5485
- if (o && (t = r), !!E.isString(t)) {
5486
- if (E.isString(n))
5487
- return t.indexOf(n) !== -1;
5488
- if (E.isRegExp(n))
5489
- return n.test(t);
5302
+ E.forEach(sn, (e, t) => {
5303
+ if (e) {
5304
+ try {
5305
+ Object.defineProperty(e, "name", { value: t });
5306
+ } catch {
5307
+ }
5308
+ Object.defineProperty(e, "adapterName", { value: t });
5490
5309
  }
5310
+ });
5311
+ const Co = (e) => `- ${e}`, af = (e) => E.isFunction(e) || e === null || e === !1, Ii = {
5312
+ getAdapter: (e) => {
5313
+ e = E.isArray(e) ? e : [e];
5314
+ const { length: t } = e;
5315
+ let r, n;
5316
+ const o = {};
5317
+ for (let i = 0; i < t; i++) {
5318
+ r = e[i];
5319
+ let a;
5320
+ if (n = r, !af(r) && (n = sn[(a = String(r)).toLowerCase()], n === void 0))
5321
+ throw new W(`Unknown adapter '${a}'`);
5322
+ if (n)
5323
+ break;
5324
+ o[a || "#" + i] = n;
5325
+ }
5326
+ if (!n) {
5327
+ const i = Object.entries(o).map(
5328
+ ([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
5329
+ );
5330
+ let a = t ? i.length > 1 ? `since :
5331
+ ` + i.map(Co).join(`
5332
+ `) : " " + Co(i[0]) : "as no adapter specified";
5333
+ throw new W(
5334
+ "There is no suitable adapter to dispatch the request " + a,
5335
+ "ERR_NOT_SUPPORT"
5336
+ );
5337
+ }
5338
+ return n;
5339
+ },
5340
+ adapters: sn
5341
+ };
5342
+ function Br(e) {
5343
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
5344
+ throw new qt(null, e);
5491
5345
  }
5492
- function Sf(e) {
5493
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
5494
- }
5495
- function Tf(e, t) {
5496
- const r = E.toCamelCase(" " + t);
5497
- ["get", "set", "has"].forEach((n) => {
5498
- Object.defineProperty(e, n + r, {
5499
- value: function(o, i, a) {
5500
- return this[n].call(this, t, o, i, a);
5501
- },
5502
- configurable: !0
5503
- });
5346
+ function _o(e) {
5347
+ return Br(e), e.headers = Be.from(e.headers), e.data = Ur.call(
5348
+ e,
5349
+ e.transformRequest
5350
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ii.getAdapter(e.adapter || Sn.adapter)(e).then(function(n) {
5351
+ return Br(e), n.data = Ur.call(
5352
+ e,
5353
+ e.transformResponse,
5354
+ n
5355
+ ), n.headers = Be.from(n.headers), n;
5356
+ }, function(n) {
5357
+ return $i(n) || (Br(e), n && n.response && (n.response.data = Ur.call(
5358
+ e,
5359
+ e.transformResponse,
5360
+ n.response
5361
+ ), n.response.headers = Be.from(n.response.headers))), Promise.reject(n);
5504
5362
  });
5505
5363
  }
5506
- class Tr {
5507
- constructor(t) {
5508
- t && this.set(t);
5364
+ const Po = (e) => e instanceof Be ? { ...e } : e;
5365
+ function Ot(e, t) {
5366
+ t = t || {};
5367
+ const r = {};
5368
+ function n(u, l, d) {
5369
+ return E.isPlainObject(u) && E.isPlainObject(l) ? E.merge.call({ caseless: d }, u, l) : E.isPlainObject(l) ? E.merge({}, l) : E.isArray(l) ? l.slice() : l;
5509
5370
  }
5510
- set(t, r, n) {
5511
- const o = this;
5512
- function i(s, c, u) {
5513
- const l = kt(c);
5514
- if (!l)
5515
- throw new Error("header name must be a non-empty string");
5516
- const d = E.findKey(o, l);
5517
- (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || c] = cr(s));
5518
- }
5519
- const a = (s, c) => E.forEach(s, (u, l) => i(u, l, c));
5520
- return E.isPlainObject(t) || t instanceof this.constructor ? a(t, r) : E.isString(t) && (t = t.trim()) && !Of(t) ? a(wf(t), r) : t != null && i(r, t, n), this;
5371
+ function o(u, l, d) {
5372
+ if (E.isUndefined(l)) {
5373
+ if (!E.isUndefined(u))
5374
+ return n(void 0, u, d);
5375
+ } else
5376
+ return n(u, l, d);
5521
5377
  }
5522
- get(t, r) {
5523
- if (t = kt(t), t) {
5524
- const n = E.findKey(this, t);
5525
- if (n) {
5526
- const o = this[n];
5527
- if (!r)
5528
- return o;
5529
- if (r === !0)
5530
- return xf(o);
5531
- if (E.isFunction(r))
5532
- return r.call(this, o, n);
5533
- if (E.isRegExp(r))
5534
- return r.exec(o);
5535
- throw new TypeError("parser must be boolean|regexp|function");
5536
- }
5537
- }
5378
+ function i(u, l) {
5379
+ if (!E.isUndefined(l))
5380
+ return n(void 0, l);
5538
5381
  }
5539
- has(t, r) {
5540
- if (t = kt(t), t) {
5541
- const n = E.findKey(this, t);
5542
- return !!(n && this[n] !== void 0 && (!r || Ur(this, this[n], n, r)));
5382
+ function a(u, l) {
5383
+ if (E.isUndefined(l)) {
5384
+ if (!E.isUndefined(u))
5385
+ return n(void 0, u);
5386
+ } else
5387
+ return n(void 0, l);
5388
+ }
5389
+ function s(u, l, d) {
5390
+ if (d in t)
5391
+ return n(u, l);
5392
+ if (d in e)
5393
+ return n(void 0, u);
5394
+ }
5395
+ const c = {
5396
+ url: i,
5397
+ method: i,
5398
+ data: i,
5399
+ baseURL: a,
5400
+ transformRequest: a,
5401
+ transformResponse: a,
5402
+ paramsSerializer: a,
5403
+ timeout: a,
5404
+ timeoutMessage: a,
5405
+ withCredentials: a,
5406
+ withXSRFToken: a,
5407
+ adapter: a,
5408
+ responseType: a,
5409
+ xsrfCookieName: a,
5410
+ xsrfHeaderName: a,
5411
+ onUploadProgress: a,
5412
+ onDownloadProgress: a,
5413
+ decompress: a,
5414
+ maxContentLength: a,
5415
+ maxBodyLength: a,
5416
+ beforeRedirect: a,
5417
+ transport: a,
5418
+ httpAgent: a,
5419
+ httpsAgent: a,
5420
+ cancelToken: a,
5421
+ socketPath: a,
5422
+ responseEncoding: a,
5423
+ validateStatus: s,
5424
+ headers: (u, l) => o(Po(u), Po(l), !0)
5425
+ };
5426
+ return E.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
5427
+ const d = c[l] || o, v = d(e[l], t[l], l);
5428
+ E.isUndefined(v) && d !== s || (r[l] = v);
5429
+ }), r;
5430
+ }
5431
+ const Fi = "1.6.8", Tn = {};
5432
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
5433
+ Tn[e] = function(n) {
5434
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
5435
+ };
5436
+ });
5437
+ const Ao = {};
5438
+ Tn.transitional = function(t, r, n) {
5439
+ function o(i, a) {
5440
+ return "[Axios v" + Fi + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
5441
+ }
5442
+ return (i, a, s) => {
5443
+ if (t === !1)
5444
+ throw new W(
5445
+ o(a, " has been removed" + (r ? " in " + r : "")),
5446
+ W.ERR_DEPRECATED
5447
+ );
5448
+ return r && !Ao[a] && (Ao[a] = !0, console.warn(
5449
+ o(
5450
+ a,
5451
+ " has been deprecated since v" + r + " and will be removed in the near future"
5452
+ )
5453
+ )), t ? t(i, a, s) : !0;
5454
+ };
5455
+ };
5456
+ function sf(e, t, r) {
5457
+ if (typeof e != "object")
5458
+ throw new W("options must be an object", W.ERR_BAD_OPTION_VALUE);
5459
+ const n = Object.keys(e);
5460
+ let o = n.length;
5461
+ for (; o-- > 0; ) {
5462
+ const i = n[o], a = t[i];
5463
+ if (a) {
5464
+ const s = e[i], c = s === void 0 || a(s, i, e);
5465
+ if (c !== !0)
5466
+ throw new W("option " + i + " must be " + c, W.ERR_BAD_OPTION_VALUE);
5467
+ continue;
5543
5468
  }
5544
- return !1;
5469
+ if (r !== !0)
5470
+ throw new W("Unknown option " + i, W.ERR_BAD_OPTION);
5545
5471
  }
5546
- delete(t, r) {
5547
- const n = this;
5548
- let o = !1;
5549
- function i(a) {
5550
- if (a = kt(a), a) {
5551
- const s = E.findKey(n, a);
5552
- s && (!r || Ur(n, n[s], s, r)) && (delete n[s], o = !0);
5472
+ }
5473
+ const cn = {
5474
+ assertOptions: sf,
5475
+ validators: Tn
5476
+ }, Ye = cn.validators;
5477
+ class vr {
5478
+ constructor(t) {
5479
+ this.defaults = t, this.interceptors = {
5480
+ request: new So(),
5481
+ response: new So()
5482
+ };
5483
+ }
5484
+ /**
5485
+ * Dispatch a request
5486
+ *
5487
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
5488
+ * @param {?Object} config
5489
+ *
5490
+ * @returns {Promise} The Promise to be fulfilled
5491
+ */
5492
+ async request(t, r) {
5493
+ try {
5494
+ return await this._request(t, r);
5495
+ } catch (n) {
5496
+ if (n instanceof Error) {
5497
+ let o;
5498
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
5499
+ const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
5500
+ n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
5501
+ ` + i) : n.stack = i;
5553
5502
  }
5503
+ throw n;
5554
5504
  }
5555
- return E.isArray(t) ? t.forEach(i) : i(t), o;
5556
5505
  }
5557
- clear(t) {
5558
- const r = Object.keys(this);
5559
- let n = r.length, o = !1;
5560
- for (; n--; ) {
5561
- const i = r[n];
5562
- (!t || Ur(this, this[i], i, t, !0)) && (delete this[i], o = !0);
5506
+ _request(t, r) {
5507
+ typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Ot(this.defaults, r);
5508
+ const { transitional: n, paramsSerializer: o, headers: i } = r;
5509
+ n !== void 0 && cn.assertOptions(n, {
5510
+ silentJSONParsing: Ye.transitional(Ye.boolean),
5511
+ forcedJSONParsing: Ye.transitional(Ye.boolean),
5512
+ clarifyTimeoutError: Ye.transitional(Ye.boolean)
5513
+ }, !1), o != null && (E.isFunction(o) ? r.paramsSerializer = {
5514
+ serialize: o
5515
+ } : cn.assertOptions(o, {
5516
+ encode: Ye.function,
5517
+ serialize: Ye.function
5518
+ }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
5519
+ let a = i && E.merge(
5520
+ i.common,
5521
+ i[r.method]
5522
+ );
5523
+ i && E.forEach(
5524
+ ["delete", "get", "head", "post", "put", "patch", "common"],
5525
+ (h) => {
5526
+ delete i[h];
5527
+ }
5528
+ ), r.headers = Be.concat(a, i);
5529
+ const s = [];
5530
+ let c = !0;
5531
+ this.interceptors.request.forEach(function(m) {
5532
+ typeof m.runWhen == "function" && m.runWhen(r) === !1 || (c = c && m.synchronous, s.unshift(m.fulfilled, m.rejected));
5533
+ });
5534
+ const u = [];
5535
+ this.interceptors.response.forEach(function(m) {
5536
+ u.push(m.fulfilled, m.rejected);
5537
+ });
5538
+ let l, d = 0, v;
5539
+ if (!c) {
5540
+ const h = [_o.bind(this), void 0];
5541
+ for (h.unshift.apply(h, s), h.push.apply(h, u), v = h.length, l = Promise.resolve(r); d < v; )
5542
+ l = l.then(h[d++], h[d++]);
5543
+ return l;
5563
5544
  }
5564
- return o;
5565
- }
5566
- normalize(t) {
5567
- const r = this, n = {};
5568
- return E.forEach(this, (o, i) => {
5569
- const a = E.findKey(n, i);
5570
- if (a) {
5571
- r[a] = cr(o), delete r[i];
5572
- return;
5545
+ v = s.length;
5546
+ let y = r;
5547
+ for (d = 0; d < v; ) {
5548
+ const h = s[d++], m = s[d++];
5549
+ try {
5550
+ y = h(y);
5551
+ } catch (b) {
5552
+ m.call(this, b);
5553
+ break;
5573
5554
  }
5574
- const s = t ? Sf(i) : String(i).trim();
5575
- s !== i && delete r[i], r[s] = cr(o), n[s] = !0;
5576
- }), this;
5577
- }
5578
- concat(...t) {
5579
- return this.constructor.concat(this, ...t);
5580
- }
5581
- toJSON(t) {
5582
- const r = /* @__PURE__ */ Object.create(null);
5583
- return E.forEach(this, (n, o) => {
5584
- n != null && n !== !1 && (r[o] = t && E.isArray(n) ? n.join(", ") : n);
5585
- }), r;
5586
- }
5587
- [Symbol.iterator]() {
5588
- return Object.entries(this.toJSON())[Symbol.iterator]();
5589
- }
5590
- toString() {
5591
- return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
5592
- `);
5593
- }
5594
- get [Symbol.toStringTag]() {
5595
- return "AxiosHeaders";
5596
- }
5597
- static from(t) {
5598
- return t instanceof this ? t : new this(t);
5599
- }
5600
- static concat(t, ...r) {
5601
- const n = new this(t);
5602
- return r.forEach((o) => n.set(o)), n;
5603
- }
5604
- static accessor(t) {
5605
- const n = (this[Po] = this[Po] = {
5606
- accessors: {}
5607
- }).accessors, o = this.prototype;
5608
- function i(a) {
5609
- const s = kt(a);
5610
- n[s] || (Tf(o, a), n[s] = !0);
5611
5555
  }
5612
- return E.isArray(t) ? t.forEach(i) : i(t), this;
5556
+ try {
5557
+ l = _o.call(this, y);
5558
+ } catch (h) {
5559
+ return Promise.reject(h);
5560
+ }
5561
+ for (d = 0, v = u.length; d < v; )
5562
+ l = l.then(u[d++], u[d++]);
5563
+ return l;
5564
+ }
5565
+ getUri(t) {
5566
+ t = Ot(this.defaults, t);
5567
+ const r = Li(t.baseURL, t.url);
5568
+ return Di(r, t.params, t.paramsSerializer);
5613
5569
  }
5614
5570
  }
5615
- Tr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
5616
- E.reduceDescriptors(Tr.prototype, ({ value: e }, t) => {
5617
- let r = t[0].toUpperCase() + t.slice(1);
5618
- return {
5619
- get: () => e,
5620
- set(n) {
5621
- this[r] = n;
5622
- }
5571
+ E.forEach(["delete", "get", "head", "options"], function(t) {
5572
+ vr.prototype[t] = function(r, n) {
5573
+ return this.request(Ot(n || {}, {
5574
+ method: t,
5575
+ url: r,
5576
+ data: (n || {}).data
5577
+ }));
5623
5578
  };
5624
5579
  });
5625
- E.freezeMethods(Tr);
5626
- const Be = Tr;
5627
- function Br(e, t) {
5628
- const r = this || Sn, n = t || r, o = Be.from(n.headers);
5629
- let i = n.data;
5630
- return E.forEach(e, function(s) {
5631
- i = s.call(r, i, o.normalize(), t ? t.status : void 0);
5632
- }), o.normalize(), i;
5633
- }
5634
- function Fi(e) {
5635
- return !!(e && e.__CANCEL__);
5636
- }
5637
- function qt(e, t, r) {
5638
- W.call(this, e ?? "canceled", W.ERR_CANCELED, t, r), this.name = "CanceledError";
5639
- }
5640
- E.inherits(qt, W, {
5641
- __CANCEL__: !0
5580
+ E.forEach(["post", "put", "patch"], function(t) {
5581
+ function r(n) {
5582
+ return function(i, a, s) {
5583
+ return this.request(Ot(s || {}, {
5584
+ method: t,
5585
+ headers: n ? {
5586
+ "Content-Type": "multipart/form-data"
5587
+ } : {},
5588
+ url: i,
5589
+ data: a
5590
+ }));
5591
+ };
5592
+ }
5593
+ vr.prototype[t] = r(), vr.prototype[t + "Form"] = r(!0);
5642
5594
  });
5643
- function Rf(e, t, r) {
5644
- const n = r.config.validateStatus;
5645
- !r.status || !n || n(r.status) ? e(r) : t(new W(
5646
- "Request failed with status code " + r.status,
5647
- [W.ERR_BAD_REQUEST, W.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
5648
- r.config,
5649
- r.request,
5650
- r
5651
- ));
5652
- }
5653
- const Cf = ke.hasStandardBrowserEnv ? (
5654
- // Standard browser envs support document.cookie
5655
- {
5656
- write(e, t, r, n, o, i) {
5657
- const a = [e + "=" + encodeURIComponent(t)];
5658
- E.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), E.isString(n) && a.push("path=" + n), E.isString(o) && a.push("domain=" + o), i === !0 && a.push("secure"), document.cookie = a.join("; ");
5659
- },
5660
- read(e) {
5661
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
5662
- return t ? decodeURIComponent(t[3]) : null;
5663
- },
5664
- remove(e) {
5665
- this.write(e, "", Date.now() - 864e5);
5666
- }
5595
+ const ur = vr;
5596
+ class Rn {
5597
+ constructor(t) {
5598
+ if (typeof t != "function")
5599
+ throw new TypeError("executor must be a function.");
5600
+ let r;
5601
+ this.promise = new Promise(function(i) {
5602
+ r = i;
5603
+ });
5604
+ const n = this;
5605
+ this.promise.then((o) => {
5606
+ if (!n._listeners)
5607
+ return;
5608
+ let i = n._listeners.length;
5609
+ for (; i-- > 0; )
5610
+ n._listeners[i](o);
5611
+ n._listeners = null;
5612
+ }), this.promise.then = (o) => {
5613
+ let i;
5614
+ const a = new Promise((s) => {
5615
+ n.subscribe(s), i = s;
5616
+ }).then(o);
5617
+ return a.cancel = function() {
5618
+ n.unsubscribe(i);
5619
+ }, a;
5620
+ }, t(function(i, a, s) {
5621
+ n.reason || (n.reason = new qt(i, a, s), r(n.reason));
5622
+ });
5667
5623
  }
5668
- ) : (
5669
- // Non-standard browser env (web workers, react-native) lack needed support.
5670
- {
5671
- write() {
5672
- },
5673
- read() {
5674
- return null;
5675
- },
5676
- remove() {
5677
- }
5624
+ /**
5625
+ * Throws a `CanceledError` if cancellation has been requested.
5626
+ */
5627
+ throwIfRequested() {
5628
+ if (this.reason)
5629
+ throw this.reason;
5678
5630
  }
5679
- );
5680
- function _f(e) {
5681
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
5682
- }
5683
- function Pf(e, t) {
5684
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
5685
- }
5686
- function Ui(e, t) {
5687
- return e && !_f(t) ? Pf(e, t) : t;
5688
- }
5689
- const Af = ke.hasStandardBrowserEnv ? (
5690
- // Standard browser envs have full support of the APIs needed to test
5691
- // whether the request URL is of the same origin as current location.
5692
- function() {
5693
- const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
5694
- let n;
5695
- function o(i) {
5696
- let a = i;
5697
- return t && (r.setAttribute("href", a), a = r.href), r.setAttribute("href", a), {
5698
- href: r.href,
5699
- protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
5700
- host: r.host,
5701
- search: r.search ? r.search.replace(/^\?/, "") : "",
5702
- hash: r.hash ? r.hash.replace(/^#/, "") : "",
5703
- hostname: r.hostname,
5704
- port: r.port,
5705
- pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
5706
- };
5631
+ /**
5632
+ * Subscribe to the cancel signal
5633
+ */
5634
+ subscribe(t) {
5635
+ if (this.reason) {
5636
+ t(this.reason);
5637
+ return;
5707
5638
  }
5708
- return n = o(window.location.href), function(a) {
5709
- const s = E.isString(a) ? o(a) : a;
5710
- return s.protocol === n.protocol && s.host === n.host;
5711
- };
5712
- }()
5713
- ) : (
5714
- // Non standard browser envs (web workers, react-native) lack needed support.
5715
- /* @__PURE__ */ function() {
5716
- return function() {
5717
- return !0;
5639
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
5640
+ }
5641
+ /**
5642
+ * Unsubscribe from the cancel signal
5643
+ */
5644
+ unsubscribe(t) {
5645
+ if (!this._listeners)
5646
+ return;
5647
+ const r = this._listeners.indexOf(t);
5648
+ r !== -1 && this._listeners.splice(r, 1);
5649
+ }
5650
+ /**
5651
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
5652
+ * cancels the `CancelToken`.
5653
+ */
5654
+ static source() {
5655
+ let t;
5656
+ return {
5657
+ token: new Rn(function(o) {
5658
+ t = o;
5659
+ }),
5660
+ cancel: t
5718
5661
  };
5719
- }()
5720
- );
5721
- function jf(e) {
5722
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
5723
- return t && t[1] || "";
5662
+ }
5724
5663
  }
5725
- function Df(e, t) {
5726
- e = e || 10;
5727
- const r = new Array(e), n = new Array(e);
5728
- let o = 0, i = 0, a;
5729
- return t = t !== void 0 ? t : 1e3, function(c) {
5730
- const u = Date.now(), l = n[i];
5731
- a || (a = u), r[o] = c, n[o] = u;
5732
- let d = i, v = 0;
5733
- for (; d !== o; )
5734
- v += r[d++], d = d % e;
5735
- if (o = (o + 1) % e, o === i && (i = (i + 1) % e), u - a < t)
5736
- return;
5737
- const y = l && u - l;
5738
- return y ? Math.round(v * 1e3 / y) : void 0;
5664
+ const cf = Rn;
5665
+ function uf(e) {
5666
+ return function(r) {
5667
+ return e.apply(null, r);
5739
5668
  };
5740
5669
  }
5741
- function Ao(e, t) {
5742
- let r = 0;
5743
- const n = Df(50, 250);
5744
- return (o) => {
5745
- const i = o.loaded, a = o.lengthComputable ? o.total : void 0, s = i - r, c = n(s), u = i <= a;
5746
- r = i;
5747
- const l = {
5748
- loaded: i,
5749
- total: a,
5750
- progress: a ? i / a : void 0,
5751
- bytes: s,
5752
- rate: c || void 0,
5753
- estimated: c && a && u ? (a - i) / c : void 0,
5754
- event: o
5755
- };
5756
- l[t ? "download" : "upload"] = !0, e(l);
5757
- };
5670
+ function lf(e) {
5671
+ return E.isObject(e) && e.isAxiosError === !0;
5758
5672
  }
5759
- const Mf = typeof XMLHttpRequest < "u", kf = Mf && function(e) {
5760
- return new Promise(function(r, n) {
5761
- let o = e.data;
5762
- const i = Be.from(e.headers).normalize();
5763
- let { responseType: a, withXSRFToken: s } = e, c;
5764
- function u() {
5765
- e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
5766
- }
5767
- let l;
5768
- if (E.isFormData(o)) {
5769
- if (ke.hasStandardBrowserEnv || ke.hasStandardBrowserWebWorkerEnv)
5770
- i.setContentType(!1);
5771
- else if ((l = i.getContentType()) !== !1) {
5772
- const [m, ...b] = l ? l.split(";").map((S) => S.trim()).filter(Boolean) : [];
5773
- i.setContentType([m || "multipart/form-data", ...b].join("; "));
5774
- }
5775
- }
5776
- let d = new XMLHttpRequest();
5777
- if (e.auth) {
5778
- const m = e.auth.username || "", b = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
5779
- i.set("Authorization", "Basic " + btoa(m + ":" + b));
5780
- }
5781
- const v = Ui(e.baseURL, e.url);
5782
- d.open(e.method.toUpperCase(), Ni(v, e.params, e.paramsSerializer), !0), d.timeout = e.timeout;
5783
- function y() {
5784
- if (!d)
5785
- return;
5786
- const m = Be.from(
5787
- "getAllResponseHeaders" in d && d.getAllResponseHeaders()
5788
- ), S = {
5789
- data: !a || a === "text" || a === "json" ? d.responseText : d.response,
5790
- status: d.status,
5791
- statusText: d.statusText,
5792
- headers: m,
5793
- config: e,
5794
- request: d
5795
- };
5796
- Rf(function(R) {
5797
- r(R), u();
5798
- }, function(R) {
5799
- n(R), u();
5800
- }, S), d = null;
5801
- }
5802
- if ("onloadend" in d ? d.onloadend = y : d.onreadystatechange = function() {
5803
- !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(y);
5804
- }, d.onabort = function() {
5805
- d && (n(new W("Request aborted", W.ECONNABORTED, e, d)), d = null);
5806
- }, d.onerror = function() {
5807
- n(new W("Network Error", W.ERR_NETWORK, e, d)), d = null;
5808
- }, d.ontimeout = function() {
5809
- let b = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
5810
- const S = e.transitional || $i;
5811
- e.timeoutErrorMessage && (b = e.timeoutErrorMessage), n(new W(
5812
- b,
5813
- S.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
5814
- e,
5815
- d
5816
- )), d = null;
5817
- }, ke.hasStandardBrowserEnv && (s && E.isFunction(s) && (s = s(e)), s || s !== !1 && Af(v))) {
5818
- const m = e.xsrfHeaderName && e.xsrfCookieName && Cf.read(e.xsrfCookieName);
5819
- m && i.set(e.xsrfHeaderName, m);
5673
+ const un = {
5674
+ Continue: 100,
5675
+ SwitchingProtocols: 101,
5676
+ Processing: 102,
5677
+ EarlyHints: 103,
5678
+ Ok: 200,
5679
+ Created: 201,
5680
+ Accepted: 202,
5681
+ NonAuthoritativeInformation: 203,
5682
+ NoContent: 204,
5683
+ ResetContent: 205,
5684
+ PartialContent: 206,
5685
+ MultiStatus: 207,
5686
+ AlreadyReported: 208,
5687
+ ImUsed: 226,
5688
+ MultipleChoices: 300,
5689
+ MovedPermanently: 301,
5690
+ Found: 302,
5691
+ SeeOther: 303,
5692
+ NotModified: 304,
5693
+ UseProxy: 305,
5694
+ Unused: 306,
5695
+ TemporaryRedirect: 307,
5696
+ PermanentRedirect: 308,
5697
+ BadRequest: 400,
5698
+ Unauthorized: 401,
5699
+ PaymentRequired: 402,
5700
+ Forbidden: 403,
5701
+ NotFound: 404,
5702
+ MethodNotAllowed: 405,
5703
+ NotAcceptable: 406,
5704
+ ProxyAuthenticationRequired: 407,
5705
+ RequestTimeout: 408,
5706
+ Conflict: 409,
5707
+ Gone: 410,
5708
+ LengthRequired: 411,
5709
+ PreconditionFailed: 412,
5710
+ PayloadTooLarge: 413,
5711
+ UriTooLong: 414,
5712
+ UnsupportedMediaType: 415,
5713
+ RangeNotSatisfiable: 416,
5714
+ ExpectationFailed: 417,
5715
+ ImATeapot: 418,
5716
+ MisdirectedRequest: 421,
5717
+ UnprocessableEntity: 422,
5718
+ Locked: 423,
5719
+ FailedDependency: 424,
5720
+ TooEarly: 425,
5721
+ UpgradeRequired: 426,
5722
+ PreconditionRequired: 428,
5723
+ TooManyRequests: 429,
5724
+ RequestHeaderFieldsTooLarge: 431,
5725
+ UnavailableForLegalReasons: 451,
5726
+ InternalServerError: 500,
5727
+ NotImplemented: 501,
5728
+ BadGateway: 502,
5729
+ ServiceUnavailable: 503,
5730
+ GatewayTimeout: 504,
5731
+ HttpVersionNotSupported: 505,
5732
+ VariantAlsoNegotiates: 506,
5733
+ InsufficientStorage: 507,
5734
+ LoopDetected: 508,
5735
+ NotExtended: 510,
5736
+ NetworkAuthenticationRequired: 511
5737
+ };
5738
+ Object.entries(un).forEach(([e, t]) => {
5739
+ un[t] = e;
5740
+ });
5741
+ const ff = un;
5742
+ function Ui(e) {
5743
+ const t = new ur(e), r = Ei(ur.prototype.request, t);
5744
+ return E.extend(r, ur.prototype, t, { allOwnKeys: !0 }), E.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
5745
+ return Ui(Ot(e, o));
5746
+ }, r;
5747
+ }
5748
+ const fe = Ui(Sn);
5749
+ fe.Axios = ur;
5750
+ fe.CanceledError = qt;
5751
+ fe.CancelToken = cf;
5752
+ fe.isCancel = $i;
5753
+ fe.VERSION = Fi;
5754
+ fe.toFormData = Sr;
5755
+ fe.AxiosError = W;
5756
+ fe.Cancel = fe.CanceledError;
5757
+ fe.all = function(t) {
5758
+ return Promise.all(t);
5759
+ };
5760
+ fe.spread = uf;
5761
+ fe.isAxiosError = lf;
5762
+ fe.mergeConfig = Ot;
5763
+ fe.AxiosHeaders = Be;
5764
+ fe.formToJSON = (e) => Ni(E.isHTMLForm(e) ? new FormData(e) : e);
5765
+ fe.getAdapter = Ii.getAdapter;
5766
+ fe.HttpStatusCode = ff;
5767
+ fe.default = fe;
5768
+ /*!
5769
+ * cookie
5770
+ * Copyright(c) 2012-2014 Roman Shtylman
5771
+ * Copyright(c) 2015 Douglas Christopher Wilson
5772
+ * MIT Licensed
5773
+ */
5774
+ var Bi = pf, jo = hf, df = Object.prototype.toString, er = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
5775
+ function pf(e, t) {
5776
+ if (typeof e != "string")
5777
+ throw new TypeError("argument str must be a string");
5778
+ for (var r = {}, n = t || {}, o = n.decode || vf, i = 0; i < e.length; ) {
5779
+ var a = e.indexOf("=", i);
5780
+ if (a === -1)
5781
+ break;
5782
+ var s = e.indexOf(";", i);
5783
+ if (s === -1)
5784
+ s = e.length;
5785
+ else if (s < a) {
5786
+ i = e.lastIndexOf(";", a - 1) + 1;
5787
+ continue;
5820
5788
  }
5821
- o === void 0 && i.setContentType(null), "setRequestHeader" in d && E.forEach(i.toJSON(), function(b, S) {
5822
- d.setRequestHeader(S, b);
5823
- }), E.isUndefined(e.withCredentials) || (d.withCredentials = !!e.withCredentials), a && a !== "json" && (d.responseType = e.responseType), typeof e.onDownloadProgress == "function" && d.addEventListener("progress", Ao(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", Ao(e.onUploadProgress)), (e.cancelToken || e.signal) && (c = (m) => {
5824
- d && (n(!m || m.type ? new qt(null, e, d) : m), d.abort(), d = null);
5825
- }, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
5826
- const h = jf(v);
5827
- if (h && ke.protocols.indexOf(h) === -1) {
5828
- n(new W("Unsupported protocol " + h + ":", W.ERR_BAD_REQUEST, e));
5829
- return;
5789
+ var c = e.slice(i, a).trim();
5790
+ if (r[c] === void 0) {
5791
+ var u = e.slice(a + 1, s).trim();
5792
+ u.charCodeAt(0) === 34 && (u = u.slice(1, -1)), r[c] = gf(u, o);
5830
5793
  }
5831
- d.send(o || null);
5832
- });
5833
- }, cn = {
5834
- http: of,
5835
- xhr: kf
5836
- };
5837
- E.forEach(cn, (e, t) => {
5838
- if (e) {
5839
- try {
5840
- Object.defineProperty(e, "name", { value: t });
5841
- } catch {
5794
+ i = s + 1;
5795
+ }
5796
+ return r;
5797
+ }
5798
+ function hf(e, t, r) {
5799
+ var n = r || {}, o = n.encode || mf;
5800
+ if (typeof o != "function")
5801
+ throw new TypeError("option encode is invalid");
5802
+ if (!er.test(e))
5803
+ throw new TypeError("argument name is invalid");
5804
+ var i = o(t);
5805
+ if (i && !er.test(i))
5806
+ throw new TypeError("argument val is invalid");
5807
+ var a = e + "=" + i;
5808
+ if (n.maxAge != null) {
5809
+ var s = n.maxAge - 0;
5810
+ if (isNaN(s) || !isFinite(s))
5811
+ throw new TypeError("option maxAge is invalid");
5812
+ a += "; Max-Age=" + Math.floor(s);
5813
+ }
5814
+ if (n.domain) {
5815
+ if (!er.test(n.domain))
5816
+ throw new TypeError("option domain is invalid");
5817
+ a += "; Domain=" + n.domain;
5818
+ }
5819
+ if (n.path) {
5820
+ if (!er.test(n.path))
5821
+ throw new TypeError("option path is invalid");
5822
+ a += "; Path=" + n.path;
5823
+ }
5824
+ if (n.expires) {
5825
+ var c = n.expires;
5826
+ if (!yf(c) || isNaN(c.valueOf()))
5827
+ throw new TypeError("option expires is invalid");
5828
+ a += "; Expires=" + c.toUTCString();
5829
+ }
5830
+ if (n.httpOnly && (a += "; HttpOnly"), n.secure && (a += "; Secure"), n.partitioned && (a += "; Partitioned"), n.priority) {
5831
+ var u = typeof n.priority == "string" ? n.priority.toLowerCase() : n.priority;
5832
+ switch (u) {
5833
+ case "low":
5834
+ a += "; Priority=Low";
5835
+ break;
5836
+ case "medium":
5837
+ a += "; Priority=Medium";
5838
+ break;
5839
+ case "high":
5840
+ a += "; Priority=High";
5841
+ break;
5842
+ default:
5843
+ throw new TypeError("option priority is invalid");
5842
5844
  }
5843
- Object.defineProperty(e, "adapterName", { value: t });
5844
5845
  }
5845
- });
5846
- const jo = (e) => `- ${e}`, Nf = (e) => E.isFunction(e) || e === null || e === !1, Bi = {
5847
- getAdapter: (e) => {
5848
- e = E.isArray(e) ? e : [e];
5849
- const { length: t } = e;
5850
- let r, n;
5851
- const o = {};
5852
- for (let i = 0; i < t; i++) {
5853
- r = e[i];
5854
- let a;
5855
- if (n = r, !Nf(r) && (n = cn[(a = String(r)).toLowerCase()], n === void 0))
5856
- throw new W(`Unknown adapter '${a}'`);
5857
- if (n)
5846
+ if (n.sameSite) {
5847
+ var l = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
5848
+ switch (l) {
5849
+ case !0:
5850
+ a += "; SameSite=Strict";
5858
5851
  break;
5859
- o[a || "#" + i] = n;
5852
+ case "lax":
5853
+ a += "; SameSite=Lax";
5854
+ break;
5855
+ case "strict":
5856
+ a += "; SameSite=Strict";
5857
+ break;
5858
+ case "none":
5859
+ a += "; SameSite=None";
5860
+ break;
5861
+ default:
5862
+ throw new TypeError("option sameSite is invalid");
5860
5863
  }
5861
- if (!n) {
5862
- const i = Object.entries(o).map(
5863
- ([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
5864
- );
5865
- let a = t ? i.length > 1 ? `since :
5866
- ` + i.map(jo).join(`
5867
- `) : " " + jo(i[0]) : "as no adapter specified";
5868
- throw new W(
5869
- "There is no suitable adapter to dispatch the request " + a,
5870
- "ERR_NOT_SUPPORT"
5871
- );
5864
+ }
5865
+ return a;
5866
+ }
5867
+ function vf(e) {
5868
+ return e.indexOf("%") !== -1 ? decodeURIComponent(e) : e;
5869
+ }
5870
+ function mf(e) {
5871
+ return encodeURIComponent(e);
5872
+ }
5873
+ function yf(e) {
5874
+ return df.call(e) === "[object Date]" || e instanceof Date;
5875
+ }
5876
+ function gf(e, t) {
5877
+ try {
5878
+ return t(e);
5879
+ } catch {
5880
+ return e;
5881
+ }
5882
+ }
5883
+ function bf() {
5884
+ const e = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
5885
+ return typeof e == "boolean" ? e : typeof document == "object" && typeof document.cookie == "string";
5886
+ }
5887
+ function Ef(e) {
5888
+ return typeof e == "string" ? Bi(e) : typeof e == "object" && e !== null ? e : {};
5889
+ }
5890
+ function zr(e, t = {}) {
5891
+ const r = wf(e);
5892
+ if (!t.doNotParse)
5893
+ try {
5894
+ return JSON.parse(r);
5895
+ } catch {
5872
5896
  }
5873
- return n;
5874
- },
5875
- adapters: cn
5876
- };
5877
- function zr(e) {
5878
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
5879
- throw new qt(null, e);
5897
+ return e;
5880
5898
  }
5881
- function Do(e) {
5882
- return zr(e), e.headers = Be.from(e.headers), e.data = Br.call(
5883
- e,
5884
- e.transformRequest
5885
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Bi.getAdapter(e.adapter || Sn.adapter)(e).then(function(n) {
5886
- return zr(e), n.data = Br.call(
5887
- e,
5888
- e.transformResponse,
5889
- n
5890
- ), n.headers = Be.from(n.headers), n;
5891
- }, function(n) {
5892
- return Fi(n) || (zr(e), n && n.response && (n.response.data = Br.call(
5893
- e,
5894
- e.transformResponse,
5895
- n.response
5896
- ), n.response.headers = Be.from(n.response.headers))), Promise.reject(n);
5897
- });
5899
+ function wf(e) {
5900
+ return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
5898
5901
  }
5899
- const Mo = (e) => e instanceof Be ? { ...e } : e;
5900
- function Ot(e, t) {
5901
- t = t || {};
5902
- const r = {};
5903
- function n(u, l, d) {
5904
- return E.isPlainObject(u) && E.isPlainObject(l) ? E.merge.call({ caseless: d }, u, l) : E.isPlainObject(l) ? E.merge({}, l) : E.isArray(l) ? l.slice() : l;
5902
+ class xf {
5903
+ constructor(t, r = {}) {
5904
+ this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
5905
+ if (!this.HAS_DOCUMENT_COOKIE)
5906
+ return;
5907
+ const o = this.cookies;
5908
+ this.cookies = Bi(document.cookie), this._checkChanges(o);
5909
+ };
5910
+ const n = typeof document > "u" ? "" : document.cookie;
5911
+ this.cookies = Ef(t || n), this.defaultSetOptions = r, this.HAS_DOCUMENT_COOKIE = bf();
5905
5912
  }
5906
- function o(u, l, d) {
5907
- if (E.isUndefined(l)) {
5908
- if (!E.isUndefined(u))
5909
- return n(void 0, u, d);
5910
- } else
5911
- return n(u, l, d);
5913
+ _emitChange(t) {
5914
+ for (let r = 0; r < this.changeListeners.length; ++r)
5915
+ this.changeListeners[r](t);
5912
5916
  }
5913
- function i(u, l) {
5914
- if (!E.isUndefined(l))
5915
- return n(void 0, l);
5917
+ _checkChanges(t) {
5918
+ new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((n) => {
5919
+ t[n] !== this.cookies[n] && this._emitChange({
5920
+ name: n,
5921
+ value: zr(this.cookies[n])
5922
+ });
5923
+ });
5916
5924
  }
5917
- function a(u, l) {
5918
- if (E.isUndefined(l)) {
5919
- if (!E.isUndefined(u))
5920
- return n(void 0, u);
5921
- } else
5922
- return n(void 0, l);
5925
+ _startPolling() {
5926
+ this.pollingInterval = setInterval(this.update, 300);
5923
5927
  }
5924
- function s(u, l, d) {
5925
- if (d in t)
5926
- return n(u, l);
5927
- if (d in e)
5928
- return n(void 0, u);
5928
+ _stopPolling() {
5929
+ this.pollingInterval && clearInterval(this.pollingInterval);
5929
5930
  }
5930
- const c = {
5931
- url: i,
5932
- method: i,
5933
- data: i,
5934
- baseURL: a,
5935
- transformRequest: a,
5936
- transformResponse: a,
5937
- paramsSerializer: a,
5938
- timeout: a,
5939
- timeoutMessage: a,
5940
- withCredentials: a,
5941
- withXSRFToken: a,
5942
- adapter: a,
5943
- responseType: a,
5944
- xsrfCookieName: a,
5945
- xsrfHeaderName: a,
5946
- onUploadProgress: a,
5947
- onDownloadProgress: a,
5948
- decompress: a,
5949
- maxContentLength: a,
5950
- maxBodyLength: a,
5951
- beforeRedirect: a,
5952
- transport: a,
5953
- httpAgent: a,
5954
- httpsAgent: a,
5955
- cancelToken: a,
5956
- socketPath: a,
5957
- responseEncoding: a,
5958
- validateStatus: s,
5959
- headers: (u, l) => o(Mo(u), Mo(l), !0)
5960
- };
5961
- return E.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
5962
- const d = c[l] || o, v = d(e[l], t[l], l);
5963
- E.isUndefined(v) && d !== s || (r[l] = v);
5964
- }), r;
5965
- }
5966
- const zi = "1.6.8", Tn = {};
5967
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
5968
- Tn[e] = function(n) {
5969
- return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
5970
- };
5971
- });
5972
- const ko = {};
5973
- Tn.transitional = function(t, r, n) {
5974
- function o(i, a) {
5975
- return "[Axios v" + zi + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
5931
+ get(t, r = {}) {
5932
+ return r.doNotUpdate || this.update(), zr(this.cookies[t], r);
5976
5933
  }
5977
- return (i, a, s) => {
5978
- if (t === !1)
5979
- throw new W(
5980
- o(a, " has been removed" + (r ? " in " + r : "")),
5981
- W.ERR_DEPRECATED
5982
- );
5983
- return r && !ko[a] && (ko[a] = !0, console.warn(
5984
- o(
5985
- a,
5986
- " has been deprecated since v" + r + " and will be removed in the near future"
5987
- )
5988
- )), t ? t(i, a, s) : !0;
5989
- };
5990
- };
5991
- function $f(e, t, r) {
5992
- if (typeof e != "object")
5993
- throw new W("options must be an object", W.ERR_BAD_OPTION_VALUE);
5994
- const n = Object.keys(e);
5995
- let o = n.length;
5996
- for (; o-- > 0; ) {
5997
- const i = n[o], a = t[i];
5998
- if (a) {
5999
- const s = e[i], c = s === void 0 || a(s, i, e);
6000
- if (c !== !0)
6001
- throw new W("option " + i + " must be " + c, W.ERR_BAD_OPTION_VALUE);
6002
- continue;
5934
+ getAll(t = {}) {
5935
+ t.doNotUpdate || this.update();
5936
+ const r = {};
5937
+ for (let n in this.cookies)
5938
+ r[n] = zr(this.cookies[n], t);
5939
+ return r;
5940
+ }
5941
+ set(t, r, n) {
5942
+ n ? n = Object.assign(Object.assign({}, this.defaultSetOptions), n) : n = this.defaultSetOptions;
5943
+ const o = typeof r == "string" ? r : JSON.stringify(r);
5944
+ this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: o }), this.HAS_DOCUMENT_COOKIE && (document.cookie = jo(t, o, n)), this._emitChange({ name: t, value: r, options: n });
5945
+ }
5946
+ remove(t, r) {
5947
+ const n = r = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), r), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
5948
+ this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie = jo(t, "", n)), this._emitChange({ name: t, value: void 0, options: r });
5949
+ }
5950
+ addChangeListener(t) {
5951
+ this.changeListeners.push(t), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling());
5952
+ }
5953
+ removeChangeListener(t) {
5954
+ const r = this.changeListeners.indexOf(t);
5955
+ r >= 0 && this.changeListeners.splice(r, 1), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.removeEventListener("change", this.update) : this._stopPolling());
5956
+ }
5957
+ }
5958
+ const Of = ee.createContext(new xf());
5959
+ var ln = { exports: {} }, ne = {};
5960
+ /** @license React v16.13.1
5961
+ * react-is.production.min.js
5962
+ *
5963
+ * Copyright (c) Facebook, Inc. and its affiliates.
5964
+ *
5965
+ * This source code is licensed under the MIT license found in the
5966
+ * LICENSE file in the root directory of this source tree.
5967
+ */
5968
+ var Do;
5969
+ function Sf() {
5970
+ if (Do)
5971
+ return ne;
5972
+ Do = 1;
5973
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
5974
+ function R(p) {
5975
+ if (typeof p == "object" && p !== null) {
5976
+ var P = p.$$typeof;
5977
+ switch (P) {
5978
+ case t:
5979
+ switch (p = p.type, p) {
5980
+ case c:
5981
+ case u:
5982
+ case n:
5983
+ case i:
5984
+ case o:
5985
+ case d:
5986
+ return p;
5987
+ default:
5988
+ switch (p = p && p.$$typeof, p) {
5989
+ case s:
5990
+ case l:
5991
+ case h:
5992
+ case y:
5993
+ case a:
5994
+ return p;
5995
+ default:
5996
+ return P;
5997
+ }
5998
+ }
5999
+ case r:
6000
+ return P;
6001
+ }
6003
6002
  }
6004
- if (r !== !0)
6005
- throw new W("Unknown option " + i, W.ERR_BAD_OPTION);
6006
6003
  }
6007
- }
6008
- const un = {
6009
- assertOptions: $f,
6010
- validators: Tn
6011
- }, Ye = un.validators;
6012
- class vr {
6013
- constructor(t) {
6014
- this.defaults = t, this.interceptors = {
6015
- request: new _o(),
6016
- response: new _o()
6017
- };
6004
+ function O(p) {
6005
+ return R(p) === u;
6018
6006
  }
6019
- /**
6020
- * Dispatch a request
6021
- *
6022
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
6023
- * @param {?Object} config
6024
- *
6025
- * @returns {Promise} The Promise to be fulfilled
6026
- */
6027
- async request(t, r) {
6028
- try {
6029
- return await this._request(t, r);
6030
- } catch (n) {
6031
- if (n instanceof Error) {
6032
- let o;
6033
- Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
6034
- const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
6035
- n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
6036
- ` + i) : n.stack = i;
6037
- }
6038
- throw n;
6007
+ return ne.AsyncMode = c, ne.ConcurrentMode = u, ne.ContextConsumer = s, ne.ContextProvider = a, ne.Element = t, ne.ForwardRef = l, ne.Fragment = n, ne.Lazy = h, ne.Memo = y, ne.Portal = r, ne.Profiler = i, ne.StrictMode = o, ne.Suspense = d, ne.isAsyncMode = function(p) {
6008
+ return O(p) || R(p) === c;
6009
+ }, ne.isConcurrentMode = O, ne.isContextConsumer = function(p) {
6010
+ return R(p) === s;
6011
+ }, ne.isContextProvider = function(p) {
6012
+ return R(p) === a;
6013
+ }, ne.isElement = function(p) {
6014
+ return typeof p == "object" && p !== null && p.$$typeof === t;
6015
+ }, ne.isForwardRef = function(p) {
6016
+ return R(p) === l;
6017
+ }, ne.isFragment = function(p) {
6018
+ return R(p) === n;
6019
+ }, ne.isLazy = function(p) {
6020
+ return R(p) === h;
6021
+ }, ne.isMemo = function(p) {
6022
+ return R(p) === y;
6023
+ }, ne.isPortal = function(p) {
6024
+ return R(p) === r;
6025
+ }, ne.isProfiler = function(p) {
6026
+ return R(p) === i;
6027
+ }, ne.isStrictMode = function(p) {
6028
+ return R(p) === o;
6029
+ }, ne.isSuspense = function(p) {
6030
+ return R(p) === d;
6031
+ }, ne.isValidElementType = function(p) {
6032
+ return typeof p == "string" || typeof p == "function" || p === n || p === u || p === i || p === o || p === d || p === v || typeof p == "object" && p !== null && (p.$$typeof === h || p.$$typeof === y || p.$$typeof === a || p.$$typeof === s || p.$$typeof === l || p.$$typeof === b || p.$$typeof === S || p.$$typeof === T || p.$$typeof === m);
6033
+ }, ne.typeOf = R, ne;
6034
+ }
6035
+ var oe = {};
6036
+ /** @license React v16.13.1
6037
+ * react-is.development.js
6038
+ *
6039
+ * Copyright (c) Facebook, Inc. and its affiliates.
6040
+ *
6041
+ * This source code is licensed under the MIT license found in the
6042
+ * LICENSE file in the root directory of this source tree.
6043
+ */
6044
+ var Mo;
6045
+ function Tf() {
6046
+ return Mo || (Mo = 1, process.env.NODE_ENV !== "production" && function() {
6047
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
6048
+ function R(g) {
6049
+ return typeof g == "string" || typeof g == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
6050
+ g === n || g === u || g === i || g === o || g === d || g === v || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === y || g.$$typeof === a || g.$$typeof === s || g.$$typeof === l || g.$$typeof === b || g.$$typeof === S || g.$$typeof === T || g.$$typeof === m);
6039
6051
  }
6040
- }
6041
- _request(t, r) {
6042
- typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Ot(this.defaults, r);
6043
- const { transitional: n, paramsSerializer: o, headers: i } = r;
6044
- n !== void 0 && un.assertOptions(n, {
6045
- silentJSONParsing: Ye.transitional(Ye.boolean),
6046
- forcedJSONParsing: Ye.transitional(Ye.boolean),
6047
- clarifyTimeoutError: Ye.transitional(Ye.boolean)
6048
- }, !1), o != null && (E.isFunction(o) ? r.paramsSerializer = {
6049
- serialize: o
6050
- } : un.assertOptions(o, {
6051
- encode: Ye.function,
6052
- serialize: Ye.function
6053
- }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
6054
- let a = i && E.merge(
6055
- i.common,
6056
- i[r.method]
6057
- );
6058
- i && E.forEach(
6059
- ["delete", "get", "head", "post", "put", "patch", "common"],
6060
- (h) => {
6061
- delete i[h];
6052
+ function O(g) {
6053
+ if (typeof g == "object" && g !== null) {
6054
+ var ve = g.$$typeof;
6055
+ switch (ve) {
6056
+ case t:
6057
+ var Te = g.type;
6058
+ switch (Te) {
6059
+ case c:
6060
+ case u:
6061
+ case n:
6062
+ case i:
6063
+ case o:
6064
+ case d:
6065
+ return Te;
6066
+ default:
6067
+ var Pe = Te && Te.$$typeof;
6068
+ switch (Pe) {
6069
+ case s:
6070
+ case l:
6071
+ case h:
6072
+ case y:
6073
+ case a:
6074
+ return Pe;
6075
+ default:
6076
+ return ve;
6077
+ }
6078
+ }
6079
+ case r:
6080
+ return ve;
6081
+ }
6062
6082
  }
6063
- ), r.headers = Be.concat(a, i);
6064
- const s = [];
6065
- let c = !0;
6066
- this.interceptors.request.forEach(function(m) {
6067
- typeof m.runWhen == "function" && m.runWhen(r) === !1 || (c = c && m.synchronous, s.unshift(m.fulfilled, m.rejected));
6068
- });
6069
- const u = [];
6070
- this.interceptors.response.forEach(function(m) {
6071
- u.push(m.fulfilled, m.rejected);
6072
- });
6073
- let l, d = 0, v;
6074
- if (!c) {
6075
- const h = [Do.bind(this), void 0];
6076
- for (h.unshift.apply(h, s), h.push.apply(h, u), v = h.length, l = Promise.resolve(r); d < v; )
6077
- l = l.then(h[d++], h[d++]);
6078
- return l;
6079
6083
  }
6080
- v = s.length;
6081
- let y = r;
6082
- for (d = 0; d < v; ) {
6083
- const h = s[d++], m = s[d++];
6084
- try {
6085
- y = h(y);
6086
- } catch (b) {
6087
- m.call(this, b);
6088
- break;
6089
- }
6084
+ var p = c, P = u, L = s, J = a, G = t, K = l, ie = n, ue = h, z = y, X = r, Z = i, ae = o, ce = d, Ee = !1;
6085
+ function be(g) {
6086
+ return Ee || (Ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(g) || O(g) === c;
6090
6087
  }
6091
- try {
6092
- l = Do.call(this, y);
6093
- } catch (h) {
6094
- return Promise.reject(h);
6088
+ function w(g) {
6089
+ return O(g) === u;
6095
6090
  }
6096
- for (d = 0, v = u.length; d < v; )
6097
- l = l.then(u[d++], u[d++]);
6098
- return l;
6099
- }
6100
- getUri(t) {
6101
- t = Ot(this.defaults, t);
6102
- const r = Ui(t.baseURL, t.url);
6103
- return Ni(r, t.params, t.paramsSerializer);
6104
- }
6105
- }
6106
- E.forEach(["delete", "get", "head", "options"], function(t) {
6107
- vr.prototype[t] = function(r, n) {
6108
- return this.request(Ot(n || {}, {
6109
- method: t,
6110
- url: r,
6111
- data: (n || {}).data
6112
- }));
6113
- };
6114
- });
6115
- E.forEach(["post", "put", "patch"], function(t) {
6116
- function r(n) {
6117
- return function(i, a, s) {
6118
- return this.request(Ot(s || {}, {
6119
- method: t,
6120
- headers: n ? {
6121
- "Content-Type": "multipart/form-data"
6122
- } : {},
6123
- url: i,
6124
- data: a
6125
- }));
6126
- };
6127
- }
6128
- vr.prototype[t] = r(), vr.prototype[t + "Form"] = r(!0);
6129
- });
6130
- const ur = vr;
6131
- class Rn {
6132
- constructor(t) {
6133
- if (typeof t != "function")
6134
- throw new TypeError("executor must be a function.");
6135
- let r;
6136
- this.promise = new Promise(function(i) {
6137
- r = i;
6138
- });
6139
- const n = this;
6140
- this.promise.then((o) => {
6141
- if (!n._listeners)
6142
- return;
6143
- let i = n._listeners.length;
6144
- for (; i-- > 0; )
6145
- n._listeners[i](o);
6146
- n._listeners = null;
6147
- }), this.promise.then = (o) => {
6148
- let i;
6149
- const a = new Promise((s) => {
6150
- n.subscribe(s), i = s;
6151
- }).then(o);
6152
- return a.cancel = function() {
6153
- n.unsubscribe(i);
6154
- }, a;
6155
- }, t(function(i, a, s) {
6156
- n.reason || (n.reason = new qt(i, a, s), r(n.reason));
6157
- });
6158
- }
6159
- /**
6160
- * Throws a `CanceledError` if cancellation has been requested.
6161
- */
6162
- throwIfRequested() {
6163
- if (this.reason)
6164
- throw this.reason;
6165
- }
6166
- /**
6167
- * Subscribe to the cancel signal
6168
- */
6169
- subscribe(t) {
6170
- if (this.reason) {
6171
- t(this.reason);
6172
- return;
6091
+ function _(g) {
6092
+ return O(g) === s;
6093
+ }
6094
+ function k(g) {
6095
+ return O(g) === a;
6096
+ }
6097
+ function N(g) {
6098
+ return typeof g == "object" && g !== null && g.$$typeof === t;
6099
+ }
6100
+ function A(g) {
6101
+ return O(g) === l;
6102
+ }
6103
+ function I(g) {
6104
+ return O(g) === n;
6105
+ }
6106
+ function j(g) {
6107
+ return O(g) === h;
6173
6108
  }
6174
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
6175
- }
6176
- /**
6177
- * Unsubscribe from the cancel signal
6178
- */
6179
- unsubscribe(t) {
6180
- if (!this._listeners)
6181
- return;
6182
- const r = this._listeners.indexOf(t);
6183
- r !== -1 && this._listeners.splice(r, 1);
6184
- }
6185
- /**
6186
- * Returns an object that contains a new `CancelToken` and a function that, when called,
6187
- * cancels the `CancelToken`.
6188
- */
6189
- static source() {
6190
- let t;
6191
- return {
6192
- token: new Rn(function(o) {
6193
- t = o;
6194
- }),
6195
- cancel: t
6109
+ function D(g) {
6110
+ return O(g) === y;
6111
+ }
6112
+ function M(g) {
6113
+ return O(g) === r;
6114
+ }
6115
+ function U(g) {
6116
+ return O(g) === i;
6117
+ }
6118
+ function F(g) {
6119
+ return O(g) === o;
6120
+ }
6121
+ function le(g) {
6122
+ return O(g) === d;
6123
+ }
6124
+ oe.AsyncMode = p, oe.ConcurrentMode = P, oe.ContextConsumer = L, oe.ContextProvider = J, oe.Element = G, oe.ForwardRef = K, oe.Fragment = ie, oe.Lazy = ue, oe.Memo = z, oe.Portal = X, oe.Profiler = Z, oe.StrictMode = ae, oe.Suspense = ce, oe.isAsyncMode = be, oe.isConcurrentMode = w, oe.isContextConsumer = _, oe.isContextProvider = k, oe.isElement = N, oe.isForwardRef = A, oe.isFragment = I, oe.isLazy = j, oe.isMemo = D, oe.isPortal = M, oe.isProfiler = U, oe.isStrictMode = F, oe.isSuspense = le, oe.isValidElementType = R, oe.typeOf = O;
6125
+ }()), oe;
6126
+ }
6127
+ process.env.NODE_ENV === "production" ? ln.exports = Sf() : ln.exports = Tf();
6128
+ var Rf = ln.exports, zi = Rf, Cf = {
6129
+ $$typeof: !0,
6130
+ render: !0,
6131
+ defaultProps: !0,
6132
+ displayName: !0,
6133
+ propTypes: !0
6134
+ }, _f = {
6135
+ $$typeof: !0,
6136
+ compare: !0,
6137
+ defaultProps: !0,
6138
+ displayName: !0,
6139
+ propTypes: !0,
6140
+ type: !0
6141
+ }, Hi = {};
6142
+ Hi[zi.ForwardRef] = Cf;
6143
+ Hi[zi.Memo] = _f;
6144
+ function Pf() {
6145
+ return typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
6146
+ }
6147
+ function Af(e) {
6148
+ const t = Ze(Of);
6149
+ if (!t)
6150
+ throw new Error("Missing <CookiesProvider>");
6151
+ const [r, n] = Ve(() => t.getAll({ doNotUpdate: !0 }));
6152
+ Pf() && No(() => {
6153
+ function s() {
6154
+ const c = t.getAll({
6155
+ doNotUpdate: !0
6156
+ });
6157
+ jf(e || null, c, r) && n(c);
6158
+ }
6159
+ return t.addChangeListener(s), () => {
6160
+ t.removeChangeListener(s);
6196
6161
  };
6197
- }
6162
+ }, [t, r]);
6163
+ const o = Xe(() => t.set.bind(t), [t]), i = Xe(() => t.remove.bind(t), [t]), a = Xe(() => t.update.bind(t), [t]);
6164
+ return [r, o, i, a];
6198
6165
  }
6199
- const Lf = Rn;
6200
- function If(e) {
6201
- return function(r) {
6202
- return e.apply(null, r);
6166
+ function jf(e, t, r) {
6167
+ if (!e)
6168
+ return !0;
6169
+ for (let n of e)
6170
+ if (t[n] !== r[n])
6171
+ return !0;
6172
+ return !1;
6173
+ }
6174
+ const Df = () => {
6175
+ const { axiosInstance: e, cookieDomain: t } = Ze(Fo), [, r, n] = Af(["Authorization"]), o = Y(() => localStorage.getItem("token") ?? null, []), i = Y(() => {
6176
+ const c = o();
6177
+ return c !== null && c.length > 0;
6178
+ }, [o]), a = Y(async (c, u) => e.post("/user/login", { kid: c, password: u }).then((l) => (localStorage.setItem("token", l.data), r("Authorization", l.data, {
6179
+ path: "/",
6180
+ secure: !0,
6181
+ sameSite: "none",
6182
+ domain: t,
6183
+ expires: ha(new Date(Date.now()), 24)
6184
+ }), !0)).catch((l) => (console.log(l), !1)), [e, r, t]), s = Y(() => {
6185
+ localStorage.removeItem("token"), localStorage.removeItem("user"), n("Authorization");
6186
+ }, [n]);
6187
+ return {
6188
+ isAuthenticated: i,
6189
+ getToken: o,
6190
+ authenticate: a,
6191
+ logout: s
6203
6192
  };
6193
+ };
6194
+ let tr;
6195
+ const Mf = new Uint8Array(16);
6196
+ function kf() {
6197
+ if (!tr && (tr = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !tr))
6198
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6199
+ return tr(Mf);
6204
6200
  }
6205
- function Ff(e) {
6206
- return E.isObject(e) && e.isAxiosError === !0;
6201
+ const ge = [];
6202
+ for (let e = 0; e < 256; ++e)
6203
+ ge.push((e + 256).toString(16).slice(1));
6204
+ function Nf(e, t = 0) {
6205
+ return ge[e[t + 0]] + ge[e[t + 1]] + ge[e[t + 2]] + ge[e[t + 3]] + "-" + ge[e[t + 4]] + ge[e[t + 5]] + "-" + ge[e[t + 6]] + ge[e[t + 7]] + "-" + ge[e[t + 8]] + ge[e[t + 9]] + "-" + ge[e[t + 10]] + ge[e[t + 11]] + ge[e[t + 12]] + ge[e[t + 13]] + ge[e[t + 14]] + ge[e[t + 15]];
6207
6206
  }
6208
- const ln = {
6209
- Continue: 100,
6210
- SwitchingProtocols: 101,
6211
- Processing: 102,
6212
- EarlyHints: 103,
6213
- Ok: 200,
6214
- Created: 201,
6215
- Accepted: 202,
6216
- NonAuthoritativeInformation: 203,
6217
- NoContent: 204,
6218
- ResetContent: 205,
6219
- PartialContent: 206,
6220
- MultiStatus: 207,
6221
- AlreadyReported: 208,
6222
- ImUsed: 226,
6223
- MultipleChoices: 300,
6224
- MovedPermanently: 301,
6225
- Found: 302,
6226
- SeeOther: 303,
6227
- NotModified: 304,
6228
- UseProxy: 305,
6229
- Unused: 306,
6230
- TemporaryRedirect: 307,
6231
- PermanentRedirect: 308,
6232
- BadRequest: 400,
6233
- Unauthorized: 401,
6234
- PaymentRequired: 402,
6235
- Forbidden: 403,
6236
- NotFound: 404,
6237
- MethodNotAllowed: 405,
6238
- NotAcceptable: 406,
6239
- ProxyAuthenticationRequired: 407,
6240
- RequestTimeout: 408,
6241
- Conflict: 409,
6242
- Gone: 410,
6243
- LengthRequired: 411,
6244
- PreconditionFailed: 412,
6245
- PayloadTooLarge: 413,
6246
- UriTooLong: 414,
6247
- UnsupportedMediaType: 415,
6248
- RangeNotSatisfiable: 416,
6249
- ExpectationFailed: 417,
6250
- ImATeapot: 418,
6251
- MisdirectedRequest: 421,
6252
- UnprocessableEntity: 422,
6253
- Locked: 423,
6254
- FailedDependency: 424,
6255
- TooEarly: 425,
6256
- UpgradeRequired: 426,
6257
- PreconditionRequired: 428,
6258
- TooManyRequests: 429,
6259
- RequestHeaderFieldsTooLarge: 431,
6260
- UnavailableForLegalReasons: 451,
6261
- InternalServerError: 500,
6262
- NotImplemented: 501,
6263
- BadGateway: 502,
6264
- ServiceUnavailable: 503,
6265
- GatewayTimeout: 504,
6266
- HttpVersionNotSupported: 505,
6267
- VariantAlsoNegotiates: 506,
6268
- InsufficientStorage: 507,
6269
- LoopDetected: 508,
6270
- NotExtended: 510,
6271
- NetworkAuthenticationRequired: 511
6207
+ const $f = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ko = {
6208
+ randomUUID: $f
6272
6209
  };
6273
- Object.entries(ln).forEach(([e, t]) => {
6274
- ln[t] = e;
6275
- });
6276
- const Uf = ln;
6277
- function Hi(e) {
6278
- const t = new ur(e), r = Oi(ur.prototype.request, t);
6279
- return E.extend(r, ur.prototype, t, { allOwnKeys: !0 }), E.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
6280
- return Hi(Ot(e, o));
6281
- }, r;
6210
+ function Lf(e, t, r) {
6211
+ if (ko.randomUUID && !t && !e)
6212
+ return ko.randomUUID();
6213
+ e = e || {};
6214
+ const n = e.random || (e.rng || kf)();
6215
+ if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, t) {
6216
+ r = r || 0;
6217
+ for (let o = 0; o < 16; ++o)
6218
+ t[r + o] = n[o];
6219
+ return t;
6220
+ }
6221
+ return Nf(n);
6282
6222
  }
6283
- const fe = Hi(Sn);
6284
- fe.Axios = ur;
6285
- fe.CanceledError = qt;
6286
- fe.CancelToken = Lf;
6287
- fe.isCancel = Fi;
6288
- fe.VERSION = zi;
6289
- fe.toFormData = Sr;
6290
- fe.AxiosError = W;
6291
- fe.Cancel = fe.CanceledError;
6292
- fe.all = function(t) {
6293
- return Promise.all(t);
6294
- };
6295
- fe.spread = If;
6296
- fe.isAxiosError = Ff;
6297
- fe.mergeConfig = Ot;
6298
- fe.AxiosHeaders = Be;
6299
- fe.formToJSON = (e) => Ii(E.isHTMLForm(e) ? new FormData(e) : e);
6300
- fe.getAdapter = Bi.getAdapter;
6301
- fe.HttpStatusCode = Uf;
6302
- fe.default = fe;
6303
- const hd = fe.CancelToken, vd = (e = !0, t = void 0) => {
6304
- const { axiosInstance: r, language: n, axiosTexts: o } = Ze(Fo), { addNotification: i } = Ol(), { getToken: a } = vl();
6223
+ const If = "_toast_1s57i_1", kt = {
6224
+ toast: If
6225
+ }, Ff = (e) => {
6226
+ switch (e) {
6227
+ case "success":
6228
+ return 5e3;
6229
+ case "info":
6230
+ return 5e3;
6231
+ case "danger":
6232
+ return 1e4;
6233
+ case "warning":
6234
+ return 1e4;
6235
+ case "prompt":
6236
+ return 1e4;
6237
+ default:
6238
+ return 5e3;
6239
+ }
6240
+ }, Uf = () => ({ addNotification: (t, r) => {
6241
+ const n = Lf(), o = aa(t), i = Ff(r), a = /* @__PURE__ */ q.jsxs(q.Fragment, { children: [
6242
+ o,
6243
+ /* @__PURE__ */ q.jsx(Ca, { onClick: () => ht.dismiss(n), type: "button", style: {
6244
+ position: "absolute",
6245
+ fontSize: "12px",
6246
+ top: "calc(50% - 6px)",
6247
+ right: "8px"
6248
+ } })
6249
+ ] });
6250
+ switch (r) {
6251
+ case "success": {
6252
+ ht(a, {
6253
+ id: n,
6254
+ duration: i,
6255
+ position: "top-center",
6256
+ icon: /* @__PURE__ */ q.jsx(Ra, { size: 12 }),
6257
+ className: Re("luminus-toast-success rounded shadow bg-success", kt.toast)
6258
+ });
6259
+ break;
6260
+ }
6261
+ case "danger": {
6262
+ ht(a, {
6263
+ id: n,
6264
+ duration: i,
6265
+ position: "top-center",
6266
+ icon: /* @__PURE__ */ q.jsx(Ta, { size: 12 }),
6267
+ className: Re("luminus-toast-danger rounded shadow bg-danger", kt.toast)
6268
+ });
6269
+ break;
6270
+ }
6271
+ case "warning": {
6272
+ ht(a, {
6273
+ id: n,
6274
+ duration: i,
6275
+ position: "top-center",
6276
+ icon: /* @__PURE__ */ q.jsx(xa, { size: 12 }),
6277
+ className: Re("luminus-toast-warning rounded shadow bg-warning", kt.toast)
6278
+ });
6279
+ break;
6280
+ }
6281
+ case "info": {
6282
+ ht(a, {
6283
+ id: n,
6284
+ duration: i,
6285
+ position: "top-center",
6286
+ icon: /* @__PURE__ */ q.jsx(Oa, { size: 12 }),
6287
+ className: Re("luminus-toast-info rounded shadow bg-info", kt.toast)
6288
+ });
6289
+ break;
6290
+ }
6291
+ case "prompt": {
6292
+ ht(a, {
6293
+ id: n,
6294
+ duration: i,
6295
+ position: "top-center",
6296
+ icon: /* @__PURE__ */ q.jsx(Sa, { size: 12 }),
6297
+ className: Re("luminus-toast-prompt rounded shadow bg-light", kt.toast)
6298
+ });
6299
+ break;
6300
+ }
6301
+ }
6302
+ } }), hd = fe.CancelToken, vd = (e = !0, t = void 0) => {
6303
+ const { axiosInstance: r, language: n, axiosTexts: o } = Ze(Fo), { addNotification: i } = Uf(), { getToken: a } = Df();
6305
6304
  return xe(() => {
6306
6305
  t && (r.defaults.baseURL = t), r.interceptors.request.clear(), r.interceptors.response.clear();
6307
6306
  const s = r.interceptors.request.use((u) => {
@@ -6396,7 +6395,7 @@ export {
6396
6395
  hu as Y,
6397
6396
  Ou as Z,
6398
6397
  Eu as _,
6399
- Ol as a,
6398
+ Uf as a,
6400
6399
  Qr as a0,
6401
6400
  cd as a1,
6402
6401
  Tu as a2,
@@ -6435,7 +6434,7 @@ export {
6435
6434
  Nu as r,
6436
6435
  qo as s,
6437
6436
  yt as t,
6438
- vl as u,
6437
+ Df as u,
6439
6438
  to as v,
6440
6439
  ct as w,
6441
6440
  Wo as x,