@ysolve/ocity-heritage-visualizer 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
- var Qt = Object.defineProperty;
2
- var Kt = (e, t, n) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Ae = (e, t, n) => Kt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsxs as F, jsx as w, Fragment as Ge } from "react/jsx-runtime";
5
- import { useState as v, useRef as I, useEffect as j } from "react";
6
- const Xt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_DEBUG_MODE: "true", VITE_DEFAULT_IMAGE_URL: "https://o-city.org/assets/NO_AVAILABLE_IMG-4d02b370.png", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/", VITE_QWEN_TTS_API_URL: "http://localhost:3010" };
1
+ var Gt = Object.defineProperty;
2
+ var Jt = (e, t, n) => t in e ? Gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Oe = (e, t, n) => Jt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { jsxs as q, jsx as y, Fragment as Je } from "react/jsx-runtime";
5
+ import { useState as C, useRef as I, useEffect as D } from "react";
6
+ const Qt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_DEBUG_MODE: "false", VITE_DEFAULT_IMAGE_URL: "https://o-city.org/assets/NO_AVAILABLE_IMG-4d02b370.png", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/", VITE_QWEN_TTS_API_URL: "https://playground-tts.o-city.org" };
7
7
  function ue(e, t = !0) {
8
- const n = Xt[e];
8
+ const n = Qt[e];
9
9
  if (!n && t)
10
10
  throw new Error(`❌ Missing required env variable: ${e}`);
11
11
  return n ?? "";
12
12
  }
