@ysolve/ocity-heritage-visualizer 1.0.3 → 1.0.5

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,25 +1,25 @@
1
- import { jsxs as F, jsx as g, Fragment as We } from "react/jsx-runtime";
2
- import { useState as v, useRef as D, useEffect as M } from "react";
3
- const Jt = { 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_ELEVENLABS_API_BASE: "https://api.elevenlabs.io/v1", VITE_ELEVENLABS_API_KEY: "sk_fcf711f6cba8630638aef7a7e1802559a1e9d029461b55cf", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/" };
1
+ import { jsxs as W, jsx as w, Fragment as We } from "react/jsx-runtime";
2
+ import { useState as C, useRef as F, useEffect as j } from "react";
3
+ const zt = { 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_ELEVENLABS_API_BASE: "https://api.elevenlabs.io/v1", VITE_ELEVENLABS_API_KEY: "sk_fcf711f6cba8630638aef7a7e1802559a1e9d029461b55cf", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/" };
4
4
  function re(e, t = !0) {
5
- const n = Jt[e];
5
+ const n = zt[e];
6
6
  if (!n && t)
7
7
  throw new Error(`❌ Missing required env variable: ${e}`);
8
8
  return n ?? "";
9
9
  }
10
- const we = {
10
+ const ie = {
11
11
  NODE_ENV: "production",
12
12
  ELEVENLABS_API_BASE: re("VITE_ELEVENLABS_API_BASE"),
13
13
  ELEVENLABS_API_KEY: re("VITE_ELEVENLABS_API_KEY"),
14
- DEBUG_MODE: !0,
14
+ DEBUG_MODE: !1,
15
15
  GOOGLE_TRANSLATE_BASE: re("VITE_GOOGLE_TRANSLATE_BASE"),
16
16
  IMAGE_BASE_URL: re("VITE_IMAGE_BASE_URL"),
17
17
  DEFAULT_IMAGE_URL: re("VITE_DEFAULT_IMAGE_URL")
18
18
  };
19
- async function Gt(e, t) {
19
+ async function Vt(e, t) {
20
20
  if (!e.trim()) return e;
21
21
  try {
22
- const n = `${we.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
22
+ const n = `${ie.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
23
23
  if (!r.ok)
24
24
  throw new Error(`Error en la traducción: ${r.status}`);
25
25
  const s = await r.json();
@@ -33,29 +33,29 @@ function lt(e, t) {
33
33
  return e.apply(t, arguments);
34
34
  };
35
35
  }
36
- const { toString: Wt } = Object.prototype, { getPrototypeOf: Fe } = Object, { iterator: ye, toStringTag: ut } = Symbol, Ee = /* @__PURE__ */ ((e) => (t) => {
37
- const n = Wt.call(t);
36
+ const { toString: Jt } = Object.prototype, { getPrototypeOf: Fe } = Object, { iterator: we, toStringTag: ut } = Symbol, ye = /* @__PURE__ */ ((e) => (t) => {
37
+ const n = Jt.call(t);
38
38
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
39
- })(/* @__PURE__ */ Object.create(null)), q = (e) => (e = e.toLowerCase(), (t) => Ee(t) === e), be = (e) => (t) => typeof t === e, { isArray: ee } = Array, ie = be("undefined");
40
- function Kt(e) {
41
- return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
39
+ })(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => ye(t) === e), Ee = (e) => (t) => typeof t === e, { isArray: ee } = Array, ae = Ee("undefined");
40
+ function Gt(e) {
41
+ return e !== null && !ae(e) && e.constructor !== null && !ae(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
42
42
  }
43
- const dt = q("ArrayBuffer");
44
- function Xt(e) {
43
+ const dt = M("ArrayBuffer");
44
+ function Wt(e) {
45
45
  let t;
46
46
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dt(e.buffer), t;
47
47
  }
48
- const Zt = be("string"), P = be("function"), ft = be("number"), _e = (e) => e !== null && typeof e == "object", Yt = (e) => e === !0 || e === !1, fe = (e) => {
49
- if (Ee(e) !== "object")
48
+ const Kt = Ee("string"), P = Ee("function"), ft = Ee("number"), be = (e) => e !== null && typeof e == "object", Xt = (e) => e === !0 || e === !1, fe = (e) => {
49
+ if (ye(e) !== "object")
50
50
  return !1;
51
51
  const t = Fe(e);
52
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(ye in e);
53
- }, Qt = q("Date"), en = q("File"), tn = q("Blob"), nn = q("FileList"), rn = (e) => _e(e) && P(e.pipe), sn = (e) => {
52
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(we in e);
53
+ }, Zt = M("Date"), Yt = M("File"), Qt = M("Blob"), en = M("FileList"), tn = (e) => be(e) && P(e.pipe), nn = (e) => {
54
54
  let t;
55
- return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = Ee(e)) === "formdata" || // detect form-data instance
55
+ return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = ye(e)) === "formdata" || // detect form-data instance
56
56
  t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
57
- }, on = q("URLSearchParams"), [an, cn, ln, un] = ["ReadableStream", "Request", "Response", "Headers"].map(q), dn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
- function ae(e, t, { allOwnKeys: n = !1 } = {}) {
57
+ }, rn = M("URLSearchParams"), [sn, on, an, cn] = ["ReadableStream", "Request", "Response", "Headers"].map(M), ln = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
+ function ce(e, t, { allOwnKeys: n = !1 } = {}) {
59
59
  if (e === null || typeof e > "u")
60
60
  return;
61
61
  let r, s;
@@ -78,23 +78,23 @@ function pt(e, t) {
78
78
  return s;
79
79
  return null;
80
80
  }
81
- const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !ie(e) && e !== X;
82
- function Ne() {
81
+ const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !ae(e) && e !== X;
82
+ function Be() {
83
83
  const { caseless: e } = ht(this) && this || {}, t = {}, n = (r, s) => {
84
84
  const i = e && pt(t, s) || s;
85
- fe(t[i]) && fe(r) ? t[i] = Ne(t[i], r) : fe(r) ? t[i] = Ne({}, r) : ee(r) ? t[i] = r.slice() : t[i] = r;
85
+ fe(t[i]) && fe(r) ? t[i] = Be(t[i], r) : fe(r) ? t[i] = Be({}, r) : ee(r) ? t[i] = r.slice() : t[i] = r;
86
86
  };
87
87
  for (let r = 0, s = arguments.length; r < s; r++)
88
- arguments[r] && ae(arguments[r], n);
88
+ arguments[r] && ce(arguments[r], n);
89
89
  return t;
90
90
  }
91
- const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
91
+ const un = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (s, i) => {
92
92
  n && P(s) ? e[i] = lt(s, n) : e[i] = s;
93
- }, { allOwnKeys: r }), e), pn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hn = (e, t, n, r) => {
93
+ }, { allOwnKeys: r }), e), dn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), fn = (e, t, n, r) => {
94
94
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
95
95
  value: t.prototype
96
96
  }), n && Object.assign(e.prototype, n);
97
- }, mn = (e, t, n, r) => {
97
+ }, pn = (e, t, n, r) => {
98
98
  let s, i, o;
99
99
  const c = {};
100
100
  if (t = t || {}, e == null) return t;
@@ -104,11 +104,11 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
104
104
  e = n !== !1 && Fe(e);
105
105
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
106
106
  return t;
107
- }, gn = (e, t, n) => {
107
+ }, hn = (e, t, n) => {
108
108
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
109
109
  const r = e.indexOf(t, n);
110
110
  return r !== -1 && r === n;
111
- }, wn = (e) => {
111
+ }, mn = (e) => {
112
112
  if (!e) return null;
113
113
  if (ee(e)) return e;
114
114
  let t = e.length;
@@ -117,31 +117,31 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
117
117
  for (; t-- > 0; )
118
118
  n[t] = e[t];
119
119
  return n;
120
- }, yn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fe(Uint8Array)), En = (e, t) => {
121
- const r = (e && e[ye]).call(e);
120
+ }, gn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fe(Uint8Array)), wn = (e, t) => {
121
+ const r = (e && e[we]).call(e);
122
122
  let s;
123
123
  for (; (s = r.next()) && !s.done; ) {
124
124
  const i = s.value;
125
125
  t.call(e, i[0], i[1]);
126
126
  }
127
- }, bn = (e, t) => {
127
+ }, yn = (e, t) => {
128
128
  let n;
129
129
  const r = [];
130
130
  for (; (n = e.exec(t)) !== null; )
131
131
  r.push(n);
132
132
  return r;
133
- }, _n = q("HTMLFormElement"), Sn = (e) => e.toLowerCase().replace(
133
+ }, En = M("HTMLFormElement"), bn = (e) => e.toLowerCase().replace(
134
134
  /[-_\s]([a-z\d])(\w*)/g,
135
135
  function(n, r, s) {
136
136
  return r.toUpperCase() + s;
137
137
  }
138
- ), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Rn = q("RegExp"), mt = (e, t) => {
138
+ ), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _n = M("RegExp"), mt = (e, t) => {
139
139
  const n = Object.getOwnPropertyDescriptors(e), r = {};
140
- ae(n, (s, i) => {
140
+ ce(n, (s, i) => {
141
141
  let o;
142
142
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
143
143
  }), Object.defineProperties(e, r);
144
- }, Tn = (e) => {
144
+ }, Sn = (e) => {
145
145
  mt(e, (t, n) => {
146
146
  if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
147
147
  return !1;
@@ -156,105 +156,105 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
156
156
  });
157
157
  }
158
158
  });
159
- }, An = (e, t) => {
159
+ }, Rn = (e, t) => {
160
160
  const n = {}, r = (s) => {
161
161
  s.forEach((i) => {
162
162
  n[i] = !0;
163
163
  });
164
164
  };
165
165
  return ee(e) ? r(e) : r(String(e).split(t)), n;
166
- }, On = () => {
167
- }, xn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
168
- function Cn(e) {
169
- return !!(e && P(e.append) && e[ut] === "FormData" && e[ye]);
166
+ }, Tn = () => {
167
+ }, An = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
168
+ function On(e) {
169
+ return !!(e && P(e.append) && e[ut] === "FormData" && e[we]);
170
170
  }