13
- const Fe = {
13
+ const we = {
14
14
  NODE_ENV: "production",
15
15
  QWEN_TTS_API_URL: ue("VITE_QWEN_TTS_API_URL"),
16
- DEBUG_MODE: !0,
16
+ DEBUG_MODE: !1,
17
17
  GOOGLE_TRANSLATE_BASE: ue("VITE_GOOGLE_TRANSLATE_BASE"),
18
18
  IMAGE_BASE_URL: ue("VITE_IMAGE_BASE_URL"),
19
19
  DEFAULT_IMAGE_URL: ue("VITE_DEFAULT_IMAGE_URL")
@@ -21,7 +21,7 @@ const Fe = {
21
21
  async function Qe(e, t) {
22
22
  if (!e.trim()) return e;
23
23
  try {
24
- const n = `${Fe.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
24
+ const n = `${we.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
25
25
  if (!r.ok)
26
26
  throw new Error(`Error en la traducción: ${r.status}`);
27
27
  const s = await r.json();
@@ -30,67 +30,67 @@ async function Qe(e, t) {
30
30
  return console.error("Error al traducir:", n), e;
31
31
  }
32
32
  }
33
- function Ie(e) {
33
+ function Fe(e) {
34
34
  return new Promise((t, n) => {
35
35
  e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => n(e.error);
36
36
  });
37
37
  }
38
- function Zt(e, t) {
38
+ function Kt(e, t) {
39
39
  let n;
40
40
  const r = () => {
41
41
  if (n)
42
42
  return n;
43
43
  const s = indexedDB.open(e);
44
- return s.onupgradeneeded = () => s.result.createObjectStore(t), n = Ie(s), n.then((i) => {
44
+ return s.onupgradeneeded = () => s.result.createObjectStore(t), n = Fe(s), n.then((i) => {
45
45
  i.onclose = () => n = void 0;
46
46
  }, () => {
47
47
  }), n;
48
48
  };
49
49
  return (s, i) => r().then((o) => i(o.transaction(t, s).objectStore(t)));
50
50
  }
51
- let Oe;
51
+ let xe;
52
52
  function ut() {
53
- return Oe || (Oe = Zt("keyval-store", "keyval")), Oe;
53
+ return xe || (xe = Kt("keyval-store", "keyval")), xe;
54
54
  }
55
- function Yt(e, t = ut()) {
56
- return t("readonly", (n) => Ie(n.get(e)));
55
+ function Xt(e, t = ut()) {
56
+ return t("readonly", (n) => Fe(n.get(e)));
57
57
  }
58
- function en(e, t, n = ut()) {
59
- return n("readwrite", (r) => (r.put(t, e), Ie(r.transaction)));
58
+ function Zt(e, t, n = ut()) {
59
+ return n("readwrite", (r) => (r.put(t, e), Fe(r.transaction)));
60
60
  }
61
- async function tn(e) {
62
- return await Yt(e) ?? null;
61
+ async function Yt(e) {
62
+ return await Xt(e) ?? null;
63
63
  }
64
- async function nn(e, t) {
65
- await en(e, t);
64
+ async function en(e, t) {
65
+ await Zt(e, t);
66
66
  }
67
67
  function dt(e, t) {
68
68
  return function() {
69
69
  return e.apply(t, arguments);
70
70
  };
71
71
  }
72
- const { toString: rn } = Object.prototype, { getPrototypeOf: De } = Object, { iterator: we, toStringTag: ft } = Symbol, ge = /* @__PURE__ */ ((e) => (t) => {
73
- const n = rn.call(t);
72
+ const { toString: tn } = Object.prototype, { getPrototypeOf: De } = Object, { iterator: ge, toStringTag: ft } = Symbol, ye = /* @__PURE__ */ ((e) => (t) => {
73
+ const n = tn.call(t);
74
74
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
75
- })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => ge(t) === e), ye = (e) => (t) => typeof t === e, { isArray: Z } = Array, se = ye("undefined");
76
- function sn(e) {
75
+ })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => ye(t) === e), Ee = (e) => (t) => typeof t === e, { isArray: Z } = Array, se = Ee("undefined");
76
+ function nn(e) {
77
77
  return e !== null && !se(e) && e.constructor !== null && !se(e.constructor) && B(e.constructor.isBuffer) && e.constructor.isBuffer(e);
78
78
  }
79
79
  const pt = M("ArrayBuffer");
80
- function on(e) {
80
+ function rn(e) {
81
81
  let t;
82
82
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && pt(e.buffer), t;
83
83
  }
84
- const an = ye("string"), B = ye("function"), ht = ye("number"), Ee = (e) => e !== null && typeof e == "object", cn = (e) => e === !0 || e === !1, de = (e) => {
85
- if (ge(e) !== "object")
84
+ const sn = Ee("string"), B = Ee("function"), ht = Ee("number"), be = (e) => e !== null && typeof e == "object", on = (e) => e === !0 || e === !1, de = (e) => {
85
+ if (ye(e) !== "object")
86
86
  return !1;
87
87
  const t = De(e);
88
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ft in e) && !(we in e);
89
- }, ln = M("Date"), un = M("File"), dn = M("Blob"), fn = M("FileList"), pn = (e) => Ee(e) && B(e.pipe), hn = (e) => {
88
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ft in e) && !(ge in e);
89
+ }, an = M("Date"), cn = M("File"), ln = M("Blob"), un = M("FileList"), dn = (e) => be(e) && B(e.pipe), fn = (e) => {
90
90
  let t;
91
- return e && (typeof FormData == "function" && e instanceof FormData || B(e.append) && ((t = ge(e)) === "formdata" || // detect form-data instance
91
+ return e && (typeof FormData == "function" && e instanceof FormData || B(e.append) && ((t = ye(e)) === "formdata" || // detect form-data instance
92
92
  t === "object" && B(e.toString) && e.toString() === "[object FormData]"));
93
- }, mn = M("URLSearchParams"), [wn, gn, yn, En] = ["ReadableStream", "Request", "Response", "Headers"].map(M), bn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
93
+ }, pn = M("URLSearchParams"), [hn, mn, wn, gn] = ["ReadableStream", "Request", "Response", "Headers"].map(M), yn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
94
94
  function oe(e, t, { allOwnKeys: n = !1 } = {}) {
95
95
  if (e === null || typeof e > "u")
96
96
  return;
@@ -114,7 +114,7 @@ function mt(e, t) {
114
114
  return s;
115
115
  return null;
116
116
  }
117
- const G = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wt = (e) => !se(e) && e !== G;
117
+ const J = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wt = (e) => !se(e) && e !== J;
118
118
  function Ne() {
119
119
  const { caseless: e } = wt(this) && this || {}, t = {}, n = (r, s) => {
120
120
  const i = e && mt(t, s) || s;
@@ -124,13 +124,13 @@ function Ne() {
124
124
  arguments[r] && oe(arguments[r], n);
125
125
  return t;
126
126
  }
127
- const Tn = (e, t, n, { allOwnKeys: r } = {}) => (oe(t, (s, i) => {
127
+ const En = (e, t, n, { allOwnKeys: r } = {}) => (oe(t, (s, i) => {
128
128
  n && B(s) ? e[i] = dt(s, n) : e[i] = s;
129
- }, { allOwnKeys: r }), e), Sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), _n = (e, t, n, r) => {
129
+ }, { allOwnKeys: r }), e), bn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tn = (e, t, n, r) => {
130
130
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
131
131
  value: t.prototype
132
132
  }), n && Object.assign(e.prototype, n);
133
- }, Rn = (e, t, n, r) => {
133
+ }, Sn = (e, t, n, r) => {
134
134
  let s, i, o;
135
135
  const c = {};
136
136
  if (t = t || {}, e == null) return t;
@@ -140,11 +140,11 @@ const Tn = (e, t, n, { allOwnKeys: r } = {}) => (oe(t, (s, i) => {
140
140
  e = n !== !1 && De(e);
141
141
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
142
142
  return t;
143
- }, An = (e, t, n) => {
143
+ }, _n = (e, t, n) => {
144
144
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
145
145
  const r = e.indexOf(t, n);
146
146
  return r !== -1 && r === n;
147
- }, On = (e) => {
147
+ }, Rn = (e) => {
148
148
  if (!e) return null;
149
149
  if (Z(e)) return e;
150
150
  let t = e.length;
@@ -153,31 +153,31 @@ const Tn = (e, t, n, { allOwnKeys: r } = {}) => (oe(t, (s, i) => {
153
153
  for (; t-- > 0; )
154
154
  n[t] = e[t];
155
155
  return n;
156
- }, xn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && De(Uint8Array)), Cn = (e, t) => {
157
- const r = (e && e[we]).call(e);
156
+ }, An = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && De(Uint8Array)), On = (e, t) => {
157
+ const r = (e && e[ge]).call(e);
158
158
  let s;
159
159
  for (; (s = r.next()) && !s.done; ) {
160
160
  const i = s.value;
161
161
  t.call(e, i[0], i[1]);
162
162
  }
163
- }, vn = (e, t) => {
163
+ }, xn = (e, t) => {
164
164
  let n;
165
165
  const r = [];
166
166
  for (; (n = e.exec(t)) !== null; )
167
167
  r.push(n);
168
168
  return r;
169
- }, Nn = M("HTMLFormElement"), Ln = (e) => e.toLowerCase().replace(
169
+ }, Cn = M("HTMLFormElement"), vn = (e) => e.toLowerCase().replace(
170
170
  /[-_\s]([a-z\d])(\w*)/g,
171
171
  function(n, r, s) {
172
172
  return r.toUpperCase() + s;
173
173
  }
174
- ), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), kn = M("RegExp"), gt = (e, t) => {
174
+ ), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ln = M("RegExp"), gt = (e, t) => {
175
175
  const n = Object.getOwnPropertyDescriptors(e), r = {};
176
176
  oe(n, (s, i) => {
177
177
  let o;
178
178
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
179
179
  }), Object.defineProperties(e, r);
180
- }, Bn = (e) => {
180
+ }, Nn = (e) => {
181
181
  gt(e, (t, n) => {
182
182
  if (B(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
183
183
  return !1;
@@ -192,21 +192,21 @@ const Tn = (e, t, n, { allOwnKeys: r } = {}) => (oe(t, (s, i) => {
192
192
  });
193
193
  }
194
194
  });
195
- }, Pn = (e, t) => {
195
+ }, kn = (e, t) => {
196
196
  const n = {}, r = (s) => {
197
197
  s.forEach((i) => {
198
198
  n[i] = !0;
199
199
  });
200
200
  };
201
201
  return Z(e) ? r(e) : r(String(e).split(t)), n;
202
- }, Un = () => {
203
- }, Fn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
204
- function In(e) {
205
- return !!(e && B(e.append) && e[ft] === "FormData" && e[we]);
202
+ }, Bn = () => {
203
+ }, Pn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
204
+ function Un(e) {
205
+ return !!(e && B(e.append) && e[ft] === "FormData" && e[ge]);
206
206
  }
207
- const Dn = (e) => {
207
+ const In = (e) => {
208
208
  const t = new Array(10), n = (r, s) => {
209
- if (Ee(r)) {
209
+ if (be(r)) {
210
210
  if (t.indexOf(r) >= 0)
211
211
  return;
212
212
  if (!("toJSON" in r)) {
@@ -221,76 +221,76 @@ const Dn = (e) => {
221
221
  return r;
222
222
  };
223
223
  return n(e, 0);
224
- }, jn = M("AsyncFunction"), Mn = (e) => e && (Ee(e) || B(e)) && B(e.then) && B(e.catch), yt = ((e, t) => e ? setImmediate : t ? ((n, r) => (G.addEventListener("message", ({ source: s, data: i }) => {
225
- s === G && i === n && r.length && r.shift()();
224
+ }, Fn = M("AsyncFunction"), Dn = (e) => e && (be(e) || B(e)) && B(e.then) && B(e.catch), yt = ((e, t) => e ? setImmediate : t ? ((n, r) => (J.addEventListener("message", ({ source: s, data: i }) => {
225
+ s === J && i === n && r.length && r.shift()();
226
226
  }, !1), (s) => {
227
- r.push(s), G.postMessage(n, "*");
227
+ r.push(s), J.postMessage(n, "*");
228
228
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
229
229
  typeof setImmediate == "function",
230
- B(G.postMessage)
231
- ), $n = typeof queueMicrotask < "u" ? queueMicrotask.bind(G) : typeof process < "u" && process.nextTick || yt, qn = (e) => e != null && B(e[we]), a = {
230
+ B(J.postMessage)
231
+ ), Mn = typeof queueMicrotask < "u" ? queueMicrotask.bind(J) : typeof process < "u" && process.nextTick || yt, jn = (e) => e != null && B(e[ge]), a = {
232
232
  isArray: Z,
233
233
  isArrayBuffer: pt,
234
- isBuffer: sn,
235
- isFormData: hn,
236
- isArrayBufferView: on,
237
- isString: an,
234
+ isBuffer: nn,
235
+ isFormData: fn,
236
+ isArrayBufferView: rn,
237
+ isString: sn,
238
238
  isNumber: ht,
239
- isBoolean: cn,
240
- isObject: Ee,
239
+ isBoolean: on,
240
+ isObject: be,
241
241
  isPlainObject: de,
242
- isReadableStream: wn,
243
- isRequest: gn,
244
- isResponse: yn,
245
- isHeaders: En,
242
+ isReadableStream: hn,
243
+ isRequest: mn,
244
+ isResponse: wn,
245
+ isHeaders: gn,
246
246
  isUndefined: se,
247
- isDate: ln,
248
- isFile: un,
249
- isBlob: dn,
250
- isRegExp: kn,
247
+ isDate: an,
248
+ isFile: cn,
249
+ isBlob: ln,
250
+ isRegExp: Ln,
251
251
  isFunction: B,
252
- isStream: pn,
253
- isURLSearchParams: mn,
254
- isTypedArray: xn,
255
- isFileList: fn,
252
+ isStream: dn,
253
+ isURLSearchParams: pn,
254
+ isTypedArray: An,
255
+ isFileList: un,
256
256
  forEach: oe,
257
257
  merge: Ne,
258
- extend: Tn,
259
- trim: bn,
260
- stripBOM: Sn,
261
- inherits: _n,
262
- toFlatObject: Rn,
263
- kindOf: ge,
258
+ extend: En,
259
+ trim: yn,
260
+ stripBOM: bn,
261
+ inherits: Tn,
262
+ toFlatObject: Sn,
263
+ kindOf: ye,
264
264
  kindOfTest: M,
265
- endsWith: An,
266
- toArray: On,
267
- forEachEntry: Cn,
268
- matchAll: vn,
269
- isHTMLForm: Nn,
265
+ endsWith: _n,
266
+ toArray: Rn,
267
+ forEachEntry: On,
268
+ matchAll: xn,
269
+ isHTMLForm: Cn,
270
270
  hasOwnProperty: Ke,
271
271
  hasOwnProp: Ke,
272
272
  // an alias to avoid ESLint no-prototype-builtins detection
273
273
  reduceDescriptors: gt,
274
- freezeMethods: Bn,
275
- toObjectSet: Pn,
276
- toCamelCase: Ln,
277
- noop: Un,
278
- toFiniteNumber: Fn,
274
+ freezeMethods: Nn,
275
+ toObjectSet: kn,
276
+ toCamelCase: vn,
277
+ noop: Bn,
278
+ toFiniteNumber: Pn,
279
279
  findKey: mt,
280
- global: G,
280
+ global: J,
281
281
  isContextDefined: wt,
282
- isSpecCompliantForm: In,
283
- toJSONObject: Dn,
284
- isAsyncFn: jn,
285
- isThenable: Mn,
282
+ isSpecCompliantForm: Un,
283
+ toJSONObject: In,
284
+ isAsyncFn: Fn,
285
+ isThenable: Dn,
286
286
  setImmediate: yt,
287
- asap: $n,
288
- isIterable: qn
287
+ asap: Mn,
288
+ isIterable: jn
289
289
  };
290
- function g(e, t, n, r, s) {
290
+ function w(e, t, n, r, s) {
291
291
  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), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
292
292
  }
293
- a.inherits(g, Error, {
293
+ a.inherits(w, Error, {
294
294
  toJSON: function() {
295
295
  return {
296
296
  // Standard
@@ -311,7 +311,7 @@ a.inherits(g, Error, {
311
311
  };
312
312
  }
313
313
  });
314
- const Et = g.prototype, bt = {};
314
+ const Et = w.prototype, bt = {};
315
315
  [
316
316
  "ERR_BAD_OPTION_VALUE",
317
317
  "ERR_BAD_OPTION",
@@ -329,16 +329,16 @@ const Et = g.prototype, bt = {};
329
329
  ].forEach((e) => {
330
330
  bt[e] = { value: e };
331
331
  });
332
- Object.defineProperties(g, bt);
332
+ Object.defineProperties(w, bt);
333
333
  Object.defineProperty(Et, "isAxiosError", { value: !0 });
334
- g.from = (e, t, n, r, s, i) => {
334
+ w.from = (e, t, n, r, s, i) => {
335
335
  const o = Object.create(Et);
336
336
  return a.toFlatObject(e, o, function(l) {
337
337
  return l !== Error.prototype;
338
- }, (c) => c !== "isAxiosError"), g.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
338
+ }, (c) => c !== "isAxiosError"), w.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
339
339
  };
340
- const zn = null;
341
- function Le(e) {
340
+ const $n = null;
341
+ function ke(e) {
342
342
  return a.isPlainObject(e) || a.isArray(e);
343
343
  }
344
344
  function Tt(e) {
@@ -349,13 +349,13 @@ function Xe(e, t, n) {
349
349
  return s = Tt(s), !n && i ? "[" + s + "]" : s;
350
350
  }).join(n ? "." : "") : t;
351
351
  }
352
- function Hn(e) {
353
- return a.isArray(e) && !e.some(Le);
352
+ function qn(e) {
353
+ return a.isArray(e) && !e.some(ke);
354
354
  }
355
- const Vn = a.toFlatObject(a, {}, null, function(t) {
355
+ const zn = a.toFlatObject(a, {}, null, function(t) {
356
356
  return /^is[A-Z]/.test(t);
357
357
  });
358
- function be(e, t, n) {
358
+ function Te(e, t, n) {
359
359
  if (!a.isObject(e))
360
360
  throw new TypeError("target must be an object");
361
361
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -375,48 +375,48 @@ function be(e, t, n) {
375
375
  if (a.isBoolean(p))
376
376
  return p.toString();
377
377
  if (!l && a.isBlob(p))
378
- throw new g("Blob is not supported. Use a Buffer instead.");
378
+ throw new w("Blob is not supported. Use a Buffer instead.");
379
379
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
380
380
  }
381
381
  function d(p, m, h) {
382
- let S = p;
382
+ let T = p;
383
383
  if (p && !h && typeof p == "object") {
384
384
  if (a.endsWith(m, "{}"))
385
385
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
386
- else if (a.isArray(p) && Hn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (S = a.toArray(p)))
387
- return m = Tt(m), S.forEach(function(T, N) {
388
- !(a.isUndefined(T) || T === null) && t.append(
386
+ else if (a.isArray(p) && qn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (T = a.toArray(p)))
387
+ return m = Tt(m), T.forEach(function(_, v) {
388
+ !(a.isUndefined(_) || _ === null) && t.append(
389
389
  // eslint-disable-next-line no-nested-ternary
390
- o === !0 ? Xe([m], N, i) : o === null ? m : m + "[]",
391
- u(T)
390
+ o === !0 ? Xe([m], v, i) : o === null ? m : m + "[]",
391
+ u(_)
392
392
  );
393
393
  }), !1;
394
394
  }
395
- return Le(p) ? !0 : (t.append(Xe(h, m, i), u(p)), !1);
395
+ return ke(p) ? !0 : (t.append(Xe(h, m, i), u(p)), !1);
396
396
  }
397
- const f = [], y = Object.assign(Vn, {
397
+ const f = [], g = Object.assign(zn, {
398
398
  defaultVisitor: d,
399
399
  convertValue: u,
400
- isVisitable: Le
400
+ isVisitable: ke
401
401
  });
402
- function b(p, m) {
402
+ function E(p, m) {
403
403
  if (!a.isUndefined(p)) {
404
404
  if (f.indexOf(p) !== -1)
405
405
  throw Error("Circular reference detected in " + m.join("."));
406
- f.push(p), a.forEach(p, function(S, _) {
407
- (!(a.isUndefined(S) || S === null) && s.call(
406
+ f.push(p), a.forEach(p, function(T, S) {
407
+ (!(a.isUndefined(T) || T === null) && s.call(
408
408
  t,
409
- S,
410
- a.isString(_) ? _.trim() : _,
409
+ T,
410
+ a.isString(S) ? S.trim() : S,
411
411
  m,
412
- y
413
- )) === !0 && b(S, m ? m.concat(_) : [_]);
412
+ g
413
+ )) === !0 && E(T, m ? m.concat(S) : [S]);
414
414
  }), f.pop();
415
415
  }
416
416
  }
417
417
  if (!a.isObject(e))
418
418
  throw new TypeError("data must be an object");
419
- return b(e), t;
419
+ return E(e), t;
420
420
  }
421
421
  function Ze(e) {
422
422
  const t = {
@@ -432,10 +432,10 @@ function Ze(e) {
432
432
  return t[r];
433
433
  });
434
434
  }
435
- function je(e, t) {
436
- this._pairs = [], e && be(e, this, t);
435
+ function Me(e, t) {
436
+ this._pairs = [], e && Te(e, this, t);
437
437
  }
438
- const St = je.prototype;
438
+ const St = Me.prototype;
439
439
  St.append = function(t, n) {
440
440
  this._pairs.push([t, n]);
441
441
  };
@@ -447,19 +447,19 @@ St.toString = function(t) {
447
447
  return n(s[0]) + "=" + n(s[1]);
448
448
  }, "").join("&");
449
449
  };
450
- function Wn(e) {
450
+ function Hn(e) {
451
451
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
452
452
  }
453
453
  function _t(e, t, n) {
454
454
  if (!t)
455
455
  return e;
456
- const r = n && n.encode || Wn;
456
+ const r = n && n.encode || Hn;
457
457
  a.isFunction(n) && (n = {
458
458
  serialize: n
459
459
  });
460
460
  const s = n && n.serialize;
461
461
  let i;
462
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new je(t, n).toString(r), i) {
462
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Me(t, n).toString(r), i) {
463
463
  const o = e.indexOf("#");
464
464
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
465
465
  }
@@ -523,37 +523,37 @@ const Rt = {
523
523
  silentJSONParsing: !0,
524
524
  forcedJSONParsing: !0,
525
525
  clarifyTimeoutError: !1
526
- }, Jn = typeof URLSearchParams < "u" ? URLSearchParams : je, Gn = typeof FormData < "u" ? FormData : null, Qn = typeof Blob < "u" ? Blob : null, Kn = {
526
+ }, Vn = typeof URLSearchParams < "u" ? URLSearchParams : Me, Wn = typeof FormData < "u" ? FormData : null, Gn = typeof Blob < "u" ? Blob : null, Jn = {
527
527
  isBrowser: !0,
528
528
  classes: {
529
- URLSearchParams: Jn,
530
- FormData: Gn,
531
- Blob: Qn
529
+ URLSearchParams: Vn,
530
+ FormData: Wn,
531
+ Blob: Gn
532
532
  },
533
533
  protocols: ["http", "https", "file", "blob", "url", "data"]
534
- }, Me = typeof window < "u" && typeof document < "u", ke = typeof navigator == "object" && navigator || void 0, Xn = Me && (!ke || ["ReactNative", "NativeScript", "NS"].indexOf(ke.product) < 0), Zn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
535
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Yn = Me && window.location.href || "http://localhost", er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
534
+ }, je = typeof window < "u" && typeof document < "u", Be = typeof navigator == "object" && navigator || void 0, Qn = je && (!Be || ["ReactNative", "NativeScript", "NS"].indexOf(Be.product) < 0), Kn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
535
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xn = je && window.location.href || "http://localhost", Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
536
536
  __proto__: null,
537
- hasBrowserEnv: Me,
538
- hasStandardBrowserEnv: Xn,
539
- hasStandardBrowserWebWorkerEnv: Zn,
540
- navigator: ke,
541
- origin: Yn
537
+ hasBrowserEnv: je,
538
+ hasStandardBrowserEnv: Qn,
539
+ hasStandardBrowserWebWorkerEnv: Kn,
540
+ navigator: Be,
541
+ origin: Xn
542
542
  }, Symbol.toStringTag, { value: "Module" })), L = {
543
- ...er,
544
- ...Kn
543
+ ...Zn,
544
+ ...Jn
545
545
  };
546
- function tr(e, t) {
547
- return be(e, new L.classes.URLSearchParams(), Object.assign({
546
+ function Yn(e, t) {
547
+ return Te(e, new L.classes.URLSearchParams(), Object.assign({
548
548
  visitor: function(n, r, s, i) {
549
549
  return L.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
550
550
  }
551
551
  }, t));
552
552
  }
553
- function nr(e) {
553
+ function er(e) {
554
554
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
555
555
  }
556
- function rr(e) {
556
+ function tr(e) {
557
557
  const t = {}, n = Object.keys(e);
558
558
  let r;
559
559
  const s = n.length;
@@ -567,17 +567,17 @@ function At(e) {
567
567
  let o = n[i++];
568
568
  if (o === "__proto__") return !0;
569
569
  const c = Number.isFinite(+o), l = i >= n.length;
570
- return o = !o && a.isArray(s) ? s.length : o, l ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = rr(s[o])), !c);
570
+ return o = !o && a.isArray(s) ? s.length : o, l ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = tr(s[o])), !c);
571
571
  }
572
572
  if (a.isFormData(e) && a.isFunction(e.entries)) {
573
573
  const n = {};
574
574
  return a.forEachEntry(e, (r, s) => {
575
- t(nr(r), s, n, 0);
575
+ t(er(r), s, n, 0);
576
576
  }), n;
577
577
  }
578
578
  return null;
579
579
  }
580
- function sr(e, t, n) {
580
+ function nr(e, t, n) {
581
581
  if (a.isString(e))
582
582
  try {
583
583
  return (t || JSON.parse)(e), a.trim(e);
@@ -603,17 +603,17 @@ const ie = {
603
603
  let c;
604
604
  if (i) {
605
605
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
606
- return tr(t, this.formSerializer).toString();
606
+ return Yn(t, this.formSerializer).toString();
607
607
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
608
608
  const l = this.env && this.env.FormData;
609
- return be(
609
+ return Te(
610
610
  c ? { "files[]": t } : t,
611
611
  l && new l(),
612
612
  this.formSerializer
613
613
  );
614
614
  }
615
615
  }
616
- return i || s ? (n.setContentType("application/json", !1), sr(t)) : t;
616
+ return i || s ? (n.setContentType("application/json", !1), nr(t)) : t;
617
617
  }],
618
618
  transformResponse: [function(t) {
619
619
  const n = this.transitional || ie.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -625,7 +625,7 @@ const ie = {
625
625
  return JSON.parse(t);
626
626
  } catch (c) {
627
627
  if (o)
628
- throw c.name === "SyntaxError" ? g.from(c, g.ERR_BAD_RESPONSE, this, null, this.response) : c;
628
+ throw c.name === "SyntaxError" ? w.from(c, w.ERR_BAD_RESPONSE, this, null, this.response) : c;
629
629
  }
630
630
  }
631
631
  return t;
@@ -656,7 +656,7 @@ const ie = {
656
656
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
657
657
  ie.headers[e] = {};
658
658
  });
659
- const or = a.toObjectSet([
659
+ const rr = a.toObjectSet([
660
660
  "age",
661
661
  "authorization",
662
662
  "content-length",
@@ -674,12 +674,12 @@ const or = a.toObjectSet([
674
674
  "referer",
675
675
  "retry-after",
676
676
  "user-agent"
677
- ]), ir = (e) => {
677
+ ]), sr = (e) => {
678
678
  const t = {};
679
679
  let n, r, s;
680
680
  return e && e.split(`
681
681
  `).forEach(function(o) {
682
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && or[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
682
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && rr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
683
683
  }), t;
684
684
  }, et = Symbol("internals");
685
685
  function ne(e) {
@@ -688,15 +688,15 @@ function ne(e) {
688
688
  function fe(e) {
689
689
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(fe) : String(e);
690
690
  }
691
- function ar(e) {
691
+ function or(e) {
692
692
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
693
693
  let r;
694
694
  for (; r = n.exec(e); )
695
695
  t[r[1]] = r[2];
696
696
  return t;
697
697
  }
698
- const cr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
699
- function xe(e, t, n, r, s) {
698
+ const ir = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
699
+ function Ce(e, t, n, r, s) {
700
700
  if (a.isFunction(r))
701
701
  return r.call(this, t, n);
702
702
  if (s && (t = n), !!a.isString(t)) {
@@ -706,10 +706,10 @@ function xe(e, t, n, r, s) {
706
706
  return r.test(t);
707
707
  }
708
708
  }
709
- function lr(e) {
709
+ function ar(e) {
710
710
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
711
711
  }
712
- function ur(e, t) {
712
+ function cr(e, t) {
713
713
  const n = a.toCamelCase(" " + t);
714
714
  ["get", "set", "has"].forEach((r) => {
715
715
  Object.defineProperty(e, r + n, {
@@ -736,8 +736,8 @@ let P = class {
736
736
  const o = (c, l) => a.forEach(c, (u, d) => i(u, d, l));
737
737
  if (a.isPlainObject(t) || t instanceof this.constructor)
738
738
  o(t, n);
739
- else if (a.isString(t) && (t = t.trim()) && !cr(t))
740
- o(ir(t), n);
739
+ else if (a.isString(t) && (t = t.trim()) && !ir(t))
740
+ o(sr(t), n);
741
741
  else if (a.isObject(t) && a.isIterable(t)) {
742
742
  let c = {}, l, u;
743
743
  for (const d of t) {
@@ -758,7 +758,7 @@ let P = class {
758
758
  if (!n)
759
759
  return s;
760
760
  if (n === !0)
761
- return ar(s);
761
+ return or(s);
762
762
  if (a.isFunction(n))
763
763
  return n.call(this, s, r);
764
764
  if (a.isRegExp(n))
@@ -770,7 +770,7 @@ let P = class {
770
770
  has(t, n) {
771
771
  if (t = ne(t), t) {
772
772
  const r = a.findKey(this, t);
773
- return !!(r && this[r] !== void 0 && (!n || xe(this, this[r], r, n)));
773
+ return !!(r && this[r] !== void 0 && (!n || Ce(this, this[r], r, n)));
774
774
  }
775
775
  return !1;
776
776
  }
@@ -780,7 +780,7 @@ let P = class {
780
780
  function i(o) {
781
781
  if (o = ne(o), o) {
782
782
  const c = a.findKey(r, o);
783
- c && (!n || xe(r, r[c], c, n)) && (delete r[c], s = !0);
783
+ c && (!n || Ce(r, r[c], c, n)) && (delete r[c], s = !0);
784
784
  }
785
785
  }
786
786
  return a.isArray(t) ? t.forEach(i) : i(t), s;
@@ -790,7 +790,7 @@ let P = class {
790
790
  let r = n.length, s = !1;
791
791
  for (; r--; ) {
792
792
  const i = n[r];
793
- (!t || xe(this, this[i], i, t, !0)) && (delete this[i], s = !0);
793
+ (!t || Ce(this, this[i], i, t, !0)) && (delete this[i], s = !0);
794
794
  }
795
795
  return s;
796
796
  }
@@ -802,7 +802,7 @@ let P = class {
802
802
  n[o] = fe(s), delete n[i];
803
803
  return;
804
804
  }
805
- const c = t ? lr(i) : String(i).trim();
805
+ const c = t ? ar(i) : String(i).trim();
806
806
  c !== i && delete n[i], n[c] = fe(s), r[c] = !0;
807
807
  }), this;
808
808
  }
@@ -841,7 +841,7 @@ let P = class {
841
841
  }).accessors, s = this.prototype;
842
842
  function i(o) {
843
843
  const c = ne(o);
844
- r[c] || (ur(s, o), r[c] = !0);
844
+ r[c] || (cr(s, o), r[c] = !0);
845
845
  }
846
846
  return a.isArray(t) ? t.forEach(i) : i(t), this;
847
847
  }
@@ -857,7 +857,7 @@ a.reduceDescriptors(P.prototype, ({ value: e }, t) => {
857
857
  };
858
858
  });
859
859
  a.freezeMethods(P);
860
- function Ce(e, t) {
860
+ function ve(e, t) {
861
861
  const n = this || ie, r = t || n, s = P.from(r.headers);
862
862
  let i = r.data;
863
863
  return a.forEach(e, function(c) {
@@ -868,42 +868,42 @@ function Ot(e) {
868
868
  return !!(e && e.__CANCEL__);
869
869
  }
870
870
  function Y(e, t, n) {
871
- g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
871
+ w.call(this, e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError";
872
872
  }
873
- a.inherits(Y, g, {
873
+ a.inherits(Y, w, {
874
874
  __CANCEL__: !0
875
875
  });
876
876
  function xt(e, t, n) {
877
877
  const r = n.config.validateStatus;
878
- !n.status || !r || r(n.status) ? e(n) : t(new g(
878
+ !n.status || !r || r(n.status) ? e(n) : t(new w(
879
879
  "Request failed with status code " + n.status,
880
- [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
880
+ [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
881
881
  n.config,
882
882
  n.request,
883
883
  n
884
884
  ));
885
885
  }
886
- function dr(e) {
886
+ function lr(e) {
887
887
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
888
888
  return t && t[1] || "";
889
889
  }
890
- function fr(e, t) {
890
+ function ur(e, t) {
891
891
  e = e || 10;
892
892
  const n = new Array(e), r = new Array(e);
893
893
  let s = 0, i = 0, o;
894
894
  return t = t !== void 0 ? t : 1e3, function(l) {
895
895
  const u = Date.now(), d = r[i];
896
896
  o || (o = u), n[s] = l, r[s] = u;
897
- let f = i, y = 0;
897
+ let f = i, g = 0;
898
898
  for (; f !== s; )
899
- y += n[f++], f = f % e;
899
+ g += n[f++], f = f % e;
900
900
  if (s = (s + 1) % e, s === i && (i = (i + 1) % e), u - o < t)
901
901
  return;
902
- const b = d && u - d;
903
- return b ? Math.round(y * 1e3 / b) : void 0;
902
+ const E = d && u - d;
903
+ return E ? Math.round(g * 1e3 / E) : void 0;
904
904
  };
905
905
  }
906
- function pr(e, t) {
906
+ function dr(e, t) {
907
907
  let n = 0, r = 1e3 / t, s, i;
908
908
  const o = (u, d = Date.now()) => {
909
909
  n = d, s = null, i && (clearTimeout(i), i = null), e.apply(null, u);
@@ -917,8 +917,8 @@ function pr(e, t) {
917
917
  }
918
918
  const he = (e, t, n = 3) => {
919
919
  let r = 0;
920
- const s = fr(50, 250);
921
- return pr((i) => {
920
+ const s = ur(50, 250);
921
+ return dr((i) => {
922
922
  const o = i.loaded, c = i.lengthComputable ? i.total : void 0, l = o - r, u = s(l), d = o <= c;
923
923
  r = o;
924
924
  const f = {
@@ -941,10 +941,10 @@ const he = (e, t, n = 3) => {
941
941
  total: e,
942
942
  loaded: r
943
943
  }), t[1]];
944
- }, nt = (e) => (...t) => a.asap(() => e(...t)), hr = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, L.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
944
+ }, nt = (e) => (...t) => a.asap(() => e(...t)), fr = L.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, L.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
945
945
  new URL(L.origin),
946
946
  L.navigator && /(msie|trident)/i.test(L.navigator.userAgent)
947
- ) : () => !0, mr = L.hasStandardBrowserEnv ? (
947
+ ) : () => !0, pr = L.hasStandardBrowserEnv ? (
948
948
  // Standard browser envs support document.cookie
949
949
  {
950
950
  write(e, t, n, r, s, i) {
@@ -971,28 +971,28 @@ const he = (e, t, n = 3) => {
971
971
  }
972
972
  }
973
973
  );
974
- function wr(e) {
974
+ function hr(e) {
975
975
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
976
976
  }
977
- function gr(e, t) {
977
+ function mr(e, t) {
978
978
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
979
979
  }
980
980
  function Ct(e, t, n) {
981
- let r = !wr(t);
982
- return e && (r || n == !1) ? gr(e, t) : t;
981
+ let r = !hr(t);
982
+ return e && (r || n == !1) ? mr(e, t) : t;
983
983
  }
984
984
  const rt = (e) => e instanceof P ? { ...e } : e;
985
985
  function K(e, t) {
986
986
  t = t || {};
987
987
  const n = {};
988
- function r(u, d, f, y) {
989
- return a.isPlainObject(u) && a.isPlainObject(d) ? a.merge.call({ caseless: y }, u, d) : a.isPlainObject(d) ? a.merge({}, d) : a.isArray(d) ? d.slice() : d;
988
+ function r(u, d, f, g) {
989
+ return a.isPlainObject(u) && a.isPlainObject(d) ? a.merge.call({ caseless: g }, u, d) : a.isPlainObject(d) ? a.merge({}, d) : a.isArray(d) ? d.slice() : d;
990
990
  }
991
- function s(u, d, f, y) {
991
+ function s(u, d, f, g) {
992
992
  if (a.isUndefined(d)) {
993
993
  if (!a.isUndefined(u))
994
- return r(void 0, u, f, y);
995
- } else return r(u, d, f, y);
994
+ return r(void 0, u, f, g);
995
+ } else return r(u, d, f, g);
996
996
  }
997
997
  function i(u, d) {
998
998
  if (!a.isUndefined(d))
@@ -1042,8 +1042,8 @@ function K(e, t) {
1042
1042
  headers: (u, d, f) => s(rt(u), rt(d), f, !0)
1043
1043
  };
1044
1044
  return a.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
1045
- const f = l[d] || s, y = f(e[d], t[d], d);
1046
- a.isUndefined(y) && f !== c || (n[d] = y);
1045
+ const f = l[d] || s, g = f(e[d], t[d], d);
1046
+ a.isUndefined(g) && f !== c || (n[d] = g);
1047
1047
  }), n;
1048
1048
  }
1049
1049
  const vt = (e) => {
@@ -1062,69 +1062,69 @@ const vt = (e) => {
1062
1062
  o.setContentType([u || "multipart/form-data", ...d].join("; "));
1063
1063
  }
1064
1064
  }
1065
- if (L.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && hr(t.url))) {
1066
- const u = s && i && mr.read(i);
1065
+ if (L.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fr(t.url))) {
1066
+ const u = s && i && pr.read(i);
1067
1067
  u && o.set(s, u);
1068
1068
  }
1069
1069
  return t;
1070
- }, yr = typeof XMLHttpRequest < "u", Er = yr && function(e) {
1070
+ }, wr = typeof XMLHttpRequest < "u", gr = wr && function(e) {
1071
1071
  return new Promise(function(n, r) {
1072
1072
  const s = vt(e);
1073
1073
  let i = s.data;
1074
1074
  const o = P.from(s.headers).normalize();
1075
- let { responseType: c, onUploadProgress: l, onDownloadProgress: u } = s, d, f, y, b, p;
1075
+ let { responseType: c, onUploadProgress: l, onDownloadProgress: u } = s, d, f, g, E, p;
1076
1076
  function m() {
1077
- b && b(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
1077
+ E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(d), s.signal && s.signal.removeEventListener("abort", d);
1078
1078
  }
1079
1079
  let h = new XMLHttpRequest();
1080
1080
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1081
- function S() {
1081
+ function T() {
1082
1082
  if (!h)
1083
1083
  return;
1084
- const T = P.from(
1084
+ const _ = P.from(
1085
1085
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1086
- ), O = {
1086
+ ), A = {
1087
1087
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1088
1088
  status: h.status,
1089
1089
  statusText: h.statusText,
1090
- headers: T,
1090
+ headers: _,
1091
1091
  config: e,
1092
1092
  request: h
1093
1093
  };
1094
- xt(function(D) {
1095
- n(D), m();
1096
- }, function(D) {
1097
- r(D), m();
1098
- }, O), h = null;
1094
+ xt(function(F) {
1095
+ n(F), m();
1096
+ }, function(F) {
1097
+ r(F), m();
1098
+ }, A), h = null;
1099
1099
  }
1100
- "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1101
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1100
+ "onloadend" in h ? h.onloadend = T : h.onreadystatechange = function() {
1101
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(T);
1102
1102
  }, h.onabort = function() {
1103
- h && (r(new g("Request aborted", g.ECONNABORTED, e, h)), h = null);
1103
+ h && (r(new w("Request aborted", w.ECONNABORTED, e, h)), h = null);
1104
1104
  }, h.onerror = function() {
1105
- r(new g("Network Error", g.ERR_NETWORK, e, h)), h = null;
1105
+ r(new w("Network Error", w.ERR_NETWORK, e, h)), h = null;
1106
1106
  }, h.ontimeout = function() {
1107
- let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1108
- const O = s.transitional || Rt;
1109
- s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new g(
1110
- N,
1111
- O.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1107
+ let v = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1108
+ const A = s.transitional || Rt;
1109
+ s.timeoutErrorMessage && (v = s.timeoutErrorMessage), r(new w(
1110
+ v,
1111
+ A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1112
1112
  e,
1113
1113
  h
1114
1114
  )), h = null;
1115
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(N, O) {
1116
- h.setRequestHeader(O, N);
1117
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, p] = he(u, !0), h.addEventListener("progress", y)), l && h.upload && ([f, b] = he(l), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (d = (T) => {
1118
- h && (r(!T || T.type ? new Y(null, e, h) : T), h.abort(), h = null);
1115
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(v, A) {
1116
+ h.setRequestHeader(A, v);
1117
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([g, p] = he(u, !0), h.addEventListener("progress", g)), l && h.upload && ([f, E] = he(l), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (d = (_) => {
1118
+ h && (r(!_ || _.type ? new Y(null, e, h) : _), h.abort(), h = null);
1119
1119
  }, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
1120
- const _ = dr(s.url);
1121
- if (_ && L.protocols.indexOf(_) === -1) {
1122
- r(new g("Unsupported protocol " + _ + ":", g.ERR_BAD_REQUEST, e));
1120
+ const S = lr(s.url);
1121
+ if (S && L.protocols.indexOf(S) === -1) {
1122
+ r(new w("Unsupported protocol " + S + ":", w.ERR_BAD_REQUEST, e));
1123
1123
  return;
1124
1124
  }
1125
1125
  h.send(i || null);
1126
1126
  });
1127
- }, br = (e, t) => {
1127
+ }, yr = (e, t) => {
1128
1128
  const { length: n } = e = e ? e.filter(Boolean) : [];
1129
1129
  if (t || n) {
1130
1130
  let r = new AbortController(), s;
@@ -1132,11 +1132,11 @@ const vt = (e) => {
1132
1132
  if (!s) {
1133
1133
  s = !0, c();
1134
1134
  const d = u instanceof Error ? u : this.reason;
1135
- r.abort(d instanceof g ? d : new Y(d instanceof Error ? d.message : d));
1135
+ r.abort(d instanceof w ? d : new Y(d instanceof Error ? d.message : d));
1136
1136
  }
1137
1137
  };
1138
1138
  let o = t && setTimeout(() => {
1139
- o = null, i(new g(`timeout ${t} of ms exceeded`, g.ETIMEDOUT));
1139
+ o = null, i(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
1140
1140
  }, t);
1141
1141
  const c = () => {
1142
1142
  e && (o && clearTimeout(o), o = null, e.forEach((u) => {
@@ -1147,7 +1147,7 @@ const vt = (e) => {
1147
1147
  const { signal: l } = r;
1148
1148
  return l.unsubscribe = () => a.asap(c), l;
1149
1149
  }
1150
- }, Tr = function* (e, t) {
1150
+ }, Er = function* (e, t) {
1151
1151
  let n = e.byteLength;
1152
1152
  if (n < t) {
1153
1153
  yield e;
@@ -1156,10 +1156,10 @@ const vt = (e) => {
1156
1156
  let r = 0, s;
1157
1157
  for (; r < n; )
1158
1158
  s = r + t, yield e.slice(r, s), r = s;
1159
- }, Sr = async function* (e, t) {
1160
- for await (const n of _r(e))
1161
- yield* Tr(n, t);
1162
- }, _r = async function* (e) {
1159
+ }, br = async function* (e, t) {
1160
+ for await (const n of Tr(e))
1161
+ yield* Er(n, t);
1162
+ }, Tr = async function* (e) {
1163
1163
  if (e[Symbol.asyncIterator]) {
1164
1164
  yield* e;
1165
1165
  return;
@@ -1176,7 +1176,7 @@ const vt = (e) => {
1176
1176
  await t.cancel();
1177
1177
  }
1178
1178
  }, st = (e, t, n, r) => {
1179
- const s = Sr(e, t);
1179
+ const s = br(e, t);
1180
1180
  let i = 0, o, c = (l) => {
1181
1181
  o || (o = !0, r && r(l));
1182
1182
  };
@@ -1190,8 +1190,8 @@ const vt = (e) => {
1190
1190
  }
1191
1191
  let f = d.byteLength;
1192
1192
  if (n) {
1193
- let y = i += f;
1194
- n(y);
1193
+ let g = i += f;
1194
+ n(g);
1195
1195
  }
1196
1196
  l.enqueue(new Uint8Array(d));
1197
1197
  } catch (u) {
@@ -1204,13 +1204,13 @@ const vt = (e) => {
1204
1204
  }, {
1205
1205
  highWaterMark: 2
1206
1206
  });
1207
- }, Te = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Nt = Te && typeof ReadableStream == "function", Rr = Te && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Lt = (e, ...t) => {
1207
+ }, Se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Lt = Se && typeof ReadableStream == "function", Sr = Se && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Nt = (e, ...t) => {
1208
1208
  try {
1209
1209
  return !!e(...t);
1210
1210
  } catch {
1211
1211
  return !1;
1212
1212
  }
1213
- }, Ar = Nt && Lt(() => {
1213
+ }, _r = Lt && Nt(() => {
1214
1214
  let e = !1;
1215
1215
  const t = new Request(L.origin, {
1216
1216
  body: new ReadableStream(),
@@ -1220,17 +1220,17 @@ const vt = (e) => {
1220
1220
  }
1221
1221
  }).headers.has("Content-Type");
1222
1222
  return e && !t;
1223
- }), ot = 64 * 1024, Be = Nt && Lt(() => a.isReadableStream(new Response("").body)), me = {
1224
- stream: Be && ((e) => e.body)
1223
+ }), ot = 64 * 1024, Pe = Lt && Nt(() => a.isReadableStream(new Response("").body)), me = {
1224
+ stream: Pe && ((e) => e.body)
1225
1225
  };
1226
- Te && ((e) => {
1226
+ Se && ((e) => {
1227
1227
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1228
1228
  !me[t] && (me[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1229
- throw new g(`Response type '${t}' is not supported`, g.ERR_NOT_SUPPORT, r);
1229
+ throw new w(`Response type '${t}' is not supported`, w.ERR_NOT_SUPPORT, r);
1230
1230
  });
1231
1231
  });
1232
1232
  })(new Response());
1233
- const Or = async (e) => {
1233
+ const Rr = async (e) => {
1234
1234
  if (e == null)
1235
1235
  return 0;
1236
1236
  if (a.isBlob(e))
@@ -1243,11 +1243,11 @@ const Or = async (e) => {
1243
1243
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1244
1244
  return e.byteLength;
1245
1245
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1246
- return (await Rr(e)).byteLength;
1247
- }, xr = async (e, t) => {
1246
+ return (await Sr(e)).byteLength;
1247
+ }, Ar = async (e, t) => {
1248
1248
  const n = a.toFiniteNumber(e.getContentLength());
1249
- return n ?? Or(t);
1250
- }, Cr = Te && (async (e) => {
1249
+ return n ?? Rr(t);
1250
+ }, Or = Se && (async (e) => {
1251
1251
  let {
1252
1252
  url: t,
1253
1253
  method: n,
@@ -1260,84 +1260,84 @@ const Or = async (e) => {
1260
1260
  responseType: u,
1261
1261
  headers: d,
1262
1262
  withCredentials: f = "same-origin",
1263
- fetchOptions: y
1263
+ fetchOptions: g
1264
1264
  } = vt(e);
1265
1265
  u = u ? (u + "").toLowerCase() : "text";
1266
- let b = br([s, i && i.toAbortSignal()], o), p;
1267
- const m = b && b.unsubscribe && (() => {
1268
- b.unsubscribe();
1266
+ let E = yr([s, i && i.toAbortSignal()], o), p;
1267
+ const m = E && E.unsubscribe && (() => {
1268
+ E.unsubscribe();
1269
1269
  });
1270
1270
  let h;
1271
1271
  try {
1272
- if (l && Ar && n !== "get" && n !== "head" && (h = await xr(d, r)) !== 0) {
1273
- let O = new Request(t, {
1272
+ if (l && _r && n !== "get" && n !== "head" && (h = await Ar(d, r)) !== 0) {
1273
+ let A = new Request(t, {
1274
1274
  method: "POST",
1275
1275
  body: r,
1276
1276
  duplex: "half"
1277
- }), k;
1278
- if (a.isFormData(r) && (k = O.headers.get("content-type")) && d.setContentType(k), O.body) {
1279
- const [D, q] = tt(
1277
+ }), N;
1278
+ if (a.isFormData(r) && (N = A.headers.get("content-type")) && d.setContentType(N), A.body) {
1279
+ const [F, z] = tt(
1280
1280
  h,
1281
1281
  he(nt(l))
1282
1282
  );
1283
- r = st(O.body, ot, D, q);
1283
+ r = st(A.body, ot, F, z);
1284
1284
  }
1285
1285
  }
1286
1286
  a.isString(f) || (f = f ? "include" : "omit");
1287
- const S = "credentials" in Request.prototype;
1287
+ const T = "credentials" in Request.prototype;
1288
1288
  p = new Request(t, {
1289
- ...y,
1290
- signal: b,
1289
+ ...g,
1290
+ signal: E,
1291
1291
  method: n.toUpperCase(),
1292
1292
  headers: d.normalize().toJSON(),
1293
1293
  body: r,
1294
1294
  duplex: "half",
1295
- credentials: S ? f : void 0
1295
+ credentials: T ? f : void 0
1296
1296
  });
1297
- let _ = await fetch(p, y);
1298
- const T = Be && (u === "stream" || u === "response");
1299
- if (Be && (c || T && m)) {
1300
- const O = {};
1301
- ["status", "statusText", "headers"].forEach((E) => {
1302
- O[E] = _[E];
1297
+ let S = await fetch(p, g);
1298
+ const _ = Pe && (u === "stream" || u === "response");
1299
+ if (Pe && (c || _ && m)) {
1300
+ const A = {};
1301
+ ["status", "statusText", "headers"].forEach((b) => {
1302
+ A[b] = S[b];
1303
1303
  });
1304
- const k = a.toFiniteNumber(_.headers.get("content-length")), [D, q] = c && tt(
1305
- k,
1304
+ const N = a.toFiniteNumber(S.headers.get("content-length")), [F, z] = c && tt(
1305
+ N,
1306
1306
  he(nt(c), !0)
1307
1307
  ) || [];
1308
- _ = new Response(
1309
- st(_.body, ot, D, () => {
1310
- q && q(), m && m();
1308
+ S = new Response(
1309
+ st(S.body, ot, F, () => {
1310
+ z && z(), m && m();
1311
1311
  }),
1312
- O
1312
+ A
1313
1313
  );
1314
1314
  }
1315
1315
  u = u || "text";
1316
- let N = await me[a.findKey(me, u) || "text"](_, e);
1317
- return !T && m && m(), await new Promise((O, k) => {
1318
- xt(O, k, {
1319
- data: N,
1320
- headers: P.from(_.headers),
1321
- status: _.status,
1322
- statusText: _.statusText,
1316
+ let v = await me[a.findKey(me, u) || "text"](S, e);
1317
+ return !_ && m && m(), await new Promise((A, N) => {
1318
+ xt(A, N, {
1319
+ data: v,
1320
+ headers: P.from(S.headers),
1321
+ status: S.status,
1322
+ statusText: S.statusText,
1323
1323
  config: e,
1324
1324
  request: p
1325
1325
  });
1326
1326
  });
1327
- } catch (S) {
1328
- throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1329
- new g("Network Error", g.ERR_NETWORK, e, p),
1327
+ } catch (T) {
1328
+ throw m && m(), T && T.name === "TypeError" && /Load failed|fetch/i.test(T.message) ? Object.assign(
1329
+ new w("Network Error", w.ERR_NETWORK, e, p),
1330
1330
  {
1331
- cause: S.cause || S
1331
+ cause: T.cause || T
1332
1332
  }
1333
- ) : g.from(S, S && S.code, e, p);
1333
+ ) : w.from(T, T && T.code, e, p);
1334
1334
  }
1335
- }), Pe = {
1336
- http: zn,
1337
- xhr: Er,
1338
- fetch: Cr
1335
+ }), Ue = {
1336
+ http: $n,
1337
+ xhr: gr,
1338
+ fetch: Or
1339
1339
  };
1340
- a.forEach(Pe, (e, t) => {
1340
+ a.forEach(Ue, (e, t) => {
1341
1341
  if (e) {
1342
1342
  try {
1343
1343
  Object.defineProperty(e, "name", { value: t });
@@ -1346,7 +1346,7 @@ a.forEach(Pe, (e, t) => {
1346
1346
  Object.defineProperty(e, "adapterName", { value: t });
1347
1347
  }
1348
1348
  });
1349
- const it = (e) => `- ${e}`, vr = (e) => a.isFunction(e) || e === null || e === !1, kt = {
1349
+ const it = (e) => `- ${e}`, xr = (e) => a.isFunction(e) || e === null || e === !1, kt = {
1350
1350
  getAdapter: (e) => {
1351
1351
  e = a.isArray(e) ? e : [e];
1352
1352
  const { length: t } = e;
@@ -1355,8 +1355,8 @@ const it = (e) => `- ${e}`, vr = (e) => a.isFunction(e) || e === null || e === !
1355
1355
  for (let i = 0; i < t; i++) {
1356
1356
  n = e[i];
1357
1357
  let o;
1358
- if (r = n, !vr(n) && (r = Pe[(o = String(n)).toLowerCase()], r === void 0))
1359
- throw new g(`Unknown adapter '${o}'`);
1358
+ if (r = n, !xr(n) && (r = Ue[(o = String(n)).toLowerCase()], r === void 0))
1359
+ throw new w(`Unknown adapter '${o}'`);
1360
1360
  if (r)
1361
1361
  break;
1362
1362
  s[o || "#" + i] = r;
@@ -1368,53 +1368,53 @@ const it = (e) => `- ${e}`, vr = (e) => a.isFunction(e) || e === null || e === !
1368
1368
  let o = t ? i.length > 1 ? `since :
1369
1369
  ` + i.map(it).join(`
1370
1370
  `) : " " + it(i[0]) : "as no adapter specified";
1371
- throw new g(
1371
+ throw new w(
1372
1372
  "There is no suitable adapter to dispatch the request " + o,
1373
1373
  "ERR_NOT_SUPPORT"
1374
1374
  );
1375
1375
  }
1376
1376
  return r;
1377
1377
  },
1378
- adapters: Pe
1378
+ adapters: Ue
1379
1379
  };
1380
- function ve(e) {
1380
+ function Le(e) {
1381
1381
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1382
1382
  throw new Y(null, e);
1383
1383
  }
1384
1384
  function at(e) {
1385
- return ve(e), e.headers = P.from(e.headers), e.data = Ce.call(
1385
+ return Le(e), e.headers = P.from(e.headers), e.data = ve.call(
1386
1386
  e,
1387
1387
  e.transformRequest
1388
1388
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kt.getAdapter(e.adapter || ie.adapter)(e).then(function(r) {
1389
- return ve(e), r.data = Ce.call(
1389
+ return Le(e), r.data = ve.call(
1390
1390
  e,
1391
1391
  e.transformResponse,
1392
1392
  r
1393
1393
  ), r.headers = P.from(r.headers), r;
1394
1394
  }, function(r) {
1395
- return Ot(r) || (ve(e), r && r.response && (r.response.data = Ce.call(
1395
+ return Ot(r) || (Le(e), r && r.response && (r.response.data = ve.call(
1396
1396
  e,
1397
1397
  e.transformResponse,
1398
1398
  r.response
1399
1399
  ), r.response.headers = P.from(r.response.headers))), Promise.reject(r);
1400
1400
  });
1401
1401
  }
1402
- const Bt = "1.10.0", Se = {};
1402
+ const Bt = "1.10.0", _e = {};
1403
1403
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1404
- Se[e] = function(r) {
1404
+ _e[e] = function(r) {
1405
1405
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1406
1406
  };
1407
1407
  });
1408
1408
  const ct = {};
1409
- Se.transitional = function(t, n, r) {
1409
+ _e.transitional = function(t, n, r) {
1410
1410
  function s(i, o) {
1411
1411
  return "[Axios v" + Bt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1412
1412
  }
1413
1413
  return (i, o, c) => {
1414
1414
  if (t === !1)
1415
- throw new g(
1415
+ throw new w(
1416
1416
  s(o, " has been removed" + (n ? " in " + n : "")),
1417
- g.ERR_DEPRECATED
1417
+ w.ERR_DEPRECATED
1418
1418
  );
1419
1419
  return n && !ct[o] && (ct[o] = !0, console.warn(
1420
1420
  s(
@@ -1424,12 +1424,12 @@ Se.transitional = function(t, n, r) {
1424
1424
  )), t ? t(i, o, c) : !0;
1425
1425
  };
1426
1426
  };
1427
- Se.spelling = function(t) {
1427
+ _e.spelling = function(t) {
1428
1428
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1429
1429
  };
1430
- function Nr(e, t, n) {
1430
+ function Cr(e, t, n) {
1431
1431
  if (typeof e != "object")
1432
- throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1432
+ throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1433
1433
  const r = Object.keys(e);
1434
1434
  let s = r.length;
1435
1435
  for (; s-- > 0; ) {
@@ -1437,17 +1437,17 @@ function Nr(e, t, n) {
1437
1437
  if (o) {
1438
1438
  const c = e[i], l = c === void 0 || o(c, i, e);
1439
1439
  if (l !== !0)
1440
- throw new g("option " + i + " must be " + l, g.ERR_BAD_OPTION_VALUE);
1440
+ throw new w("option " + i + " must be " + l, w.ERR_BAD_OPTION_VALUE);
1441
1441
  continue;
1442
1442
  }
1443
1443
  if (n !== !0)
1444
- throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
1444
+ throw new w("Unknown option " + i, w.ERR_BAD_OPTION);
1445
1445
  }
1446
1446
  }
1447
1447
  const pe = {
1448
- assertOptions: Nr,
1449
- validators: Se
1450
- }, $ = pe.validators;
1448
+ assertOptions: Cr,
1449
+ validators: _e
1450
+ }, j = pe.validators;
1451
1451
  let Q = class {
1452
1452
  constructor(t) {
1453
1453
  this.defaults = t || {}, this.interceptors = {
@@ -1484,17 +1484,17 @@ let Q = class {
1484
1484
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = K(this.defaults, n);
1485
1485
  const { transitional: r, paramsSerializer: s, headers: i } = n;
1486
1486
  r !== void 0 && pe.assertOptions(r, {
1487
- silentJSONParsing: $.transitional($.boolean),
1488
- forcedJSONParsing: $.transitional($.boolean),
1489
- clarifyTimeoutError: $.transitional($.boolean)
1487
+ silentJSONParsing: j.transitional(j.boolean),
1488
+ forcedJSONParsing: j.transitional(j.boolean),
1489
+ clarifyTimeoutError: j.transitional(j.boolean)
1490
1490
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1491
1491
  serialize: s
1492
1492
  } : pe.assertOptions(s, {
1493
- encode: $.function,
1494
- serialize: $.function
1493
+ encode: j.function,
1494
+ serialize: j.function
1495
1495
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), pe.assertOptions(n, {
1496
- baseUrl: $.spelling("baseURL"),
1497
- withXsrfToken: $.spelling("withXSRFToken")
1496
+ baseUrl: j.spelling("baseURL"),
1497
+ withXsrfToken: j.spelling("withXSRFToken")
1498
1498
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1499
1499
  let o = i && a.merge(
1500
1500
  i.common,
@@ -1515,30 +1515,30 @@ let Q = class {
1515
1515
  this.interceptors.response.forEach(function(m) {
1516
1516
  u.push(m.fulfilled, m.rejected);
1517
1517
  });
1518
- let d, f = 0, y;
1518
+ let d, f = 0, g;
1519
1519
  if (!l) {
1520
1520
  const p = [at.bind(this), void 0];
1521
- for (p.unshift.apply(p, c), p.push.apply(p, u), y = p.length, d = Promise.resolve(n); f < y; )
1521
+ for (p.unshift.apply(p, c), p.push.apply(p, u), g = p.length, d = Promise.resolve(n); f < g; )
1522
1522
  d = d.then(p[f++], p[f++]);
1523
1523
  return d;
1524
1524
  }
1525
- y = c.length;
1526
- let b = n;
1527
- for (f = 0; f < y; ) {
1525
+ g = c.length;
1526
+ let E = n;
1527
+ for (f = 0; f < g; ) {
1528
1528
  const p = c[f++], m = c[f++];
1529
1529
  try {
1530
- b = p(b);
1530
+ E = p(E);
1531
1531
  } catch (h) {
1532
1532
  m.call(this, h);
1533
1533
  break;
1534
1534
  }
1535
1535
  }
1536
1536
  try {
1537
- d = at.call(this, b);
1537
+ d = at.call(this, E);
1538
1538
  } catch (p) {
1539
1539
  return Promise.reject(p);
1540
1540
  }
1541
- for (f = 0, y = u.length; f < y; )
1541
+ for (f = 0, g = u.length; f < g; )
1542
1542
  d = d.then(u[f++], u[f++]);
1543
1543
  return d;
1544
1544
  }
@@ -1572,7 +1572,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1572
1572
  }
1573
1573
  Q.prototype[t] = n(), Q.prototype[t + "Form"] = n(!0);
1574
1574
  });
1575
- let Lr = class Pt {
1575
+ let vr = class Pt {
1576
1576
  constructor(t) {
1577
1577
  if (typeof t != "function")
1578
1578
  throw new TypeError("executor must be a function.");
@@ -1645,15 +1645,15 @@ let Lr = class Pt {
1645
1645
  };
1646
1646
  }
1647
1647
  };
1648
- function kr(e) {
1648
+ function Lr(e) {
1649
1649
  return function(n) {
1650
1650
  return e.apply(null, n);
1651
1651
  };
1652
1652
  }
1653
- function Br(e) {
1653
+ function Nr(e) {
1654
1654
  return a.isObject(e) && e.isAxiosError === !0;
1655
1655
  }
1656
- const Ue = {
1656
+ const Ie = {
1657
1657
  Continue: 100,
1658
1658
  SwitchingProtocols: 101,
1659
1659
  Processing: 102,
@@ -1718,8 +1718,8 @@ const Ue = {
1718
1718
  NotExtended: 510,
1719
1719
  NetworkAuthenticationRequired: 511
1720
1720
  };
1721
- Object.entries(Ue).forEach(([e, t]) => {
1722
- Ue[t] = e;
1721
+ Object.entries(Ie).forEach(([e, t]) => {
1722
+ Ie[t] = e;
1723
1723
  });
1724
1724
  function Ut(e) {
1725
1725
  const t = new Q(e), n = dt(Q.prototype.request, t);
@@ -1727,50 +1727,50 @@ function Ut(e) {
1727
1727
  return Ut(K(e, s));
1728
1728
  }, n;
1729
1729
  }
1730
- const C = Ut(ie);
1731
- C.Axios = Q;
1732
- C.CanceledError = Y;
1733
- C.CancelToken = Lr;
1734
- C.isCancel = Ot;
1735
- C.VERSION = Bt;
1736
- C.toFormData = be;
1737
- C.AxiosError = g;
1738
- C.Cancel = C.CanceledError;
1739
- C.all = function(t) {
1730
+ const x = Ut(ie);
1731
+ x.Axios = Q;
1732
+ x.CanceledError = Y;
1733
+ x.CancelToken = vr;
1734
+ x.isCancel = Ot;
1735
+ x.VERSION = Bt;
1736
+ x.toFormData = Te;
1737
+ x.AxiosError = w;
1738
+ x.Cancel = x.CanceledError;
1739
+ x.all = function(t) {
1740
1740
  return Promise.all(t);
1741
1741
  };
1742
- C.spread = kr;
1743
- C.isAxiosError = Br;
1744
- C.mergeConfig = K;
1745
- C.AxiosHeaders = P;
1746
- C.formToJSON = (e) => At(a.isHTMLForm(e) ? new FormData(e) : e);
1747
- C.getAdapter = kt.getAdapter;
1748
- C.HttpStatusCode = Ue;
1749
- C.default = C;
1742
+ x.spread = Lr;
1743
+ x.isAxiosError = Nr;
1744
+ x.mergeConfig = K;
1745
+ x.AxiosHeaders = P;
1746
+ x.formToJSON = (e) => At(a.isHTMLForm(e) ? new FormData(e) : e);
1747
+ x.getAdapter = kt.getAdapter;
1748
+ x.HttpStatusCode = Ie;
1749
+ x.default = x;
1750
1750
  const {
1751
- Axios: Cs,
1752
- AxiosError: vs,
1753
- CanceledError: Ns,
1754
- isCancel: Ls,
1755
- CancelToken: ks,
1756
- VERSION: Bs,
1757
- all: Ps,
1758
- Cancel: Us,
1759
- isAxiosError: Fs,
1760
- spread: Is,
1761
- toFormData: Ds,
1762
- AxiosHeaders: js,
1763
- HttpStatusCode: Ms,
1764
- formToJSON: $s,
1765
- getAdapter: qs,
1766
- mergeConfig: zs
1767
- } = C;
1768
- class Pr {
1751
+ Axios: Os,
1752
+ AxiosError: xs,
1753
+ CanceledError: Cs,
1754
+ isCancel: vs,
1755
+ CancelToken: Ls,
1756
+ VERSION: Ns,
1757
+ all: ks,
1758
+ Cancel: Bs,
1759
+ isAxiosError: Ps,
1760
+ spread: Us,
1761
+ toFormData: Is,
1762
+ AxiosHeaders: Fs,
1763
+ HttpStatusCode: Ds,
1764
+ formToJSON: Ms,
1765
+ getAdapter: js,
1766
+ mergeConfig: $s
1767
+ } = x;
1768
+ class kr {
1769
1769
  // 30 segundos
1770
1770
  constructor() {
1771
- Ae(this, "apiUrl");
1772
- Ae(this, "timeout", 3e4);
1773
- this.apiUrl = Fe.QWEN_TTS_API_URL;
1771
+ Oe(this, "apiUrl");
1772
+ Oe(this, "timeout", 3e4);
1773
+ this.apiUrl = we.QWEN_TTS_API_URL;
1774
1774
  }
1775
1775
  /**
1776
1776
  * Sintetiza texto a voz usando Qwen3-TTS-Flash a través de ocity_tts API
@@ -1783,12 +1783,12 @@ class Pr {
1783
1783
  try {
1784
1784
  const {
1785
1785
  text: f,
1786
- voice: y = "Peter",
1787
- languageType: b = "English",
1786
+ voice: g = "Peter",
1787
+ languageType: E = "English",
1788
1788
  emotion: p,
1789
1789
  speed: m,
1790
1790
  pitch: h,
1791
- purpose: S
1791
+ purpose: T
1792
1792
  } = t;
1793
1793
  if (!f || f.trim().length === 0)
1794
1794
  throw new Error("[Qwen TTS] Text cannot be empty");
@@ -1797,21 +1797,21 @@ class Pr {
1797
1797
  "[Qwen TTS] Text must not exceed 512 characters (Qwen3-TTS limit)"
1798
1798
  );
1799
1799
  console.log(
1800
- `[Qwen TTS] Processing request: text="${f.substring(0, 50)}..." voice=${y}`
1800
+ `[Qwen TTS] Processing request: text="${f.substring(0, 50)}..." voice=${g}`
1801
1801
  );
1802
- const _ = {
1802
+ const S = {
1803
1803
  text: f,
1804
- voice: y,
1805
- languageType: b
1804
+ voice: g,
1805
+ languageType: E
1806
1806
  };
1807
- p && (_.emotion = p, console.log(`[Qwen TTS] Emotion: ${p}`)), m !== void 0 && (_.speed = m, console.log(`[Qwen TTS] Speed: ${m}`)), h !== void 0 && (_.pitch = h, console.log(`[Qwen TTS] Pitch: ${h}`)), S && (_.purpose = S, console.log(`[Qwen TTS] Purpose: ${S}`));
1808
- const T = _;
1807
+ p && (S.emotion = p, console.log(`[Qwen TTS] Emotion: ${p}`)), m !== void 0 && (S.speed = m, console.log(`[Qwen TTS] Speed: ${m}`)), h !== void 0 && (S.pitch = h, console.log(`[Qwen TTS] Pitch: ${h}`)), T && (S.purpose = T, console.log(`[Qwen TTS] Purpose: ${T}`));
1808
+ const _ = S;
1809
1809
  console.log(
1810
1810
  `[Qwen TTS] Sending request to ${this.apiUrl}/api/v1/tts/audio`
1811
1811
  );
1812
- const O = (await C.post(
1812
+ const A = (await x.post(
1813
1813
  `${this.apiUrl}/api/v1/tts/audio`,
1814
- T,
1814
+ _,
1815
1815
  {
1816
1816
  headers: {
1817
1817
  "Content-Type": "application/json"
@@ -1820,17 +1820,17 @@ class Pr {
1820
1820
  timeout: this.timeout
1821
1821
  }
1822
1822
  )).data;
1823
- if (!O || O.size === 0)
1823
+ if (!A || A.size === 0)
1824
1824
  throw new Error("[Qwen TTS] No audio content received from server");
1825
1825
  return console.log(
1826
- `[Qwen TTS] Successfully received audio (${O.size} bytes)`
1826
+ `[Qwen TTS] Successfully received audio (${A.size} bytes)`
1827
1827
  ), {
1828
- audio: O,
1828
+ audio: A,
1829
1829
  mimeType: "audio/wav"
1830
1830
  };
1831
1831
  } catch (f) {
1832
- const y = f instanceof Error ? f.message : String(f);
1833
- if (console.error(`[Qwen TTS] Error: ${y}`), f instanceof C.AxiosError) {
1832
+ const g = f instanceof Error ? f.message : String(f);
1833
+ if (console.error(`[Qwen TTS] Error: ${g}`), f instanceof x.AxiosError) {
1834
1834
  if (((n = f.response) == null ? void 0 : n.status) === 401 || ((r = f.response) == null ? void 0 : r.status) === 403)
1835
1835
  throw new Error(
1836
1836
  "[Qwen TTS] Unauthorized: Invalid credentials or API key on server"
@@ -1840,91 +1840,91 @@ class Pr {
1840
1840
  "[Qwen TTS] Request timeout: Qwen TTS service not responding"
1841
1841
  );
1842
1842
  if (((s = f.response) == null ? void 0 : s.status) === 400) {
1843
- const b = ((o = (i = f.response) == null ? void 0 : i.data) == null ? void 0 : o.message) || "Bad request parameters";
1844
- throw new Error(`[Qwen TTS] Bad Request: ${b}`);
1843
+ const E = ((o = (i = f.response) == null ? void 0 : i.data) == null ? void 0 : o.message) || "Bad request parameters";
1844
+ throw new Error(`[Qwen TTS] Bad Request: ${E}`);
1845
1845
  }
1846
1846
  throw ((c = f.response) == null ? void 0 : c.status) === 429 ? new Error(
1847
1847
  "[Qwen TTS] Rate limit exceeded: Too many requests to Qwen API"
1848
1848
  ) : f.code === "ERR_NETWORK" ? new Error(
1849
1849
  `[Qwen TTS] Network error: Cannot reach Qwen TTS service at ${this.apiUrl}`
1850
1850
  ) : new Error(
1851
- `[Qwen TTS] API Error (${(l = f.response) == null ? void 0 : l.status}): ${((d = (u = f.response) == null ? void 0 : u.data) == null ? void 0 : d.message) || y}`
1851
+ `[Qwen TTS] API Error (${(l = f.response) == null ? void 0 : l.status}): ${((d = (u = f.response) == null ? void 0 : u.data) == null ? void 0 : d.message) || g}`
1852
1852
  );
1853
1853
  }
1854
1854
  throw f;
1855
1855
  }
1856
1856
  }
1857
1857
  }
1858
- const Ur = new Pr();
1859
- function Fr(e) {
1860
- const [t, n] = v({
1858
+ const Br = new kr();
1859
+ function Pr(e) {
1860
+ const [t, n] = C({
1861
1861
  isPlaying: !1,
1862
1862
  isPaused: !1,
1863
1863
  progress: 0,
1864
1864
  currentPNGTuber: 0,
1865
1865
  avatars: e.avatars,
1866
1866
  error: null
1867
- }), [r, s] = v(e.autoAdvance || !1), [i, o] = v(!1), [, c] = v(0), l = I(null), u = I(null), d = I(r), f = I(!1), y = I(null);
1868
- j(() => {
1867
+ }), [r, s] = C(e.autoAdvance || !1), [i, o] = C(!1), [, c] = C(0), l = I(null), u = I(null), d = I(r), f = I(!1), g = I(null);
1868
+ D(() => {
1869
1869
  d.current = r;
1870
1870
  }, [r]);
1871
- const b = (E) => {
1871
+ const E = (b) => {
1872
1872
  if (e.avatars.length <= 1) return 0;
1873
- const A = e.avatars.length, U = 100 / A;
1874
- return Math.min(Math.floor(E / U), A - 1);
1873
+ const R = e.avatars.length, U = 100 / R;
1874
+ return Math.min(Math.floor(b / U), R - 1);
1875
1875
  }, p = () => {
1876
1876
  u.current && (clearInterval(u.current), u.current = null);
1877
1877
  }, m = () => {
1878
1878
  l.current && (u.current = setInterval(() => {
1879
1879
  if (l.current && l.current.duration) {
1880
- const E = l.current.currentTime, A = l.current.duration, U = E / A * 100;
1880
+ const b = l.current.currentTime, R = l.current.duration, U = b / R * 100;
1881
1881
  n((V) => ({
1882
1882
  ...V,
1883
1883
  progress: Math.min(U, 100),
1884
- currentPNGTuber: b(U)
1884
+ currentPNGTuber: E(U)
1885
1885
  }));
1886
1886
  }
1887
1887
  }, 100));
1888
1888
  }, h = () => {
1889
- var E;
1890
- l.current && !t.isPaused && (l.current.pause(), p(), n((A) => ({ ...A, isPlaying: !1, isPaused: !0 })), (E = e.onPause) == null || E.call(e));
1891
- }, S = async () => {
1889
+ var b;
1890
+ l.current && !t.isPaused && (l.current.pause(), p(), n((R) => ({ ...R, isPlaying: !1, isPaused: !0 })), (b = e.onPause) == null || b.call(e));
1891
+ }, T = async () => {
1892
1892
  if (l.current && t.isPaused)
1893
1893
  try {
1894
- await l.current.play(), m(), n((E) => ({ ...E, isPlaying: !0, isPaused: !1 }));
1895
- } catch (E) {
1896
- console.error("Error al reanudar audio:", E), n((A) => ({
1897
- ...A,
1894
+ await l.current.play(), m(), n((b) => ({ ...b, isPlaying: !0, isPaused: !1 }));
1895
+ } catch (b) {
1896
+ console.error("Error al reanudar audio:", b), n((R) => ({
1897
+ ...R,
1898
1898
  error: { type: "audio", message: "Error al reanudar la reproducción" }
1899
1899
  }));
1900
1900
  }
1901
- }, _ = () => N(!0), T = () => s((E) => !E), N = (E = !1) => {
1902
- p(), l.current && (y.current && (l.current.removeEventListener("ended", y.current), y.current = null), l.current.removeEventListener("error", O), l.current.removeEventListener("pause", k), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((A) => ({
1903
- ...A,
1901
+ }, S = () => v(!0), _ = () => s((b) => !b), v = (b = !1) => {
1902
+ p(), l.current && (g.current && (l.current.removeEventListener("ended", g.current), g.current = null), l.current.removeEventListener("error", A), l.current.removeEventListener("pause", N), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((R) => ({
1903
+ ...R,
1904
1904
  isPlaying: !1,
1905
1905
  isPaused: !1,
1906
1906
  progress: 0,
1907
1907
  currentPNGTuber: 0
1908
- })), d.current && !f.current && (f.current = !0, c((A) => A + 1)), E || setTimeout(() => {
1909
- var A;
1910
- return (A = e.onStop) == null ? void 0 : A.call(e);
1908
+ })), d.current && !f.current && (f.current = !0, c((R) => R + 1)), b || setTimeout(() => {
1909
+ var R;
1910
+ return (R = e.onStop) == null ? void 0 : R.call(e);
1911
1911
  }, 50);
1912
- }, O = () => {
1913
- n((E) => ({
1914
- ...E,
1912
+ }, A = () => {
1913
+ n((b) => ({
1914
+ ...b,
1915
1915
  error: { type: "audio", message: "Error al reproducir el audio" }
1916
- })), N();
1917
- }, k = () => {
1918
- l.current && l.current.currentTime < l.current.duration && n((E) => ({ ...E, isPlaying: !1, isPaused: !0 }));
1919
- }, D = async () => {
1916
+ })), v();
1917
+ }, N = () => {
1918
+ l.current && l.current.currentTime < l.current.duration && n((b) => ({ ...b, isPlaying: !1, isPaused: !0 }));
1919
+ }, F = async () => {
1920
1920
  if (!e.text.trim()) {
1921
- n((E) => ({
1922
- ...E,
1921
+ n((b) => ({
1922
+ ...b,
1923
1923
  error: { type: "synthesis", message: "No hay contenido para reproducir" }
1924
1924
  }));
1925
1925
  return;
1926
1926
  }
1927
- f.current = !1, N(!0);
1927
+ f.current = !1, v(!0);
1928
1928
  try {
1929
1929
  o(!0), n((U) => ({
1930
1930
  ...U,
@@ -1933,30 +1933,30 @@ function Fr(e) {
1933
1933
  currentPNGTuber: 0,
1934
1934
  error: null
1935
1935
  }));
1936
- const E = `qwen-${e.voiceId}-${e.lang ?? "auto"}-${e.text}`;
1937
- let A = await tn(E);
1938
- A ? console.log("[TTS] Cache hit") : (A = (await Ur.synthesizeSpeech({
1936
+ const b = `qwen-${e.voiceId}-${e.lang ?? "auto"}-${e.text}`;
1937
+ let R = await Yt(b);
1938
+ R ? console.log("[TTS] Cache hit") : (R = (await Br.synthesizeSpeech({
1939
1939
  text: e.text,
1940
1940
  voice: e.voiceId,
1941
1941
  languageType: e.lang ?? "Spanish"
1942
- })).audio, await nn(E, A)), q(A);
1943
- } catch (E) {
1944
- console.error("Error al reproducir TTS:", E), n((A) => ({
1945
- ...A,
1942
+ })).audio, await en(b, R)), z(R);
1943
+ } catch (b) {
1944
+ console.error("Error al reproducir TTS:", b), n((R) => ({
1945
+ ...R,
1946
1946
  error: {
1947
1947
  type: "network",
1948
- message: `Error en la síntesis: ${E.message}`
1948
+ message: `Error en la síntesis: ${b.message}`
1949
1949
  },
1950
1950
  isPlaying: !1
1951
1951
  })), p(), o(!1);
1952
1952
  }
1953
- }, q = (E) => {
1954
- const A = URL.createObjectURL(E);
1955
- l.current = new Audio(A);
1953
+ }, z = (b) => {
1954
+ const R = URL.createObjectURL(b);
1955
+ l.current = new Audio(R);
1956
1956
  const U = () => {
1957
- N(!1), URL.revokeObjectURL(A);
1957
+ v(!1), URL.revokeObjectURL(R);
1958
1958
  };
1959
- y.current = U, l.current.addEventListener("ended", U), l.current.addEventListener("error", O), l.current.addEventListener("pause", k), l.current.addEventListener("canplaythrough", async () => {
1959
+ g.current = U, l.current.addEventListener("ended", U), l.current.addEventListener("error", A), l.current.addEventListener("pause", N), l.current.addEventListener("canplaythrough", async () => {
1960
1960
  var V;
1961
1961
  o(!1), n((ee) => ({ ...ee, isPlaying: !0 })), m();
1962
1962
  try {
@@ -1965,15 +1965,15 @@ function Fr(e) {
1965
1965
  console.error("Error al iniciar reproducción:", ee), n((ae) => ({
1966
1966
  ...ae,
1967
1967
  error: { type: "audio", message: "Error al iniciar la reproducción" }
1968
- })), N();
1968
+ })), v();
1969
1969
  }
1970
1970
  });
1971
1971
  };
1972
- return j(() => () => {
1972
+ return D(() => () => {
1973
1973
  p(), l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null);
1974
- }, []), j(() => {
1975
- e.voiceId && (l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null), p(), n((E) => ({
1976
- ...E,
1974
+ }, []), D(() => {
1975
+ e.voiceId && (l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null), p(), n((b) => ({
1976
+ ...b,
1977
1977
  isPlaying: !1,
1978
1978
  isPaused: !1,
1979
1979
  progress: 0,
@@ -1981,41 +1981,41 @@ function Fr(e) {
1981
1981
  })));
1982
1982
  }, [e.voiceId]), {
1983
1983
  ...t,
1984
- play: D,
1984
+ play: F,
1985
1985
  pause: h,
1986
- resume: S,
1987
- stop: _,
1988
- toggleAutoAdvance: T,
1986
+ resume: T,
1987
+ stop: S,
1988
+ toggleAutoAdvance: _,
1989
1989
  isAutoAdvancing: r,
1990
1990
  isLoadingAudio: i,
1991
1991
  avatars: e.avatars
1992
1992
  };
1993
1993
  }
1994
- const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdown_1kmif_18", Mr = "_dropdownItem_1kmif_31", $r = "_active_1kmif_44", re = {
1995
- selectorWrapper: Ir,
1996
- iconButton: Dr,
1997
- dropdown: jr,
1998
- dropdownItem: Mr,
1999
- active: $r
2000
- }, qr = ({
1994
+ const Ur = "_selectorWrapper_1kmif_1", Ir = "_iconButton_1kmif_6", Fr = "_dropdown_1kmif_18", Dr = "_dropdownItem_1kmif_31", Mr = "_active_1kmif_44", re = {
1995
+ selectorWrapper: Ur,
1996
+ iconButton: Ir,
1997
+ dropdown: Fr,
1998
+ dropdownItem: Dr,
1999
+ active: Mr
2000
+ }, jr = ({
2001
2001
  languages: e,
2002
2002
  current: t,
2003
2003
  onChange: n
2004
2004
  }) => {
2005
- const [r, s] = v(!1), [i, o] = v(t || e[0].code), c = I(null);
2006
- return j(() => {
2005
+ const [r, s] = C(!1), [i, o] = C(t || e[0].code), c = I(null);
2006
+ return D(() => {
2007
2007
  const l = (u) => {
2008
2008
  c.current && !c.current.contains(u.target) && s(!1);
2009
2009
  };
2010
2010
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
2011
- }, []), /* @__PURE__ */ F("div", { className: re.selectorWrapper, ref: c, children: [
2012
- /* @__PURE__ */ w(
2011
+ }, []), /* @__PURE__ */ q("div", { className: re.selectorWrapper, ref: c, children: [
2012
+ /* @__PURE__ */ y(
2013
2013
  "button",
2014
2014
  {
2015
2015
  className: re.iconButton,
2016
2016
  title: "Cambiar idioma",
2017
2017
  onClick: () => s(!r),
2018
- children: /* @__PURE__ */ w(
2018
+ children: /* @__PURE__ */ y(
2019
2019
  "svg",
2020
2020
  {
2021
2021
  xmlns: "http://www.w3.org/2000/svg",
@@ -2023,12 +2023,12 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2023
2023
  width: "30px",
2024
2024
  height: "30px",
2025
2025
  viewBox: "0 0 24 24",
2026
- children: /* @__PURE__ */ w("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z" })
2026
+ children: /* @__PURE__ */ y("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z" })
2027
2027
  }
2028
2028
  )
2029
2029
  }
2030
2030
  ),
2031
- r && /* @__PURE__ */ w("div", { className: re.dropdown, children: e.map((l) => /* @__PURE__ */ w(
2031
+ r && /* @__PURE__ */ y("div", { className: re.dropdown, children: e.map((l) => /* @__PURE__ */ y(
2032
2032
  "button",
2033
2033
  {
2034
2034
  className: `${re.dropdownItem} ${l.code === i ? re.active : ""}`,
@@ -2040,45 +2040,45 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2040
2040
  l.code
2041
2041
  )) })
2042
2042
  ] });
2043
- }, zr = "_controlsRow_8wakc_1", Hr = "_select_8wakc_9", Vr = "_autoAdvanceButton_8wakc_15", Wr = "_section_8wakc_26", Jr = "_textarea_8wakc_36", Gr = "_input_8wakc_46", Qr = "_error_8wakc_54", Kr = "_buttonPrimary_8wakc_59", Xr = "_buttonSuccess_8wakc_69", Zr = "_infoBox_8wakc_78", Yr = "_viewer_8wakc_86", es = "_viewerTopBar_8wakc_97", ts = "_topRightControls_8wakc_110", ns = "_itemCounter_8wakc_118", rs = "_iconButton_8wakc_126", ss = "_navButton_8wakc_146", os = "_navButtonLeft_8wakc_163", is = "_navButtonRight_8wakc_167", as = "_backgroundImage_8wakc_171", cs = "_avatar_8wakc_178", ls = "_caption_8wakc_188", us = "_captionTitle_8wakc_201", ds = "_captionText_8wakc_211", fs = "_loadingOverlay_8wakc_217", ps = "_loadingSpinner_8wakc_232", hs = "_spin_8wakc_251", ms = "_loadingButton_8wakc_242", ws = "_spinner_8wakc_251", gs = "_progressBar_8wakc_264", ys = "_progressFill_8wakc_273", Es = "_playbackControls_8wakc_279", bs = "_playButton_8wakc_292", Ts = "_pauseButton_8wakc_293", R = {
2044
- controlsRow: zr,
2045
- select: Hr,
2046
- autoAdvanceButton: Vr,
2047
- section: Wr,
2048
- textarea: Jr,
2049
- input: Gr,
2050
- error: Qr,
2051
- buttonPrimary: Kr,
2052
- buttonSuccess: Xr,
2053
- infoBox: Zr,
2054
- viewer: Yr,
2055
- viewerTopBar: es,
2056
- topRightControls: ts,
2057
- itemCounter: ns,
2058
- iconButton: rs,
2059
- navButton: ss,
2060
- navButtonLeft: os,
2061
- navButtonRight: is,
2062
- backgroundImage: as,
2063
- avatar: cs,
2064
- caption: ls,
2065
- captionTitle: us,
2066
- captionText: ds,
2067
- loadingOverlay: fs,
2068
- loadingSpinner: ps,
2069
- spin: hs,
2070
- loadingButton: ms,
2071
- spinner: ws,
2072
- progressBar: gs,
2073
- progressFill: ys,
2074
- playbackControls: Es,
2075
- playButton: bs,
2076
- pauseButton: Ts
2077
- }, Ss = [
2043
+ }, $r = "_controlsRow_8wakc_1", qr = "_select_8wakc_9", zr = "_autoAdvanceButton_8wakc_15", Hr = "_section_8wakc_26", Vr = "_textarea_8wakc_36", Wr = "_input_8wakc_46", Gr = "_error_8wakc_54", Jr = "_buttonPrimary_8wakc_59", Qr = "_buttonSuccess_8wakc_69", Kr = "_infoBox_8wakc_78", Xr = "_viewer_8wakc_86", Zr = "_viewerTopBar_8wakc_97", Yr = "_topRightControls_8wakc_110", es = "_itemCounter_8wakc_118", ts = "_iconButton_8wakc_126", ns = "_navButton_8wakc_146", rs = "_navButtonLeft_8wakc_163", ss = "_navButtonRight_8wakc_167", os = "_backgroundImage_8wakc_171", is = "_avatar_8wakc_178", as = "_caption_8wakc_188", cs = "_captionTitle_8wakc_201", ls = "_captionText_8wakc_211", us = "_loadingOverlay_8wakc_217", ds = "_loadingSpinner_8wakc_232", fs = "_spin_8wakc_251", ps = "_loadingButton_8wakc_242", hs = "_spinner_8wakc_251", ms = "_progressBar_8wakc_264", ws = "_progressFill_8wakc_273", gs = "_playbackControls_8wakc_279", ys = "_playButton_8wakc_292", Es = "_pauseButton_8wakc_293", O = {
2044
+ controlsRow: $r,
2045
+ select: qr,
2046
+ autoAdvanceButton: zr,
2047
+ section: Hr,
2048
+ textarea: Vr,
2049
+ input: Wr,
2050
+ error: Gr,
2051
+ buttonPrimary: Jr,
2052
+ buttonSuccess: Qr,
2053
+ infoBox: Kr,
2054
+ viewer: Xr,
2055
+ viewerTopBar: Zr,
2056
+ topRightControls: Yr,
2057
+ itemCounter: es,
2058
+ iconButton: ts,
2059
+ navButton: ns,
2060
+ navButtonLeft: rs,
2061
+ navButtonRight: ss,
2062
+ backgroundImage: os,
2063
+ avatar: is,
2064
+ caption: as,
2065
+ captionTitle: cs,
2066
+ captionText: ls,
2067
+ loadingOverlay: us,
2068
+ loadingSpinner: ds,
2069
+ spin: fs,
2070
+ loadingButton: ps,
2071
+ spinner: hs,
2072
+ progressBar: ms,
2073
+ progressFill: ws,
2074
+ playbackControls: gs,
2075
+ playButton: ys,
2076
+ pauseButton: Es
2077
+ }, qs = [
2078
2078
  { id: "Ebona", name: "Voz Mujer" },
2079
2079
  { id: "Bodega", name: "Voz Hombre" },
2080
2080
  { id: "Peter", name: "Voz Narrador" }
2081
- ], lt = Fe.DEFAULT_IMAGE_URL, Hs = ({
2081
+ ], lt = we.DEFAULT_IMAGE_URL, zs = ({
2082
2082
  heritageItems: e = [],
2083
2083
  targetLanguage: t = "es",
2084
2084
  descriptionLength: n = "extended",
@@ -2086,14 +2086,14 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2086
2086
  voiceIds: s = [],
2087
2087
  avatars: i = []
2088
2088
  }) => {
2089
- const [o] = v(e), [c, l] = v(0), [u, d] = v(n), [f, y] = v(
2089
+ const [o] = C(e), [c, l] = C(0), [u, d] = C(n), [f, g] = C(
2090
2090
  t
2091
- ), [b, p] = v(""), [m, h] = v([]), [S, _] = v(0), [T, N] = v(r), [O, k] = v(!1), [D, q] = v(
2091
+ ), [E, p] = C(""), [m, h] = C([]), [T, S] = C(0), [_, v] = C(r), [A, N] = C(!1), [F, z] = C(
2092
2092
  s.length > 0 ? s[0] : ""
2093
- ), E = D || (s.length > 0 ? s[c % s.length] : ""), A = i[c % i.length], [U, V] = v(!1), [ee, ae] = v(!1), [Ft, ce] = v(!0), W = I(null), $e = I(T), qe = I(c), _e = I(o), J = I(null), le = I(!1);
2094
- j(() => {
2095
- $e.current = T, qe.current = c, _e.current = o;
2096
- }, [T, c, o]);
2093
+ ), b = F || (s.length > 0 ? s[c % s.length] : ""), R = i[c % i.length], [U, V] = C(!1), [ee, ae] = C(!1), [It, ce] = C(!0), W = I(null), $e = I(_), qe = I(c), Re = I(o), G = I(null), le = I(!1);
2094
+ D(() => {
2095
+ $e.current = _, qe.current = c, Re.current = o;
2096
+ }, [_, c, o]);
2097
2097
  const X = o[c] || {
2098
2098
  id: "default",
2099
2099
  name: "Patrimonio Cultural",
@@ -2107,155 +2107,109 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2107
2107
  }, {
2108
2108
  isPlaying: H,
2109
2109
  isPaused: ze,
2110
- isLoadingAudio: It,
2110
+ isLoadingAudio: Ft,
2111
2111
  progress: He,
2112
2112
  play: Dt,
2113
- pause: jt,
2114
- resume: Mt,
2113
+ pause: Mt,
2114
+ resume: jt,
2115
2115
  stop: $t
2116
- } = Fr({
2117
- text: b,
2116
+ } = Pr({
2117
+ text: E,
2118
2118
  lang: f,
2119
2119
  onStop: () => {
2120
- ce(!0), $e.current && _e.current.length > 1 && !le.current && setTimeout(() => {
2121
- k(!0);
2122
- const x = (qe.current + 1) % _e.current.length;
2123
- l(x);
2120
+ ce(!0), $e.current && Re.current.length > 1 && !le.current && setTimeout(() => {
2121
+ N(!0);
2122
+ const k = (qe.current + 1) % Re.current.length;
2123
+ l(k);
2124
2124
  }, 100), le.current = !1;
2125
2125
  },
2126
- voiceId: E,
2127
- avatars: [A]
2126
+ voiceId: b,
2127
+ avatars: [R]
2128
2128
  });
2129
- j(() => {
2130
- if (O && b && !b.includes("JSON válido")) {
2131
- const x = setTimeout(() => {
2132
- H || Ve(), k(!1);
2129
+ D(() => {
2130
+ if (A && E && !E.includes("JSON válido")) {
2131
+ const k = setTimeout(() => {
2132
+ H || Ve(), N(!1);
2133
2133
  }, 500);
2134
- return () => clearTimeout(x);
2134
+ return () => clearTimeout(k);
2135
2135
  }
2136
- }, [O, b, H]), j(() => {
2136
+ }, [A, E, H]), D(() => {
2137
2137
  (async () => {
2138
- const z = X.description.local[u];
2139
- if (z)
2138
+ const $ = X.description.local[u];
2139
+ if ($)
2140
2140
  try {
2141
- const te = await Qe(X.name, f), Gt = await Qe(z, f);
2142
- p(`${te}. ${Gt}`);
2141
+ const te = await Qe(X.name, f), Wt = await Qe($, f);
2142
+ p(`${te}. ${Wt}`);
2143
2143
  } catch (te) {
2144
- console.error("Error en traducción:", te), p(`${X.name}. ${z}`);
2144
+ console.error("Error en traducción:", te), p(`${X.name}. ${$}`);
2145
2145
  }
2146
2146
  })();
2147
2147
  }, [X, u, f]);
2148
- const Re = () => {
2149
- ce(!0), J.current && clearTimeout(J.current), J.current = setTimeout(() => {
2148
+ const Ae = () => {
2149
+ ce(!0), G.current && clearTimeout(G.current), G.current = setTimeout(() => {
2150
2150
  ce(!1);
2151
2151
  }, 4e3);
2152
2152
  }, Ve = () => {
2153
- if (!b.trim() || b.includes("JSON válido")) {
2153
+ if (!E.trim() || E.includes("JSON válido")) {
2154
2154
  alert("No hay contenido para reproducir");
2155
2155
  return;
2156
2156
  }
2157
- Dt(), Re();
2157
+ Dt(), Ae();
2158
2158
  }, qt = () => {
2159
- jt();
2159
+ Mt();
2160
2160
  }, zt = () => {
2161
- Mt(), Re();
2161
+ jt(), Ae();
2162
2162
  }, We = () => {
2163
- $t(), k(!1), W.current && clearTimeout(W.current), J.current && clearTimeout(J.current), ce(!0);
2163
+ $t(), N(!1), W.current && clearTimeout(W.current), G.current && clearTimeout(G.current), ce(!0);
2164
2164
  }, Ht = () => {
2165
- le.current = !0, We(), c > 0 && l((x) => x - 1);
2165
+ le.current = !0, We(), c > 0 && l((k) => k - 1);
2166
2166
  }, Vt = () => {
2167
- le.current = !0, We(), c < o.length - 1 && l((x) => x + 1);
2167
+ le.current = !0, We(), c < o.length - 1 && l((k) => k + 1);
2168
2168
  };
2169
- j(() => () => {
2170
- W.current && clearTimeout(W.current), J.current && clearTimeout(J.current);
2171
- }, []), j(() => {
2172
- if (b) {
2173
- const x = b.split(new RegExp("(?<=[.!?])\\s+", "g")).map((z) => z.trim()).filter((z) => z.length > 0);
2174
- h(x), _(0);
2169
+ D(() => () => {
2170
+ W.current && clearTimeout(W.current), G.current && clearTimeout(G.current);
2171
+ }, []), D(() => {
2172
+ if (E) {
2173
+ const k = E.split(new RegExp("(?<=[.!?])\\s+", "g")).map(($) => $.trim()).filter(($) => $.length > 0);
2174
+ h(k), S(0);
2175
2175
  }
2176
- }, [b]), j(() => {
2176
+ }, [E]), D(() => {
2177
2177
  if (!H || m.length === 0) return;
2178
2178
  W.current && clearTimeout(W.current);
2179
- const z = 1500 + m[S].length * 50;
2179
+ const $ = 1500 + m[T].length * 50;
2180
2180
  W.current = setTimeout(() => {
2181
- _((te) => (te + 1) % m.length);
2182
- }, z);
2183
- }, [H, m, S]);
2184
- const [Je, Wt] = v(!1), Jt = (x) => {
2185
- q(x), Wt(!0);
2186
- };
2187
- return j(() => {
2188
- !Je && s.length > 0 && q(s[c % s.length]);
2189
- }, [c, s, Je]), /* @__PURE__ */ F("div", { children: [
2190
- /* @__PURE__ */ F("div", { className: R.controlsRow, children: [
2191
- /* @__PURE__ */ F(
2192
- "select",
2193
- {
2194
- value: u,
2195
- onChange: (x) => d(x.target.value),
2196
- className: R.select,
2197
- children: [
2198
- /* @__PURE__ */ w("option", { value: "short", children: "Descripción Corta" }),
2199
- /* @__PURE__ */ w("option", { value: "extended", children: "Descripción Extendida" })
2200
- ]
2201
- }
2202
- ),
2203
- /* @__PURE__ */ F(
2204
- "select",
2205
- {
2206
- value: f,
2207
- onChange: (x) => y(x.target.value),
2208
- className: R.select,
2209
- children: [
2210
- /* @__PURE__ */ w("option", { value: "en", children: "Inglés" }),
2211
- /* @__PURE__ */ w("option", { value: "es", children: "Español" }),
2212
- /* @__PURE__ */ w("option", { value: "fr", children: "Francés" })
2213
- ]
2214
- }
2215
- ),
2216
- /* @__PURE__ */ w(
2217
- "select",
2218
- {
2219
- value: E,
2220
- onChange: (x) => Jt(x.target.value),
2221
- className: R.select,
2222
- children: Ss.map((x) => /* @__PURE__ */ w("option", { value: x.id, children: x.name }, x.id))
2223
- }
2224
- ),
2225
- /* @__PURE__ */ w(
2226
- "button",
2227
- {
2228
- onClick: () => N(!T),
2229
- className: R.autoAdvanceButton,
2230
- style: { backgroundColor: T ? "#34a853" : "#ea4335" },
2231
- children: T ? "⏩ AUTO ON" : "⏩ AUTO OFF"
2232
- }
2233
- )
2234
- ] }),
2235
- /* @__PURE__ */ F("div", { className: R.viewer, onClick: Re, children: [
2236
- /* @__PURE__ */ F("div", { className: R.viewerTopBar, children: [
2237
- /* @__PURE__ */ w("div", { className: R.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
2238
- /* @__PURE__ */ F("div", { className: R.topRightControls, children: [
2239
- /* @__PURE__ */ w(
2181
+ S((te) => (te + 1) % m.length);
2182
+ }, $);
2183
+ }, [H, m, T]);
2184
+ const [Ge, bs] = C(!1);
2185
+ return D(() => {
2186
+ !Ge && s.length > 0 && z(s[c % s.length]);
2187
+ }, [c, s, Ge]), /* @__PURE__ */ q("div", { children: [
2188
+ we.DEBUG_MODE,
2189
+ /* @__PURE__ */ q("div", { className: O.viewer, onClick: Ae, children: [
2190
+ /* @__PURE__ */ q("div", { className: O.viewerTopBar, children: [
2191
+ /* @__PURE__ */ y("div", { className: O.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
2192
+ /* @__PURE__ */ q("div", { className: O.topRightControls, children: [
2193
+ /* @__PURE__ */ y(
2240
2194
  "button",
2241
2195
  {
2242
- onClick: () => N(!T),
2243
- className: R.iconButton,
2196
+ onClick: () => v(!_),
2197
+ className: O.iconButton,
2244
2198
  title: "Autoplay",
2245
2199
  style: {
2246
- backgroundColor: T ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)"
2200
+ backgroundColor: _ ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)"
2247
2201
  },
2248
- children: /* @__PURE__ */ w(
2202
+ children: /* @__PURE__ */ y(
2249
2203
  "svg",
2250
2204
  {
2251
2205
  width: "20px",
2252
2206
  height: "20px",
2253
2207
  viewBox: "0 0 16 16",
2254
2208
  xmlns: "http://www.w3.org/2000/svg",
2255
- children: /* @__PURE__ */ w(
2209
+ children: /* @__PURE__ */ y(
2256
2210
  "path",
2257
2211
  {
2258
- style: { fill: T ? "black" : "white" },
2212
+ style: { fill: _ ? "black" : "white" },
2259
2213
  d: "M5.23331,0.493645 C6.8801,-0.113331 8.6808,-0.161915 10.3579,0.355379 C11.4019,0.6773972 12.361984,1.20757325 13.1838415,1.90671757 L13.4526,2.14597 L14.2929,1.30564 C14.8955087,0.703065739 15.9071843,1.0850774 15.994017,1.89911843 L16,2.01275 L16,6.00002 L12.0127,6.00002 C11.1605348,6.00002 10.7153321,5.01450817 11.2294893,4.37749065 L11.3056,4.29291 L12.0372,3.56137 C11.389,2.97184 10.6156,2.52782 9.76845,2.26653 C8.5106,1.87856 7.16008,1.915 5.92498,2.37023 C4.68989,2.82547 3.63877,3.67423 2.93361,4.78573 C2.22844,5.89723 1.90836,7.20978 2.02268,8.52112 C2.13701,9.83246 2.6794,11.0698 3.56627,12.0425 C4.45315,13.0152 5.63528,13.6693 6.93052,13.9039 C8.22576,14.1385 9.56221,13.9407 10.7339,13.3409 C11.9057,12.7412 12.8476,11.7727 13.4147,10.5848 C13.6526,10.0864 14.2495,9.8752 14.748,10.1131 C15.2464,10.351 15.4575,10.948 15.2196,11.4464 C14.4635,13.0302 13.2076,14.3215 11.6453,15.1213 C10.0829,15.921 8.30101,16.1847 6.57402,15.8719 C4.84704,15.559 3.27086,14.687 2.08836,13.39 C0.905861,12.0931 0.182675,10.4433 0.0302394,8.69483 C-0.122195,6.94637 0.304581,5.1963 1.2448,3.7143 C2.18503,2.2323 3.58652,1.10062 5.23331,0.493645 Z M6,5.46077 C6,5.09472714 6.37499031,4.86235811 6.69509872,5.0000726 L6.7678,5.03853 L10.7714,7.57776 C11.0528545,7.75626909 11.0784413,8.14585256 10.8481603,8.36273881 L10.7714,8.42224 L6.7678,10.9615 C6.45867857,11.1575214 6.06160816,10.965274 6.00646097,10.6211914 L6,10.5392 L6,5.46077 Z"
2260
2214
  }
2261
2215
  )
@@ -2263,8 +2217,8 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2263
2217
  )
2264
2218
  }
2265
2219
  ),
2266
- /* @__PURE__ */ w(
2267
- qr,
2220
+ /* @__PURE__ */ y(
2221
+ jr,
2268
2222
  {
2269
2223
  languages: [
2270
2224
  { code: "es", label: "Español" },
@@ -2272,21 +2226,21 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2272
2226
  { code: "fr", label: "Français" }
2273
2227
  ],
2274
2228
  current: "es",
2275
- onChange: (x) => y(x)
2229
+ onChange: (k) => g(k)
2276
2230
  }
2277
2231
  )
2278
2232
  ] })
2279
2233
  ] }),
2280
- /* @__PURE__ */ w(
2234
+ /* @__PURE__ */ y(
2281
2235
  "button",
2282
2236
  {
2283
2237
  onClick: Ht,
2284
2238
  disabled: o.length === 0,
2285
- className: `${R.navButton} ${R.navButtonLeft}`,
2239
+ className: `${O.navButton} ${O.navButtonLeft}`,
2286
2240
  title: "Anterior",
2287
2241
  onMouseOver: () => V(!0),
2288
2242
  onMouseOut: () => V(!1),
2289
- children: /* @__PURE__ */ w(
2243
+ children: /* @__PURE__ */ y(
2290
2244
  "svg",
2291
2245
  {
2292
2246
  xmlns: "http://www.w3.org/2000/svg",
@@ -2304,21 +2258,21 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2304
2258
  transition: "transform 0.2s ease-in-out",
2305
2259
  transform: U ? "scale(1.5)" : "scale(1)"
2306
2260
  },
2307
- children: /* @__PURE__ */ w("path", { d: "M15 18l-6-6 6-6" })
2261
+ children: /* @__PURE__ */ y("path", { d: "M15 18l-6-6 6-6" })
2308
2262
  }
2309
2263
  )
2310
2264
  }
2311
2265
  ),
2312
- /* @__PURE__ */ w(
2266
+ /* @__PURE__ */ y(
2313
2267
  "button",
2314
2268
  {
2315
2269
  onClick: Vt,
2316
2270
  disabled: o.length === 0,
2317
- className: `${R.navButton} ${R.navButtonRight}`,
2271
+ className: `${O.navButton} ${O.navButtonRight}`,
2318
2272
  title: "Siguiente",
2319
2273
  onMouseOver: () => ae(!0),
2320
2274
  onMouseOut: () => ae(!1),
2321
- children: /* @__PURE__ */ w(
2275
+ children: /* @__PURE__ */ y(
2322
2276
  "svg",
2323
2277
  {
2324
2278
  xmlns: "http://www.w3.org/2000/svg",
@@ -2336,49 +2290,49 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2336
2290
  transition: "transform 0.2s ease-in-out",
2337
2291
  transform: ee ? "scale(1.5)" : "scale(1)"
2338
2292
  },
2339
- children: /* @__PURE__ */ w("path", { d: "M9 6l6 6-6 6" })
2293
+ children: /* @__PURE__ */ y("path", { d: "M9 6l6 6-6 6" })
2340
2294
  }
2341
2295
  )
2342
2296
  }
2343
2297
  ),
2344
- /* @__PURE__ */ w(
2298
+ /* @__PURE__ */ y(
2345
2299
  "img",
2346
2300
  {
2347
2301
  src: X.imageUrl || lt,
2348
2302
  alt: "Background",
2349
- className: R.backgroundImage,
2303
+ className: O.backgroundImage,
2350
2304
  style: { opacity: H ? 1 : 0.7 },
2351
- onError: (x) => x.currentTarget.src = lt
2305
+ onError: (k) => k.currentTarget.src = lt
2352
2306
  }
2353
2307
  ),
2354
- H && /* @__PURE__ */ w(Ge, { children: /* @__PURE__ */ w(
2308
+ H && /* @__PURE__ */ y(Je, { children: /* @__PURE__ */ y(
2355
2309
  "img",
2356
2310
  {
2357
- src: A,
2311
+ src: R,
2358
2312
  alt: "Avatar",
2359
- className: R.avatar,
2313
+ className: O.avatar,
2360
2314
  style: { transform: `scale(${He % 10 < 5 ? 4 : 4.05})` }
2361
2315
  }
2362
2316
  ) }),
2363
- /* @__PURE__ */ F("div", { className: R.caption, children: [
2364
- /* @__PURE__ */ w("h4", { className: R.captionTitle, children: X.name }),
2365
- H && /* @__PURE__ */ w(Ge, { children: /* @__PURE__ */ w("p", { className: R.captionText, children: m.length > 0 && m[S] }) })
2317
+ /* @__PURE__ */ q("div", { className: O.caption, children: [
2318
+ /* @__PURE__ */ y("h4", { className: O.captionTitle, children: X.name }),
2319
+ H && /* @__PURE__ */ y(Je, { children: /* @__PURE__ */ y("p", { className: O.captionText, children: m.length > 0 && m[T] }) })
2366
2320
  ] }),
2367
- O && /* @__PURE__ */ F("div", { className: R.loadingOverlay, children: [
2368
- /* @__PURE__ */ w("div", { className: R.loadingSpinner }),
2369
- /* @__PURE__ */ w("p", { children: "Cargando siguiente patrimonio..." })
2321
+ A && /* @__PURE__ */ q("div", { className: O.loadingOverlay, children: [
2322
+ /* @__PURE__ */ y("div", { className: O.loadingSpinner }),
2323
+ /* @__PURE__ */ y("p", { children: "Cargando siguiente patrimonio..." })
2370
2324
  ] }),
2371
- Ft && /* @__PURE__ */ w("div", { className: R.playbackControls, children: It ? (
2325
+ It && /* @__PURE__ */ y("div", { className: O.playbackControls, children: Ft ? (
2372
2326
  // Loading spinner
2373
- /* @__PURE__ */ w("button", { disabled: !0, className: R.loadingButton, children: /* @__PURE__ */ F(
2327
+ /* @__PURE__ */ y("button", { disabled: !0, className: O.loadingButton, children: /* @__PURE__ */ q(
2374
2328
  "svg",
2375
2329
  {
2376
- className: R.spinner,
2330
+ className: O.spinner,
2377
2331
  xmlns: "http://www.w3.org/2000/svg",
2378
2332
  fill: "none",
2379
2333
  viewBox: "0 0 24 24",
2380
2334
  children: [
2381
- /* @__PURE__ */ w(
2335
+ /* @__PURE__ */ y(
2382
2336
  "circle",
2383
2337
  {
2384
2338
  className: "opacity-25",
@@ -2389,7 +2343,7 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2389
2343
  strokeWidth: "4"
2390
2344
  }
2391
2345
  ),
2392
- /* @__PURE__ */ w(
2346
+ /* @__PURE__ */ y(
2393
2347
  "path",
2394
2348
  {
2395
2349
  className: "opacity-75",
@@ -2402,13 +2356,13 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2402
2356
  ) })
2403
2357
  ) : !H && !ze ? (
2404
2358
  // Play (desde cero)
2405
- /* @__PURE__ */ w(
2359
+ /* @__PURE__ */ y(
2406
2360
  "button",
2407
2361
  {
2408
2362
  onClick: Ve,
2409
- disabled: o.length === 0 || O,
2410
- className: R.playButton,
2411
- children: /* @__PURE__ */ w(
2363
+ disabled: o.length === 0 || A,
2364
+ className: O.playButton,
2365
+ children: /* @__PURE__ */ y(
2412
2366
  "svg",
2413
2367
  {
2414
2368
  xmlns: "http://www.w3.org/2000/svg",
@@ -2420,14 +2374,14 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2420
2374
  strokeWidth: "2",
2421
2375
  strokeLinecap: "round",
2422
2376
  strokeLinejoin: "round",
2423
- children: /* @__PURE__ */ w("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2377
+ children: /* @__PURE__ */ y("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2424
2378
  }
2425
2379
  )
2426
2380
  }
2427
2381
  )
2428
2382
  ) : ze ? (
2429
2383
  // Resume
2430
- /* @__PURE__ */ w("button", { onClick: zt, className: R.playButton, children: /* @__PURE__ */ w(
2384
+ /* @__PURE__ */ y("button", { onClick: zt, className: O.playButton, children: /* @__PURE__ */ y(
2431
2385
  "svg",
2432
2386
  {
2433
2387
  xmlns: "http://www.w3.org/2000/svg",
@@ -2439,12 +2393,12 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2439
2393
  strokeWidth: "2",
2440
2394
  strokeLinecap: "round",
2441
2395
  strokeLinejoin: "round",
2442
- children: /* @__PURE__ */ w("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2396
+ children: /* @__PURE__ */ y("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2443
2397
  }
2444
2398
  ) })
2445
2399
  ) : (
2446
2400
  // Pause
2447
- /* @__PURE__ */ w("button", { onClick: qt, className: R.pauseButton, children: /* @__PURE__ */ F(
2401
+ /* @__PURE__ */ y("button", { onClick: qt, className: O.pauseButton, children: /* @__PURE__ */ q(
2448
2402
  "svg",
2449
2403
  {
2450
2404
  xmlns: "http://www.w3.org/2000/svg",
@@ -2457,16 +2411,16 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2457
2411
  strokeLinecap: "round",
2458
2412
  strokeLinejoin: "round",
2459
2413
  children: [
2460
- /* @__PURE__ */ w("line", { x1: "10", y1: "8", x2: "10", y2: "16" }),
2461
- /* @__PURE__ */ w("line", { x1: "14", y1: "8", x2: "14", y2: "16" })
2414
+ /* @__PURE__ */ y("line", { x1: "10", y1: "8", x2: "10", y2: "16" }),
2415
+ /* @__PURE__ */ y("line", { x1: "14", y1: "8", x2: "14", y2: "16" })
2462
2416
  ]
2463
2417
  }
2464
2418
  ) })
2465
2419
  ) }),
2466
- /* @__PURE__ */ w("div", { className: R.progressBar, children: /* @__PURE__ */ w(
2420
+ /* @__PURE__ */ y("div", { className: O.progressBar, children: /* @__PURE__ */ y(
2467
2421
  "div",
2468
2422
  {
2469
- className: R.progressFill,
2423
+ className: O.progressFill,
2470
2424
  style: { width: `${He}%` }
2471
2425
  }
2472
2426
  ) })
@@ -2474,10 +2428,10 @@ const Ir = "_selectorWrapper_1kmif_1", Dr = "_iconButton_1kmif_6", jr = "_dropdo
2474
2428
  ] });
2475
2429
  };
2476
2430
  export {
2477
- qr as LanguageSelector,
2431
+ jr as LanguageSelector,
2478
2432
  re as LanguageSelectorStyles,
2479
- Hs as StoryVisualizer,
2480
- R as StoryVisualizerStyles,
2481
- Ss as voices
2433
+ zs as StoryVisualizer,
2434
+ O as StoryVisualizerStyles,
2435
+ qs as voices
2482
2436
  };
2483
2437
  //# sourceMappingURL=ocity-heritage-visualizer.es.js.map