171
- const Ln = (e) => {
171
+ const xn = (e) => {
172
172
  const t = new Array(10), n = (r, s) => {
173
- if (_e(r)) {
173
+ if (be(r)) {
174
174
  if (t.indexOf(r) >= 0)
175
175
  return;
176
176
  if (!("toJSON" in r)) {
177
177
  t[s] = r;
178
178
  const i = ee(r) ? [] : {};
179
- return ae(r, (o, c) => {
179
+ return ce(r, (o, c) => {
180
180
  const l = n(o, s + 1);
181
- !ie(l) && (i[c] = l);
181
+ !ae(l) && (i[c] = l);
182
182
  }), t[s] = void 0, i;
183
183
  }
184
184
  }
185
185
  return r;
186
186
  };
187
187
  return n(e, 0);
188
- }, vn = q("AsyncFunction"), Nn = (e) => e && (_e(e) || P(e)) && P(e.then) && P(e.catch), gt = ((e, t) => e ? setImmediate : t ? ((n, r) => (X.addEventListener("message", ({ source: s, data: i }) => {
188
+ }, Ln = M("AsyncFunction"), Cn = (e) => e && (be(e) || P(e)) && P(e.then) && P(e.catch), gt = ((e, t) => e ? setImmediate : t ? ((n, r) => (X.addEventListener("message", ({ source: s, data: i }) => {
189
189
  s === X && i === n && r.length && r.shift()();
190
190
  }, !1), (s) => {
191
191
  r.push(s), X.postMessage(n, "*");
192
192
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
193
193
  typeof setImmediate == "function",
194
194
  P(X.postMessage)
195
- ), kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || gt, Bn = (e) => e != null && P(e[ye]), a = {
195
+ ), kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || gt, Bn = (e) => e != null && P(e[we]), a = {
196
196
  isArray: ee,
197
197
  isArrayBuffer: dt,
198
- isBuffer: Kt,
199
- isFormData: sn,
200
- isArrayBufferView: Xt,
201
- isString: Zt,
198
+ isBuffer: Gt,
199
+ isFormData: nn,
200
+ isArrayBufferView: Wt,
201
+ isString: Kt,
202
202
  isNumber: ft,
203
- isBoolean: Yt,
204
- isObject: _e,
203
+ isBoolean: Xt,
204
+ isObject: be,
205
205
  isPlainObject: fe,
206
- isReadableStream: an,
207
- isRequest: cn,
208
- isResponse: ln,
209
- isHeaders: un,
210
- isUndefined: ie,
211
- isDate: Qt,
212
- isFile: en,
213
- isBlob: tn,
214
- isRegExp: Rn,
206
+ isReadableStream: sn,
207
+ isRequest: on,
208
+ isResponse: an,
209
+ isHeaders: cn,
210
+ isUndefined: ae,
211
+ isDate: Zt,
212
+ isFile: Yt,
213
+ isBlob: Qt,
214
+ isRegExp: _n,
215
215
  isFunction: P,
216
- isStream: rn,
217
- isURLSearchParams: on,
218
- isTypedArray: yn,
219
- isFileList: nn,
220
- forEach: ae,
221
- merge: Ne,
222
- extend: fn,
223
- trim: dn,
224
- stripBOM: pn,
225
- inherits: hn,
226
- toFlatObject: mn,
227
- kindOf: Ee,
228
- kindOfTest: q,
229
- endsWith: gn,
230
- toArray: wn,
231
- forEachEntry: En,
232
- matchAll: bn,
233
- isHTMLForm: _n,
216
+ isStream: tn,
217
+ isURLSearchParams: rn,
218
+ isTypedArray: gn,
219
+ isFileList: en,
220
+ forEach: ce,
221
+ merge: Be,
222
+ extend: un,
223
+ trim: ln,
224
+ stripBOM: dn,
225
+ inherits: fn,
226
+ toFlatObject: pn,
227
+ kindOf: ye,
228
+ kindOfTest: M,
229
+ endsWith: hn,
230
+ toArray: mn,
231
+ forEachEntry: wn,
232
+ matchAll: yn,
233
+ isHTMLForm: En,
234
234
  hasOwnProperty: Ke,
235
235
  hasOwnProp: Ke,
236
236
  // an alias to avoid ESLint no-prototype-builtins detection
237
237
  reduceDescriptors: mt,
238
- freezeMethods: Tn,
239
- toObjectSet: An,
240
- toCamelCase: Sn,
241
- noop: On,
242
- toFiniteNumber: xn,
238
+ freezeMethods: Sn,
239
+ toObjectSet: Rn,
240
+ toCamelCase: bn,
241
+ noop: Tn,
242
+ toFiniteNumber: An,
243
243
  findKey: pt,
244
244
  global: X,
245
245
  isContextDefined: ht,
246
- isSpecCompliantForm: Cn,
247
- toJSONObject: Ln,
248
- isAsyncFn: vn,
249
- isThenable: Nn,
246
+ isSpecCompliantForm: On,
247
+ toJSONObject: xn,
248
+ isAsyncFn: Ln,
249
+ isThenable: Cn,
250
250
  setImmediate: gt,
251
251
  asap: kn,
252
252
  isIterable: Bn
253
253
  };
254
- function w(e, t, n, r, s) {
254
+ function g(e, t, n, r, s) {
255
255
  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);
256
256
  }
257
- a.inherits(w, Error, {
257
+ a.inherits(g, Error, {
258
258
  toJSON: function() {
259
259
  return {
260
260
  // Standard
@@ -275,7 +275,7 @@ a.inherits(w, Error, {
275
275
  };
276
276
  }
277
277
  });
278
- const wt = w.prototype, yt = {};
278
+ const wt = g.prototype, yt = {};
279
279
  [
280
280
  "ERR_BAD_OPTION_VALUE",
281
281
  "ERR_BAD_OPTION",
@@ -293,16 +293,16 @@ const wt = w.prototype, yt = {};
293
293
  ].forEach((e) => {
294
294
  yt[e] = { value: e };
295
295
  });
296
- Object.defineProperties(w, yt);
296
+ Object.defineProperties(g, yt);
297
297
  Object.defineProperty(wt, "isAxiosError", { value: !0 });
298
- w.from = (e, t, n, r, s, i) => {
298
+ g.from = (e, t, n, r, s, i) => {
299
299
  const o = Object.create(wt);
300
300
  return a.toFlatObject(e, o, function(l) {
301
301
  return l !== Error.prototype;
302
- }, (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;
302
+ }, (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;
303
303
  };
304
- const Pn = null;
305
- function ke(e) {
304
+ const Nn = null;
305
+ function Ne(e) {
306
306
  return a.isPlainObject(e) || a.isArray(e);
307
307
  }
308
308
  function Et(e) {
@@ -313,13 +313,13 @@ function Xe(e, t, n) {
313
313
  return s = Et(s), !n && i ? "[" + s + "]" : s;
314
314
  }).join(n ? "." : "") : t;
315
315
  }
316
- function Un(e) {
317
- return a.isArray(e) && !e.some(ke);
316
+ function vn(e) {
317
+ return a.isArray(e) && !e.some(Ne);
318
318
  }
319
- const In = a.toFlatObject(a, {}, null, function(t) {
319
+ const Pn = a.toFlatObject(a, {}, null, function(t) {
320
320
  return /^is[A-Z]/.test(t);
321
321
  });
322
- function Se(e, t, n) {
322
+ function _e(e, t, n) {
323
323
  if (!a.isObject(e))
324
324
  throw new TypeError("target must be an object");
325
325
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -339,42 +339,42 @@ function Se(e, t, n) {
339
339
  if (a.isBoolean(f))
340
340
  return f.toString();
341
341
  if (!l && a.isBlob(f))
342
- throw new w("Blob is not supported. Use a Buffer instead.");
342
+ throw new g("Blob is not supported. Use a Buffer instead.");
343
343
  return a.isArrayBuffer(f) || a.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
344
344
  }
345
345
  function d(f, m, h) {
346
- let R = f;
346
+ let _ = f;
347
347
  if (f && !h && typeof f == "object") {
348
348
  if (a.endsWith(m, "{}"))
349
349
  m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
350
- else if (a.isArray(f) && Un(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (R = a.toArray(f)))
351
- return m = Et(m), R.forEach(function(_, N) {
352
- !(a.isUndefined(_) || _ === null) && t.append(
350
+ else if (a.isArray(f) && vn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (_ = a.toArray(f)))
351
+ return m = Et(m), _.forEach(function(S, k) {
352
+ !(a.isUndefined(S) || S === null) && t.append(
353
353
  // eslint-disable-next-line no-nested-ternary
354
- o === !0 ? Xe([m], N, i) : o === null ? m : m + "[]",
355
- u(_)
354
+ o === !0 ? Xe([m], k, i) : o === null ? m : m + "[]",
355
+ u(S)
356
356
  );
357
357
  }), !1;
358
358
  }
359
- return ke(f) ? !0 : (t.append(Xe(h, m, i), u(f)), !1);
359
+ return Ne(f) ? !0 : (t.append(Xe(h, m, i), u(f)), !1);
360
360
  }
361
- const p = [], y = Object.assign(In, {
361
+ const p = [], y = Object.assign(Pn, {
362
362
  defaultVisitor: d,
363
363
  convertValue: u,
364
- isVisitable: ke
364
+ isVisitable: Ne
365
365
  });
366
366
  function E(f, m) {
367
367
  if (!a.isUndefined(f)) {
368
368
  if (p.indexOf(f) !== -1)
369
369
  throw Error("Circular reference detected in " + m.join("."));
370
- p.push(f), a.forEach(f, function(R, A) {
371
- (!(a.isUndefined(R) || R === null) && s.call(
370
+ p.push(f), a.forEach(f, function(_, R) {
371
+ (!(a.isUndefined(_) || _ === null) && s.call(
372
372
  t,
373
- R,
374
- a.isString(A) ? A.trim() : A,
373
+ _,
374
+ a.isString(R) ? R.trim() : R,
375
375
  m,
376
376
  y
377
- )) === !0 && E(R, m ? m.concat(A) : [A]);
377
+ )) === !0 && E(_, m ? m.concat(R) : [R]);
378
378
  }), p.pop();
379
379
  }
380
380
  }
@@ -397,7 +397,7 @@ function Ze(e) {
397
397
  });
398
398
  }
399
399
  function De(e, t) {
400
- this._pairs = [], e && Se(e, this, t);
400
+ this._pairs = [], e && _e(e, this, t);
401
401
  }
402
402
  const bt = De.prototype;
403
403
  bt.append = function(t, n) {
@@ -411,13 +411,13 @@ bt.toString = function(t) {
411
411
  return n(s[0]) + "=" + n(s[1]);
412
412
  }, "").join("&");
413
413
  };
414
- function Fn(e) {
414
+ function Un(e) {
415
415
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
416
416
  }
417
417
  function _t(e, t, n) {
418
418
  if (!t)
419
419
  return e;
420
- const r = n && n.encode || Fn;
420
+ const r = n && n.encode || Un;
421
421
  a.isFunction(n) && (n = {
422
422
  serialize: n
423
423
  });
@@ -487,37 +487,37 @@ const St = {
487
487
  silentJSONParsing: !0,
488
488
  forcedJSONParsing: !0,
489
489
  clarifyTimeoutError: !1
490
- }, Dn = typeof URLSearchParams < "u" ? URLSearchParams : De, jn = typeof FormData < "u" ? FormData : null, Mn = typeof Blob < "u" ? Blob : null, qn = {
490
+ }, In = typeof URLSearchParams < "u" ? URLSearchParams : De, Fn = typeof FormData < "u" ? FormData : null, Dn = typeof Blob < "u" ? Blob : null, jn = {
491
491
  isBrowser: !0,
492
492
  classes: {
493
- URLSearchParams: Dn,
494
- FormData: jn,
495
- Blob: Mn
493
+ URLSearchParams: In,
494
+ FormData: Fn,
495
+ Blob: Dn
496
496
  },
497
497
  protocols: ["http", "https", "file", "blob", "url", "data"]
498
- }, je = typeof window < "u" && typeof document < "u", Be = typeof navigator == "object" && navigator || void 0, $n = je && (!Be || ["ReactNative", "NativeScript", "NS"].indexOf(Be.product) < 0), Hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
499
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zn = je && window.location.href || "http://localhost", Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
498
+ }, je = typeof window < "u" && typeof document < "u", ve = typeof navigator == "object" && navigator || void 0, Mn = je && (!ve || ["ReactNative", "NativeScript", "NS"].indexOf(ve.product) < 0), qn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
499
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $n = je && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
500
  __proto__: null,
501
501
  hasBrowserEnv: je,
502
- hasStandardBrowserEnv: $n,
503
- hasStandardBrowserWebWorkerEnv: Hn,
504
- navigator: Be,
505
- origin: zn
506
- }, Symbol.toStringTag, { value: "Module" })), k = {
507
- ...Vn,
508
- ...qn
502
+ hasStandardBrowserEnv: Mn,
503
+ hasStandardBrowserWebWorkerEnv: qn,
504
+ navigator: ve,
505
+ origin: $n
506
+ }, Symbol.toStringTag, { value: "Module" })), B = {
507
+ ...Hn,
508
+ ...jn
509
509
  };
510
- function Jn(e, t) {
511
- return Se(e, new k.classes.URLSearchParams(), Object.assign({
510
+ function zn(e, t) {
511
+ return _e(e, new B.classes.URLSearchParams(), Object.assign({
512
512
  visitor: function(n, r, s, i) {
513
- return k.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
513
+ return B.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
514
514
  }
515
515
  }, t));
516
516
  }
517
- function Gn(e) {
517
+ function Vn(e) {
518
518
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
519
519
  }
520
- function Wn(e) {
520
+ function Jn(e) {
521
521
  const t = {}, n = Object.keys(e);
522
522
  let r;
523
523
  const s = n.length;
@@ -531,17 +531,17 @@ function Rt(e) {
531
531
  let o = n[i++];
532
532
  if (o === "__proto__") return !0;
533
533
  const c = Number.isFinite(+o), l = i >= n.length;
534
- 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] = Wn(s[o])), !c);
534
+ 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] = Jn(s[o])), !c);
535
535
  }
536
536
  if (a.isFormData(e) && a.isFunction(e.entries)) {
537
537
  const n = {};
538
538
  return a.forEachEntry(e, (r, s) => {
539
- t(Gn(r), s, n, 0);
539
+ t(Vn(r), s, n, 0);
540
540
  }), n;
541
541
  }
542
542
  return null;
543
543
  }
544
- function Kn(e, t, n) {
544
+ function Gn(e, t, n) {
545
545
  if (a.isString(e))
546
546
  try {
547
547
  return (t || JSON.parse)(e), a.trim(e);
@@ -551,7 +551,7 @@ function Kn(e, t, n) {
551
551
  }
552
552
  return (n || JSON.stringify)(e);
553
553
  }
554
- const ce = {
554
+ const le = {
555
555
  transitional: St,
556
556
  adapter: ["xhr", "http", "fetch"],
557
557
  transformRequest: [function(t, n) {
@@ -567,20 +567,20 @@ const ce = {
567
567
  let c;
568
568
  if (i) {
569
569
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
570
- return Jn(t, this.formSerializer).toString();
570
+ return zn(t, this.formSerializer).toString();
571
571
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
572
572
  const l = this.env && this.env.FormData;
573
- return Se(
573
+ return _e(
574
574
  c ? { "files[]": t } : t,
575
575
  l && new l(),
576
576
  this.formSerializer
577
577
  );
578
578
  }
579
579
  }
580
- return i || s ? (n.setContentType("application/json", !1), Kn(t)) : t;
580
+ return i || s ? (n.setContentType("application/json", !1), Gn(t)) : t;
581
581
  }],
582
582
  transformResponse: [function(t) {
583
- const n = this.transitional || ce.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
583
+ const n = this.transitional || le.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
584
584
  if (a.isResponse(t) || a.isReadableStream(t))
585
585
  return t;
586
586
  if (t && a.isString(t) && (r && !this.responseType || s)) {
@@ -589,7 +589,7 @@ const ce = {
589
589
  return JSON.parse(t);
590
590
  } catch (c) {
591
591
  if (o)
592
- throw c.name === "SyntaxError" ? w.from(c, w.ERR_BAD_RESPONSE, this, null, this.response) : c;
592
+ throw c.name === "SyntaxError" ? g.from(c, g.ERR_BAD_RESPONSE, this, null, this.response) : c;
593
593
  }
594
594
  }
595
595
  return t;
@@ -604,8 +604,8 @@ const ce = {
604
604
  maxContentLength: -1,
605
605
  maxBodyLength: -1,
606
606
  env: {
607
- FormData: k.classes.FormData,
608
- Blob: k.classes.Blob
607
+ FormData: B.classes.FormData,
608
+ Blob: B.classes.Blob
609
609
  },
610
610
  validateStatus: function(t) {
611
611
  return t >= 200 && t < 300;
@@ -618,9 +618,9 @@ const ce = {
618
618
  }
619
619
  };
620
620
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
621
- ce.headers[e] = {};
621
+ le.headers[e] = {};
622
622
  });
623
- const Xn = a.toObjectSet([
623
+ const Wn = a.toObjectSet([
624
624
  "age",
625
625
  "authorization",
626
626
  "content-length",
@@ -638,12 +638,12 @@ const Xn = a.toObjectSet([
638
638
  "referer",
639
639
  "retry-after",
640
640
  "user-agent"
641
- ]), Zn = (e) => {
641
+ ]), Kn = (e) => {
642
642
  const t = {};
643
643
  let n, r, s;
644
644
  return e && e.split(`
645
645
  `).forEach(function(o) {
646
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Xn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
646
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Wn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
647
647
  }), t;
648
648
  }, Qe = Symbol("internals");
649
649
  function se(e) {
@@ -652,14 +652,14 @@ function se(e) {
652
652
  function pe(e) {
653
653
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(pe) : String(e);
654
654
  }
655
- function Yn(e) {
655
+ function Xn(e) {
656
656
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
657
657
  let r;
658
658
  for (; r = n.exec(e); )
659
659
  t[r[1]] = r[2];
660
660
  return t;
661
661
  }
662
- const Qn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
662
+ const Zn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
663
663
  function xe(e, t, n, r, s) {
664
664
  if (a.isFunction(r))
665
665
  return r.call(this, t, n);
@@ -670,10 +670,10 @@ function xe(e, t, n, r, s) {
670
670
  return r.test(t);
671
671
  }
672
672
  }
673
- function er(e) {
673
+ function Yn(e) {
674
674
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
675
675
  }
676
- function tr(e, t) {
676
+ function Qn(e, t) {
677
677
  const n = a.toCamelCase(" " + t);
678
678
  ["get", "set", "has"].forEach((r) => {
679
679
  Object.defineProperty(e, r + n, {
@@ -700,8 +700,8 @@ let U = class {
700
700
  const o = (c, l) => a.forEach(c, (u, d) => i(u, d, l));
701
701
  if (a.isPlainObject(t) || t instanceof this.constructor)
702
702
  o(t, n);
703
- else if (a.isString(t) && (t = t.trim()) && !Qn(t))
704
- o(Zn(t), n);
703
+ else if (a.isString(t) && (t = t.trim()) && !Zn(t))
704
+ o(Kn(t), n);
705
705
  else if (a.isObject(t) && a.isIterable(t)) {
706
706
  let c = {}, l, u;
707
707
  for (const d of t) {
@@ -722,7 +722,7 @@ let U = class {
722
722
  if (!n)
723
723
  return s;
724
724
  if (n === !0)
725
- return Yn(s);
725
+ return Xn(s);
726
726
  if (a.isFunction(n))
727
727
  return n.call(this, s, r);
728
728
  if (a.isRegExp(n))
@@ -766,7 +766,7 @@ let U = class {
766
766
  n[o] = pe(s), delete n[i];
767
767
  return;
768
768
  }
769
- const c = t ? er(i) : String(i).trim();
769
+ const c = t ? Yn(i) : String(i).trim();
770
770
  c !== i && delete n[i], n[c] = pe(s), r[c] = !0;
771
771
  }), this;
772
772
  }
@@ -805,7 +805,7 @@ let U = class {
805
805
  }).accessors, s = this.prototype;
806
806
  function i(o) {
807
807
  const c = se(o);
808
- r[c] || (tr(s, o), r[c] = !0);
808
+ r[c] || (Qn(s, o), r[c] = !0);
809
809
  }
810
810
  return a.isArray(t) ? t.forEach(i) : i(t), this;
811
811
  }
@@ -821,8 +821,8 @@ a.reduceDescriptors(U.prototype, ({ value: e }, t) => {
821
821
  };
822
822
  });
823
823
  a.freezeMethods(U);
824
- function Ce(e, t) {
825
- const n = this || ce, r = t || n, s = U.from(r.headers);
824
+ function Le(e, t) {
825
+ const n = this || le, r = t || n, s = U.from(r.headers);
826
826
  let i = r.data;
827
827
  return a.forEach(e, function(c) {
828
828
  i = c.call(n, i, s.normalize(), t ? t.status : void 0);
@@ -832,26 +832,26 @@ function Tt(e) {
832
832
  return !!(e && e.__CANCEL__);
833
833
  }
834
834
  function te(e, t, n) {
835
- w.call(this, e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError";
835
+ g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
836
836
  }
837
- a.inherits(te, w, {
837
+ a.inherits(te, g, {
838
838
  __CANCEL__: !0
839
839
  });
840
840
  function At(e, t, n) {
841
841
  const r = n.config.validateStatus;
842
- !n.status || !r || r(n.status) ? e(n) : t(new w(
842
+ !n.status || !r || r(n.status) ? e(n) : t(new g(
843
843
  "Request failed with status code " + n.status,
844
- [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
844
+ [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
845
845
  n.config,
846
846
  n.request,
847
847
  n
848
848
  ));
849
849
  }
850
- function nr(e) {
850
+ function er(e) {
851
851
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
852
852
  return t && t[1] || "";
853
853
  }
854
- function rr(e, t) {
854
+ function tr(e, t) {
855
855
  e = e || 10;
856
856
  const n = new Array(e), r = new Array(e);
857
857
  let s = 0, i = 0, o;
@@ -867,7 +867,7 @@ function rr(e, t) {
867
867
  return E ? Math.round(y * 1e3 / E) : void 0;
868
868
  };
869
869
  }
870
- function sr(e, t) {
870
+ function nr(e, t) {
871
871
  let n = 0, r = 1e3 / t, s, i;
872
872
  const o = (u, d = Date.now()) => {
873
873
  n = d, s = null, i && (clearTimeout(i), i = null), e.apply(null, u);
@@ -881,8 +881,8 @@ function sr(e, t) {
881
881
  }
882
882
  const me = (e, t, n = 3) => {
883
883
  let r = 0;
884
- const s = rr(50, 250);
885
- return sr((i) => {
884
+ const s = tr(50, 250);
885
+ return nr((i) => {
886
886
  const o = i.loaded, c = i.lengthComputable ? i.total : void 0, l = o - r, u = s(l), d = o <= c;
887
887
  r = o;
888
888
  const p = {
@@ -905,10 +905,10 @@ const me = (e, t, n = 3) => {
905
905
  total: e,
906
906
  loaded: r
907
907
  }), t[1]];
908
- }, tt = (e) => (...t) => a.asap(() => e(...t)), or = k.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, k.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
909
- new URL(k.origin),
910
- k.navigator && /(msie|trident)/i.test(k.navigator.userAgent)
911
- ) : () => !0, ir = k.hasStandardBrowserEnv ? (
908
+ }, tt = (e) => (...t) => a.asap(() => e(...t)), rr = B.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, B.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
909
+ new URL(B.origin),
910
+ B.navigator && /(msie|trident)/i.test(B.navigator.userAgent)
911
+ ) : () => !0, sr = B.hasStandardBrowserEnv ? (
912
912
  // Standard browser envs support document.cookie
913
913
  {
914
914
  write(e, t, n, r, s, i) {
@@ -935,15 +935,15 @@ const me = (e, t, n = 3) => {
935
935
  }
936
936
  }
937
937
  );
938
- function ar(e) {
938
+ function or(e) {
939
939
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
940
940
  }
941
- function cr(e, t) {
941
+ function ir(e, t) {
942
942
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
943
943
  }
944
944
  function Ot(e, t, n) {
945
- let r = !ar(t);
946
- return e && (r || n == !1) ? cr(e, t) : t;
945
+ let r = !or(t);
946
+ return e && (r || n == !1) ? ir(e, t) : t;
947
947
  }
948
948
  const nt = (e) => e instanceof U ? { ...e } : e;
949
949
  function Y(e, t) {
@@ -1019,19 +1019,19 @@ const xt = (e) => {
1019
1019
  );
1020
1020
  let l;
1021
1021
  if (a.isFormData(n)) {
1022
- if (k.hasStandardBrowserEnv || k.hasStandardBrowserWebWorkerEnv)
1022
+ if (B.hasStandardBrowserEnv || B.hasStandardBrowserWebWorkerEnv)
1023
1023
  o.setContentType(void 0);
1024
1024
  else if ((l = o.getContentType()) !== !1) {
1025
1025
  const [u, ...d] = l ? l.split(";").map((p) => p.trim()).filter(Boolean) : [];
1026
1026
  o.setContentType([u || "multipart/form-data", ...d].join("; "));
1027
1027
  }
1028
1028
  }
1029
- if (k.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && or(t.url))) {
1030
- const u = s && i && ir.read(i);
1029
+ if (B.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && rr(t.url))) {
1030
+ const u = s && i && sr.read(i);
1031
1031
  u && o.set(s, u);
1032
1032
  }
1033
1033
  return t;
1034
- }, lr = typeof XMLHttpRequest < "u", ur = lr && function(e) {
1034
+ }, ar = typeof XMLHttpRequest < "u", cr = ar && function(e) {
1035
1035
  return new Promise(function(n, r) {
1036
1036
  const s = xt(e);
1037
1037
  let i = s.data;
@@ -1042,53 +1042,53 @@ const xt = (e) => {
1042
1042
  }
1043
1043
  let h = new XMLHttpRequest();
1044
1044
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1045
- function R() {
1045
+ function _() {
1046
1046
  if (!h)
1047
1047
  return;
1048
- const _ = U.from(
1048
+ const S = U.from(
1049
1049
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1050
- ), x = {
1050
+ ), O = {
1051
1051
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1052
1052
  status: h.status,
1053
1053
  statusText: h.statusText,
1054
- headers: _,
1054
+ headers: S,
1055
1055
  config: e,
1056
1056
  request: h
1057
1057
  };
1058
- At(function(j) {
1059
- n(j), m();
1060
- }, function(j) {
1061
- r(j), m();
1062
- }, x), h = null;
1058
+ At(function(D) {
1059
+ n(D), m();
1060
+ }, function(D) {
1061
+ r(D), m();
1062
+ }, O), h = null;
1063
1063
  }
1064
- "onloadend" in h ? h.onloadend = R : h.onreadystatechange = function() {
1065
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(R);
1064
+ "onloadend" in h ? h.onloadend = _ : h.onreadystatechange = function() {
1065
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(_);
1066
1066
  }, h.onabort = function() {
1067
- h && (r(new w("Request aborted", w.ECONNABORTED, e, h)), h = null);
1067
+ h && (r(new g("Request aborted", g.ECONNABORTED, e, h)), h = null);
1068
1068
  }, h.onerror = function() {
1069
- r(new w("Network Error", w.ERR_NETWORK, e, h)), h = null;
1069
+ r(new g("Network Error", g.ERR_NETWORK, e, h)), h = null;
1070
1070
  }, h.ontimeout = function() {
1071
- let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1072
- const x = s.transitional || St;
1073
- s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new w(
1074
- N,
1075
- x.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1071
+ let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1072
+ const O = s.transitional || St;
1073
+ s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new g(
1074
+ k,
1075
+ O.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1076
1076
  e,
1077
1077
  h
1078
1078
  )), h = null;
1079
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(N, x) {
1080
- h.setRequestHeader(x, N);
1081
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] = me(u, !0), h.addEventListener("progress", y)), l && h.upload && ([p, E] = me(l), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (d = (_) => {
1082
- h && (r(!_ || _.type ? new te(null, e, h) : _), h.abort(), h = null);
1079
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(k, O) {
1080
+ h.setRequestHeader(O, k);
1081
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] = me(u, !0), h.addEventListener("progress", y)), l && h.upload && ([p, E] = me(l), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (d = (S) => {
1082
+ h && (r(!S || S.type ? new te(null, e, h) : S), h.abort(), h = null);
1083
1083
  }, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
1084
- const A = nr(s.url);
1085
- if (A && k.protocols.indexOf(A) === -1) {
1086
- r(new w("Unsupported protocol " + A + ":", w.ERR_BAD_REQUEST, e));
1084
+ const R = er(s.url);
1085
+ if (R && B.protocols.indexOf(R) === -1) {
1086
+ r(new g("Unsupported protocol " + R + ":", g.ERR_BAD_REQUEST, e));
1087
1087
  return;
1088
1088
  }
1089
1089
  h.send(i || null);
1090
1090
  });
1091
- }, dr = (e, t) => {
1091
+ }, lr = (e, t) => {
1092
1092
  const { length: n } = e = e ? e.filter(Boolean) : [];
1093
1093
  if (t || n) {
1094
1094
  let r = new AbortController(), s;
@@ -1096,11 +1096,11 @@ const xt = (e) => {
1096
1096
  if (!s) {
1097
1097
  s = !0, c();
1098
1098
  const d = u instanceof Error ? u : this.reason;
1099
- r.abort(d instanceof w ? d : new te(d instanceof Error ? d.message : d));
1099
+ r.abort(d instanceof g ? d : new te(d instanceof Error ? d.message : d));
1100
1100
  }
1101
1101
  };
1102
1102
  let o = t && setTimeout(() => {
1103
- o = null, i(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
1103
+ o = null, i(new g(`timeout ${t} of ms exceeded`, g.ETIMEDOUT));
1104
1104
  }, t);
1105
1105
  const c = () => {
1106
1106
  e && (o && clearTimeout(o), o = null, e.forEach((u) => {
@@ -1111,7 +1111,7 @@ const xt = (e) => {
1111
1111
  const { signal: l } = r;
1112
1112
  return l.unsubscribe = () => a.asap(c), l;
1113
1113
  }
1114
- }, fr = function* (e, t) {
1114
+ }, ur = function* (e, t) {
1115
1115
  let n = e.byteLength;
1116
1116
  if (n < t) {
1117
1117
  yield e;
@@ -1120,10 +1120,10 @@ const xt = (e) => {
1120
1120
  let r = 0, s;
1121
1121
  for (; r < n; )
1122
1122
  s = r + t, yield e.slice(r, s), r = s;
1123
- }, pr = async function* (e, t) {
1124
- for await (const n of hr(e))
1125
- yield* fr(n, t);
1126
- }, hr = async function* (e) {
1123
+ }, dr = async function* (e, t) {
1124
+ for await (const n of fr(e))
1125
+ yield* ur(n, t);
1126
+ }, fr = async function* (e) {
1127
1127
  if (e[Symbol.asyncIterator]) {
1128
1128
  yield* e;
1129
1129
  return;
@@ -1140,7 +1140,7 @@ const xt = (e) => {
1140
1140
  await t.cancel();
1141
1141
  }
1142
1142
  }, rt = (e, t, n, r) => {
1143
- const s = pr(e, t);
1143
+ const s = dr(e, t);
1144
1144
  let i = 0, o, c = (l) => {
1145
1145
  o || (o = !0, r && r(l));
1146
1146
  };
@@ -1168,15 +1168,15 @@ const xt = (e) => {
1168
1168
  }, {
1169
1169
  highWaterMark: 2
1170
1170
  });
1171
- }, Re = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ct = Re && typeof ReadableStream == "function", mr = Re && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Lt = (e, ...t) => {
1171
+ }, Se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Lt = Se && typeof ReadableStream == "function", pr = Se && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ct = (e, ...t) => {
1172
1172
  try {
1173
1173
  return !!e(...t);
1174
1174
  } catch {
1175
1175
  return !1;
1176
1176
  }
1177
- }, gr = Ct && Lt(() => {
1177
+ }, hr = Lt && Ct(() => {
1178
1178
  let e = !1;
1179
- const t = new Request(k.origin, {
1179
+ const t = new Request(B.origin, {
1180
1180
  body: new ReadableStream(),
1181
1181
  method: "POST",
1182
1182
  get duplex() {
@@ -1184,34 +1184,34 @@ const xt = (e) => {
1184
1184
  }
1185
1185
  }).headers.has("Content-Type");
1186
1186
  return e && !t;
1187
- }), st = 64 * 1024, Pe = Ct && Lt(() => a.isReadableStream(new Response("").body)), ge = {
1187
+ }), st = 64 * 1024, Pe = Lt && Ct(() => a.isReadableStream(new Response("").body)), ge = {
1188
1188
  stream: Pe && ((e) => e.body)
1189
1189
  };
1190
- Re && ((e) => {
1190
+ Se && ((e) => {
1191
1191
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1192
1192
  !ge[t] && (ge[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1193
- throw new w(`Response type '${t}' is not supported`, w.ERR_NOT_SUPPORT, r);
1193
+ throw new g(`Response type '${t}' is not supported`, g.ERR_NOT_SUPPORT, r);
1194
1194
  });
1195
1195
  });
1196
1196
  })(new Response());
1197
- const wr = async (e) => {
1197
+ const mr = async (e) => {
1198
1198
  if (e == null)
1199
1199
  return 0;
1200
1200
  if (a.isBlob(e))
1201
1201
  return e.size;
1202
1202
  if (a.isSpecCompliantForm(e))
1203
- return (await new Request(k.origin, {
1203
+ return (await new Request(B.origin, {
1204
1204
  method: "POST",
1205
1205
  body: e
1206
1206
  }).arrayBuffer()).byteLength;
1207
1207
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1208
1208
  return e.byteLength;
1209
1209
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1210
- return (await mr(e)).byteLength;
1211
- }, yr = async (e, t) => {
1210
+ return (await pr(e)).byteLength;
1211
+ }, gr = async (e, t) => {
1212
1212
  const n = a.toFiniteNumber(e.getContentLength());
1213
- return n ?? wr(t);
1214
- }, Er = Re && (async (e) => {
1213
+ return n ?? mr(t);
1214
+ }, wr = Se && (async (e) => {
1215
1215
  let {
1216
1216
  url: t,
1217
1217
  method: n,
@@ -1227,28 +1227,28 @@ const wr = async (e) => {
1227
1227
  fetchOptions: y
1228
1228
  } = xt(e);
1229
1229
  u = u ? (u + "").toLowerCase() : "text";
1230
- let E = dr([s, i && i.toAbortSignal()], o), f;
1230
+ let E = lr([s, i && i.toAbortSignal()], o), f;
1231
1231
  const m = E && E.unsubscribe && (() => {
1232
1232
  E.unsubscribe();
1233
1233
  });
1234
1234
  let h;
1235
1235
  try {
1236
- if (l && gr && n !== "get" && n !== "head" && (h = await yr(d, r)) !== 0) {
1237
- let x = new Request(t, {
1236
+ if (l && hr && n !== "get" && n !== "head" && (h = await gr(d, r)) !== 0) {
1237
+ let O = new Request(t, {
1238
1238
  method: "POST",
1239
1239
  body: r,
1240
1240
  duplex: "half"
1241
- }), B;
1242
- if (a.isFormData(r) && (B = x.headers.get("content-type")) && d.setContentType(B), x.body) {
1243
- const [j, b] = et(
1241
+ }), N;
1242
+ if (a.isFormData(r) && (N = O.headers.get("content-type")) && d.setContentType(N), O.body) {
1243
+ const [D, b] = et(
1244
1244
  h,
1245
1245
  me(tt(l))
1246
1246
  );
1247
- r = rt(x.body, st, j, b);
1247
+ r = rt(O.body, st, D, b);
1248
1248
  }
1249
1249
  }
1250
1250
  a.isString(p) || (p = p ? "include" : "omit");
1251
- const R = "credentials" in Request.prototype;
1251
+ const _ = "credentials" in Request.prototype;
1252
1252
  f = new Request(t, {
1253
1253
  ...y,
1254
1254
  signal: E,
@@ -1256,50 +1256,50 @@ const wr = async (e) => {
1256
1256
  headers: d.normalize().toJSON(),
1257
1257
  body: r,
1258
1258
  duplex: "half",
1259
- credentials: R ? p : void 0
1259
+ credentials: _ ? p : void 0
1260
1260
  });
1261
- let A = await fetch(f, y);
1262
- const _ = Pe && (u === "stream" || u === "response");
1263
- if (Pe && (c || _ && m)) {
1264
- const x = {};
1265
- ["status", "statusText", "headers"].forEach((O) => {
1266
- x[O] = A[O];
1261
+ let R = await fetch(f, y);
1262
+ const S = Pe && (u === "stream" || u === "response");
1263
+ if (Pe && (c || S && m)) {
1264
+ const O = {};
1265
+ ["status", "statusText", "headers"].forEach((T) => {
1266
+ O[T] = R[T];
1267
1267
  });
1268
- const B = a.toFiniteNumber(A.headers.get("content-length")), [j, b] = c && et(
1269
- B,
1268
+ const N = a.toFiniteNumber(R.headers.get("content-length")), [D, b] = c && et(
1269
+ N,
1270
1270
  me(tt(c), !0)
1271
1271
  ) || [];
1272
- A = new Response(
1273
- rt(A.body, st, j, () => {
1272
+ R = new Response(
1273
+ rt(R.body, st, D, () => {
1274
1274
  b && b(), m && m();
1275
1275
  }),
1276
- x
1276
+ O
1277
1277
  );
1278
1278
  }
1279
1279
  u = u || "text";
1280
- let N = await ge[a.findKey(ge, u) || "text"](A, e);
1281
- return !_ && m && m(), await new Promise((x, B) => {
1282
- At(x, B, {
1283
- data: N,
1284
- headers: U.from(A.headers),
1285
- status: A.status,
1286
- statusText: A.statusText,
1280
+ let k = await ge[a.findKey(ge, u) || "text"](R, e);
1281
+ return !S && m && m(), await new Promise((O, N) => {
1282
+ At(O, N, {
1283
+ data: k,
1284
+ headers: U.from(R.headers),
1285
+ status: R.status,
1286
+ statusText: R.statusText,
1287
1287
  config: e,
1288
1288
  request: f
1289
1289
  });
1290
1290
  });
1291
- } catch (R) {
1292
- throw m && m(), R && R.name === "TypeError" && /Load failed|fetch/i.test(R.message) ? Object.assign(
1293
- new w("Network Error", w.ERR_NETWORK, e, f),
1291
+ } catch (_) {
1292
+ throw m && m(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
1293
+ new g("Network Error", g.ERR_NETWORK, e, f),
1294
1294
  {
1295
- cause: R.cause || R
1295
+ cause: _.cause || _
1296
1296
  }
1297
- ) : w.from(R, R && R.code, e, f);
1297
+ ) : g.from(_, _ && _.code, e, f);
1298
1298
  }
1299
1299
  }), Ue = {
1300
- http: Pn,
1301
- xhr: ur,
1302
- fetch: Er
1300
+ http: Nn,
1301
+ xhr: cr,
1302
+ fetch: wr
1303
1303
  };
1304
1304
  a.forEach(Ue, (e, t) => {
1305
1305
  if (e) {
@@ -1310,7 +1310,7 @@ a.forEach(Ue, (e, t) => {
1310
1310
  Object.defineProperty(e, "adapterName", { value: t });
1311
1311
  }
1312
1312
  });
1313
- const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !1, vt = {
1313
+ const ot = (e) => `- ${e}`, yr = (e) => a.isFunction(e) || e === null || e === !1, kt = {
1314
1314
  getAdapter: (e) => {
1315
1315
  e = a.isArray(e) ? e : [e];
1316
1316
  const { length: t } = e;
@@ -1319,8 +1319,8 @@ const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !
1319
1319
  for (let i = 0; i < t; i++) {
1320
1320
  n = e[i];
1321
1321
  let o;
1322
- if (r = n, !br(n) && (r = Ue[(o = String(n)).toLowerCase()], r === void 0))
1323
- throw new w(`Unknown adapter '${o}'`);
1322
+ if (r = n, !yr(n) && (r = Ue[(o = String(n)).toLowerCase()], r === void 0))
1323
+ throw new g(`Unknown adapter '${o}'`);
1324
1324
  if (r)
1325
1325
  break;
1326
1326
  s[o || "#" + i] = r;
@@ -1332,7 +1332,7 @@ const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !
1332
1332
  let o = t ? i.length > 1 ? `since :
1333
1333
  ` + i.map(ot).join(`
1334
1334
  `) : " " + ot(i[0]) : "as no adapter specified";
1335
- throw new w(
1335
+ throw new g(
1336
1336
  "There is no suitable adapter to dispatch the request " + o,
1337
1337
  "ERR_NOT_SUPPORT"
1338
1338
  );
@@ -1341,44 +1341,44 @@ const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !
1341
1341
  },
1342
1342
  adapters: Ue
1343
1343
  };
1344
- function Le(e) {
1344
+ function Ce(e) {
1345
1345
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1346
1346
  throw new te(null, e);
1347
1347
  }
1348
1348
  function it(e) {
1349
- return Le(e), e.headers = U.from(e.headers), e.data = Ce.call(
1349
+ return Ce(e), e.headers = U.from(e.headers), e.data = Le.call(
1350
1350
  e,
1351
1351
  e.transformRequest
1352
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), vt.getAdapter(e.adapter || ce.adapter)(e).then(function(r) {
1353
- return Le(e), r.data = Ce.call(
1352
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kt.getAdapter(e.adapter || le.adapter)(e).then(function(r) {
1353
+ return Ce(e), r.data = Le.call(
1354
1354
  e,
1355
1355
  e.transformResponse,
1356
1356
  r
1357
1357
  ), r.headers = U.from(r.headers), r;
1358
1358
  }, function(r) {
1359
- return Tt(r) || (Le(e), r && r.response && (r.response.data = Ce.call(
1359
+ return Tt(r) || (Ce(e), r && r.response && (r.response.data = Le.call(
1360
1360
  e,
1361
1361
  e.transformResponse,
1362
1362
  r.response
1363
1363
  ), r.response.headers = U.from(r.response.headers))), Promise.reject(r);
1364
1364
  });
1365
1365
  }
1366
- const Nt = "1.10.0", Te = {};
1366
+ const Bt = "1.10.0", Re = {};
1367
1367
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1368
- Te[e] = function(r) {
1368
+ Re[e] = function(r) {
1369
1369
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1370
1370
  };
1371
1371
  });
1372
1372
  const at = {};
1373
- Te.transitional = function(t, n, r) {
1373
+ Re.transitional = function(t, n, r) {
1374
1374
  function s(i, o) {
1375
- return "[Axios v" + Nt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1375
+ return "[Axios v" + Bt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1376
1376
  }
1377
1377
  return (i, o, c) => {
1378
1378
  if (t === !1)
1379
- throw new w(
1379
+ throw new g(
1380
1380
  s(o, " has been removed" + (n ? " in " + n : "")),
1381
- w.ERR_DEPRECATED
1381
+ g.ERR_DEPRECATED
1382
1382
  );
1383
1383
  return n && !at[o] && (at[o] = !0, console.warn(
1384
1384
  s(
@@ -1388,12 +1388,12 @@ Te.transitional = function(t, n, r) {
1388
1388
  )), t ? t(i, o, c) : !0;
1389
1389
  };
1390
1390
  };
1391
- Te.spelling = function(t) {
1391
+ Re.spelling = function(t) {
1392
1392
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1393
1393
  };
1394
- function _r(e, t, n) {
1394
+ function Er(e, t, n) {
1395
1395
  if (typeof e != "object")
1396
- throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1396
+ throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1397
1397
  const r = Object.keys(e);
1398
1398
  let s = r.length;
1399
1399
  for (; s-- > 0; ) {
@@ -1401,17 +1401,17 @@ function _r(e, t, n) {
1401
1401
  if (o) {
1402
1402
  const c = e[i], l = c === void 0 || o(c, i, e);
1403
1403
  if (l !== !0)
1404
- throw new w("option " + i + " must be " + l, w.ERR_BAD_OPTION_VALUE);
1404
+ throw new g("option " + i + " must be " + l, g.ERR_BAD_OPTION_VALUE);
1405
1405
  continue;
1406
1406
  }
1407
1407
  if (n !== !0)
1408
- throw new w("Unknown option " + i, w.ERR_BAD_OPTION);
1408
+ throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
1409
1409
  }
1410
1410
  }
1411
1411
  const he = {
1412
- assertOptions: _r,
1413
- validators: Te
1414
- }, H = he.validators;
1412
+ assertOptions: Er,
1413
+ validators: Re
1414
+ }, $ = he.validators;
1415
1415
  let Z = class {
1416
1416
  constructor(t) {
1417
1417
  this.defaults = t || {}, this.interceptors = {
@@ -1448,17 +1448,17 @@ let Z = class {
1448
1448
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Y(this.defaults, n);
1449
1449
  const { transitional: r, paramsSerializer: s, headers: i } = n;
1450
1450
  r !== void 0 && he.assertOptions(r, {
1451
- silentJSONParsing: H.transitional(H.boolean),
1452
- forcedJSONParsing: H.transitional(H.boolean),
1453
- clarifyTimeoutError: H.transitional(H.boolean)
1451
+ silentJSONParsing: $.transitional($.boolean),
1452
+ forcedJSONParsing: $.transitional($.boolean),
1453
+ clarifyTimeoutError: $.transitional($.boolean)
1454
1454
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1455
1455
  serialize: s
1456
1456
  } : he.assertOptions(s, {
1457
- encode: H.function,
1458
- serialize: H.function
1457
+ encode: $.function,
1458
+ serialize: $.function
1459
1459
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), he.assertOptions(n, {
1460
- baseUrl: H.spelling("baseURL"),
1461
- withXsrfToken: H.spelling("withXSRFToken")
1460
+ baseUrl: $.spelling("baseURL"),
1461
+ withXsrfToken: $.spelling("withXSRFToken")
1462
1462
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1463
1463
  let o = i && a.merge(
1464
1464
  i.common,
@@ -1536,7 +1536,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1536
1536
  }
1537
1537
  Z.prototype[t] = n(), Z.prototype[t + "Form"] = n(!0);
1538
1538
  });
1539
- let Sr = class kt {
1539
+ let br = class Nt {
1540
1540
  constructor(t) {
1541
1541
  if (typeof t != "function")
1542
1542
  throw new TypeError("executor must be a function.");
@@ -1602,19 +1602,19 @@ let Sr = class kt {
1602
1602
  static source() {
1603
1603
  let t;
1604
1604
  return {
1605
- token: new kt(function(s) {
1605
+ token: new Nt(function(s) {
1606
1606
  t = s;
1607
1607
  }),
1608
1608
  cancel: t
1609
1609
  };
1610
1610
  }
1611
1611
  };
1612
- function Rr(e) {
1612
+ function _r(e) {
1613
1613
  return function(n) {
1614
1614
  return e.apply(null, n);
1615
1615
  };
1616
1616
  }
1617
- function Tr(e) {
1617
+ function Sr(e) {
1618
1618
  return a.isObject(e) && e.isAxiosError === !0;
1619
1619
  }
1620
1620
  const Ie = {
@@ -1685,56 +1685,56 @@ const Ie = {
1685
1685
  Object.entries(Ie).forEach(([e, t]) => {
1686
1686
  Ie[t] = e;
1687
1687
  });
1688
- function Bt(e) {
1688
+ function vt(e) {
1689
1689
  const t = new Z(e), n = lt(Z.prototype.request, t);
1690
1690
  return a.extend(n, Z.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1691
- return Bt(Y(e, s));
1691
+ return vt(Y(e, s));
1692
1692
  }, n;
1693
1693
  }
1694
- const C = Bt(ce);
1695
- C.Axios = Z;
1696
- C.CanceledError = te;
1697
- C.CancelToken = Sr;
1698
- C.isCancel = Tt;
1699
- C.VERSION = Nt;
1700
- C.toFormData = Se;
1701
- C.AxiosError = w;
1702
- C.Cancel = C.CanceledError;
1703
- C.all = function(t) {
1694
+ const x = vt(le);
1695
+ x.Axios = Z;
1696
+ x.CanceledError = te;
1697
+ x.CancelToken = br;
1698
+ x.isCancel = Tt;
1699
+ x.VERSION = Bt;
1700
+ x.toFormData = _e;
1701
+ x.AxiosError = g;
1702
+ x.Cancel = x.CanceledError;
1703
+ x.all = function(t) {
1704
1704
  return Promise.all(t);
1705
1705
  };
1706
- C.spread = Rr;
1707
- C.isAxiosError = Tr;
1708
- C.mergeConfig = Y;
1709
- C.AxiosHeaders = U;
1710
- C.formToJSON = (e) => Rt(a.isHTMLForm(e) ? new FormData(e) : e);
1711
- C.getAdapter = vt.getAdapter;
1712
- C.HttpStatusCode = Ie;
1713
- C.default = C;
1706
+ x.spread = _r;
1707
+ x.isAxiosError = Sr;
1708
+ x.mergeConfig = Y;
1709
+ x.AxiosHeaders = U;
1710
+ x.formToJSON = (e) => Rt(a.isHTMLForm(e) ? new FormData(e) : e);
1711
+ x.getAdapter = kt.getAdapter;
1712
+ x.HttpStatusCode = Ie;
1713
+ x.default = x;
1714
1714
  const {
1715
- Axios: _s,
1716
- AxiosError: Ss,
1717
- CanceledError: Rs,
1718
- isCancel: Ts,
1719
- CancelToken: As,
1720
- VERSION: Os,
1721
- all: xs,
1722
- Cancel: Cs,
1723
- isAxiosError: Ls,
1724
- spread: vs,
1725
- toFormData: Ns,
1715
+ Axios: Es,
1716
+ AxiosError: bs,
1717
+ CanceledError: _s,
1718
+ isCancel: Ss,
1719
+ CancelToken: Rs,
1720
+ VERSION: Ts,
1721
+ all: As,
1722
+ Cancel: Os,
1723
+ isAxiosError: xs,
1724
+ spread: Ls,
1725
+ toFormData: Cs,
1726
1726
  AxiosHeaders: ks,
1727
1727
  HttpStatusCode: Bs,
1728
- formToJSON: Ps,
1729
- getAdapter: Us,
1730
- mergeConfig: Is
1731
- } = C;
1728
+ formToJSON: Ns,
1729
+ getAdapter: vs,
1730
+ mergeConfig: Ps
1731
+ } = x;
1732
1732
  function Me(e) {
1733
1733
  return new Promise((t, n) => {
1734
1734
  e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => n(e.error);
1735
1735
  });
1736
1736
  }
1737
- function Ar(e, t) {
1737
+ function Rr(e, t) {
1738
1738
  let n;
1739
1739
  const r = () => {
1740
1740
  if (n)
@@ -1747,61 +1747,61 @@ function Ar(e, t) {
1747
1747
  };
1748
1748
  return (s, i) => r().then((o) => i(o.transaction(t, s).objectStore(t)));
1749
1749
  }
1750
- let ve;
1750
+ let ke;
1751
1751
  function Pt() {
1752
- return ve || (ve = Ar("keyval-store", "keyval")), ve;
1752
+ return ke || (ke = Rr("keyval-store", "keyval")), ke;
1753
1753
  }
1754
- function Or(e, t = Pt()) {
1754
+ function Tr(e, t = Pt()) {
1755
1755
  return t("readonly", (n) => Me(n.get(e)));
1756
1756
  }
1757
- function xr(e, t, n = Pt()) {
1757
+ function Ar(e, t, n = Pt()) {
1758
1758
  return n("readwrite", (r) => (r.put(t, e), Me(r.transaction)));
1759
1759
  }
1760
- async function Cr(e) {
1761
- return await Or(e) ?? null;
1760
+ async function Or(e) {
1761
+ return await Tr(e) ?? null;
1762
1762
  }
1763
- async function Lr(e, t) {
1764
- await xr(e, t);
1763
+ async function xr(e, t) {
1764
+ await Ar(e, t);
1765
1765
  }
1766
- function vr(e) {
1767
- const [t, n] = v({
1766
+ function Lr(e) {
1767
+ const [t, n] = C({
1768
1768
  isPlaying: !1,
1769
1769
  isPaused: !1,
1770
1770
  progress: 0,
1771
1771
  currentPNGTuber: 0,
1772
1772
  avatars: e.avatars,
1773
1773
  error: null
1774
- }), [r, s] = v(
1774
+ }), [r, s] = C(
1775
1775
  e.autoAdvance || !1
1776
- ), [i, o] = v(!1), [, c] = v(0), l = D(null), u = D(null), d = D(r), p = D(!1), y = D(null);
1777
- M(() => {
1776
+ ), [i, o] = C(!1), [, c] = C(0), l = F(null), u = F(null), d = F(r), p = F(!1), y = F(null);
1777
+ j(() => {
1778
1778
  d.current = r;
1779
1779
  }, [r]);
1780
1780
  const E = (b) => {
1781
1781
  if (e.avatars.length <= 1) return 0;
1782
- const O = e.avatars.length, $ = 100 / O;
1783
- return Math.min(Math.floor(b / $), O - 1);
1782
+ const T = e.avatars.length, q = 100 / T;
1783
+ return Math.min(Math.floor(b / q), T - 1);
1784
1784
  }, f = () => {
1785
1785
  u.current && (clearInterval(u.current), u.current = null);
1786
1786
  }, m = () => {
1787
1787
  l.current && (u.current = setInterval(() => {
1788
1788
  if (l.current && l.current.duration) {
1789
- const b = l.current.currentTime, O = l.current.duration, $ = b / O * 100;
1789
+ const b = l.current.currentTime, T = l.current.duration, q = b / T * 100;
1790
1790
  n((Q) => ({
1791
1791
  ...Q,
1792
- progress: Math.min($, 100),
1793
- currentPNGTuber: E($)
1792
+ progress: Math.min(q, 100),
1793
+ currentPNGTuber: E(q)
1794
1794
  }));
1795
1795
  }
1796
1796
  }, 100));
1797
1797
  }, h = () => {
1798
1798
  var b;
1799
- l.current && !t.isPaused && (l.current.pause(), f(), n((O) => ({
1800
- ...O,
1799
+ l.current && !t.isPaused && (l.current.pause(), f(), n((T) => ({
1800
+ ...T,
1801
1801
  isPlaying: !1,
1802
1802
  isPaused: !0
1803
1803
  })), (b = e.onPause) == null || b.call(e));
1804
- }, R = async () => {
1804
+ }, _ = async () => {
1805
1805
  if (l.current && t.isPaused)
1806
1806
  try {
1807
1807
  await l.current.play(), m(), n((b) => ({
@@ -1810,48 +1810,48 @@ function vr(e) {
1810
1810
  isPaused: !1
1811
1811
  }));
1812
1812
  } catch (b) {
1813
- console.error("Error al reanudar audio:", b), n((O) => ({
1814
- ...O,
1813
+ console.error("Error al reanudar audio:", b), n((T) => ({
1814
+ ...T,
1815
1815
  error: {
1816
1816
  type: "audio",
1817
1817
  message: "Error al reanudar la reproducción"
1818
1818
  }
1819
1819
  }));
1820
1820
  }
1821
- }, A = () => {
1822
- N(!0);
1823
- }, _ = () => {
1821
+ }, R = () => {
1822
+ k(!0);
1823
+ }, S = () => {
1824
1824
  s((b) => !b);
1825
- }, N = (b = !1) => {
1825
+ }, k = (b = !1) => {
1826
1826
  f(), l.current && (y.current && (l.current.removeEventListener(
1827
1827
  "ended",
1828
1828
  y.current
1829
- ), y.current = null), l.current.removeEventListener("error", x), l.current.removeEventListener("pause", B), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((O) => ({
1830
- ...O,
1829
+ ), y.current = null), l.current.removeEventListener("error", O), l.current.removeEventListener("pause", N), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((T) => ({
1830
+ ...T,
1831
1831
  isPlaying: !1,
1832
1832
  isPaused: !1,
1833
1833
  progress: 0,
1834
1834
  currentPNGTuber: 0
1835
- })), d.current && !p.current && (p.current = !0, c((O) => O + 1)), b || setTimeout(() => {
1836
- var O;
1837
- (O = e.onStop) == null || O.call(e);
1835
+ })), d.current && !p.current && (p.current = !0, c((T) => T + 1)), b || setTimeout(() => {
1836
+ var T;
1837
+ (T = e.onStop) == null || T.call(e);
1838
1838
  }, 50);
1839
- }, x = () => {
1839
+ }, O = () => {
1840
1840
  n((b) => ({
1841
1841
  ...b,
1842
1842
  error: {
1843
1843
  type: "audio",
1844
1844
  message: "Error al reproducir el audio"
1845
1845
  }
1846
- })), N();
1847
- }, B = () => {
1846
+ })), k();
1847
+ }, N = () => {
1848
1848
  l.current && l.current.currentTime < l.current.duration && n((b) => ({
1849
1849
  ...b,
1850
1850
  isPlaying: !1,
1851
1851
  isPaused: !0
1852
1852
  }));
1853
- }, j = async () => {
1854
- var O, $, Q;
1853
+ }, D = async () => {
1854
+ var T, q, Q;
1855
1855
  if (!e.text.trim()) {
1856
1856
  n((L) => ({
1857
1857
  ...L,
@@ -1862,7 +1862,7 @@ function vr(e) {
1862
1862
  }));
1863
1863
  return;
1864
1864
  }
1865
- p.current = !1, N(!0);
1865
+ p.current = !1, k(!0);
1866
1866
  const b = `${e.voiceId}-${e.lang ?? "auto"}-${e.model ?? "multilingual"}-${e.text}`;
1867
1867
  try {
1868
1868
  o(!0), n((I) => ({
@@ -1872,11 +1872,11 @@ function vr(e) {
1872
1872
  currentPNGTuber: 0,
1873
1873
  error: null
1874
1874
  }));
1875
- let L = await Cr(b);
1875
+ let L = await Or(b);
1876
1876
  if (!L) {
1877
1877
  const I = e.model === "standard" ? "eleven_monolingual_v1" : e.model === "enhanced" ? "eleven_turbo_v2" : "eleven_multilingual_v2";
1878
- L = (await C.post(
1879
- `${we.ELEVENLABS_API_BASE}/text-to-speech/${e.voiceId}`,
1878
+ L = (await x.post(
1879
+ `${ie.ELEVENLABS_API_BASE}/text-to-speech/${e.voiceId}`,
1880
1880
  {
1881
1881
  text: e.text,
1882
1882
  model_id: I,
@@ -1894,30 +1894,30 @@ function vr(e) {
1894
1894
  },
1895
1895
  responseType: "blob"
1896
1896
  }
1897
- )).data, L && await Lr(b, L);
1897
+ )).data, L && await xr(b, L);
1898
1898
  }
1899
1899
  if (L) {
1900
1900
  const I = URL.createObjectURL(L);
1901
1901
  l.current = new Audio(I);
1902
- const J = () => {
1903
- N(!1), URL.revokeObjectURL(I);
1902
+ const V = () => {
1903
+ k(!1), URL.revokeObjectURL(I);
1904
1904
  };
1905
- y.current = J, l.current.addEventListener("ended", J), l.current.addEventListener("error", x), l.current.addEventListener("pause", B), l.current.addEventListener("canplaythrough", async () => {
1906
- var le;
1907
- o(!1), n((G) => ({
1908
- ...G,
1905
+ y.current = V, l.current.addEventListener("ended", V), l.current.addEventListener("error", O), l.current.addEventListener("pause", N), l.current.addEventListener("canplaythrough", async () => {
1906
+ var ue;
1907
+ o(!1), n((J) => ({
1908
+ ...J,
1909
1909
  isPlaying: !0
1910
1910
  })), m();
1911
1911
  try {
1912
- await ((le = l.current) == null ? void 0 : le.play());
1913
- } catch (G) {
1914
- console.error("Error al iniciar reproducción:", G), n((z) => ({
1915
- ...z,
1912
+ await ((ue = l.current) == null ? void 0 : ue.play());
1913
+ } catch (J) {
1914
+ console.error("Error al iniciar reproducción:", J), n((H) => ({
1915
+ ...H,
1916
1916
  error: {
1917
1917
  type: "audio",
1918
1918
  message: "Error al iniciar la reproducción"
1919
1919
  }
1920
- })), N();
1920
+ })), k();
1921
1921
  }
1922
1922
  });
1923
1923
  }
@@ -1929,20 +1929,20 @@ function vr(e) {
1929
1929
  message: `Error en la API: ${L.message}`
1930
1930
  },
1931
1931
  isPlaying: !1
1932
- })), f(), o(!1), C.isAxiosError(L) ? (console.error("Código de estado:", (O = L.response) == null ? void 0 : O.status), (($ = L.response) == null ? void 0 : $.data) instanceof Blob ? L.response.data.text().then((I) => {
1932
+ })), f(), o(!1), x.isAxiosError(L) ? (console.error("Código de estado:", (T = L.response) == null ? void 0 : T.status), ((q = L.response) == null ? void 0 : q.data) instanceof Blob ? L.response.data.text().then((I) => {
1933
1933
  console.error("Respuesta de error (texto):", I);
1934
1934
  try {
1935
- const J = JSON.parse(I);
1936
- console.error("Respuesta de error (JSON):", J);
1935
+ const V = JSON.parse(I);
1936
+ console.error("Respuesta de error (JSON):", V);
1937
1937
  } catch {
1938
1938
  console.error("No es JSON válido");
1939
1939
  }
1940
1940
  }) : console.error("Respuesta de error:", (Q = L.response) == null ? void 0 : Q.data)) : console.error("Error inesperado:", L);
1941
1941
  }
1942
1942
  };
1943
- return M(() => () => {
1943
+ return j(() => () => {
1944
1944
  f(), l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null);
1945
- }, []), M(() => {
1945
+ }, []), j(() => {
1946
1946
  e.voiceId && (l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null), f(), n((b) => ({
1947
1947
  ...b,
1948
1948
  isPlaying: !1,
@@ -1952,41 +1952,41 @@ function vr(e) {
1952
1952
  })));
1953
1953
  }, [e.voiceId]), {
1954
1954
  ...t,
1955
- play: j,
1955
+ play: D,
1956
1956
  pause: h,
1957
- resume: R,
1958
- stop: A,
1959
- toggleAutoAdvance: _,
1957
+ resume: _,
1958
+ stop: R,
1959
+ toggleAutoAdvance: S,
1960
1960
  isAutoAdvancing: r,
1961
1961
  isLoadingAudio: i,
1962
1962
  avatars: e.avatars
1963
1963
  };
1964
1964
  }
1965
- const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdown_1kmif_18", Pr = "_dropdownItem_1kmif_31", Ur = "_active_1kmif_44", oe = {
1966
- selectorWrapper: Nr,
1965
+ const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdown_1kmif_18", Nr = "_dropdownItem_1kmif_31", vr = "_active_1kmif_44", oe = {
1966
+ selectorWrapper: Cr,
1967
1967
  iconButton: kr,
1968
1968
  dropdown: Br,
1969
- dropdownItem: Pr,
1970
- active: Ur
1971
- }, Ir = ({
1969
+ dropdownItem: Nr,
1970
+ active: vr
1971
+ }, Pr = ({
1972
1972
  languages: e,
1973
1973
  current: t,
1974
1974
  onChange: n
1975
1975
  }) => {
1976
- const [r, s] = v(!1), [i, o] = v(t || e[0].code), c = D(null);
1977
- return M(() => {
1976
+ const [r, s] = C(!1), [i, o] = C(t || e[0].code), c = F(null);
1977
+ return j(() => {
1978
1978
  const l = (u) => {
1979
1979
  c.current && !c.current.contains(u.target) && s(!1);
1980
1980
  };
1981
1981
  return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
1982
- }, []), /* @__PURE__ */ F("div", { className: oe.selectorWrapper, ref: c, children: [
1983
- /* @__PURE__ */ g(
1982
+ }, []), /* @__PURE__ */ W("div", { className: oe.selectorWrapper, ref: c, children: [
1983
+ /* @__PURE__ */ w(
1984
1984
  "button",
1985
1985
  {
1986
1986
  className: oe.iconButton,
1987
1987
  title: "Cambiar idioma",
1988
1988
  onClick: () => s(!r),
1989
- children: /* @__PURE__ */ g(
1989
+ children: /* @__PURE__ */ w(
1990
1990
  "svg",
1991
1991
  {
1992
1992
  xmlns: "http://www.w3.org/2000/svg",
@@ -1994,12 +1994,12 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
1994
1994
  width: "30px",
1995
1995
  height: "30px",
1996
1996
  viewBox: "0 0 24 24",
1997
- children: /* @__PURE__ */ g("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" })
1997
+ 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" })
1998
1998
  }
1999
1999
  )
2000
2000
  }
2001
2001
  ),
2002
- r && /* @__PURE__ */ g("div", { className: oe.dropdown, children: e.map((l) => /* @__PURE__ */ g(
2002
+ r && /* @__PURE__ */ w("div", { className: oe.dropdown, children: e.map((l) => /* @__PURE__ */ w(
2003
2003
  "button",
2004
2004
  {
2005
2005
  className: `${oe.dropdownItem} ${l.code === i ? oe.active : ""}`,
@@ -2011,45 +2011,45 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2011
2011
  l.code
2012
2012
  )) })
2013
2013
  ] });
2014
- }, Fr = "_controlsRow_8wakc_1", Dr = "_select_8wakc_9", jr = "_autoAdvanceButton_8wakc_15", Mr = "_section_8wakc_26", qr = "_textarea_8wakc_36", $r = "_input_8wakc_46", Hr = "_error_8wakc_54", zr = "_buttonPrimary_8wakc_59", Vr = "_buttonSuccess_8wakc_69", Jr = "_infoBox_8wakc_78", Gr = "_viewer_8wakc_86", Wr = "_viewerTopBar_8wakc_97", Kr = "_topRightControls_8wakc_110", Xr = "_itemCounter_8wakc_118", Zr = "_iconButton_8wakc_126", Yr = "_navButton_8wakc_146", Qr = "_navButtonLeft_8wakc_163", es = "_navButtonRight_8wakc_167", ts = "_backgroundImage_8wakc_171", ns = "_avatar_8wakc_178", rs = "_caption_8wakc_188", ss = "_captionTitle_8wakc_201", os = "_captionText_8wakc_211", is = "_loadingOverlay_8wakc_217", as = "_loadingSpinner_8wakc_232", cs = "_spin_8wakc_251", ls = "_loadingButton_8wakc_242", us = "_spinner_8wakc_251", ds = "_progressBar_8wakc_264", fs = "_progressFill_8wakc_273", ps = "_playbackControls_8wakc_279", hs = "_playButton_8wakc_292", ms = "_pauseButton_8wakc_293", S = {
2015
- controlsRow: Fr,
2016
- select: Dr,
2017
- autoAdvanceButton: jr,
2018
- section: Mr,
2019
- textarea: qr,
2020
- input: $r,
2021
- error: Hr,
2022
- buttonPrimary: zr,
2023
- buttonSuccess: Vr,
2024
- infoBox: Jr,
2025
- viewer: Gr,
2026
- viewerTopBar: Wr,
2027
- topRightControls: Kr,
2028
- itemCounter: Xr,
2029
- iconButton: Zr,
2030
- navButton: Yr,
2031
- navButtonLeft: Qr,
2032
- navButtonRight: es,
2033
- backgroundImage: ts,
2034
- avatar: ns,
2035
- caption: rs,
2036
- captionTitle: ss,
2037
- captionText: os,
2038
- loadingOverlay: is,
2039
- loadingSpinner: as,
2040
- spin: cs,
2041
- loadingButton: ls,
2042
- spinner: us,
2043
- progressBar: ds,
2044
- progressFill: fs,
2045
- playbackControls: ps,
2046
- playButton: hs,
2047
- pauseButton: ms
2048
- }, gs = [
2014
+ }, Ur = "_controlsRow_8wakc_1", Ir = "_select_8wakc_9", Fr = "_autoAdvanceButton_8wakc_15", Dr = "_section_8wakc_26", jr = "_textarea_8wakc_36", Mr = "_input_8wakc_46", qr = "_error_8wakc_54", $r = "_buttonPrimary_8wakc_59", Hr = "_buttonSuccess_8wakc_69", zr = "_infoBox_8wakc_78", Vr = "_viewer_8wakc_86", Jr = "_viewerTopBar_8wakc_97", Gr = "_topRightControls_8wakc_110", Wr = "_itemCounter_8wakc_118", Kr = "_iconButton_8wakc_126", Xr = "_navButton_8wakc_146", Zr = "_navButtonLeft_8wakc_163", Yr = "_navButtonRight_8wakc_167", Qr = "_backgroundImage_8wakc_171", es = "_avatar_8wakc_178", ts = "_caption_8wakc_188", ns = "_captionTitle_8wakc_201", rs = "_captionText_8wakc_211", ss = "_loadingOverlay_8wakc_217", os = "_loadingSpinner_8wakc_232", is = "_spin_8wakc_251", as = "_loadingButton_8wakc_242", cs = "_spinner_8wakc_251", ls = "_progressBar_8wakc_264", us = "_progressFill_8wakc_273", ds = "_playbackControls_8wakc_279", fs = "_playButton_8wakc_292", ps = "_pauseButton_8wakc_293", A = {
2015
+ controlsRow: Ur,
2016
+ select: Ir,
2017
+ autoAdvanceButton: Fr,
2018
+ section: Dr,
2019
+ textarea: jr,
2020
+ input: Mr,
2021
+ error: qr,
2022
+ buttonPrimary: $r,
2023
+ buttonSuccess: Hr,
2024
+ infoBox: zr,
2025
+ viewer: Vr,
2026
+ viewerTopBar: Jr,
2027
+ topRightControls: Gr,
2028
+ itemCounter: Wr,
2029
+ iconButton: Kr,
2030
+ navButton: Xr,
2031
+ navButtonLeft: Zr,
2032
+ navButtonRight: Yr,
2033
+ backgroundImage: Qr,
2034
+ avatar: es,
2035
+ caption: ts,
2036
+ captionTitle: ns,
2037
+ captionText: rs,
2038
+ loadingOverlay: ss,
2039
+ loadingSpinner: os,
2040
+ spin: is,
2041
+ loadingButton: as,
2042
+ spinner: cs,
2043
+ progressBar: ls,
2044
+ progressFill: us,
2045
+ playbackControls: ds,
2046
+ playButton: fs,
2047
+ pauseButton: ps
2048
+ }, Us = [
2049
2049
  { id: "21m00Tcm4TlvDq8ikWAM", name: "Voz Mujer" },
2050
2050
  // { id: "iLzHtPh0bW6RGWRG0Xo5", name: "Voz Hombre" },
2051
2051
  { id: "Nh2zY9kknu6z4pZy6FhD", name: "Voz Hombre Joven" }
2052
- ], ct = we.DEFAULT_IMAGE_URL, Fs = ({
2052
+ ], ct = ie.DEFAULT_IMAGE_URL, Is = ({
2053
2053
  heritageItems: e = [],
2054
2054
  targetLanguage: t = "es",
2055
2055
  descriptionLength: n = "extended",
@@ -2057,15 +2057,15 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2057
2057
  voiceIds: s = [],
2058
2058
  avatars: i = []
2059
2059
  }) => {
2060
- const [o] = v(e), [c, l] = v(0), [u, d] = v(n), [p, y] = v(
2060
+ const [o] = C(e), [c, l] = C(0), [u, d] = C(n), [p, y] = C(
2061
2061
  t
2062
- ), [E, f] = v(""), [m, h] = v([]), [R, A] = v(0), [_, N] = v(r), [x, B] = v(!1), [j, b] = v(
2062
+ ), [E, f] = C(""), [m, h] = C([]), [_, R] = C(0), [S, k] = C(r), [O, N] = C(!1), [D, b] = C(
2063
2063
  s.length > 0 ? s[0] : ""
2064
- ), O = j || (s.length > 0 ? s[c % s.length] : ""), $ = i[c % i.length], [Q, L] = v(!1), [I, J] = v(!1), [le, G] = v(!0), z = D(null), qe = D(_), $e = D(c), Ae = D(o), K = D(null), ue = D(!1);
2065
- M(() => {
2066
- qe.current = _, $e.current = c, Ae.current = o;
2067
- }, [_, c, o]);
2068
- const de = o[c] || {
2064
+ ), T = D || (s.length > 0 ? s[c % s.length] : ""), q = i[c % i.length], [Q, L] = C(!1), [I, V] = C(!1), [ue, J] = C(!0), H = F(null), qe = F(S), $e = F(c), Te = F(o), K = F(null), de = F(!1);
2065
+ j(() => {
2066
+ qe.current = S, $e.current = c, Te.current = o;
2067
+ }, [S, c, o]);
2068
+ const Ae = o[c] || {
2069
2069
  id: "default",
2070
2070
  name: "Patrimonio Cultural",
2071
2071
  description: {
@@ -2076,7 +2076,7 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2076
2076
  },
2077
2077
  imageUrl: ""
2078
2078
  }, {
2079
- isPlaying: W,
2079
+ isPlaying: G,
2080
2080
  isPaused: He,
2081
2081
  isLoadingAudio: Ut,
2082
2082
  progress: ze,
@@ -2084,42 +2084,42 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2084
2084
  pause: Ft,
2085
2085
  resume: Dt,
2086
2086
  stop: jt
2087
- } = vr({
2087
+ } = Lr({
2088
2088
  text: E,
2089
2089
  lang: p,
2090
2090
  onStop: () => {
2091
- G(!0), qe.current && Ae.current.length > 1 && !ue.current && setTimeout(() => {
2092
- B(!0);
2093
- const T = ($e.current + 1) % Ae.current.length;
2094
- l(T);
2095
- }, 100), ue.current = !1;
2091
+ J(!0), qe.current && Te.current.length > 1 && !de.current && setTimeout(() => {
2092
+ N(!0);
2093
+ const v = ($e.current + 1) % Te.current.length;
2094
+ l(v);
2095
+ }, 100), de.current = !1;
2096
2096
  },
2097
- voiceId: O,
2098
- avatars: [$],
2099
- apiKey: we.ELEVENLABS_API_KEY
2097
+ voiceId: T,
2098
+ avatars: [q],
2099
+ apiKey: ie.ELEVENLABS_API_KEY
2100
2100
  });
2101
- M(() => {
2102
- if (x && E && !E.includes("JSON válido")) {
2103
- const T = setTimeout(() => {
2104
- W || Ve(), B(!1);
2101
+ j(() => {
2102
+ if (O && E && !E.includes("JSON válido")) {
2103
+ const v = setTimeout(() => {
2104
+ G || Ve(), N(!1);
2105
2105
  }, 500);
2106
- return () => clearTimeout(T);
2106
+ return () => clearTimeout(v);
2107
2107
  }
2108
- }, [x, E, W]), M(() => {
2108
+ }, [O, E, G]), j(() => {
2109
2109
  (async () => {
2110
- const V = de.description.local[u];
2111
- if (V)
2110
+ const z = Ae.description.local[u];
2111
+ if (z)
2112
2112
  try {
2113
- const ne = await Gt(V, p);
2113
+ const ne = await Vt(z, p);
2114
2114
  f(ne);
2115
2115
  } catch (ne) {
2116
- console.error("Error en traducción:", ne), f(V);
2116
+ console.error("Error en traducción:", ne), f(z);
2117
2117
  }
2118
2118
  })();
2119
- }, [de, u, p]);
2119
+ }, [Ae, u, p]);
2120
2120
  const Oe = () => {
2121
- G(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
2122
- G(!1);
2121
+ J(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
2122
+ J(!1);
2123
2123
  }, 4e3);
2124
2124
  }, Ve = () => {
2125
2125
  if (!E.trim() || E.includes("JSON válido")) {
@@ -2132,102 +2132,56 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2132
2132
  }, qt = () => {
2133
2133
  Dt(), Oe();
2134
2134
  }, Je = () => {
2135
- jt(), B(!1), z.current && clearTimeout(z.current), K.current && clearTimeout(K.current), G(!0);
2135
+ jt(), N(!1), H.current && clearTimeout(H.current), K.current && clearTimeout(K.current), J(!0);
2136
2136
  }, $t = () => {
2137
- ue.current = !0, Je(), c > 0 && l((T) => T - 1);
2137
+ de.current = !0, Je(), c > 0 && l((v) => v - 1);
2138
2138
  }, Ht = () => {
2139
- ue.current = !0, Je(), c < o.length - 1 && l((T) => T + 1);
2139
+ de.current = !0, Je(), c < o.length - 1 && l((v) => v + 1);
2140
2140
  };
2141
- M(() => () => {
2142
- z.current && clearTimeout(z.current), K.current && clearTimeout(K.current);
2143
- }, []), M(() => {
2141
+ j(() => () => {
2142
+ H.current && clearTimeout(H.current), K.current && clearTimeout(K.current);
2143
+ }, []), j(() => {
2144
2144
  if (E) {
2145
- const T = E.split(new RegExp("(?<=[.!?])\\s+", "g")).map((V) => V.trim()).filter((V) => V.length > 0);
2146
- h(T), A(0);
2145
+ const v = E.split(new RegExp("(?<=[.!?])\\s+", "g")).map((z) => z.trim()).filter((z) => z.length > 0);
2146
+ h(v), R(0);
2147
2147
  }
2148
- }, [E]), M(() => {
2149
- if (!W || m.length === 0) return;
2150
- z.current && clearTimeout(z.current);
2151
- const V = 1500 + m[R].length * 50;
2152
- z.current = setTimeout(() => {
2153
- A((ne) => (ne + 1) % m.length);
2154
- }, V);
2155
- }, [W, m, R]);
2156
- const [Ge, zt] = v(!1), Vt = (T) => {
2157
- b(T), zt(!0);
2158
- };
2159
- return M(() => {
2148
+ }, [E]), j(() => {
2149
+ if (!G || m.length === 0) return;
2150
+ H.current && clearTimeout(H.current);
2151
+ const z = 1500 + m[_].length * 50;
2152
+ H.current = setTimeout(() => {
2153
+ R((ne) => (ne + 1) % m.length);
2154
+ }, z);
2155
+ }, [G, m, _]);
2156
+ const [Ge, hs] = C(!1);
2157
+ return j(() => {
2160
2158
  !Ge && s.length > 0 && b(s[c % s.length]);
2161
- }, [c, s, Ge]), /* @__PURE__ */ F("div", { children: [
2162
- /* @__PURE__ */ F("div", { className: S.controlsRow, children: [
2163
- /* @__PURE__ */ F(
2164
- "select",
2165
- {
2166
- value: u,
2167
- onChange: (T) => d(T.target.value),
2168
- className: S.select,
2169
- children: [
2170
- /* @__PURE__ */ g("option", { value: "short", children: "Descripción Corta" }),
2171
- /* @__PURE__ */ g("option", { value: "extended", children: "Descripción Extendida" })
2172
- ]
2173
- }
2174
- ),
2175
- /* @__PURE__ */ F(
2176
- "select",
2177
- {
2178
- value: p,
2179
- onChange: (T) => y(T.target.value),
2180
- className: S.select,
2181
- children: [
2182
- /* @__PURE__ */ g("option", { value: "en", children: "Inglés" }),
2183
- /* @__PURE__ */ g("option", { value: "es", children: "Español" }),
2184
- /* @__PURE__ */ g("option", { value: "fr", children: "Francés" })
2185
- ]
2186
- }
2187
- ),
2188
- /* @__PURE__ */ g(
2189
- "select",
2190
- {
2191
- value: O,
2192
- onChange: (T) => Vt(T.target.value),
2193
- className: S.select,
2194
- children: gs.map((T) => /* @__PURE__ */ g("option", { value: T.id, children: T.name }, T.id))
2195
- }
2196
- ),
2197
- /* @__PURE__ */ g(
2198
- "button",
2199
- {
2200
- onClick: () => N(!_),
2201
- className: S.autoAdvanceButton,
2202
- style: { backgroundColor: _ ? "#34a853" : "#ea4335" },
2203
- children: _ ? "⏩ AUTO ON" : "⏩ AUTO OFF"
2204
- }
2205
- )
2206
- ] }),
2207
- /* @__PURE__ */ F("div", { className: S.viewer, onClick: Oe, children: [
2208
- /* @__PURE__ */ F("div", { className: S.viewerTopBar, children: [
2209
- /* @__PURE__ */ g("div", { className: S.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
2210
- /* @__PURE__ */ F("div", { className: S.topRightControls, children: [
2211
- /* @__PURE__ */ g(
2159
+ }, [c, s, Ge]), /* @__PURE__ */ W("div", { children: [
2160
+ ie.DEBUG_MODE,
2161
+ /* @__PURE__ */ W("div", { className: A.viewer, onClick: Oe, children: [
2162
+ /* @__PURE__ */ W("div", { className: A.viewerTopBar, children: [
2163
+ /* @__PURE__ */ w("div", { className: A.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
2164
+ /* @__PURE__ */ W("div", { className: A.topRightControls, children: [
2165
+ /* @__PURE__ */ w(
2212
2166
  "button",
2213
2167
  {
2214
- onClick: () => N(!_),
2215
- className: S.iconButton,
2168
+ onClick: () => k(!S),
2169
+ className: A.iconButton,
2216
2170
  title: "Autoplay",
2217
2171
  style: {
2218
- backgroundColor: _ ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)"
2172
+ backgroundColor: S ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)"
2219
2173
  },
2220
- children: /* @__PURE__ */ g(
2174
+ children: /* @__PURE__ */ w(
2221
2175
  "svg",
2222
2176
  {
2223
2177
  width: "20px",
2224
2178
  height: "20px",
2225
2179
  viewBox: "0 0 16 16",
2226
2180
  xmlns: "http://www.w3.org/2000/svg",
2227
- children: /* @__PURE__ */ g(
2181
+ children: /* @__PURE__ */ w(
2228
2182
  "path",
2229
2183
  {
2230
- style: { fill: _ ? "black" : "white" },
2184
+ style: { fill: S ? "black" : "white" },
2231
2185
  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"
2232
2186
  }
2233
2187
  )
@@ -2235,8 +2189,8 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2235
2189
  )
2236
2190
  }
2237
2191
  ),
2238
- /* @__PURE__ */ g(
2239
- Ir,
2192
+ /* @__PURE__ */ w(
2193
+ Pr,
2240
2194
  {
2241
2195
  languages: [
2242
2196
  { code: "es", label: "Español" },
@@ -2244,21 +2198,21 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2244
2198
  { code: "fr", label: "Français" }
2245
2199
  ],
2246
2200
  current: "es",
2247
- onChange: (T) => y(T)
2201
+ onChange: (v) => y(v)
2248
2202
  }
2249
2203
  )
2250
2204
  ] })
2251
2205
  ] }),
2252
- /* @__PURE__ */ g(
2206
+ /* @__PURE__ */ w(
2253
2207
  "button",
2254
2208
  {
2255
2209
  onClick: $t,
2256
2210
  disabled: o.length === 0,
2257
- className: `${S.navButton} ${S.navButtonLeft}`,
2211
+ className: `${A.navButton} ${A.navButtonLeft}`,
2258
2212
  title: "Anterior",
2259
2213
  onMouseOver: () => L(!0),
2260
2214
  onMouseOut: () => L(!1),
2261
- children: /* @__PURE__ */ g(
2215
+ children: /* @__PURE__ */ w(
2262
2216
  "svg",
2263
2217
  {
2264
2218
  xmlns: "http://www.w3.org/2000/svg",
@@ -2276,21 +2230,21 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2276
2230
  transition: "transform 0.2s ease-in-out",
2277
2231
  transform: Q ? "scale(1.5)" : "scale(1)"
2278
2232
  },
2279
- children: /* @__PURE__ */ g("path", { d: "M15 18l-6-6 6-6" })
2233
+ children: /* @__PURE__ */ w("path", { d: "M15 18l-6-6 6-6" })
2280
2234
  }
2281
2235
  )
2282
2236
  }
2283
2237
  ),
2284
- /* @__PURE__ */ g(
2238
+ /* @__PURE__ */ w(
2285
2239
  "button",
2286
2240
  {
2287
2241
  onClick: Ht,
2288
2242
  disabled: o.length === 0,
2289
- className: `${S.navButton} ${S.navButtonRight}`,
2243
+ className: `${A.navButton} ${A.navButtonRight}`,
2290
2244
  title: "Siguiente",
2291
- onMouseOver: () => J(!0),
2292
- onMouseOut: () => J(!1),
2293
- children: /* @__PURE__ */ g(
2245
+ onMouseOver: () => V(!0),
2246
+ onMouseOut: () => V(!1),
2247
+ children: /* @__PURE__ */ w(
2294
2248
  "svg",
2295
2249
  {
2296
2250
  xmlns: "http://www.w3.org/2000/svg",
@@ -2308,49 +2262,46 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2308
2262
  transition: "transform 0.2s ease-in-out",
2309
2263
  transform: I ? "scale(1.5)" : "scale(1)"
2310
2264
  },
2311
- children: /* @__PURE__ */ g("path", { d: "M9 6l6 6-6 6" })
2265
+ children: /* @__PURE__ */ w("path", { d: "M9 6l6 6-6 6" })
2312
2266
  }
2313
2267
  )
2314
2268
  }
2315
2269
  ),
2316
- /* @__PURE__ */ g(
2270
+ /* @__PURE__ */ w(
2317
2271
  "img",
2318
2272
  {
2319
- src: de.imageUrl || ct,
2273
+ src: Ae.imageUrl || ct,
2320
2274
  alt: "Background",
2321
- className: S.backgroundImage,
2322
- style: { opacity: W ? 1 : 0.7 },
2323
- onError: (T) => T.currentTarget.src = ct
2275
+ className: A.backgroundImage,
2276
+ style: { opacity: G ? 1 : 0.7 },
2277
+ onError: (v) => v.currentTarget.src = ct
2324
2278
  }
2325
2279
  ),
2326
- W && /* @__PURE__ */ g(We, { children: /* @__PURE__ */ g(
2280
+ G && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w(
2327
2281
  "img",
2328
2282
  {
2329
- src: $,
2283
+ src: q,
2330
2284
  alt: "Avatar",
2331
- className: S.avatar,
2285
+ className: A.avatar,
2332
2286
  style: { transform: `scale(${ze % 10 < 5 ? 4 : 4.05})` }
2333
2287
  }
2334
2288
  ) }),
2335
- /* @__PURE__ */ F("div", { className: S.caption, children: [
2336
- /* @__PURE__ */ g("h4", { className: S.captionTitle, children: de.name }),
2337
- W && /* @__PURE__ */ g(We, { children: /* @__PURE__ */ g("p", { className: S.captionText, children: m.length > 0 && m[R] }) })
2338
- ] }),
2339
- x && /* @__PURE__ */ F("div", { className: S.loadingOverlay, children: [
2340
- /* @__PURE__ */ g("div", { className: S.loadingSpinner }),
2341
- /* @__PURE__ */ g("p", { children: "Cargando siguiente patrimonio..." })
2289
+ /* @__PURE__ */ w("div", { className: A.caption, children: G && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w("p", { className: A.captionText, children: m.length > 0 && m[_] }) }) }),
2290
+ O && /* @__PURE__ */ W("div", { className: A.loadingOverlay, children: [
2291
+ /* @__PURE__ */ w("div", { className: A.loadingSpinner }),
2292
+ /* @__PURE__ */ w("p", { children: "Cargando siguiente patrimonio..." })
2342
2293
  ] }),
2343
- le && /* @__PURE__ */ g("div", { className: S.playbackControls, children: Ut ? (
2294
+ ue && /* @__PURE__ */ w("div", { className: A.playbackControls, children: Ut ? (
2344
2295
  // Loading spinner
2345
- /* @__PURE__ */ g("button", { disabled: !0, className: S.loadingButton, children: /* @__PURE__ */ F(
2296
+ /* @__PURE__ */ w("button", { disabled: !0, className: A.loadingButton, children: /* @__PURE__ */ W(
2346
2297
  "svg",
2347
2298
  {
2348
- className: S.spinner,
2299
+ className: A.spinner,
2349
2300
  xmlns: "http://www.w3.org/2000/svg",
2350
2301
  fill: "none",
2351
2302
  viewBox: "0 0 24 24",
2352
2303
  children: [
2353
- /* @__PURE__ */ g(
2304
+ /* @__PURE__ */ w(
2354
2305
  "circle",
2355
2306
  {
2356
2307
  className: "opacity-25",
@@ -2361,7 +2312,7 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2361
2312
  strokeWidth: "4"
2362
2313
  }
2363
2314
  ),
2364
- /* @__PURE__ */ g(
2315
+ /* @__PURE__ */ w(
2365
2316
  "path",
2366
2317
  {
2367
2318
  className: "opacity-75",
@@ -2372,15 +2323,15 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2372
2323
  ]
2373
2324
  }
2374
2325
  ) })
2375
- ) : !W && !He ? (
2326
+ ) : !G && !He ? (
2376
2327
  // Play (desde cero)
2377
- /* @__PURE__ */ g(
2328
+ /* @__PURE__ */ w(
2378
2329
  "button",
2379
2330
  {
2380
2331
  onClick: Ve,
2381
- disabled: o.length === 0 || x,
2382
- className: S.playButton,
2383
- children: /* @__PURE__ */ g(
2332
+ disabled: o.length === 0 || O,
2333
+ className: A.playButton,
2334
+ children: /* @__PURE__ */ w(
2384
2335
  "svg",
2385
2336
  {
2386
2337
  xmlns: "http://www.w3.org/2000/svg",
@@ -2392,14 +2343,14 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2392
2343
  strokeWidth: "2",
2393
2344
  strokeLinecap: "round",
2394
2345
  strokeLinejoin: "round",
2395
- children: /* @__PURE__ */ g("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2346
+ children: /* @__PURE__ */ w("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2396
2347
  }
2397
2348
  )
2398
2349
  }
2399
2350
  )
2400
2351
  ) : He ? (
2401
2352
  // Resume
2402
- /* @__PURE__ */ g("button", { onClick: qt, className: S.playButton, children: /* @__PURE__ */ g(
2353
+ /* @__PURE__ */ w("button", { onClick: qt, className: A.playButton, children: /* @__PURE__ */ w(
2403
2354
  "svg",
2404
2355
  {
2405
2356
  xmlns: "http://www.w3.org/2000/svg",
@@ -2411,12 +2362,12 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2411
2362
  strokeWidth: "2",
2412
2363
  strokeLinecap: "round",
2413
2364
  strokeLinejoin: "round",
2414
- children: /* @__PURE__ */ g("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2365
+ children: /* @__PURE__ */ w("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
2415
2366
  }
2416
2367
  ) })
2417
2368
  ) : (
2418
2369
  // Pause
2419
- /* @__PURE__ */ g("button", { onClick: Mt, className: S.pauseButton, children: /* @__PURE__ */ F(
2370
+ /* @__PURE__ */ w("button", { onClick: Mt, className: A.pauseButton, children: /* @__PURE__ */ W(
2420
2371
  "svg",
2421
2372
  {
2422
2373
  xmlns: "http://www.w3.org/2000/svg",
@@ -2429,16 +2380,16 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2429
2380
  strokeLinecap: "round",
2430
2381
  strokeLinejoin: "round",
2431
2382
  children: [
2432
- /* @__PURE__ */ g("line", { x1: "10", y1: "8", x2: "10", y2: "16" }),
2433
- /* @__PURE__ */ g("line", { x1: "14", y1: "8", x2: "14", y2: "16" })
2383
+ /* @__PURE__ */ w("line", { x1: "10", y1: "8", x2: "10", y2: "16" }),
2384
+ /* @__PURE__ */ w("line", { x1: "14", y1: "8", x2: "14", y2: "16" })
2434
2385
  ]
2435
2386
  }
2436
2387
  ) })
2437
2388
  ) }),
2438
- /* @__PURE__ */ g("div", { className: S.progressBar, children: /* @__PURE__ */ g(
2389
+ /* @__PURE__ */ w("div", { className: A.progressBar, children: /* @__PURE__ */ w(
2439
2390
  "div",
2440
2391
  {
2441
- className: S.progressFill,
2392
+ className: A.progressFill,
2442
2393
  style: { width: `${ze}%` }
2443
2394
  }
2444
2395
  ) })
@@ -2446,10 +2397,10 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
2446
2397
  ] });
2447
2398
  };
2448
2399
  export {
2449
- Ir as LanguageSelector,
2400
+ Pr as LanguageSelector,
2450
2401
  oe as LanguageSelectorStyles,
2451
- Fs as StoryVisualizer,
2452
- S as StoryVisualizerStyles,
2453
- gs as voices
2402
+ Is as StoryVisualizer,
2403
+ A as StoryVisualizerStyles,
2404
+ Us as voices
2454
2405
  };
2455
2406
  //# sourceMappingURL=ocity-heritage-visualizer.es.js.map