@ddict/bubble 1.2.10 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bubble.es.js CHANGED
@@ -1,54 +1,54 @@
1
- import { computed as Q, ref as T, shallowRef as a0, watch as A2, getCurrentScope as r0, onScopeDispose as c0, shallowReadonly as o2, unref as O, openBlock as x, createElementBlock as I, pushScopeId as d0, popScopeId as u0, createElementVNode as E, toDisplayString as w2, Fragment as b2, renderList as S2, createCommentVNode as U, onUnmounted as M2, normalizeClass as k, createBlock as H, createVNode as _, onMounted as j2, nextTick as J2, normalizeStyle as y2 } from "vue";
2
- const f0 = "data:image/svg+xml,%3csvg%20width='14'%20height='9'%20viewBox='0%200%2014%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.36153%201.34067C6.15774%200.203232%207.84226%200.203229%208.63846%201.34066L14%209H0L5.36153%201.34067Z'%20fill='white'%20stroke-width='0.5'/%3e%3c/svg%3e", Y = Math.min, S = Math.max, p2 = Math.round, m2 = Math.floor, P = (e) => ({
1
+ import { computed as R, ref as B, shallowRef as ct, watch as te, getCurrentScope as dt, onScopeDispose as ut, shallowReadonly as ee, unref as ge, createElementBlock as b, openBlock as p, createStaticVNode as Ae, createElementVNode as y, createVNode as Z, toDisplayString as ce, Fragment as ue, renderList as we, createCommentVNode as M, onUnmounted as $e, normalizeClass as A, createBlock as I, createTextVNode as ft, normalizeStyle as Xe, onMounted as qe, nextTick as _e } from "vue";
2
+ const z = Math.min, $ = Math.max, pe = Math.round, Ce = Math.floor, U = (e) => ({
3
3
  x: e,
4
4
  y: e
5
- }), A0 = {
5
+ }), mt = {
6
6
  left: "right",
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, g0 = {
10
+ }, ht = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
14
- function L2(e, t, n) {
15
- return S(e, Y(t, n));
14
+ function De(e, t, n) {
15
+ return $(e, z(t, n));
16
16
  }
17
- function c2(e, t) {
17
+ function fe(e, t) {
18
18
  return typeof e == "function" ? e(t) : e;
19
19
  }
20
- function z(e) {
20
+ function j(e) {
21
21
  return e.split("-")[0];
22
22
  }
23
- function d2(e) {
23
+ function me(e) {
24
24
  return e.split("-")[1];
25
25
  }
26
- function P2(e) {
26
+ function Ye(e) {
27
27
  return e === "x" ? "y" : "x";
28
28
  }
29
- function k2(e) {
29
+ function Je(e) {
30
30
  return e === "y" ? "height" : "width";
31
31
  }
32
- function e2(e) {
33
- return ["top", "bottom"].includes(z(e)) ? "y" : "x";
32
+ function X(e) {
33
+ return ["top", "bottom"].includes(j(e)) ? "y" : "x";
34
34
  }
35
- function D2(e) {
36
- return P2(e2(e));
35
+ function Qe(e) {
36
+ return Ye(X(e));
37
37
  }
38
- function C0(e, t, n) {
38
+ function Ct(e, t, n) {
39
39
  n === void 0 && (n = !1);
40
- const i = d2(e), o = D2(e), s = k2(o);
40
+ const i = me(e), o = Qe(e), s = Je(o);
41
41
  let l = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
42
- return t.reference[s] > t.floating[s] && (l = v2(l)), [l, v2(l)];
42
+ return t.reference[s] > t.floating[s] && (l = ve(l)), [l, ve(l)];
43
43
  }
44
- function h0(e) {
45
- const t = v2(e);
46
- return [Q2(e), t, Q2(t)];
44
+ function gt(e) {
45
+ const t = ve(e);
46
+ return [Se(e), t, Se(t)];
47
47
  }
48
- function Q2(e) {
49
- return e.replace(/start|end/g, (t) => g0[t]);
48
+ function Se(e) {
49
+ return e.replace(/start|end/g, (t) => ht[t]);
50
50
  }
51
- function m0(e, t, n) {
51
+ function pt(e, t, n) {
52
52
  const i = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], l = ["bottom", "top"];
53
53
  switch (e) {
54
54
  case "top":
@@ -61,15 +61,15 @@ function m0(e, t, n) {
61
61
  return [];
62
62
  }
63
63
  }
64
- function w0(e, t, n, i) {
65
- const o = d2(e);
66
- let s = m0(z(e), n === "start", i);
67
- return o && (s = s.map((l) => l + "-" + o), t && (s = s.concat(s.map(Q2)))), s;
64
+ function vt(e, t, n, i) {
65
+ const o = me(e);
66
+ let s = pt(j(e), n === "start", i);
67
+ return o && (s = s.map((l) => l + "-" + o), t && (s = s.concat(s.map(Se)))), s;
68
68
  }
69
- function v2(e) {
70
- return e.replace(/left|right|bottom|top/g, (t) => A0[t]);
69
+ function ve(e) {
70
+ return e.replace(/left|right|bottom|top/g, (t) => mt[t]);
71
71
  }
72
- function p0(e) {
72
+ function bt(e) {
73
73
  return {
74
74
  top: 0,
75
75
  right: 0,
@@ -78,15 +78,15 @@ function p0(e) {
78
78
  ...e
79
79
  };
80
80
  }
81
- function z2(e) {
82
- return typeof e != "number" ? p0(e) : {
81
+ function wt(e) {
82
+ return typeof e != "number" ? bt(e) : {
83
83
  top: e,
84
84
  right: e,
85
85
  bottom: e,
86
86
  left: e
87
87
  };
88
88
  }
89
- function x2(e) {
89
+ function be(e) {
90
90
  const {
91
91
  x: t,
92
92
  y: n,
@@ -104,85 +104,85 @@ function x2(e) {
104
104
  y: n
105
105
  };
106
106
  }
107
- function U2(e, t, n) {
107
+ function Ve(e, t, n) {
108
108
  let {
109
109
  reference: i,
110
110
  floating: o
111
111
  } = e;
112
- const s = e2(t), l = D2(t), r = k2(l), a = z(t), c = s === "y", d = i.x + i.width / 2 - o.width / 2, f = i.y + i.height / 2 - o.height / 2, C = i[r] / 2 - o[r] / 2;
113
- let u;
114
- switch (a) {
112
+ const s = X(t), l = Qe(t), a = Je(l), r = j(t), c = s === "y", d = i.x + i.width / 2 - o.width / 2, u = i.y + i.height / 2 - o.height / 2, g = i[a] / 2 - o[a] / 2;
113
+ let f;
114
+ switch (r) {
115
115
  case "top":
116
- u = {
116
+ f = {
117
117
  x: d,
118
118
  y: i.y - o.height
119
119
  };
120
120
  break;
121
121
  case "bottom":
122
- u = {
122
+ f = {
123
123
  x: d,
124
124
  y: i.y + i.height
125
125
  };
126
126
  break;
127
127
  case "right":
128
- u = {
128
+ f = {
129
129
  x: i.x + i.width,
130
- y: f
130
+ y: u
131
131
  };
132
132
  break;
133
133
  case "left":
134
- u = {
134
+ f = {
135
135
  x: i.x - o.width,
136
- y: f
136
+ y: u
137
137
  };
138
138
  break;
139
139
  default:
140
- u = {
140
+ f = {
141
141
  x: i.x,
142
142
  y: i.y
143
143
  };
144
144
  }
145
- switch (d2(t)) {
145
+ switch (me(t)) {
146
146
  case "start":
147
- u[l] -= C * (n && c ? -1 : 1);
147
+ f[l] -= g * (n && c ? -1 : 1);
148
148
  break;
149
149
  case "end":
150
- u[l] += C * (n && c ? -1 : 1);
150
+ f[l] += g * (n && c ? -1 : 1);
151
151
  break;
152
152
  }
153
- return u;
153
+ return f;
154
154
  }
155
- const v0 = async (e, t, n) => {
155
+ const xt = async (e, t, n) => {
156
156
  const {
157
157
  placement: i = "bottom",
158
158
  strategy: o = "absolute",
159
159
  middleware: s = [],
160
160
  platform: l
161
- } = n, r = s.filter(Boolean), a = await (l.isRTL == null ? void 0 : l.isRTL(t));
161
+ } = n, a = s.filter(Boolean), r = await (l.isRTL == null ? void 0 : l.isRTL(t));
162
162
  let c = await l.getElementRects({
163
163
  reference: e,
164
164
  floating: t,
165
165
  strategy: o
166
166
  }), {
167
167
  x: d,
168
- y: f
169
- } = U2(c, i, a), C = i, u = {}, A = 0;
170
- for (let m = 0; m < r.length; m++) {
168
+ y: u
169
+ } = Ve(c, i, r), g = i, f = {}, h = 0;
170
+ for (let v = 0; v < a.length; v++) {
171
171
  const {
172
172
  name: w,
173
- fn: p
174
- } = r[m], {
175
- x: v,
176
- y: b,
177
- data: h,
178
- reset: g
179
- } = await p({
173
+ fn: x
174
+ } = a[v], {
175
+ x: m,
176
+ y: C,
177
+ data: L,
178
+ reset: T
179
+ } = await x({
180
180
  x: d,
181
- y: f,
181
+ y: u,
182
182
  initialPlacement: i,
183
- placement: C,
183
+ placement: g,
184
184
  strategy: o,
185
- middlewareData: u,
185
+ middlewareData: f,
186
186
  rects: c,
187
187
  platform: l,
188
188
  elements: {
@@ -190,30 +190,30 @@ const v0 = async (e, t, n) => {
190
190
  floating: t
191
191
  }
192
192
  });
193
- d = v ?? d, f = b ?? f, u = {
194
- ...u,
193
+ d = m ?? d, u = C ?? u, f = {
194
+ ...f,
195
195
  [w]: {
196
- ...u[w],
197
- ...h
196
+ ...f[w],
197
+ ...L
198
198
  }
199
- }, g && A <= 50 && (A++, typeof g == "object" && (g.placement && (C = g.placement), g.rects && (c = g.rects === !0 ? await l.getElementRects({
199
+ }, T && h <= 50 && (h++, typeof T == "object" && (T.placement && (g = T.placement), T.rects && (c = T.rects === !0 ? await l.getElementRects({
200
200
  reference: e,
201
201
  floating: t,
202
202
  strategy: o
203
- }) : g.rects), {
203
+ }) : T.rects), {
204
204
  x: d,
205
- y: f
206
- } = U2(c, C, a)), m = -1);
205
+ y: u
206
+ } = Ve(c, g, r)), v = -1);
207
207
  }
208
208
  return {
209
209
  x: d,
210
- y: f,
211
- placement: C,
210
+ y: u,
211
+ placement: g,
212
212
  strategy: o,
213
- middlewareData: u
213
+ middlewareData: f
214
214
  };
215
215
  };
216
- async function R2(e, t) {
216
+ async function Ee(e, t) {
217
217
  var n;
218
218
  t === void 0 && (t = {});
219
219
  const {
@@ -221,81 +221,44 @@ async function R2(e, t) {
221
221
  y: o,
222
222
  platform: s,
223
223
  rects: l,
224
- elements: r,
225
- strategy: a
224
+ elements: a,
225
+ strategy: r
226
226
  } = e, {
227
227
  boundary: c = "clippingAncestors",
228
228
  rootBoundary: d = "viewport",
229
- elementContext: f = "floating",
230
- altBoundary: C = !1,
231
- padding: u = 0
232
- } = c2(t, e), A = z2(u), w = r[C ? f === "floating" ? "reference" : "floating" : f], p = x2(await s.getClippingRect({
233
- element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
229
+ elementContext: u = "floating",
230
+ altBoundary: g = !1,
231
+ padding: f = 0
232
+ } = fe(t, e), h = wt(f), w = a[g ? u === "floating" ? "reference" : "floating" : u], x = be(await s.getClippingRect({
233
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
234
234
  boundary: c,
235
235
  rootBoundary: d,
236
- strategy: a
237
- })), v = f === "floating" ? {
236
+ strategy: r
237
+ })), m = u === "floating" ? {
238
238
  x: i,
239
239
  y: o,
240
240
  width: l.floating.width,
241
241
  height: l.floating.height
242
- } : l.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), h = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
242
+ } : l.reference, C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), L = await (s.isElement == null ? void 0 : s.isElement(C)) ? await (s.getScale == null ? void 0 : s.getScale(C)) || {
243
243
  x: 1,
244
244
  y: 1
245
245
  } : {
246
246
  x: 1,
247
247
  y: 1
248
- }, g = x2(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
249
- elements: r,
250
- rect: v,
251
- offsetParent: b,
252
- strategy: a
253
- }) : v);
248
+ }, T = be(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
249
+ elements: a,
250
+ rect: m,
251
+ offsetParent: C,
252
+ strategy: r
253
+ }) : m);
254
254
  return {
255
- top: (p.top - g.top + A.top) / h.y,
256
- bottom: (g.bottom - p.bottom + A.bottom) / h.y,
257
- left: (p.left - g.left + A.left) / h.x,
258
- right: (g.right - p.right + A.right) / h.x
255
+ top: (x.top - T.top + h.top) / L.y,
256
+ bottom: (T.bottom - x.bottom + h.bottom) / L.y,
257
+ left: (x.left - T.left + h.left) / L.x,
258
+ right: (T.right - x.right + h.right) / L.x
259
259
  };
260
260
  }
261
- const x0 = (e) => ({
262
- name: "arrow",
263
- options: e,
264
- async fn(t) {
265
- const {
266
- x: n,
267
- y: i,
268
- placement: o,
269
- rects: s,
270
- platform: l,
271
- elements: r,
272
- middlewareData: a
273
- } = t, {
274
- element: c,
275
- padding: d = 0
276
- } = c2(e, t) || {};
277
- if (c == null)
278
- return {};
279
- const f = z2(d), C = {
280
- x: n,
281
- y: i
282
- }, u = D2(o), A = k2(u), m = await l.getDimensions(c), w = u === "y", p = w ? "top" : "left", v = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", h = s.reference[A] + s.reference[u] - C[u] - s.floating[A], g = C[u] - s.reference[u], y = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
283
- let B = y ? y[b] : 0;
284
- (!B || !await (l.isElement == null ? void 0 : l.isElement(y))) && (B = r.floating[b] || s.floating[A]);
285
- const D = h / 2 - g / 2, F = B / 2 - m[A] / 2 - 1, R = Y(f[p], F), Z = Y(f[v], F), X = R, u2 = B - m[A] - Z, L = B / 2 - m[A] / 2 + D, i2 = L2(X, L, u2), W = !a.arrow && d2(o) != null && L !== i2 && s.reference[A] / 2 - (L < X ? R : Z) - m[A] / 2 < 0, J = W ? L < X ? L - X : L - u2 : 0;
286
- return {
287
- [u]: C[u] + J,
288
- data: {
289
- [u]: i2,
290
- centerOffset: L - i2 - J,
291
- ...W && {
292
- alignmentOffset: J
293
- }
294
- },
295
- reset: W
296
- };
297
- }
298
- }), b0 = function(e) {
261
+ const yt = function(e) {
299
262
  return e === void 0 && (e = {}), {
300
263
  name: "flip",
301
264
  options: e,
@@ -305,69 +268,69 @@ const x0 = (e) => ({
305
268
  placement: o,
306
269
  middlewareData: s,
307
270
  rects: l,
308
- initialPlacement: r,
309
- platform: a,
271
+ initialPlacement: a,
272
+ platform: r,
310
273
  elements: c
311
274
  } = t, {
312
275
  mainAxis: d = !0,
313
- crossAxis: f = !0,
314
- fallbackPlacements: C,
315
- fallbackStrategy: u = "bestFit",
316
- fallbackAxisSideDirection: A = "none",
317
- flipAlignment: m = !0,
276
+ crossAxis: u = !0,
277
+ fallbackPlacements: g,
278
+ fallbackStrategy: f = "bestFit",
279
+ fallbackAxisSideDirection: h = "none",
280
+ flipAlignment: v = !0,
318
281
  ...w
319
- } = c2(e, t);
282
+ } = fe(e, t);
320
283
  if ((n = s.arrow) != null && n.alignmentOffset)
321
284
  return {};
322
- const p = z(o), v = e2(r), b = z(r) === r, h = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), g = C || (b || !m ? [v2(r)] : h0(r)), y = A !== "none";
323
- !C && y && g.push(...w0(r, m, A, h));
324
- const B = [r, ...g], D = await R2(t, w), F = [];
325
- let R = ((i = s.flip) == null ? void 0 : i.overflows) || [];
326
- if (d && F.push(D[p]), f) {
327
- const L = C0(o, l, h);
328
- F.push(D[L[0]], D[L[1]]);
285
+ const x = j(o), m = X(a), C = j(a) === a, L = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), T = g || (C || !v ? [ve(a)] : gt(a)), k = h !== "none";
286
+ !g && k && T.push(...vt(a, v, h, L));
287
+ const S = [a, ...T], V = await Ee(t, w), O = [];
288
+ let P = ((i = s.flip) == null ? void 0 : i.overflows) || [];
289
+ if (d && O.push(V[x]), u) {
290
+ const G = Ct(o, l, L);
291
+ O.push(V[G[0]], V[G[1]]);
329
292
  }
330
- if (R = [...R, {
293
+ if (P = [...P, {
331
294
  placement: o,
332
- overflows: F
333
- }], !F.every((L) => L <= 0)) {
334
- var Z, X;
335
- const L = (((Z = s.flip) == null ? void 0 : Z.index) || 0) + 1, i2 = B[L];
336
- if (i2)
295
+ overflows: O
296
+ }], !O.every((G) => G <= 0)) {
297
+ var oe, Me;
298
+ const G = (((oe = s.flip) == null ? void 0 : oe.index) || 0) + 1, Oe = S[G];
299
+ if (Oe)
337
300
  return {
338
301
  data: {
339
- index: L,
340
- overflows: R
302
+ index: G,
303
+ overflows: P
341
304
  },
342
305
  reset: {
343
- placement: i2
306
+ placement: Oe
344
307
  }
345
308
  };
346
- let W = (X = R.filter((J) => J.overflows[0] <= 0).sort((J, q) => J.overflows[1] - q.overflows[1])[0]) == null ? void 0 : X.placement;
347
- if (!W)
348
- switch (u) {
309
+ let se = (Me = P.filter((Q) => Q.overflows[0] <= 0).sort((Q, H) => Q.overflows[1] - H.overflows[1])[0]) == null ? void 0 : Me.placement;
310
+ if (!se)
311
+ switch (f) {
349
312
  case "bestFit": {
350
- var u2;
351
- const J = (u2 = R.filter((q) => {
352
- if (y) {
353
- const j = e2(q.placement);
354
- return j === v || // Create a bias to the `y` side axis due to horizontal
313
+ var Fe;
314
+ const Q = (Fe = P.filter((H) => {
315
+ if (k) {
316
+ const W = X(H.placement);
317
+ return W === m || // Create a bias to the `y` side axis due to horizontal
355
318
  // reading directions favoring greater width.
356
- j === "y";
319
+ W === "y";
357
320
  }
358
321
  return !0;
359
- }).map((q) => [q.placement, q.overflows.filter((j) => j > 0).reduce((j, l0) => j + l0, 0)]).sort((q, j) => q[1] - j[1])[0]) == null ? void 0 : u2[0];
360
- J && (W = J);
322
+ }).map((H) => [H.placement, H.overflows.filter((W) => W > 0).reduce((W, at) => W + at, 0)]).sort((H, W) => H[1] - W[1])[0]) == null ? void 0 : Fe[0];
323
+ Q && (se = Q);
361
324
  break;
362
325
  }
363
326
  case "initialPlacement":
364
- W = r;
327
+ se = a;
365
328
  break;
366
329
  }
367
- if (o !== W)
330
+ if (o !== se)
368
331
  return {
369
332
  reset: {
370
- placement: W
333
+ placement: se
371
334
  }
372
335
  };
373
336
  }
@@ -375,35 +338,35 @@ const x0 = (e) => ({
375
338
  }
376
339
  };
377
340
  };
378
- async function B0(e, t) {
341
+ async function Lt(e, t) {
379
342
  const {
380
343
  placement: n,
381
344
  platform: i,
382
345
  elements: o
383
- } = e, s = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), l = z(n), r = d2(n), a = e2(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, d = s && a ? -1 : 1, f = c2(t, e);
346
+ } = e, s = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), l = j(n), a = me(n), r = X(n) === "y", c = ["left", "top"].includes(l) ? -1 : 1, d = s && r ? -1 : 1, u = fe(t, e);
384
347
  let {
385
- mainAxis: C,
386
- crossAxis: u,
387
- alignmentAxis: A
388
- } = typeof f == "number" ? {
389
- mainAxis: f,
348
+ mainAxis: g,
349
+ crossAxis: f,
350
+ alignmentAxis: h
351
+ } = typeof u == "number" ? {
352
+ mainAxis: u,
390
353
  crossAxis: 0,
391
354
  alignmentAxis: null
392
355
  } : {
393
356
  mainAxis: 0,
394
357
  crossAxis: 0,
395
358
  alignmentAxis: null,
396
- ...f
359
+ ...u
397
360
  };
398
- return r && typeof A == "number" && (u = r === "end" ? A * -1 : A), a ? {
399
- x: u * d,
400
- y: C * c
361
+ return a && typeof h == "number" && (f = a === "end" ? h * -1 : h), r ? {
362
+ x: f * d,
363
+ y: g * c
401
364
  } : {
402
- x: C * c,
403
- y: u * d
365
+ x: g * c,
366
+ y: f * d
404
367
  };
405
368
  }
406
- const I0 = function(e) {
369
+ const Tt = function(e) {
407
370
  return e === void 0 && (e = 0), {
408
371
  name: "offset",
409
372
  options: e,
@@ -413,19 +376,19 @@ const I0 = function(e) {
413
376
  x: o,
414
377
  y: s,
415
378
  placement: l,
416
- middlewareData: r
417
- } = t, a = await B0(t, e);
418
- return l === ((n = r.offset) == null ? void 0 : n.placement) && (i = r.arrow) != null && i.alignmentOffset ? {} : {
419
- x: o + a.x,
420
- y: s + a.y,
379
+ middlewareData: a
380
+ } = t, r = await Lt(t, e);
381
+ return l === ((n = a.offset) == null ? void 0 : n.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
382
+ x: o + r.x,
383
+ y: s + r.y,
421
384
  data: {
422
- ...a,
385
+ ...r,
423
386
  placement: l
424
387
  }
425
388
  };
426
389
  }
427
390
  };
428
- }, y0 = function(e) {
391
+ }, St = function(e) {
429
392
  return e === void 0 && (e = {}), {
430
393
  name: "shift",
431
394
  options: e,
@@ -437,47 +400,47 @@ const I0 = function(e) {
437
400
  } = t, {
438
401
  mainAxis: s = !0,
439
402
  crossAxis: l = !1,
440
- limiter: r = {
403
+ limiter: a = {
441
404
  fn: (w) => {
442
405
  let {
443
- x: p,
444
- y: v
406
+ x,
407
+ y: m
445
408
  } = w;
446
409
  return {
447
- x: p,
448
- y: v
410
+ x,
411
+ y: m
449
412
  };
450
413
  }
451
414
  },
452
- ...a
453
- } = c2(e, t), c = {
415
+ ...r
416
+ } = fe(e, t), c = {
454
417
  x: n,
455
418
  y: i
456
- }, d = await R2(t, a), f = e2(z(o)), C = P2(f);
457
- let u = c[C], A = c[f];
419
+ }, d = await Ee(t, r), u = X(j(o)), g = Ye(u);
420
+ let f = c[g], h = c[u];
458
421
  if (s) {
459
- const w = C === "y" ? "top" : "left", p = C === "y" ? "bottom" : "right", v = u + d[w], b = u - d[p];
460
- u = L2(v, u, b);
422
+ const w = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", m = f + d[w], C = f - d[x];
423
+ f = De(m, f, C);
461
424
  }
462
425
  if (l) {
463
- const w = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", v = A + d[w], b = A - d[p];
464
- A = L2(v, A, b);
426
+ const w = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", m = h + d[w], C = h - d[x];
427
+ h = De(m, h, C);
465
428
  }
466
- const m = r.fn({
429
+ const v = a.fn({
467
430
  ...t,
468
- [C]: u,
469
- [f]: A
431
+ [g]: f,
432
+ [u]: h
470
433
  });
471
434
  return {
472
- ...m,
435
+ ...v,
473
436
  data: {
474
- x: m.x - n,
475
- y: m.y - i
437
+ x: v.x - n,
438
+ y: v.y - i
476
439
  }
477
440
  };
478
441
  }
479
442
  };
480
- }, E0 = function(e) {
443
+ }, At = function(e) {
481
444
  return e === void 0 && (e = {}), {
482
445
  name: "size",
483
446
  options: e,
@@ -490,26 +453,26 @@ const I0 = function(e) {
490
453
  } = t, {
491
454
  apply: l = () => {
492
455
  },
493
- ...r
494
- } = c2(e, t), a = await R2(t, r), c = z(n), d = d2(n), f = e2(n) === "y", {
495
- width: C,
496
- height: u
456
+ ...a
457
+ } = fe(e, t), r = await Ee(t, a), c = j(n), d = me(n), u = X(n) === "y", {
458
+ width: g,
459
+ height: f
497
460
  } = i.floating;
498
- let A, m;
499
- c === "top" || c === "bottom" ? (A = c, m = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = c, A = d === "end" ? "top" : "bottom");
500
- const w = u - a.top - a.bottom, p = C - a.left - a.right, v = Y(u - a[A], w), b = Y(C - a[m], p), h = !t.middlewareData.shift;
501
- let g = v, y = b;
502
- if (f ? y = d || h ? Y(b, p) : p : g = d || h ? Y(v, w) : w, h && !d) {
503
- const D = S(a.left, 0), F = S(a.right, 0), R = S(a.top, 0), Z = S(a.bottom, 0);
504
- f ? y = C - 2 * (D !== 0 || F !== 0 ? D + F : S(a.left, a.right)) : g = u - 2 * (R !== 0 || Z !== 0 ? R + Z : S(a.top, a.bottom));
461
+ let h, v;
462
+ c === "top" || c === "bottom" ? (h = c, v = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = c, h = d === "end" ? "top" : "bottom");
463
+ const w = f - r.top - r.bottom, x = g - r.left - r.right, m = z(f - r[h], w), C = z(g - r[v], x), L = !t.middlewareData.shift;
464
+ let T = m, k = C;
465
+ if (u ? k = d || L ? z(C, x) : x : T = d || L ? z(m, w) : w, L && !d) {
466
+ const V = $(r.left, 0), O = $(r.right, 0), P = $(r.top, 0), oe = $(r.bottom, 0);
467
+ u ? k = g - 2 * (V !== 0 || O !== 0 ? V + O : $(r.left, r.right)) : T = f - 2 * (P !== 0 || oe !== 0 ? P + oe : $(r.top, r.bottom));
505
468
  }
506
469
  await l({
507
470
  ...t,
508
- availableWidth: y,
509
- availableHeight: g
471
+ availableWidth: k,
472
+ availableHeight: T
510
473
  });
511
- const B = await o.getDimensions(s.floating);
512
- return C !== B.width || u !== B.height ? {
474
+ const S = await o.getDimensions(s.floating);
475
+ return g !== S.width || f !== S.height ? {
513
476
  reset: {
514
477
  rects: !0
515
478
  }
@@ -517,42 +480,42 @@ const I0 = function(e) {
517
480
  }
518
481
  };
519
482
  };
520
- function n2(e) {
521
- return T2(e) ? (e.nodeName || "").toLowerCase() : "#document";
483
+ function Y(e) {
484
+ return ke(e) ? (e.nodeName || "").toLowerCase() : "#document";
522
485
  }
523
- function M(e) {
486
+ function E(e) {
524
487
  var t;
525
488
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
526
489
  }
527
490
  function N(e) {
528
491
  var t;
529
- return (t = (T2(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
492
+ return (t = (ke(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
530
493
  }
531
- function T2(e) {
532
- return e instanceof Node || e instanceof M(e).Node;
494
+ function ke(e) {
495
+ return e instanceof Node || e instanceof E(e).Node;
533
496
  }
534
- function K(e) {
535
- return e instanceof Element || e instanceof M(e).Element;
497
+ function _(e) {
498
+ return e instanceof Element || e instanceof E(e).Element;
536
499
  }
537
- function V(e) {
538
- return e instanceof HTMLElement || e instanceof M(e).HTMLElement;
500
+ function D(e) {
501
+ return e instanceof HTMLElement || e instanceof E(e).HTMLElement;
539
502
  }
540
- function Y2(e) {
541
- return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M(e).ShadowRoot;
503
+ function Ne(e) {
504
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof E(e).ShadowRoot;
542
505
  }
543
- function C2(e) {
506
+ function he(e) {
544
507
  const {
545
508
  overflow: t,
546
509
  overflowX: n,
547
510
  overflowY: i,
548
511
  display: o
549
- } = G(e);
512
+ } = F(e);
550
513
  return /auto|scroll|overlay|hidden|clip/.test(t + i + n) && !["inline", "contents"].includes(o);
551
514
  }
552
- function L0(e) {
553
- return ["table", "td", "th"].includes(n2(e));
515
+ function $t(e) {
516
+ return ["table", "td", "th"].includes(Y(e));
554
517
  }
555
- function B2(e) {
518
+ function xe(e) {
556
519
  return [":popover-open", ":modal"].some((t) => {
557
520
  try {
558
521
  return e.matches(t);
@@ -561,32 +524,32 @@ function B2(e) {
561
524
  }
562
525
  });
563
526
  }
564
- function H2(e) {
565
- const t = O2(), n = G(e);
527
+ function Re(e) {
528
+ const t = Ie(), n = F(e);
566
529
  return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((i) => (n.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (n.contain || "").includes(i));
567
530
  }
568
- function Q0(e) {
569
- let t = $(e);
570
- for (; V(t) && !r2(t); ) {
571
- if (B2(t))
531
+ function Et(e) {
532
+ let t = K(e);
533
+ for (; D(t) && !ie(t); ) {
534
+ if (xe(t))
572
535
  return null;
573
- if (H2(t))
536
+ if (Re(t))
574
537
  return t;
575
- t = $(t);
538
+ t = K(t);
576
539
  }
577
540
  return null;
578
541
  }
579
- function O2() {
542
+ function Ie() {
580
543
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
581
544
  }
582
- function r2(e) {
583
- return ["html", "body", "#document"].includes(n2(e));
545
+ function ie(e) {
546
+ return ["html", "body", "#document"].includes(Y(e));
584
547
  }
585
- function G(e) {
586
- return M(e).getComputedStyle(e);
548
+ function F(e) {
549
+ return E(e).getComputedStyle(e);
587
550
  }
588
- function I2(e) {
589
- return K(e) ? {
551
+ function ye(e) {
552
+ return _(e) ? {
590
553
  scrollLeft: e.scrollLeft,
591
554
  scrollTop: e.scrollTop
592
555
  } : {
@@ -594,232 +557,232 @@ function I2(e) {
594
557
  scrollTop: e.scrollY
595
558
  };
596
559
  }
597
- function $(e) {
598
- if (n2(e) === "html")
560
+ function K(e) {
561
+ if (Y(e) === "html")
599
562
  return e;
600
563
  const t = (
601
564
  // Step into the shadow DOM of the parent of a slotted node.
602
565
  e.assignedSlot || // DOM Element detected.
603
566
  e.parentNode || // ShadowRoot detected.
604
- Y2(e) && e.host || // Fallback.
567
+ Ne(e) && e.host || // Fallback.
605
568
  N(e)
606
569
  );
607
- return Y2(t) ? t.host : t;
570
+ return Ne(t) ? t.host : t;
608
571
  }
609
- function $2(e) {
610
- const t = $(e);
611
- return r2(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && C2(t) ? t : $2(t);
572
+ function et(e) {
573
+ const t = K(e);
574
+ return ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : D(t) && he(t) ? t : et(t);
612
575
  }
613
- function g2(e, t, n) {
576
+ function de(e, t, n) {
614
577
  var i;
615
578
  t === void 0 && (t = []), n === void 0 && (n = !0);
616
- const o = $2(e), s = o === ((i = e.ownerDocument) == null ? void 0 : i.body), l = M(o);
617
- return s ? t.concat(l, l.visualViewport || [], C2(o) ? o : [], l.frameElement && n ? g2(l.frameElement) : []) : t.concat(o, g2(o, [], n));
579
+ const o = et(e), s = o === ((i = e.ownerDocument) == null ? void 0 : i.body), l = E(o);
580
+ return s ? t.concat(l, l.visualViewport || [], he(o) ? o : [], l.frameElement && n ? de(l.frameElement) : []) : t.concat(o, de(o, [], n));
618
581
  }
619
- function X2(e) {
620
- const t = G(e);
582
+ function tt(e) {
583
+ const t = F(e);
621
584
  let n = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
622
- const o = V(e), s = o ? e.offsetWidth : n, l = o ? e.offsetHeight : i, r = p2(n) !== s || p2(i) !== l;
623
- return r && (n = s, i = l), {
585
+ const o = D(e), s = o ? e.offsetWidth : n, l = o ? e.offsetHeight : i, a = pe(n) !== s || pe(i) !== l;
586
+ return a && (n = s, i = l), {
624
587
  width: n,
625
588
  height: i,
626
- $: r
589
+ $: a
627
590
  };
628
591
  }
629
- function G2(e) {
630
- return K(e) ? e : e.contextElement;
592
+ function Be(e) {
593
+ return _(e) ? e : e.contextElement;
631
594
  }
632
- function l2(e) {
633
- const t = G2(e);
634
- if (!V(t))
635
- return P(1);
595
+ function ne(e) {
596
+ const t = Be(e);
597
+ if (!D(t))
598
+ return U(1);
636
599
  const n = t.getBoundingClientRect(), {
637
600
  width: i,
638
601
  height: o,
639
602
  $: s
640
- } = X2(t);
641
- let l = (s ? p2(n.width) : n.width) / i, r = (s ? p2(n.height) : n.height) / o;
642
- return (!l || !Number.isFinite(l)) && (l = 1), (!r || !Number.isFinite(r)) && (r = 1), {
603
+ } = tt(t);
604
+ let l = (s ? pe(n.width) : n.width) / i, a = (s ? pe(n.height) : n.height) / o;
605
+ return (!l || !Number.isFinite(l)) && (l = 1), (!a || !Number.isFinite(a)) && (a = 1), {
643
606
  x: l,
644
- y: r
607
+ y: a
645
608
  };
646
609
  }
647
- const F0 = /* @__PURE__ */ P(0);
648
- function _2(e) {
649
- const t = M(e);
650
- return !O2() || !t.visualViewport ? F0 : {
610
+ const kt = /* @__PURE__ */ U(0);
611
+ function nt(e) {
612
+ const t = E(e);
613
+ return !Ie() || !t.visualViewport ? kt : {
651
614
  x: t.visualViewport.offsetLeft,
652
615
  y: t.visualViewport.offsetTop
653
616
  };
654
617
  }
655
- function S0(e, t, n) {
656
- return t === void 0 && (t = !1), !n || t && n !== M(e) ? !1 : t;
618
+ function Rt(e, t, n) {
619
+ return t === void 0 && (t = !1), !n || t && n !== E(e) ? !1 : t;
657
620
  }
658
- function t2(e, t, n, i) {
621
+ function q(e, t, n, i) {
659
622
  t === void 0 && (t = !1), n === void 0 && (n = !1);
660
- const o = e.getBoundingClientRect(), s = G2(e);
661
- let l = P(1);
662
- t && (i ? K(i) && (l = l2(i)) : l = l2(e));
663
- const r = S0(s, n, i) ? _2(s) : P(0);
664
- let a = (o.left + r.x) / l.x, c = (o.top + r.y) / l.y, d = o.width / l.x, f = o.height / l.y;
623
+ const o = e.getBoundingClientRect(), s = Be(e);
624
+ let l = U(1);
625
+ t && (i ? _(i) && (l = ne(i)) : l = ne(e));
626
+ const a = Rt(s, n, i) ? nt(s) : U(0);
627
+ let r = (o.left + a.x) / l.x, c = (o.top + a.y) / l.y, d = o.width / l.x, u = o.height / l.y;
665
628
  if (s) {
666
- const C = M(s), u = i && K(i) ? M(i) : i;
667
- let A = C, m = A.frameElement;
668
- for (; m && i && u !== A; ) {
669
- const w = l2(m), p = m.getBoundingClientRect(), v = G(m), b = p.left + (m.clientLeft + parseFloat(v.paddingLeft)) * w.x, h = p.top + (m.clientTop + parseFloat(v.paddingTop)) * w.y;
670
- a *= w.x, c *= w.y, d *= w.x, f *= w.y, a += b, c += h, A = M(m), m = A.frameElement;
629
+ const g = E(s), f = i && _(i) ? E(i) : i;
630
+ let h = g, v = h.frameElement;
631
+ for (; v && i && f !== h; ) {
632
+ const w = ne(v), x = v.getBoundingClientRect(), m = F(v), C = x.left + (v.clientLeft + parseFloat(m.paddingLeft)) * w.x, L = x.top + (v.clientTop + parseFloat(m.paddingTop)) * w.y;
633
+ r *= w.x, c *= w.y, d *= w.x, u *= w.y, r += C, c += L, h = E(v), v = h.frameElement;
671
634
  }
672
635
  }
673
- return x2({
636
+ return be({
674
637
  width: d,
675
- height: f,
676
- x: a,
638
+ height: u,
639
+ x: r,
677
640
  y: c
678
641
  });
679
642
  }
680
- function M0(e) {
643
+ function It(e) {
681
644
  let {
682
645
  elements: t,
683
646
  rect: n,
684
647
  offsetParent: i,
685
648
  strategy: o
686
649
  } = e;
687
- const s = o === "fixed", l = N(i), r = t ? B2(t.floating) : !1;
688
- if (i === l || r && s)
650
+ const s = o === "fixed", l = N(i), a = t ? xe(t.floating) : !1;
651
+ if (i === l || a && s)
689
652
  return n;
690
- let a = {
653
+ let r = {
691
654
  scrollLeft: 0,
692
655
  scrollTop: 0
693
- }, c = P(1);
694
- const d = P(0), f = V(i);
695
- if ((f || !f && !s) && ((n2(i) !== "body" || C2(l)) && (a = I2(i)), V(i))) {
696
- const C = t2(i);
697
- c = l2(i), d.x = C.x + i.clientLeft, d.y = C.y + i.clientTop;
656
+ }, c = U(1);
657
+ const d = U(0), u = D(i);
658
+ if ((u || !u && !s) && ((Y(i) !== "body" || he(l)) && (r = ye(i)), D(i))) {
659
+ const g = q(i);
660
+ c = ne(i), d.x = g.x + i.clientLeft, d.y = g.y + i.clientTop;
698
661
  }
699
662
  return {
700
663
  width: n.width * c.x,
701
664
  height: n.height * c.y,
702
- x: n.x * c.x - a.scrollLeft * c.x + d.x,
703
- y: n.y * c.y - a.scrollTop * c.y + d.y
665
+ x: n.x * c.x - r.scrollLeft * c.x + d.x,
666
+ y: n.y * c.y - r.scrollTop * c.y + d.y
704
667
  };
705
668
  }
706
- function k0(e) {
669
+ function Bt(e) {
707
670
  return Array.from(e.getClientRects());
708
671
  }
709
- function e0(e) {
710
- return t2(N(e)).left + I2(e).scrollLeft;
672
+ function it(e) {
673
+ return q(N(e)).left + ye(e).scrollLeft;
711
674
  }
712
- function D0(e) {
713
- const t = N(e), n = I2(e), i = e.ownerDocument.body, o = S(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), s = S(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
714
- let l = -n.scrollLeft + e0(e);
715
- const r = -n.scrollTop;
716
- return G(i).direction === "rtl" && (l += S(t.clientWidth, i.clientWidth) - o), {
675
+ function Mt(e) {
676
+ const t = N(e), n = ye(e), i = e.ownerDocument.body, o = $(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), s = $(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
677
+ let l = -n.scrollLeft + it(e);
678
+ const a = -n.scrollTop;
679
+ return F(i).direction === "rtl" && (l += $(t.clientWidth, i.clientWidth) - o), {
717
680
  width: o,
718
681
  height: s,
719
682
  x: l,
720
- y: r
683
+ y: a
721
684
  };
722
685
  }
723
- function R0(e, t) {
724
- const n = M(e), i = N(e), o = n.visualViewport;
725
- let s = i.clientWidth, l = i.clientHeight, r = 0, a = 0;
686
+ function Ft(e, t) {
687
+ const n = E(e), i = N(e), o = n.visualViewport;
688
+ let s = i.clientWidth, l = i.clientHeight, a = 0, r = 0;
726
689
  if (o) {
727
690
  s = o.width, l = o.height;
728
- const c = O2();
729
- (!c || c && t === "fixed") && (r = o.offsetLeft, a = o.offsetTop);
691
+ const c = Ie();
692
+ (!c || c && t === "fixed") && (a = o.offsetLeft, r = o.offsetTop);
730
693
  }
731
694
  return {
732
695
  width: s,
733
696
  height: l,
734
- x: r,
735
- y: a
697
+ x: a,
698
+ y: r
736
699
  };
737
700
  }
738
- function T0(e, t) {
739
- const n = t2(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, s = V(e) ? l2(e) : P(1), l = e.clientWidth * s.x, r = e.clientHeight * s.y, a = o * s.x, c = i * s.y;
701
+ function Ot(e, t) {
702
+ const n = q(e, !0, t === "fixed"), i = n.top + e.clientTop, o = n.left + e.clientLeft, s = D(e) ? ne(e) : U(1), l = e.clientWidth * s.x, a = e.clientHeight * s.y, r = o * s.x, c = i * s.y;
740
703
  return {
741
704
  width: l,
742
- height: r,
743
- x: a,
705
+ height: a,
706
+ x: r,
744
707
  y: c
745
708
  };
746
709
  }
747
- function K2(e, t, n) {
710
+ function Pe(e, t, n) {
748
711
  let i;
749
712
  if (t === "viewport")
750
- i = R0(e, n);
713
+ i = Ft(e, n);
751
714
  else if (t === "document")
752
- i = D0(N(e));
753
- else if (K(t))
754
- i = T0(t, n);
715
+ i = Mt(N(e));
716
+ else if (_(t))
717
+ i = Ot(t, n);
755
718
  else {
756
- const o = _2(e);
719
+ const o = nt(e);
757
720
  i = {
758
721
  ...t,
759
722
  x: t.x - o.x,
760
723
  y: t.y - o.y
761
724
  };
762
725
  }
763
- return x2(i);
726
+ return be(i);
764
727
  }
765
- function t0(e, t) {
766
- const n = $(e);
767
- return n === t || !K(n) || r2(n) ? !1 : G(n).position === "fixed" || t0(n, t);
728
+ function ot(e, t) {
729
+ const n = K(e);
730
+ return n === t || !_(n) || ie(n) ? !1 : F(n).position === "fixed" || ot(n, t);
768
731
  }
769
- function H0(e, t) {
732
+ function _t(e, t) {
770
733
  const n = t.get(e);
771
734
  if (n)
772
735
  return n;
773
- let i = g2(e, [], !1).filter((r) => K(r) && n2(r) !== "body"), o = null;
774
- const s = G(e).position === "fixed";
775
- let l = s ? $(e) : e;
776
- for (; K(l) && !r2(l); ) {
777
- const r = G(l), a = H2(l);
778
- !a && r.position === "fixed" && (o = null), (s ? !a && !o : !a && r.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || C2(l) && !a && t0(e, l)) ? i = i.filter((d) => d !== l) : o = r, l = $(l);
736
+ let i = de(e, [], !1).filter((a) => _(a) && Y(a) !== "body"), o = null;
737
+ const s = F(e).position === "fixed";
738
+ let l = s ? K(e) : e;
739
+ for (; _(l) && !ie(l); ) {
740
+ const a = F(l), r = Re(l);
741
+ !r && a.position === "fixed" && (o = null), (s ? !r && !o : !r && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || he(l) && !r && ot(e, l)) ? i = i.filter((d) => d !== l) : o = a, l = K(l);
779
742
  }
780
743
  return t.set(e, i), i;
781
744
  }
782
- function O0(e) {
745
+ function Dt(e) {
783
746
  let {
784
747
  element: t,
785
748
  boundary: n,
786
749
  rootBoundary: i,
787
750
  strategy: o
788
751
  } = e;
789
- const l = [...n === "clippingAncestors" ? B2(t) ? [] : H0(t, this._c) : [].concat(n), i], r = l[0], a = l.reduce((c, d) => {
790
- const f = K2(t, d, o);
791
- return c.top = S(f.top, c.top), c.right = Y(f.right, c.right), c.bottom = Y(f.bottom, c.bottom), c.left = S(f.left, c.left), c;
792
- }, K2(t, r, o));
752
+ const l = [...n === "clippingAncestors" ? xe(t) ? [] : _t(t, this._c) : [].concat(n), i], a = l[0], r = l.reduce((c, d) => {
753
+ const u = Pe(t, d, o);
754
+ return c.top = $(u.top, c.top), c.right = z(u.right, c.right), c.bottom = z(u.bottom, c.bottom), c.left = $(u.left, c.left), c;
755
+ }, Pe(t, a, o));
793
756
  return {
794
- width: a.right - a.left,
795
- height: a.bottom - a.top,
796
- x: a.left,
797
- y: a.top
757
+ width: r.right - r.left,
758
+ height: r.bottom - r.top,
759
+ x: r.left,
760
+ y: r.top
798
761
  };
799
762
  }
800
- function G0(e) {
763
+ function Vt(e) {
801
764
  const {
802
765
  width: t,
803
766
  height: n
804
- } = X2(e);
767
+ } = tt(e);
805
768
  return {
806
769
  width: t,
807
770
  height: n
808
771
  };
809
772
  }
810
- function J0(e, t, n) {
811
- const i = V(t), o = N(t), s = n === "fixed", l = t2(e, !0, s, t);
812
- let r = {
773
+ function Nt(e, t, n) {
774
+ const i = D(t), o = N(t), s = n === "fixed", l = q(e, !0, s, t);
775
+ let a = {
813
776
  scrollLeft: 0,
814
777
  scrollTop: 0
815
778
  };
816
- const a = P(0);
779
+ const r = U(0);
817
780
  if (i || !i && !s)
818
- if ((n2(t) !== "body" || C2(o)) && (r = I2(t)), i) {
819
- const f = t2(t, !0, s, t);
820
- a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
821
- } else o && (a.x = e0(o));
822
- const c = l.left + r.scrollLeft - a.x, d = l.top + r.scrollTop - a.y;
781
+ if ((Y(t) !== "body" || he(o)) && (a = ye(t)), i) {
782
+ const u = q(t, !0, s, t);
783
+ r.x = u.x + t.clientLeft, r.y = u.y + t.clientTop;
784
+ } else o && (r.x = it(o));
785
+ const c = l.left + a.scrollLeft - r.x, d = l.top + a.scrollTop - r.y;
823
786
  return {
824
787
  x: c,
825
788
  y: d,
@@ -827,34 +790,34 @@ function J0(e, t, n) {
827
790
  height: l.height
828
791
  };
829
792
  }
830
- function E2(e) {
831
- return G(e).position === "static";
793
+ function Le(e) {
794
+ return F(e).position === "static";
832
795
  }
833
- function V2(e, t) {
834
- return !V(e) || G(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
796
+ function He(e, t) {
797
+ return !D(e) || F(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
835
798
  }
836
- function n0(e, t) {
837
- const n = M(e);
838
- if (B2(e))
799
+ function st(e, t) {
800
+ const n = E(e);
801
+ if (xe(e))
839
802
  return n;
840
- if (!V(e)) {
841
- let o = $(e);
842
- for (; o && !r2(o); ) {
843
- if (K(o) && !E2(o))
803
+ if (!D(e)) {
804
+ let o = K(e);
805
+ for (; o && !ie(o); ) {
806
+ if (_(o) && !Le(o))
844
807
  return o;
845
- o = $(o);
808
+ o = K(o);
846
809
  }
847
810
  return n;
848
811
  }
849
- let i = V2(e, t);
850
- for (; i && L0(i) && E2(i); )
851
- i = V2(i, t);
852
- return i && r2(i) && E2(i) && !H2(i) ? n : i || Q0(e) || n;
812
+ let i = He(e, t);
813
+ for (; i && $t(i) && Le(i); )
814
+ i = He(i, t);
815
+ return i && ie(i) && Le(i) && !Re(i) ? n : i || Et(e) || n;
853
816
  }
854
- const U0 = async function(e) {
855
- const t = this.getOffsetParent || n0, n = this.getDimensions, i = await n(e.floating);
817
+ const Pt = async function(e) {
818
+ const t = this.getOffsetParent || st, n = this.getDimensions, i = await n(e.floating);
856
819
  return {
857
- reference: J0(e.reference, await t(e.floating), e.strategy),
820
+ reference: Nt(e.reference, await t(e.floating), e.strategy),
858
821
  floating: {
859
822
  x: 0,
860
823
  y: 0,
@@ -863,264 +826,258 @@ const U0 = async function(e) {
863
826
  }
864
827
  };
865
828
  };
866
- function Y0(e) {
867
- return G(e).direction === "rtl";
829
+ function Ht(e) {
830
+ return F(e).direction === "rtl";
868
831
  }
869
- const K0 = {
870
- convertOffsetParentRelativeRectToViewportRelativeRect: M0,
832
+ const Wt = {
833
+ convertOffsetParentRelativeRectToViewportRelativeRect: It,
871
834
  getDocumentElement: N,
872
- getClippingRect: O0,
873
- getOffsetParent: n0,
874
- getElementRects: U0,
875
- getClientRects: k0,
876
- getDimensions: G0,
877
- getScale: l2,
878
- isElement: K,
879
- isRTL: Y0
835
+ getClippingRect: Dt,
836
+ getOffsetParent: st,
837
+ getElementRects: Pt,
838
+ getClientRects: Bt,
839
+ getDimensions: Vt,
840
+ getScale: ne,
841
+ isElement: _,
842
+ isRTL: Ht
880
843
  };
881
- function V0(e, t) {
844
+ function zt(e, t) {
882
845
  let n = null, i;
883
846
  const o = N(e);
884
847
  function s() {
885
- var r;
886
- clearTimeout(i), (r = n) == null || r.disconnect(), n = null;
848
+ var a;
849
+ clearTimeout(i), (a = n) == null || a.disconnect(), n = null;
887
850
  }
888
- function l(r, a) {
889
- r === void 0 && (r = !1), a === void 0 && (a = 1), s();
851
+ function l(a, r) {
852
+ a === void 0 && (a = !1), r === void 0 && (r = 1), s();
890
853
  const {
891
854
  left: c,
892
855
  top: d,
893
- width: f,
894
- height: C
856
+ width: u,
857
+ height: g
895
858
  } = e.getBoundingClientRect();
896
- if (r || t(), !f || !C)
859
+ if (a || t(), !u || !g)
897
860
  return;
898
- const u = m2(d), A = m2(o.clientWidth - (c + f)), m = m2(o.clientHeight - (d + C)), w = m2(c), v = {
899
- rootMargin: -u + "px " + -A + "px " + -m + "px " + -w + "px",
900
- threshold: S(0, Y(1, a)) || 1
861
+ const f = Ce(d), h = Ce(o.clientWidth - (c + u)), v = Ce(o.clientHeight - (d + g)), w = Ce(c), m = {
862
+ rootMargin: -f + "px " + -h + "px " + -v + "px " + -w + "px",
863
+ threshold: $(0, z(1, r)) || 1
901
864
  };
902
- let b = !0;
903
- function h(g) {
904
- const y = g[0].intersectionRatio;
905
- if (y !== a) {
906
- if (!b)
865
+ let C = !0;
866
+ function L(T) {
867
+ const k = T[0].intersectionRatio;
868
+ if (k !== r) {
869
+ if (!C)
907
870
  return l();
908
- y ? l(!1, y) : i = setTimeout(() => {
871
+ k ? l(!1, k) : i = setTimeout(() => {
909
872
  l(!1, 1e-7);
910
873
  }, 1e3);
911
874
  }
912
- b = !1;
875
+ C = !1;
913
876
  }
914
877
  try {
915
- n = new IntersectionObserver(h, {
916
- ...v,
878
+ n = new IntersectionObserver(L, {
879
+ ...m,
917
880
  // Handle <iframe>s
918
881
  root: o.ownerDocument
919
882
  });
920
883
  } catch {
921
- n = new IntersectionObserver(h, v);
884
+ n = new IntersectionObserver(L, m);
922
885
  }
923
886
  n.observe(e);
924
887
  }
925
888
  return l(!0), s;
926
889
  }
927
- function W0(e, t, n, i) {
890
+ function Zt(e, t, n, i) {
928
891
  i === void 0 && (i = {});
929
892
  const {
930
893
  ancestorScroll: o = !0,
931
894
  ancestorResize: s = !0,
932
895
  elementResize: l = typeof ResizeObserver == "function",
933
- layoutShift: r = typeof IntersectionObserver == "function",
934
- animationFrame: a = !1
935
- } = i, c = G2(e), d = o || s ? [...c ? g2(c) : [], ...g2(t)] : [];
936
- d.forEach((p) => {
937
- o && p.addEventListener("scroll", n, {
896
+ layoutShift: a = typeof IntersectionObserver == "function",
897
+ animationFrame: r = !1
898
+ } = i, c = Be(e), d = o || s ? [...c ? de(c) : [], ...de(t)] : [];
899
+ d.forEach((x) => {
900
+ o && x.addEventListener("scroll", n, {
938
901
  passive: !0
939
- }), s && p.addEventListener("resize", n);
902
+ }), s && x.addEventListener("resize", n);
940
903
  });
941
- const f = c && r ? V0(c, n) : null;
942
- let C = -1, u = null;
943
- l && (u = new ResizeObserver((p) => {
944
- let [v] = p;
945
- v && v.target === c && u && (u.unobserve(t), cancelAnimationFrame(C), C = requestAnimationFrame(() => {
946
- var b;
947
- (b = u) == null || b.observe(t);
904
+ const u = c && a ? zt(c, n) : null;
905
+ let g = -1, f = null;
906
+ l && (f = new ResizeObserver((x) => {
907
+ let [m] = x;
908
+ m && m.target === c && f && (f.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
909
+ var C;
910
+ (C = f) == null || C.observe(t);
948
911
  })), n();
949
- }), c && !a && u.observe(c), u.observe(t));
950
- let A, m = a ? t2(e) : null;
951
- a && w();
912
+ }), c && !r && f.observe(c), f.observe(t));
913
+ let h, v = r ? q(e) : null;
914
+ r && w();
952
915
  function w() {
953
- const p = t2(e);
954
- m && (p.x !== m.x || p.y !== m.y || p.width !== m.width || p.height !== m.height) && n(), m = p, A = requestAnimationFrame(w);
916
+ const x = q(e);
917
+ v && (x.x !== v.x || x.y !== v.y || x.width !== v.width || x.height !== v.height) && n(), v = x, h = requestAnimationFrame(w);
955
918
  }
956
919
  return n(), () => {
957
- var p;
958
- d.forEach((v) => {
959
- o && v.removeEventListener("scroll", n), s && v.removeEventListener("resize", n);
960
- }), f == null || f(), (p = u) == null || p.disconnect(), u = null, a && cancelAnimationFrame(A);
920
+ var x;
921
+ d.forEach((m) => {
922
+ o && m.removeEventListener("scroll", n), s && m.removeEventListener("resize", n);
923
+ }), u == null || u(), (x = f) == null || x.disconnect(), f = null, r && cancelAnimationFrame(h);
961
924
  };
962
925
  }
963
- const N0 = I0, Z0 = y0, q0 = b0, j0 = E0, P0 = x0, z0 = (e, t, n) => {
926
+ const Ut = Tt, jt = St, Kt = yt, Gt = At, Xt = (e, t, n) => {
964
927
  const i = /* @__PURE__ */ new Map(), o = {
965
- platform: K0,
928
+ platform: Wt,
966
929
  ...n
967
930
  }, s = {
968
931
  ...o.platform,
969
932
  _c: i
970
933
  };
971
- return v0(e, t, {
934
+ return xt(e, t, {
972
935
  ...o,
973
936
  platform: s
974
937
  });
975
938
  };
976
- function $0(e) {
939
+ function qt(e) {
977
940
  return e != null && typeof e == "object" && "$el" in e;
978
941
  }
979
- function F2(e) {
980
- if ($0(e)) {
942
+ function We(e) {
943
+ if (qt(e)) {
981
944
  const t = e.$el;
982
- return T2(t) && n2(t) === "#comment" ? null : t;
945
+ return ke(t) && Y(t) === "#comment" ? null : t;
983
946
  }
984
947
  return e;
985
948
  }
986
- function s2(e) {
987
- return typeof e == "function" ? e() : O(e);
988
- }
989
- function X0(e) {
990
- return {
991
- name: "arrow",
992
- options: e,
993
- fn(t) {
994
- const n = F2(s2(e.element));
995
- return n == null ? {} : P0({
996
- element: n,
997
- padding: e.padding
998
- }).fn(t);
999
- }
1000
- };
949
+ function le(e) {
950
+ return typeof e == "function" ? e() : ge(e);
1001
951
  }
1002
- function i0(e) {
952
+ function lt(e) {
1003
953
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1004
954
  }
1005
- function W2(e, t) {
1006
- const n = i0(e);
955
+ function ze(e, t) {
956
+ const n = lt(e);
1007
957
  return Math.round(t * n) / n;
1008
958
  }
1009
- function _0(e, t, n) {
959
+ function Yt(e, t, n) {
1010
960
  n === void 0 && (n = {});
1011
- const i = n.whileElementsMounted, o = Q(() => {
1012
- var B;
1013
- return (B = s2(n.open)) != null ? B : !0;
1014
- }), s = Q(() => s2(n.middleware)), l = Q(() => {
1015
- var B;
1016
- return (B = s2(n.placement)) != null ? B : "bottom";
1017
- }), r = Q(() => {
1018
- var B;
1019
- return (B = s2(n.strategy)) != null ? B : "absolute";
1020
- }), a = Q(() => {
1021
- var B;
1022
- return (B = s2(n.transform)) != null ? B : !0;
1023
- }), c = Q(() => F2(e.value)), d = Q(() => F2(t.value)), f = T(0), C = T(0), u = T(r.value), A = T(l.value), m = a0({}), w = T(!1), p = Q(() => {
1024
- const B = {
1025
- position: u.value,
961
+ const i = n.whileElementsMounted, o = R(() => {
962
+ var S;
963
+ return (S = le(n.open)) != null ? S : !0;
964
+ }), s = R(() => le(n.middleware)), l = R(() => {
965
+ var S;
966
+ return (S = le(n.placement)) != null ? S : "bottom";
967
+ }), a = R(() => {
968
+ var S;
969
+ return (S = le(n.strategy)) != null ? S : "absolute";
970
+ }), r = R(() => {
971
+ var S;
972
+ return (S = le(n.transform)) != null ? S : !0;
973
+ }), c = R(() => We(e.value)), d = R(() => We(t.value)), u = B(0), g = B(0), f = B(a.value), h = B(l.value), v = ct({}), w = B(!1), x = R(() => {
974
+ const S = {
975
+ position: f.value,
1026
976
  left: "0",
1027
977
  top: "0"
1028
978
  };
1029
979
  if (!d.value)
1030
- return B;
1031
- const D = W2(d.value, f.value), F = W2(d.value, C.value);
1032
- return a.value ? {
1033
- ...B,
1034
- transform: "translate(" + D + "px, " + F + "px)",
1035
- ...i0(d.value) >= 1.5 && {
980
+ return S;
981
+ const V = ze(d.value, u.value), O = ze(d.value, g.value);
982
+ return r.value ? {
983
+ ...S,
984
+ transform: "translate(" + V + "px, " + O + "px)",
985
+ ...lt(d.value) >= 1.5 && {
1036
986
  willChange: "transform"
1037
987
  }
1038
988
  } : {
1039
- position: u.value,
1040
- left: D + "px",
1041
- top: F + "px"
989
+ position: f.value,
990
+ left: V + "px",
991
+ top: O + "px"
1042
992
  };
1043
993
  });
1044
- let v;
1045
- function b() {
1046
- c.value == null || d.value == null || z0(c.value, d.value, {
994
+ let m;
995
+ function C() {
996
+ c.value == null || d.value == null || Xt(c.value, d.value, {
1047
997
  middleware: s.value,
1048
998
  placement: l.value,
1049
- strategy: r.value
1050
- }).then((B) => {
1051
- f.value = B.x, C.value = B.y, u.value = B.strategy, A.value = B.placement, m.value = B.middlewareData, w.value = !0;
999
+ strategy: a.value
1000
+ }).then((S) => {
1001
+ u.value = S.x, g.value = S.y, f.value = S.strategy, h.value = S.placement, v.value = S.middlewareData, w.value = !0;
1052
1002
  });
1053
1003
  }
1054
- function h() {
1055
- typeof v == "function" && (v(), v = void 0);
1004
+ function L() {
1005
+ typeof m == "function" && (m(), m = void 0);
1056
1006
  }
1057
- function g() {
1058
- if (h(), i === void 0) {
1059
- b();
1007
+ function T() {
1008
+ if (L(), i === void 0) {
1009
+ C();
1060
1010
  return;
1061
1011
  }
1062
1012
  if (c.value != null && d.value != null) {
1063
- v = i(c.value, d.value, b);
1013
+ m = i(c.value, d.value, C);
1064
1014
  return;
1065
1015
  }
1066
1016
  }
1067
- function y() {
1017
+ function k() {
1068
1018
  o.value || (w.value = !1);
1069
1019
  }
1070
- return A2([s, l, r], b, {
1020
+ return te([s, l, a], C, {
1071
1021
  flush: "sync"
1072
- }), A2([c, d], g, {
1022
+ }), te([c, d], T, {
1073
1023
  flush: "sync"
1074
- }), A2(o, y, {
1024
+ }), te(o, k, {
1075
1025
  flush: "sync"
1076
- }), r0() && c0(h), {
1077
- x: o2(f),
1078
- y: o2(C),
1079
- strategy: o2(u),
1080
- placement: o2(A),
1081
- middlewareData: o2(m),
1082
- isPositioned: o2(w),
1083
- floatingStyles: p,
1084
- update: b
1026
+ }), dt() && ut(L), {
1027
+ x: ee(u),
1028
+ y: ee(g),
1029
+ strategy: ee(f),
1030
+ placement: ee(h),
1031
+ middlewareData: ee(v),
1032
+ isPositioned: ee(w),
1033
+ floatingStyles: x,
1034
+ update: C
1085
1035
  };
1086
1036
  }
1087
- const ee = "data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e", h2 = (e, t) => {
1037
+ const Jt = "data:image/svg+xml,%3csvg%20width='1324'%20height='1326'%20viewBox='0%200%201324%201326'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='141'%20y='78'%20width='1042'%20height='1170'%20fill='white'/%3e%3cpath%20d='M184.533%201.99984C135.867%207.19984%2089.8666%2029.8665%2056.4%2065.1998C29.6%2093.4665%2012.5333%20126.266%203.73329%20166.4L0.666626%20180V663.333V1146.67L3.73329%201160.27C12.5333%201200.4%2029.6%201233.2%2056.4%201261.47C90.4%201297.33%20135.333%201319.33%20185.6%201324.67C203.333%201326.53%201122.53%201326.4%201139.73%201324.53C1188.53%201319.33%201229.07%201299.73%201264.13%201264.8C1294.27%201234.67%201311.47%201202.67%201320.8%201159.33C1323.2%201148.4%201323.33%201130%201323.33%20663.333C1323.33%20196.667%201323.2%20178.266%201320.8%20167.333C1311.47%20124%201294.27%2091.9998%201264.13%2061.8664C1229.07%2026.9331%201188.53%207.33314%201139.73%202.13314C1124.67%200.399809%20200%200.399842%20184.533%201.99984ZM732.933%20151.466C746.8%20152.933%20763.333%20157.6%20774%20163.067C800.267%20176.267%20822.4%20200.4%20833.2%20227.333C841.867%20249.333%20841.467%20233.467%20841.067%20502C840.533%20777.6%20841.733%20750.267%20829.2%20776.133C822.133%20790.933%20810.667%20806.533%20800.267%20815.2C795.2%20819.6%20793.2%20822.267%20792%20827.067C786.133%20848.267%20768.667%20885.867%20755.2%20906.133C724.533%20952%20681.2%20986.133%20624%201009.33C615.6%201012.8%20608.4%201015.87%20608.133%201016.13C607.867%201016.27%20614.533%201023.33%20622.933%201031.6C633.467%201042.13%20639.333%201049.07%20642.133%201054.4C646.933%201063.87%20645.467%201064%20672.667%201050.8C724.933%201025.47%20762.933%20994.8%20794.933%20952C811.467%20929.867%20829.867%20895.333%20839.333%20868.267C841.333%20862.667%20843.467%20858%20844.133%20858C844.667%20858%20845.6%20859.333%20846.133%20860.933C848.267%20868.133%20863.333%20900.8%20870.133%20913.2C898%20963.867%20931.6%201001.2%20975.333%201030.27C989.867%201040%201017.2%201054.4%201031.6%201059.73L1037.2%201061.87L1041.33%201054.67C1048.4%201042.4%201056.67%201032.27%201067.87%201022.4L1078.67%201012.8L1071.6%201010.27C1067.87%201008.8%201060.53%201006%201055.6%201004.13C1040.93%20998.533%201013.73%20984%201000%20974.267C985.733%20964.133%20960.8%20940.667%20948.933%20926.267C935.067%20909.333%20921.467%20887.467%20910%20864C900.133%20844%20887.2%20812.133%20884.667%20801.6L883.733%20798H971.867H1060V769.333V740.667H963.333H866.533L867.333%20736.267C868.4%20729.867%20870.4%20693.067%20871.467%20662.933C872.267%20639.067%20872.533%20636.4%20874.8%20635.2C878.667%20633.2%20881.333%20626.667%20882.267%20617.333L883.067%20608.667H872.133C864.133%20608.667%20861.067%20608.133%20860.533%20606.8C860%20605.467%20881.2%20466%20886.133%20438.267L886.933%20433.867L977.867%20434.4C1066.67%20434.8%201068.93%20434.8%201079.87%20437.733C1124.8%20449.6%201158.67%20482.533%201172.93%20528L1176.67%20540V808V1076L1172.93%201087.73C1158.53%201133.6%201126.13%201164.93%201078.93%201178.4L1068.67%201181.33L812.667%201181.73C638.8%201182%20552.667%201181.73%20544.4%201180.67C488.667%201174.4%20443.2%201132.13%20432.533%201076.93C431.067%201068.93%20430.667%201046.4%20430.667%20956.667V846.133L340.4%20845.6C252.8%20845.2%20249.6%20845.067%20239.067%20842.267C196.533%20831.067%20164.533%20800.133%20151.067%20757.333L147.333%20745.333V499.333V253.333L150.4%20242C159.067%20209.067%20180.4%20181.866%20210.667%20164.933C221.2%20159.066%20240.4%20152.933%20252.667%20151.6C268.533%20149.733%20716.933%20149.6%20732.933%20151.466Z'%20fill='%233B5695'/%3e%3cpath%20d='M256.533%20213.333C232.933%20218.533%20214.133%20237.067%20209.333%20259.733C208.4%20264.533%20208%20337.2%20208.267%20502L208.667%20737.333L211.733%20744.933C218.533%20761.733%20231.733%20774.533%20248.667%20780.933L256.667%20784L490%20784.4C749.2%20784.8%20734.4%20785.333%20750.133%20776C764.267%20767.6%20775.467%20752.4%20778.667%20737.067C779.6%20732.8%20780%20652.133%20779.733%20494L779.333%20257.333L775.067%20248.267C767.2%20231.6%20756.933%20222%20740.133%20215.467L731.333%20212L498%20211.733C306.8%20211.6%20263.2%20211.867%20256.533%20213.333ZM492%20281.2C546.267%20290.267%20590.267%20311.2%20622.533%20343.333C653.867%20374.667%20671.867%20409.867%20680.267%20456.667C684.133%20478.533%20684.133%20516.267%20680.133%20538.533C665.467%20621.067%20606.933%20684.4%20524%20707.467C490%20716.933%20488.4%20716.933%20392.4%20717.6L305.333%20718.133V498V277.867L391.733%20278.4C465.733%20278.8%20480%20279.2%20492%20281.2Z'%20fill='%233B5695'/%3e%3cpath%20d='M384%20462.933V576.133L345.067%20611.467C306.533%20646.267%20306.133%20646.667%20310.667%20647.067C313.2%20647.333%20348.933%20647.333%20390%20646.933C472.667%20646.267%20477.6%20645.867%20503.6%20637.333C527.6%20629.333%20543.333%20620%20560.267%20603.6C590.133%20574.667%20604.4%20536.267%20602.267%20489.733C600.533%20450.267%20588.267%20420%20564%20395.333C546.8%20377.867%20531.6%20368.4%20506.267%20360C482.933%20352.133%20474.533%20351.2%20427.067%20350.4L384%20349.733V462.933Z'%20fill='%233B5695'/%3e%3c/svg%3e", J = (e, t) => {
1088
1038
  const n = e.__vccOpts || e;
1089
1039
  for (const [i, o] of t)
1090
1040
  n[i] = o;
1091
1041
  return n;
1092
- }, te = {
1042
+ }, Qt = {
1093
1043
  name: "Logo"
1094
- }, ne = {
1095
- src: ee,
1044
+ }, en = {
1045
+ src: Jt,
1096
1046
  alt: "DDict Logo",
1097
1047
  class: "w-6 h-6 cursor-pointer"
1098
1048
  };
1099
- function ie(e, t, n, i, o, s) {
1100
- return x(), I("img", ne);
1101
- }
1102
- const oe = /* @__PURE__ */ h2(te, [["render", ie]]), se = "data:image/gif;base64,R0lGODlhQAAmAPQAAM3Nzerq6sbGxu3t7dnZ2eHh4bW1tfv7+/Ly8re3t7y8vPz8/MLCwvX19fj4+N7e3rq6ur6+vsDAwPb29tLS0vDw8MnJydzc3OTk5NTU1NDQ0NbW1ufn57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HgekZsIkmk01HoGGx5NeiMPCIYiGoSKIoiOjIWKkIqSjh+VhpeOmnqclImWjZ2im6SUE3mBF6iGDx4TBIAmbD0eAZMvCkYiHg0UciMSGCm+BwWrJgkbZSRfAHsPRyY5BMIfBgAIUiULAQ8N3UkIGkMCA1w3LooeA1vjIQAh+QQFAwAfACwpABMAEQATAAAFZuAnjovTeGOaloUEbROqfsfCCcYYPY4sLgNAbibgLEQISmKWMlgGHguTCVlIp6qEFZvdckfa6/cTHovKZvRYCzB/FKWHgpvYnD6eCWGpMgAQPiIeCBpDHwIBR1NAAhEYB4GLC5EiIQAh+QQFQwAfACwpABMAEQATAAAFYuAnjp/nkSjpNQQ1nKnoOU8kQhsCj97BMQaU4uGAeQKWYOzDwCw+g8SSZCgcpyjCFTvSBrjdLdgLFpHL57GnogAbMKZGRhozAF48BEA5YgSeKQsBAiIKGAc7KT0YBUVlJkshADs=", le = {
1103
- name: "Loading"
1104
- }, ae = (e) => (d0("data-v-a0957544"), e = e(), u0(), e), re = { class: "rounded-lg bg-white p-1 border shadow-custom border-solid border-neutral-300" }, ce = /* @__PURE__ */ ae(() => /* @__PURE__ */ E("img", {
1105
- src: se,
1106
- alt: "Loading",
1107
- class: "w-12"
1108
- }, null, -1)), de = [
1109
- ce
1049
+ function tn(e, t, n, i, o, s) {
1050
+ return p(), b("img", en);
1051
+ }
1052
+ const nn = /* @__PURE__ */ J(Qt, [["render", tn]]), on = {}, sn = {
1053
+ class: "w-12 h-12 text-primary",
1054
+ xmlns: "http://www.w3.org/2000/svg",
1055
+ viewBox: "0 0 24 24"
1056
+ }, ln = /* @__PURE__ */ Ae('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), rn = [
1057
+ ln
1110
1058
  ];
1111
- function ue(e, t, n, i, o, s) {
1112
- return x(), I("div", re, de);
1059
+ function an(e, t) {
1060
+ return p(), b("svg", sn, rn);
1113
1061
  }
1114
- const fe = /* @__PURE__ */ h2(le, [["render", ue], ["__scopeId", "data-v-a0957544"]]), Ae = {
1062
+ const cn = /* @__PURE__ */ J(on, [["render", an]]), dn = { class: "rounded-lg bg-base-100 px-4 py-2 border border-base-300 shadow-lg" }, un = { class: "flex justify-center" }, fn = {
1063
+ __name: "Loading",
1064
+ setup(e) {
1065
+ return (t, n) => (p(), b("div", dn, [
1066
+ y("div", un, [
1067
+ Z(cn)
1068
+ ])
1069
+ ]));
1070
+ }
1071
+ }, mn = {
1115
1072
  name: "Phonetic",
1116
1073
  props: ["phonetic"]
1117
- }, ge = { class: "p-0 m-0" }, Ce = { class: "text-xs font-md text-slate-400" };
1118
- function he(e, t, n, i, o, s) {
1119
- return x(), I("p", ge, [
1120
- E("span", Ce, "/" + w2(n.phonetic) + "/", 1)
1074
+ }, hn = { class: "p-0 m-0" }, Cn = { class: "text-xs font-md text-base-content/60" };
1075
+ function gn(e, t, n, i, o, s) {
1076
+ return p(), b("p", hn, [
1077
+ y("span", Cn, "/" + ce(n.phonetic) + "/", 1)
1121
1078
  ]);
1122
1079
  }
1123
- const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-col gap-2" }, pe = {
1080
+ const pn = /* @__PURE__ */ J(mn, [["render", gn]]), vn = { class: "flex flex-col gap-2" }, bn = {
1124
1081
  __name: "Sentences",
1125
1082
  props: {
1126
1083
  sentences: {
@@ -1129,35 +1086,35 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1129
1086
  }
1130
1087
  },
1131
1088
  setup(e) {
1132
- const t = e, n = Q(() => t.sentences.split(`
1089
+ const t = e, n = R(() => t.sentences.split(`
1133
1090
  `));
1134
- return (i, o) => (x(), I("div", we, [
1135
- (x(!0), I(b2, null, S2(n.value, (s, l) => (x(), I("p", {
1091
+ return (i, o) => (p(), b("div", vn, [
1092
+ (p(!0), b(ue, null, we(n.value, (s, l) => (p(), b("p", {
1136
1093
  key: l,
1137
- class: "text-base text-textCustom leading-tight p-0 mr-2"
1138
- }, w2(s), 1))), 128))
1094
+ class: "text-base text-base-content leading-tight p-0 mr-2"
1095
+ }, ce(s), 1))), 128))
1139
1096
  ]));
1140
1097
  }
1141
- }, ve = { class: "capitalize text-base italic font-normal text-slate-400" }, xe = { class: "text-base leading-6 text-textCustom" }, be = {
1098
+ }, wn = { class: "capitalize text-base italic font-normal text-base-content/60" }, xn = { class: "text-base leading-6 text-base-content" }, yn = {
1142
1099
  __name: "Dict",
1143
1100
  props: {
1144
1101
  dictionary: Array
1145
1102
  },
1146
1103
  setup(e) {
1147
- return (t, n) => (x(), I("div", null, [
1148
- (x(!0), I(b2, null, S2(e.dictionary, (i, o) => (x(), I("div", {
1104
+ return (t, n) => (p(), b("div", null, [
1105
+ (p(!0), b(ue, null, we(e.dictionary, (i, o) => (p(), b("div", {
1149
1106
  key: o,
1150
1107
  class: "mt-2"
1151
1108
  }, [
1152
- E("p", ve, w2(i.pos), 1),
1153
- E("span", xe, w2(i.terms.join(", ")), 1)
1109
+ y("p", wn, ce(i.pos), 1),
1110
+ y("span", xn, ce(i.terms.join(", ")), 1)
1154
1111
  ]))), 128))
1155
1112
  ]));
1156
1113
  }
1157
- }, Be = { class: "" }, Ie = /* @__PURE__ */ E("p", { class: "capitalize text-base italic font-normal text-slate-400 mt-2" }, "AI Summary", -1), ye = {
1114
+ }, Ln = { class: "" }, Tn = /* @__PURE__ */ y("p", { class: "capitalize text-base italic font-normal text-base-content/60 mt-2" }, "AI Summary", -1), Sn = {
1158
1115
  key: 0,
1159
1116
  class: "list-none list-outside mt-2"
1160
- }, Ee = ["innerHTML"], Le = {
1117
+ }, An = ["innerHTML"], $n = {
1161
1118
  __name: "Explanation",
1162
1119
  props: {
1163
1120
  explanation: Object
@@ -1165,20 +1122,32 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1165
1122
  setup(e) {
1166
1123
  return (t, n) => {
1167
1124
  var i, o;
1168
- return x(), I("div", Be, [
1169
- Ie,
1170
- (i = e.explanation) != null && i.result ? (x(), I("ul", ye, [
1171
- (x(!0), I(b2, null, S2(((o = e.explanation) == null ? void 0 : o.result.split(`
1172
- `)) || [], (s, l) => (x(), I("li", {
1125
+ return p(), b("div", Ln, [
1126
+ Tn,
1127
+ (i = e.explanation) != null && i.result ? (p(), b("ul", Sn, [
1128
+ (p(!0), b(ue, null, we(((o = e.explanation) == null ? void 0 : o.result.split(`
1129
+ `)) || [], (s, l) => (p(), b("li", {
1173
1130
  key: `${s}-${l}`,
1174
1131
  innerHTML: s,
1175
- class: "text-base text-textCustom"
1176
- }, null, 8, Ee))), 128))
1177
- ])) : U("", !0)
1132
+ class: "text-base text-base-content"
1133
+ }, null, 8, An))), 128))
1134
+ ])) : M("", !0)
1178
1135
  ]);
1179
1136
  };
1180
1137
  }
1181
- }, Qe = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e", Fe = "data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e", Se = ["disabled"], Me = ["disabled"], ke = {
1138
+ }, En = ["disabled"], kn = /* @__PURE__ */ y("path", {
1139
+ d: "M2.33325 4.66667H3.51125C3.82693 4.6667 4.13239 4.55473 4.37325 4.35067L6.83392 2.26667C6.99592 2.12953 7.19374 2.04156 7.40407 2.01312C7.61441 1.98468 7.82849 2.01696 8.02109 2.10615C8.21369 2.19534 8.37678 2.33772 8.49114 2.51652C8.60551 2.69532 8.66638 2.90309 8.66659 3.11534V12.8847C8.66649 13.097 8.60565 13.305 8.49125 13.4839C8.37685 13.6628 8.21367 13.8053 8.02094 13.8945C7.82822 13.9837 7.614 14.0159 7.40356 13.9874C7.19312 13.9588 6.99523 13.8707 6.83325 13.7333L4.37325 11.6487C4.13229 11.4449 3.82685 11.3331 3.51125 11.3333H2.33325C2.06804 11.3333 1.81368 11.228 1.62615 11.0404C1.43861 10.8529 1.33325 10.5986 1.33325 10.3333V5.66667C1.33325 5.40145 1.43861 5.1471 1.62615 4.95956C1.81368 4.77203 2.06804 4.66667 2.33325 4.66667ZM11.1779 11.18C11.5969 10.763 11.9294 10.2674 12.1562 9.72156C12.3831 9.17572 12.4999 8.59044 12.4999 7.99934C12.4999 7.40823 12.3831 6.82295 12.1562 6.27711C11.9294 5.73127 11.5969 5.23564 11.1779 4.81867C11.1317 4.77098 11.0765 4.73297 11.0155 4.70686C10.9544 4.68075 10.8888 4.66705 10.8224 4.66657C10.756 4.66609 10.6902 4.67883 10.6288 4.70406C10.5674 4.72929 10.5116 4.76649 10.4647 4.8135C10.4179 4.86051 10.3808 4.91639 10.3558 4.97787C10.3307 5.03935 10.3181 5.10521 10.3188 5.17159C10.3195 5.23798 10.3334 5.30357 10.3597 5.36453C10.3859 5.42549 10.4241 5.48061 10.4719 5.52667C10.7977 5.85079 11.0562 6.23609 11.2326 6.66043C11.409 7.08477 11.4998 7.53979 11.4998 7.99934C11.4998 8.45888 11.409 8.9139 11.2326 9.33824C11.0562 9.76258 10.7977 10.1479 10.4719 10.472C10.4241 10.5181 10.3859 10.5732 10.3597 10.6341C10.3334 10.6951 10.3195 10.7607 10.3188 10.8271C10.3181 10.8935 10.3307 10.9593 10.3558 11.0208C10.3808 11.0823 10.4179 11.1382 10.4647 11.1852C10.5116 11.2322 10.5674 11.2694 10.6288 11.2946C10.6902 11.3198 10.756 11.3326 10.8224 11.3321C10.8888 11.3316 10.9544 11.3179 11.0155 11.2918C11.0765 11.2657 11.1317 11.2277 11.1779 11.18ZM12.7113 13.2127C12.6123 13.2126 12.5157 13.1832 12.4335 13.1281C12.3513 13.0731 12.2873 12.9949 12.2495 12.9035C12.2118 12.8121 12.202 12.7115 12.2214 12.6146C12.2408 12.5176 12.2886 12.4285 12.3586 12.3587C12.9317 11.7866 13.3865 11.1071 13.6967 10.359C14.0069 9.61101 14.1666 8.80915 14.1666 7.99934C14.1666 7.18952 14.0069 6.38766 13.6967 5.63963C13.3865 4.8916 12.9317 4.2121 12.3586 3.64C12.3122 3.59351 12.2754 3.53834 12.2503 3.47764C12.2252 3.41693 12.2124 3.35188 12.2124 3.2862C12.2125 3.22052 12.2255 3.15549 12.2507 3.09483C12.2759 3.03417 12.3128 2.97907 12.3593 2.93267C12.4057 2.88627 12.4609 2.84948 12.5216 2.8244C12.5823 2.79932 12.6474 2.78645 12.7131 2.78651C12.7787 2.78657 12.8438 2.79957 12.9044 2.82476C12.9651 2.84995 13.0202 2.88685 13.0666 2.93334C13.7327 3.59825 14.2612 4.38801 14.6218 5.25741C14.9824 6.12681 15.168 7.05879 15.168 8C15.168 8.94122 14.9824 9.87319 14.6218 10.7426C14.2612 11.612 13.7327 12.4018 13.0666 13.0667C13.02 13.1134 12.9646 13.1504 12.9036 13.1756C12.8426 13.2007 12.7772 13.2129 12.7113 13.2127Z",
1140
+ fill: "currentColor"
1141
+ }, null, -1), Rn = [
1142
+ kn
1143
+ ], In = ["disabled"], Bn = /* @__PURE__ */ y("path", {
1144
+ "fill-rule": "evenodd",
1145
+ d: "M4.5 7.5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3h-9a3 3 0 0 1-3-3v-9Z",
1146
+ "clip-rule": "evenodd",
1147
+ fill: "currentColor"
1148
+ }, null, -1), Mn = [
1149
+ Bn
1150
+ ], Fn = {
1182
1151
  __name: "Player",
1183
1152
  props: {
1184
1153
  tts: {
@@ -1192,9 +1161,9 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1192
1161
  },
1193
1162
  emits: ["loadTTS"],
1194
1163
  setup(e, { emit: t }) {
1195
- const n = e, i = t, o = Q(() => n.tts), s = T(!1), l = new Audio(), r = new (window.AudioContext || window.webkitAudioContext)();
1196
- let a = null;
1197
- A2(
1164
+ const n = e, i = t, o = R(() => n.tts), s = B(!1), l = new Audio(), a = new (window.AudioContext || window.webkitAudioContext)();
1165
+ let r = null;
1166
+ te(
1198
1167
  o,
1199
1168
  () => {
1200
1169
  if (!o.value) {
@@ -1204,8 +1173,8 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1204
1173
  d();
1205
1174
  },
1206
1175
  { immediate: !0 }
1207
- ), M2(() => {
1208
- C(), l.src = "", r.close();
1176
+ ), $e(() => {
1177
+ g(), l.src = "", a.close();
1209
1178
  });
1210
1179
  function c() {
1211
1180
  if (o.value) {
@@ -1222,92 +1191,128 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1222
1191
  s.value = !1;
1223
1192
  };
1224
1193
  } catch {
1225
- await f();
1194
+ await u();
1226
1195
  }
1227
1196
  }
1228
1197
  }
1229
- async function f() {
1198
+ async function u() {
1230
1199
  try {
1231
- const A = await (await fetch(o.value)).arrayBuffer(), m = await r.decodeAudioData(A);
1232
- a = r.createBufferSource(), a.buffer = m, a.playbackRate.value = 0.7, a.connect(r.destination), a.start(), a.onended = () => {
1233
- s.value = !1, a = null;
1200
+ const h = await (await fetch(o.value)).arrayBuffer(), v = await a.decodeAudioData(h);
1201
+ r = a.createBufferSource(), r.buffer = v, r.playbackRate.value = 0.7, r.connect(a.destination), r.start(), r.onended = () => {
1202
+ s.value = !1, r = null;
1234
1203
  };
1235
1204
  } catch {
1236
1205
  s.value = !1;
1237
1206
  }
1238
1207
  }
1239
- function C() {
1240
- a && (a.stop(), a.disconnect(), a = null), l.pause(), l.currentTime = 0, s.value = !1;
1208
+ function g() {
1209
+ r && (r.stop(), r.disconnect(), r = null), l.pause(), l.currentTime = 0, s.value = !1;
1241
1210
  }
1242
- return (u, A) => s.value ? (x(), I("button", {
1211
+ return (f, h) => s.value ? (p(), b("button", {
1243
1212
  key: 1,
1244
- class: k(["btn btn-xs btn-circle", [
1213
+ class: A(["btn btn-xs btn-circle", [
1245
1214
  { "btn-ghost": !e.disabled },
1246
- { "!bg-white !border-none !shadow-none !ring-0": e.disabled }
1215
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1247
1216
  ]]),
1248
1217
  disabled: e.disabled,
1249
- onClick: C
1218
+ onClick: g
1250
1219
  }, [
1251
- E("img", {
1252
- class: k(["w-5", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1253
- src: Fe,
1254
- alt: "Stop"
1255
- }, null, 2)
1256
- ], 10, Me)) : (x(), I("button", {
1220
+ (p(), b("svg", {
1221
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1222
+ viewBox: "0 0 24 24",
1223
+ fill: "none",
1224
+ xmlns: "http://www.w3.org/2000/svg"
1225
+ }, Mn, 2))
1226
+ ], 10, In)) : (p(), b("button", {
1257
1227
  key: 0,
1258
- class: k(["btn btn-xs btn-circle", [
1228
+ class: A(["btn btn-xs btn-circle", [
1259
1229
  { "btn-ghost": !e.disabled },
1260
- { "!bg-white !border-none !shadow-none !ring-0": e.disabled }
1230
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1261
1231
  ]]),
1262
1232
  disabled: e.disabled,
1263
1233
  onClick: c
1264
1234
  }, [
1265
- E("img", {
1266
- class: k(["w-5", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1267
- src: Qe,
1268
- alt: "Play"
1269
- }, null, 2)
1270
- ], 10, Se));
1235
+ (p(), b("svg", {
1236
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1237
+ viewBox: "0 0 16 16",
1238
+ fill: "none",
1239
+ xmlns: "http://www.w3.org/2000/svg"
1240
+ }, Rn, 2))
1241
+ ], 10, En));
1271
1242
  }
1272
- }, De = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Re = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e", Te = {
1273
- class: "bg-white tooltip tooltip-top before:!bottom-[100%] before:!bg-white before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary after:!border-transparent",
1243
+ }, On = {
1244
+ class: "bg-base-100 tooltip tooltip-top before:!bottom-[100%] before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:!shadow-lg before:!rounded-md before:!text-base-content after:!border-transparent",
1274
1245
  "data-tip": "Favorite"
1275
- }, He = ["disabled"], Oe = ["src", "alt"], Ge = {
1246
+ }, _n = ["disabled"], Dn = /* @__PURE__ */ y("path", {
1247
+ d: "M14.9491 5.89315C14.8278 5.53128 14.5111 5.27252 14.1226 5.21783L10.5264 4.7114L8.91813 1.55315C8.74435 1.21195 8.39257 1 7.99998 1C7.60739 1 7.25557 1.21195 7.08183 1.55315L5.47358 4.7114L1.8774 5.21783C1.48888 5.27252 1.17219 5.53128 1.05086 5.89315C0.929554 6.25501 1.02881 6.64477 1.30993 6.91038L3.91217 9.36871L3.29786 12.8399C3.2315 13.215 3.38755 13.5868 3.7052 13.8105C3.88128 13.9344 4.08938 14 4.30704 14C4.47232 14 4.63705 13.9606 4.78341 13.886L7.99995 12.2471L11.2165 13.886C11.3628 13.9606 11.5276 14 11.6929 14C11.9106 14 12.1187 13.9345 12.2948 13.8105C12.6124 13.5868 12.7685 13.215 12.7021 12.84L12.0878 9.36871L14.6901 6.91035C14.9712 6.64477 15.0704 6.25498 14.9491 5.89315ZM14.0266 6.25082L11.2455 8.87813C11.1335 8.98392 11.0824 9.13637 11.1089 9.28575L11.7654 12.9956C11.7701 13.0226 11.759 13.0493 11.7362 13.0653C11.7202 13.0766 11.7038 13.079 11.6929 13.079C11.6809 13.079 11.6694 13.0762 11.6587 13.0708L8.22108 11.3192C8.15189 11.284 8.07593 11.2663 7.99998 11.2663C7.92402 11.2663 7.84807 11.284 7.77882 11.3193L4.34118 13.0708C4.33052 13.0763 4.31904 13.079 4.30701 13.079C4.29611 13.079 4.27969 13.0767 4.26373 13.0654C4.24092 13.0494 4.22975 13.0226 4.2345 12.9957L4.89104 9.28584C4.91747 9.13646 4.86637 8.98401 4.75439 8.87822L1.97327 6.25091C1.95308 6.23184 1.94595 6.20383 1.95466 6.17786C1.9634 6.15185 1.98612 6.13326 2.01405 6.12933L5.85743 5.58807C6.0122 5.56626 6.14599 5.47208 6.21521 5.33616L7.93404 1.9608C7.94653 1.9363 7.97178 1.92107 7.99998 1.92107C8.02818 1.92107 8.05343 1.9363 8.06591 1.9608L9.78468 5.33607C9.85391 5.47199 9.9877 5.5662 10.1425 5.58799L13.9859 6.12924C14.0138 6.1332 14.0365 6.15176 14.0452 6.17777C14.0539 6.20374 14.0468 6.23175 14.0266 6.25082Z",
1248
+ fill: "currentColor"
1249
+ }, null, -1), Vn = [
1250
+ Dn
1251
+ ], Nn = /* @__PURE__ */ y("path", {
1252
+ d: "M7.47207 1.31905C7.57125 1.12371 7.77589 1 8.00001 1C8.22413 1 8.42877 1.12367 8.52795 1.31905L10.3721 4.95175L14.4959 5.53427C14.7177 5.5656 14.9019 5.7166 14.9712 5.9238C15.0404 6.13101 14.9827 6.35843 14.8222 6.51049L11.8382 9.33816L12.5427 13.3309C12.5806 13.5456 12.4897 13.7626 12.3084 13.8906C12.1272 14.0187 11.8868 14.0356 11.6884 13.9342L8.00004 12.0491L4.31158 13.9343C4.11323 14.0356 3.87286 14.0187 3.69157 13.8907C3.51028 13.7627 3.4195 13.5457 3.45736 13.3309L4.1618 9.33819L1.17781 6.51052C1.01735 6.35846 0.959571 6.13101 1.02884 5.92383C1.09807 5.71663 1.28232 5.56563 1.50409 5.53431L5.62787 4.95178L7.47207 1.31905Z",
1253
+ fill: "currentColor"
1254
+ }, null, -1), Pn = [
1255
+ Nn
1256
+ ], Hn = {
1276
1257
  __name: "Favorite",
1277
1258
  props: {
1278
1259
  isFilled: Boolean,
1279
1260
  disabled: Boolean
1280
1261
  },
1281
1262
  setup(e) {
1282
- return (t, n) => (x(), I("div", Te, [
1283
- E("button", {
1284
- class: k(["btn btn-xs btn-circle", [
1263
+ return (t, n) => (p(), b("div", On, [
1264
+ y("button", {
1265
+ class: A(["btn btn-xs btn-circle", [
1285
1266
  { "btn-ghost": !e.disabled },
1286
1267
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1287
1268
  ]]),
1288
1269
  disabled: e.disabled
1289
1270
  }, [
1290
- E("img", {
1291
- src: e.isFilled ? O(Re) : O(De),
1292
- alt: e.isFilled ? "Unfavorite" : "Favorite",
1293
- class: k(["w-5", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]])
1294
- }, null, 10, Oe)
1295
- ], 10, He)
1271
+ e.isFilled ? (p(), b("svg", {
1272
+ key: 1,
1273
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1274
+ viewBox: "0 0 16 16",
1275
+ fill: "none",
1276
+ xmlns: "http://www.w3.org/2000/svg"
1277
+ }, Pn, 2)) : (p(), b("svg", {
1278
+ key: 0,
1279
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1280
+ viewBox: "0 0 16 16",
1281
+ fill: "none",
1282
+ xmlns: "http://www.w3.org/2000/svg"
1283
+ }, Vn, 2))
1284
+ ], 10, _n)
1296
1285
  ]));
1297
1286
  }
1298
- }, Je = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='18'%20cy='12'%20r='0'%20fill='currentColor'%3e%3canimate%20attributeName='r'%20begin='.67'%20calcMode='spline'%20dur='1.5s'%20keySplines='0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8'%20repeatCount='indefinite'%20values='0;2;0;0'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='0'%20fill='currentColor'%3e%3canimate%20attributeName='r'%20begin='.33'%20calcMode='spline'%20dur='1.5s'%20keySplines='0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8'%20repeatCount='indefinite'%20values='0;2;0;0'/%3e%3c/circle%3e%3ccircle%20cx='6'%20cy='12'%20r='0'%20fill='currentColor'%3e%3canimate%20attributeName='r'%20begin='0'%20calcMode='spline'%20dur='1.5s'%20keySplines='0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8;0.2%200.2%200.4%200.8'%20repeatCount='indefinite'%20values='0;2;0;0'/%3e%3c/circle%3e%3c/svg%3e", Ue = ["src"], o0 = {
1299
- __name: "Spinning",
1300
- setup(e) {
1301
- return (t, n) => (x(), I("img", {
1302
- src: O(Je),
1303
- alt: "Loading",
1304
- class: "w-6 h-6"
1305
- }, null, 8, Ue));
1306
- }
1307
- }, Ye = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='%23FFC857'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='%23FFC857'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='%23FFC857'/%3e%3ccircle%20cx='3.5'%20cy='3.5'%20r='1.5'%20fill='%23FFC857'/%3e%3cellipse%20cx='4.5'%20cy='10'%20rx='0.5'%20ry='1'%20fill='%23FFC857'/%3e%3cpath%20d='M3.5%201L4.79904%202.5H2.20096L3.5%201Z'%20fill='%23FFC857'/%3e%3cpath%20d='M6%203.5L4.5%204.79904L4.5%202.20096L6%203.5Z'%20fill='%23FFC857'/%3e%3cpath%20d='M10.3697%206.67832L8.22108%207.01422L9.5776%204.65296L10.3697%206.67832Z'%20fill='%23FFC857'/%3e%3cpath%20d='M8.27756%205.34149L10.768%206.00067L9.11199%207.77878L8.27756%205.34149Z'%20fill='%23FFC857'/%3e%3cpath%20d='M1%203.5L2.5%202.20096L2.5%204.79904L1%203.5Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.5%206L2.20096%204.5L4.79904%204.5L3.5%206Z'%20fill='%23FFC857'/%3e%3ccircle%20cx='9'%20cy='6'%20r='1'%20fill='%23FFC857'/%3e%3cpath%20d='M5.49718%209.92495L4.03391%2010.4693L3.96891%209.60573L5.49718%209.92495Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.54089%209.71696L5.10212%209.72621L4.857%2010.5568L3.54089%209.71696Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.50071%209.96247L5.0159%209.58606L4.9834%2010.4515L3.50071%209.96247Z'%20fill='%23FFC857'/%3e%3c/svg%3e", Ke = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='%23FFC857'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='%23FFC857'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='%23FFC857'/%3e%3c/svg%3e", Ve = {
1308
- class: "bg-white tooltip tooltip-top before:!bottom-[100%] before:!bg-white before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary after:!border-transparent",
1287
+ }, Wn = {}, zn = {
1288
+ class: "w-6 h-6 text-primary",
1289
+ xmlns: "http://www.w3.org/2000/svg",
1290
+ viewBox: "0 0 24 24"
1291
+ }, Zn = /* @__PURE__ */ Ae('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>', 3), Un = [
1292
+ Zn
1293
+ ];
1294
+ function jn(e, t) {
1295
+ return p(), b("svg", zn, Un);
1296
+ }
1297
+ const rt = /* @__PURE__ */ J(Wn, [["render", jn]]), Kn = {
1298
+ class: "bg-base-100 tooltip tooltip-top before:!bottom-[100%] before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:!shadow-lg before:!rounded-md before:!text-base-content after:!border-transparent",
1309
1299
  "data-tip": "AI Translate"
1310
- }, We = ["disabled"], Ne = ["src"], Ze = {
1300
+ }, Gn = ["disabled"], Xn = /* @__PURE__ */ y("path", {
1301
+ d: "M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z",
1302
+ fill: "currentColor"
1303
+ }, null, -1), qn = /* @__PURE__ */ y("path", {
1304
+ d: "M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z",
1305
+ fill: "currentColor"
1306
+ }, null, -1), Yn = /* @__PURE__ */ y("path", {
1307
+ d: "M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z",
1308
+ fill: "currentColor"
1309
+ }, null, -1), Jn = [
1310
+ Xn,
1311
+ qn,
1312
+ Yn
1313
+ ], Qn = /* @__PURE__ */ Ae('<path d="M6.8544 3.20309C5.39975 2.89815 4.26277 1.76117 3.95787 0.30649C3.92042 0.12792 3.76292 0 3.58041 0C3.3979 0 3.2404 0.12792 3.20297 0.30652C2.89805 1.76117 1.76107 2.89812 0.306418 3.20302C0.127818 3.24045 -0.00012207 3.39798 -0.00012207 3.58046C-0.00012207 3.76295 0.127798 3.92047 0.306418 3.9579C1.76105 4.26285 2.89798 5.3998 3.2029 6.85448C3.24033 7.03307 3.39783 7.16102 3.58034 7.16102C3.76282 7.16102 3.92035 7.0331 3.95778 6.85448C4.26272 5.39983 5.39973 4.26287 6.85438 3.95799C7.03297 3.92056 7.16092 3.76306 7.16092 3.58056C7.1609 3.39805 7.03297 3.24052 6.8544 3.20309ZM3.58036 5.60938C3.14292 4.73132 2.42956 4.01792 1.55151 3.58049C2.42958 3.14305 3.14297 2.42968 3.58041 1.55161C4.01785 2.4297 4.73122 3.14307 5.60926 3.58053C4.73119 4.01797 4.0178 4.73132 3.58036 5.60938Z" fill="currentColor"></path><path d="M6.21683 9.574C5.53147 9.4303 4.99578 8.8947 4.85209 8.2093C4.81466 8.0307 4.65716 7.90271 4.47465 7.90271C4.29217 7.90271 4.13464 8.0306 4.09721 8.2092C3.95352 8.8946 3.4178 9.4303 2.73244 9.574C2.55385 9.6114 2.4259 9.7689 2.4259 9.9514C2.4259 10.1339 2.55383 10.2914 2.73244 10.3288C3.41778 10.4725 3.95349 11.0082 4.09716 11.6936C4.13459 11.8722 4.2921 12.0002 4.4746 12.0002C4.65709 12.0002 4.81461 11.8723 4.85204 11.6936C4.99574 11.0082 5.53145 10.4725 6.21683 10.3289C6.39543 10.2914 6.52337 10.1339 6.52337 9.9514C6.52337 9.7689 6.39545 9.6114 6.21683 9.574ZM4.47463 10.6408C4.29163 10.3688 4.05725 10.1345 3.78526 9.9515C4.0573 9.7684 4.29163 9.5341 4.47463 9.2621C4.65765 9.5341 4.892 9.7685 5.164 9.9515C4.892 10.1345 4.65763 10.3688 4.47463 10.6408Z" fill="currentColor"></path><path d="M11.4271 6.00324C10.5007 5.80904 9.7766 5.08496 9.5825 4.15859C9.545 3.98 9.3875 3.85205 9.205 3.85205C9.0225 3.85205 8.865 3.97995 8.8276 4.15857C8.6334 5.08496 7.90932 5.80902 6.98293 6.0032C6.80434 6.04063 6.67639 6.19815 6.67639 6.38064C6.67639 6.56312 6.80431 6.72062 6.98293 6.75807C7.9093 6.95228 8.6334 7.67633 8.8275 8.6027C8.865 8.7813 9.0225 8.9093 9.205 8.9093C9.3875 8.9093 9.545 8.7814 9.5824 8.6027C9.7766 7.67633 10.5007 6.95228 11.4271 6.75812C11.6057 6.72067 11.7336 6.56317 11.7336 6.38068C11.7336 6.1982 11.6057 6.04067 11.4271 6.00324ZM9.205 7.47681C8.9365 7.02634 8.5593 6.64914 8.1089 6.38066C8.5593 6.11218 8.9365 5.73502 9.205 5.28453C9.4735 5.73502 9.8507 6.11221 10.3012 6.38068C9.8507 6.64916 9.4735 7.02636 9.205 7.47681Z" fill="currentColor"></path><circle cx="3.5" cy="3.5" r="1.5" fill="currentColor"></circle><ellipse cx="4.5" cy="10" rx="0.5" ry="1" fill="currentColor"></ellipse><circle cx="9" cy="6" r="1" fill="currentColor"></circle>', 6), e1 = [
1314
+ Qn
1315
+ ], t1 = {
1311
1316
  __name: "AITranslateBtn",
1312
1317
  props: {
1313
1318
  isLoading: Boolean,
@@ -1315,30 +1320,58 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1315
1320
  isFilled: Boolean
1316
1321
  },
1317
1322
  setup(e) {
1318
- return (t, n) => (x(), I("div", Ve, [
1319
- e.isLoading ? (x(), H(o0, {
1323
+ return (t, n) => (p(), b("div", Kn, [
1324
+ e.isLoading ? (p(), I(rt, {
1320
1325
  key: 0,
1321
1326
  class: "inset-0 flex items-center justify-center"
1322
- })) : (x(), I("button", {
1327
+ })) : (p(), b("button", {
1323
1328
  key: 1,
1324
- class: k(["btn btn-xs btn-circle", [
1329
+ class: A(["btn btn-xs btn-circle", [
1325
1330
  { "btn-ghost": !e.disabled },
1326
1331
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1327
1332
  ]]),
1328
1333
  disabled: e.disabled
1329
1334
  }, [
1330
- E("img", {
1331
- src: e.isFilled ? O(Ye) : O(Ke),
1332
- alt: "AI",
1333
- class: k(["w-5", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
1334
- }, null, 10, Ne)
1335
- ], 10, We))
1335
+ e.isFilled ? (p(), b("svg", {
1336
+ key: 1,
1337
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1338
+ viewBox: "0 0 12 12",
1339
+ fill: "none",
1340
+ xmlns: "http://www.w3.org/2000/svg"
1341
+ }, e1, 2)) : (p(), b("svg", {
1342
+ key: 0,
1343
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1344
+ viewBox: "0 0 12 12",
1345
+ fill: "none",
1346
+ xmlns: "http://www.w3.org/2000/svg"
1347
+ }, Jn, 2))
1348
+ ], 10, Gn))
1336
1349
  ]));
1337
1350
  }
1338
- }, qe = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3e%3cpath%20fill='%23FFC857'%20d='M12%207a5%205%200%200%200-2%209.584V19h4v-2.416A5.001%205.001%200%200%200%2012%207z'/%3e%3cpath%20stroke='%23FFC857'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M21%2012h1m-3.5-6.5%201-1M12%203V2M5.5%205.5l-1-1M3%2012H2m8%2010h4m3-10a5%205%200%201%200-7%204.584V19h4v-2.416A5.001%205.001%200%200%200%2017%2012z'/%3e%3c/svg%3e", je = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3e%3cpath%20stroke='%23FFC857'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'%20d='M21%2012h1m-3.5-6.5%201-1M12%203V2M5.5%205.5l-1-1M3%2012H2m8%2010h4m3-10a5%205%200%201%200-7%204.584V19h4v-2.416A5.001%205.001%200%200%200%2017%2012z'/%3e%3c/svg%3e", Pe = {
1339
- class: "bg-white tooltip tooltip-top before:!bottom-[100%] before:!bg-white before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary after:!border-transparent",
1351
+ }, n1 = {
1352
+ class: "bg-base-100 tooltip tooltip-top before:!bottom-[100%] before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:!shadow-lg before:!rounded-md before:!text-base-content after:!border-transparent",
1340
1353
  "data-tip": "AI Summarize"
1341
- }, ze = ["disabled"], $e = ["src"], Xe = {
1354
+ }, i1 = ["disabled"], o1 = /* @__PURE__ */ y("path", {
1355
+ stroke: "currentColor",
1356
+ "stroke-linecap": "round",
1357
+ "stroke-linejoin": "round",
1358
+ "stroke-width": "2",
1359
+ d: "M21 12h1m-3.5-6.5 1-1M12 3V2M5.5 5.5l-1-1M3 12H2m8 10h4m3-10a5 5 0 1 0-7 4.584V19h4v-2.416A5.001 5.001 0 0 0 17 12z"
1360
+ }, null, -1), s1 = [
1361
+ o1
1362
+ ], l1 = /* @__PURE__ */ y("path", {
1363
+ fill: "currentColor",
1364
+ d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
1365
+ }, null, -1), r1 = /* @__PURE__ */ y("path", {
1366
+ stroke: "currentColor",
1367
+ "stroke-linecap": "round",
1368
+ "stroke-linejoin": "round",
1369
+ "stroke-width": "2",
1370
+ d: "M21 12h1m-3.5-6.5 1-1M12 3V2M5.5 5.5l-1-1M3 12H2m8 10h4m3-10a5 5 0 1 0-7 4.584V19h4v-2.416A5.001 5.001 0 0 0 17 12z"
1371
+ }, null, -1), a1 = [
1372
+ l1,
1373
+ r1
1374
+ ], c1 = {
1342
1375
  __name: "AIExplainBtn",
1343
1376
  props: {
1344
1377
  isLoading: Boolean,
@@ -1346,44 +1379,154 @@ const me = /* @__PURE__ */ h2(Ae, [["render", he]]), we = { class: "flex flex-co
1346
1379
  isFilled: Boolean
1347
1380
  },
1348
1381
  setup(e) {
1349
- return (t, n) => (x(), I("div", Pe, [
1350
- e.isLoading ? (x(), H(o0, { key: 0 })) : (x(), I("button", {
1382
+ return (t, n) => (p(), b("div", n1, [
1383
+ e.isLoading ? (p(), I(rt, { key: 0 })) : (p(), b("button", {
1351
1384
  key: 1,
1352
- class: k(["btn btn-xs btn-circle", [
1385
+ class: A(["btn btn-xs btn-circle", [
1353
1386
  { "btn-ghost": !e.disabled },
1354
1387
  { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
1355
1388
  ]]),
1356
1389
  disabled: e.disabled
1357
1390
  }, [
1358
- E("img", {
1359
- src: e.isFilled ? O(qe) : O(je),
1360
- alt: "AI",
1361
- class: k(["w-6", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
1362
- }, null, 10, $e)
1363
- ], 10, ze))
1391
+ e.isFilled ? (p(), b("svg", {
1392
+ key: 1,
1393
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1394
+ viewBox: "0 0 24 24",
1395
+ fill: "none",
1396
+ xmlns: "http://www.w3.org/2000/svg"
1397
+ }, a1, 2)) : (p(), b("svg", {
1398
+ key: 0,
1399
+ class: A(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform": e.disabled }]]),
1400
+ viewBox: "0 0 24 24",
1401
+ fill: "none",
1402
+ xmlns: "http://www.w3.org/2000/svg"
1403
+ }, s1, 2))
1404
+ ], 10, i1))
1364
1405
  ]));
1365
1406
  }
1366
- }, _e = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%237E7E7E'/%3e%3c/svg%3e", et = {}, tt = { class: "btn btn-xs btn-ghost btn-circle mb-1" }, nt = /* @__PURE__ */ E("img", {
1367
- class: "w-5",
1368
- src: _e,
1369
- alt: "Icon description"
1370
- }, null, -1), it = [
1371
- nt
1407
+ }, d1 = {}, u1 = { class: "btn btn-xs btn-ghost btn-circle" }, f1 = /* @__PURE__ */ y("svg", {
1408
+ class: "w-4 h-4 text-primary",
1409
+ viewBox: "0 0 24 24",
1410
+ fill: "none",
1411
+ xmlns: "http://www.w3.org/2000/svg"
1412
+ }, [
1413
+ /* @__PURE__ */ y("path", {
1414
+ d: "M9.12596 1.63869C9.46935 1.54364 9.83221 1.70329 9.99413 2.02068C10.3672 2.75191 11.1261 3.25 12 3.25C12.8739 3.25 13.6328 2.75191 14.0059 2.02068C14.1678 1.70329 14.5307 1.54364 14.874 1.63869C16.5585 2.10497 18.0759 2.9704 19.3184 4.12574C19.5611 4.35137 19.6269 4.70948 19.4804 5.00666C19.3331 5.30535 19.25 5.6419 19.25 6C19.25 7.24263 20.2574 8.25 21.5 8.25L21.5314 8.24977C21.8629 8.24504 22.1583 8.45859 22.2576 8.77495C22.5777 9.79397 22.75 10.8776 22.75 12C22.75 12.7408 22.6749 13.4649 22.5318 14.1648C22.4548 14.5411 22.1059 14.7985 21.7237 14.7609C21.6504 14.7537 21.5758 14.75 21.5 14.75C20.2574 14.75 19.25 15.7574 19.25 17C19.25 17.5531 19.4486 18.0579 19.7793 18.4498C20.027 18.7434 20.0128 19.1767 19.7465 19.4535C18.4777 20.7719 16.8745 21.7678 15.0721 22.3044C14.6807 22.4209 14.2681 22.2029 14.1437 21.814C13.8535 20.906 13.0024 20.25 12 20.25C10.9976 20.25 10.1465 20.906 9.85629 21.814C9.73195 22.2029 9.31927 22.4209 8.92789 22.3044C7.12545 21.7678 5.52229 20.7719 4.25353 19.4535C3.98716 19.1767 3.97299 18.7434 4.22072 18.4498C4.55139 18.0579 4.75 17.5531 4.75 17C4.75 15.7574 3.74264 14.75 2.5 14.75C2.42423 14.75 2.34963 14.7537 2.27634 14.7609C1.89406 14.7985 1.54519 14.5411 1.46821 14.1648C1.32505 13.4649 1.25 12.7408 1.25 12C1.25 10.8776 1.42227 9.79398 1.74236 8.77494C1.84173 8.45859 2.13705 8.24504 2.4686 8.24977L2.5 8.25C3.74264 8.25 4.75 7.24263 4.75 6C4.75 5.6419 4.66689 5.30535 4.51962 5.00666C4.3731 4.70948 4.43894 4.35137 4.68159 4.12574C5.92411 2.9704 7.44153 2.10497 9.12596 1.63869ZM6.08277 4.88991C6.19152 5.24123 6.25 5.61424 6.25 6C6.25 7.88945 4.85261 9.45253 3.03493 9.71213C2.84898 10.4432 2.75 11.2096 2.75 12C2.75 12.4294 2.77921 12.8516 2.83567 13.2648C4.74948 13.4346 6.25 15.0421 6.25 17C6.25 17.6669 6.0754 18.2941 5.76971 18.8372C6.62645 19.6184 7.63002 20.2404 8.73362 20.657C9.37706 19.5189 10.598 18.75 12 18.75C13.402 18.75 14.6229 19.5189 15.2664 20.657C16.37 20.2404 17.3735 19.6184 18.2303 18.8372C17.9246 18.2941 17.75 17.6669 17.75 17C17.75 15.0421 19.2505 13.4346 21.1643 13.2648C21.2208 12.8516 21.25 12.4294 21.25 12C21.25 11.2096 21.151 10.4432 20.9651 9.71213C19.1474 9.45252 17.75 7.88945 17.75 6C17.75 5.61424 17.8085 5.24123 17.9172 4.88991C17.0618 4.1771 16.0762 3.61614 15.0018 3.24775C14.3184 4.15897 13.2287 4.75 12 4.75C10.7713 4.75 9.68158 4.15897 8.99819 3.24775C7.92382 3.61614 6.93823 4.1771 6.08277 4.88991Z",
1415
+ fill: "currentColor"
1416
+ }),
1417
+ /* @__PURE__ */ y("path", {
1418
+ d: "M7.75 12C7.75 9.65278 9.65279 7.75 12 7.75C14.3472 7.75 16.25 9.65278 16.25 12C16.25 14.3472 14.3472 16.25 12 16.25C9.65279 16.25 7.75 14.3472 7.75 12ZM12 9.25C10.4812 9.25 9.25 10.4812 9.25 12C9.25 13.5188 10.4812 14.75 12 14.75C13.5188 14.75 14.75 13.5188 14.75 12C14.75 10.4812 13.5188 9.25 12 9.25Z",
1419
+ fill: "currentColor"
1420
+ })
1421
+ ], -1), m1 = [
1422
+ f1
1372
1423
  ];
1373
- function ot(e, t) {
1374
- return x(), I("button", tt, it);
1375
- }
1376
- const st = /* @__PURE__ */ h2(et, [["render", ot]]), lt = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", at = {}, rt = { class: "btn btn-xs btn-circle btn-ghost" }, ct = /* @__PURE__ */ E("img", {
1377
- class: "w-5",
1378
- src: lt,
1379
- alt: "Clear"
1380
- }, null, -1), dt = [
1381
- ct
1424
+ function h1(e, t) {
1425
+ return p(), b("button", u1, m1);
1426
+ }
1427
+ const C1 = /* @__PURE__ */ J(d1, [["render", h1]]), g1 = {}, p1 = { class: "btn btn-xs btn-circle btn-ghost" }, v1 = /* @__PURE__ */ y("svg", {
1428
+ class: "w-4 h-4 text-primary",
1429
+ viewBox: "0 0 16 16",
1430
+ fill: "none",
1431
+ xmlns: "http://www.w3.org/2000/svg"
1432
+ }, [
1433
+ /* @__PURE__ */ y("path", {
1434
+ "fill-rule": "evenodd",
1435
+ "clip-rule": "evenodd",
1436
+ d: "M3.19102 3.19102C3.44571 2.93633 3.85864 2.93633 4.11333 3.19102L12.809 11.8867C13.0637 12.1414 13.0637 12.5543 12.809 12.809C12.5543 13.0637 12.1414 13.0637 11.8867 12.809L3.19102 4.11333C2.93633 3.85864 2.93633 3.44571 3.19102 3.19102Z",
1437
+ fill: "currentColor"
1438
+ }),
1439
+ /* @__PURE__ */ y("path", {
1440
+ "fill-rule": "evenodd",
1441
+ "clip-rule": "evenodd",
1442
+ d: "M12.809 3.19102C13.0637 3.44571 13.0637 3.85864 12.809 4.11333L4.11333 12.809C3.85864 13.0637 3.44571 13.0637 3.19102 12.809C2.93633 12.5543 2.93633 12.1414 3.19102 11.8867L11.8867 3.19102C12.1414 2.93633 12.5543 2.93633 12.809 3.19102Z",
1443
+ fill: "currentColor"
1444
+ })
1445
+ ], -1), b1 = [
1446
+ v1
1382
1447
  ];
1383
- function ut(e, t) {
1384
- return x(), I("button", rt, dt);
1448
+ function w1(e, t) {
1449
+ return p(), b("button", p1, b1);
1450
+ }
1451
+ const x1 = /* @__PURE__ */ J(g1, [["render", w1]]), y1 = {
1452
+ name: "ThemeSelector",
1453
+ props: {
1454
+ currentTheme: {
1455
+ type: String,
1456
+ default: "lofi"
1457
+ }
1458
+ },
1459
+ data() {
1460
+ return {
1461
+ availableThemes: [
1462
+ { value: "lofi", name: "Lo-Fi", color: "#0f0f23" },
1463
+ { value: "pastel", name: "Pastel", color: "#d1c1d7" },
1464
+ { value: "fantasy", name: "Fantasy", color: "#6e0b75" },
1465
+ { value: "autumn", name: "Autumn", color: "#8c0327" },
1466
+ { value: "retro", name: "Retro", color: "#ef9995" },
1467
+ { value: "synthwave", name: "Synthwave", color: "#e779c1" },
1468
+ { value: "halloween", name: "Halloween", color: "#f28c18" },
1469
+ { value: "dracula", name: "Dracula", color: "#ff79c6" },
1470
+ { value: "coffee", name: "Coffee", color: "#db924b" },
1471
+ { value: "dim", name: "Dim", color: "#9fe88d" },
1472
+ { value: "sunset", name: "Sunset", color: "#ff865b" },
1473
+ { value: "cyberpunk", name: "Cyberpunk", color: "#ff7598" }
1474
+ ]
1475
+ };
1476
+ },
1477
+ methods: {
1478
+ handleThemeChange(e) {
1479
+ this.$emit("themeChange", e);
1480
+ }
1481
+ }
1482
+ }, L1 = { class: "dropdown dropdown-end z-50" }, T1 = /* @__PURE__ */ y("div", {
1483
+ tabindex: "0",
1484
+ role: "button",
1485
+ class: "btn btn-ghost btn-circle btn-xs"
1486
+ }, [
1487
+ /* @__PURE__ */ y("svg", {
1488
+ class: "w-4 h-4 text-primary",
1489
+ fill: "currentColor",
1490
+ viewBox: "0 0 20 20"
1491
+ }, [
1492
+ /* @__PURE__ */ y("path", { d: "M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" })
1493
+ ])
1494
+ ], -1), S1 = {
1495
+ tabindex: "0",
1496
+ class: "dropdown-content menu p-2 shadow bg-base-100 rounded-box w-52 max-h-96 overflow-y-auto z-50 border border-base-300"
1497
+ }, A1 = ["id", "value", "checked", "onChange"], $1 = ["for"], E1 = { class: "flex items-center gap-2" };
1498
+ function k1(e, t, n, i, o, s) {
1499
+ return p(), b("div", L1, [
1500
+ T1,
1501
+ y("ul", S1, [
1502
+ (p(!0), b(ue, null, we(o.availableThemes, (l) => (p(), b("li", {
1503
+ key: l.value
1504
+ }, [
1505
+ y("input", {
1506
+ type: "radio",
1507
+ id: `theme-${l.value}`,
1508
+ value: l.value,
1509
+ checked: n.currentTheme === l.value,
1510
+ onChange: (a) => s.handleThemeChange(l.value),
1511
+ class: "theme-controller sr-only"
1512
+ }, null, 40, A1),
1513
+ y("label", {
1514
+ for: `theme-${l.value}`,
1515
+ class: A(["cursor-pointer rounded-lg px-2 py-1 hover:bg-base-200", { "bg-primary text-primary-content": n.currentTheme === l.value }])
1516
+ }, [
1517
+ y("span", E1, [
1518
+ y("span", {
1519
+ class: "w-3 h-3 rounded-full",
1520
+ style: Xe({ backgroundColor: l.color })
1521
+ }, null, 4),
1522
+ ft(" " + ce(l.name), 1)
1523
+ ])
1524
+ ], 10, $1)
1525
+ ]))), 128))
1526
+ ])
1527
+ ]);
1385
1528
  }
1386
- const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-col" }, gt = { class: "flex p-2 pt-2 pb-1 flex-row justify-between" }, Ct = { class: "justify-start items-center" }, ht = { class: "flex items-center gap-1" }, mt = /* @__PURE__ */ E("div", { class: "w-5" }, null, -1), wt = { class: "justify-end items-center" }, N2 = {
1529
+ const R1 = /* @__PURE__ */ J(y1, [["render", k1]]), I1 = { class: "flex flex-col" }, B1 = { class: "flex p-2 pt-2 pb-1 flex-row justify-between" }, M1 = { class: "flex justify-start items-center" }, F1 = { class: "flex items-center gap-1" }, O1 = /* @__PURE__ */ y("div", { class: "w-5" }, null, -1), _1 = { class: "flex justify-end items-center" }, Ze = {
1387
1530
  __name: "Header",
1388
1531
  props: {
1389
1532
  tts: String,
@@ -1395,68 +1538,89 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
1395
1538
  isAITranslationLoading: Boolean,
1396
1539
  isAIExplainLoading: Boolean,
1397
1540
  isAIExplainVisible: Boolean,
1398
- isAITranslateVisible: Boolean
1541
+ isAITranslateVisible: Boolean,
1542
+ theme: {
1543
+ type: String,
1544
+ default: "lofi"
1545
+ },
1546
+ showThemeSelector: {
1547
+ type: Boolean,
1548
+ default: !0
1549
+ }
1399
1550
  },
1400
- emits: ["favorite", "setting", "close", "loadTTS", "aiTranslate", "aiExplain"],
1551
+ emits: [
1552
+ "favorite",
1553
+ "setting",
1554
+ "close",
1555
+ "loadTTS",
1556
+ "aiTranslate",
1557
+ "aiExplain",
1558
+ "themeChange"
1559
+ ],
1401
1560
  setup(e, { emit: t }) {
1402
1561
  const n = e, i = t;
1403
- return (o, s) => (x(), I("div", At, [
1404
- E("div", gt, [
1405
- E("div", Ct, [
1406
- e.isServiceUnavailable ? U("", !0) : (x(), H(ke, {
1562
+ return (o, s) => (p(), b("div", I1, [
1563
+ y("div", B1, [
1564
+ y("div", M1, [
1565
+ e.isServiceUnavailable ? M("", !0) : (p(), I(Fn, {
1407
1566
  key: 0,
1408
1567
  disabled: e.isAITranslationLoading || e.isAIExplainLoading,
1409
1568
  tts: n.tts,
1410
1569
  onLoadTTS: s[0] || (s[0] = (l) => o.$emit("loadTTS"))
1411
1570
  }, null, 8, ["disabled", "tts"]))
1412
1571
  ]),
1413
- E("div", ht, [
1414
- mt,
1415
- !e.isServiceUnavailable && e.isAITranslateVisible ? (x(), H(Ze, {
1572
+ y("div", F1, [
1573
+ O1,
1574
+ !e.isServiceUnavailable && e.isAITranslateVisible ? (p(), I(t1, {
1416
1575
  key: 0,
1417
1576
  isLoading: e.isAITranslationLoading,
1418
1577
  isFilled: e.isAITranslate,
1419
1578
  onClick: s[1] || (s[1] = (l) => i("aiTranslate"))
1420
- }, null, 8, ["isLoading", "isFilled"])) : U("", !0),
1421
- !e.isServiceUnavailable && e.isAIExplainVisible ? (x(), H(Xe, {
1579
+ }, null, 8, ["isLoading", "isFilled"])) : M("", !0),
1580
+ !e.isServiceUnavailable && e.isAIExplainVisible ? (p(), I(c1, {
1422
1581
  key: 1,
1423
1582
  isLoading: e.isAIExplainLoading,
1424
1583
  isFilled: e.isAIExplain,
1425
1584
  onClick: s[2] || (s[2] = (l) => i("aiExplain"))
1426
- }, null, 8, ["isLoading", "isFilled"])) : U("", !0),
1427
- !e.isServiceUnavailable && n.isFavoriteFeatureEnabled ? (x(), H(Ge, {
1585
+ }, null, 8, ["isLoading", "isFilled"])) : M("", !0),
1586
+ !e.isServiceUnavailable && n.isFavoriteFeatureEnabled ? (p(), I(Hn, {
1428
1587
  key: 2,
1429
1588
  isFilled: n.isFavorite,
1430
1589
  onClick: s[3] || (s[3] = (l) => i("favorite")),
1431
1590
  disabled: e.isAITranslationLoading || e.isAIExplainLoading
1432
- }, null, 8, ["isFilled", "disabled"])) : U("", !0)
1591
+ }, null, 8, ["isFilled", "disabled"])) : M("", !0)
1433
1592
  ]),
1434
- E("div", wt, [
1435
- _(st, {
1436
- onClick: s[4] || (s[4] = (l) => i("setting"))
1593
+ y("div", _1, [
1594
+ e.showThemeSelector ? (p(), I(R1, {
1595
+ key: 0,
1596
+ "current-theme": e.theme,
1597
+ onThemeChange: s[4] || (s[4] = (l) => i("themeChange", l))
1598
+ }, null, 8, ["current-theme"])) : M("", !0),
1599
+ Z(C1, {
1600
+ onClick: s[5] || (s[5] = (l) => i("setting"))
1437
1601
  }),
1438
- _(ft, {
1439
- onClick: s[5] || (s[5] = (l) => i("close"))
1602
+ Z(x1, {
1603
+ onClick: s[6] || (s[6] = (l) => i("close"))
1440
1604
  })
1441
1605
  ])
1442
1606
  ])
1443
1607
  ]));
1444
1608
  }
1445
- }, a2 = {
1609
+ }, ae = {
1446
1610
  LOGO: "LOGO",
1447
1611
  LOADING: "LOADING",
1448
1612
  DATA: "DATA",
1449
1613
  ERROR: "ERROR",
1450
1614
  HIDDEN: "HIDDEN"
1451
- }, pt = ["ar", "fa", "iw", "yi", "ur", "pa"], vt = {
1615
+ }, Ue = 500, D1 = ["ar", "fa", "iw", "yi", "ur", "pa"], V1 = {
1452
1616
  key: 0,
1453
1617
  class: "flex justify-center"
1454
- }, xt = {
1618
+ }, N1 = {
1455
1619
  key: 1,
1456
1620
  class: "flex justify-center"
1457
- }, bt = {
1458
- class: /* @__PURE__ */ k(["bg-white rounded-md relative z-10"])
1459
- }, Bt = { class: "p-3 border-t border-[#D3D4D9]" }, It = {
1621
+ }, P1 = {
1622
+ class: /* @__PURE__ */ A(["bg-base-100 rounded-md relative z-10"])
1623
+ }, H1 = { class: "p-3 border-t border-base-300" }, W1 = {
1460
1624
  name: "Bubble",
1461
1625
  props: [
1462
1626
  "translation",
@@ -1467,9 +1631,20 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
1467
1631
  "isFavoriteFeatureEnabled",
1468
1632
  "isAITranslate",
1469
1633
  "isAIExplain",
1470
- "aiExplainMinLength"
1634
+ "aiExplainMinLength",
1635
+ "theme",
1636
+ "showThemeSelector"
1637
+ ],
1638
+ emits: [
1639
+ "logo",
1640
+ "favorite",
1641
+ "settings",
1642
+ "close",
1643
+ "loadTTS",
1644
+ "aiTranslate",
1645
+ "aiExplain",
1646
+ "themeChange"
1471
1647
  ],
1472
- emits: ["logo", "favorite", "settings", "close", "loadTTS", "aiTranslate", "aiExplain"],
1473
1648
  data() {
1474
1649
  return {
1475
1650
  data: null,
@@ -1508,39 +1683,42 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
1508
1683
  immediate: !0
1509
1684
  },
1510
1685
  status() {
1511
- this.status === a2.ERROR && (this.isServiceUnavailable = !0);
1686
+ this.status === ae.ERROR && (this.isServiceUnavailable = !0);
1512
1687
  }
1513
1688
  }
1514
- }, yt = /* @__PURE__ */ Object.assign(It, {
1689
+ }, z1 = /* @__PURE__ */ Object.assign(W1, {
1515
1690
  setup(e) {
1516
1691
  return (t, n) => {
1517
- var i, o, s, l, r, a, c, d, f, C, u;
1518
- return e.status === O(a2).LOGO ? (x(), I("div", vt, [
1519
- _(oe, {
1520
- onClick: n[0] || (n[0] = (A) => t.$emit("logo"))
1692
+ var i, o, s, l, a, r, c, d, u, g, f;
1693
+ return e.status === ge(ae).LOGO ? (p(), b("div", V1, [
1694
+ Z(nn, {
1695
+ onClick: n[0] || (n[0] = (h) => t.$emit("logo"))
1521
1696
  })
1522
- ])) : e.status === O(a2).LOADING ? (x(), I("div", xt, [
1523
- _(fe)
1524
- ])) : e.status !== O(a2).HIDDEN ? (x(), I("div", {
1697
+ ])) : e.status === ge(ae).LOADING ? (p(), b("div", N1, [
1698
+ Z(fn)
1699
+ ])) : e.status !== ge(ae).HIDDEN ? (p(), b("div", {
1525
1700
  key: 2,
1526
- class: k([
1527
- "wrapper rounded-lg text-slate-900 text-sm shadow-lg relative bg-[length:300%_300%] bg-[position:0%_50%]",
1701
+ class: A([
1702
+ "wrapper rounded-lg text-base-content text-sm shadow-lg relative bg-[length:300%_300%] bg-[position:0%_50%]",
1528
1703
  {
1529
- "p-0.5 bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient": e.isAITranslate || e.isAIExplain,
1530
- "p-0.5 bg-gray-100": !e.isAITranslate && !e.isAIExplain
1704
+ "p-0.5 bg-gradient-to-br from-primary via-secondary via-accent to-info animate-moveGradient": e.isAITranslate || e.isAIExplain,
1705
+ "p-0.5 bg-base-300": !e.isAITranslate && !e.isAIExplain
1531
1706
  }
1532
1707
  ])
1533
1708
  }, [
1534
- E("div", bt, [
1535
- t.isServiceUnavailable ? (x(), H(N2, {
1709
+ y("div", P1, [
1710
+ t.isServiceUnavailable ? (p(), I(Ze, {
1536
1711
  key: 0,
1537
1712
  isServiceUnavailable: t.isServiceUnavailable,
1538
1713
  isLongSentence: !1,
1539
- onFavorite: n[1] || (n[1] = (A) => t.$emit("favorite")),
1540
- onSetting: n[2] || (n[2] = (A) => t.$emit("settings")),
1541
- onClose: n[3] || (n[3] = (A) => t.$emit("close")),
1542
- onLoadTTS: n[4] || (n[4] = (A) => t.$emit("loadTTS"))
1543
- }, null, 8, ["isServiceUnavailable"])) : (x(), H(N2, {
1714
+ theme: e.theme,
1715
+ showThemeSelector: e.showThemeSelector,
1716
+ onFavorite: n[1] || (n[1] = (h) => t.$emit("favorite")),
1717
+ onSetting: n[2] || (n[2] = (h) => t.$emit("settings")),
1718
+ onClose: n[3] || (n[3] = (h) => t.$emit("close")),
1719
+ onLoadTTS: n[4] || (n[4] = (h) => t.$emit("loadTTS")),
1720
+ onThemeChange: n[5] || (n[5] = (h) => t.$emit("themeChange", h))
1721
+ }, null, 8, ["isServiceUnavailable", "theme", "showThemeSelector"])) : (p(), I(Ze, {
1544
1722
  key: 1,
1545
1723
  tts: e.tts,
1546
1724
  isFavorite: e.isFavorite,
@@ -1552,135 +1730,140 @@ const ft = /* @__PURE__ */ h2(at, [["render", ut]]), At = { class: "flex flex-co
1552
1730
  isAIExplainLoading: t.isAIExplainLoading,
1553
1731
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
1554
1732
  isLongSentence: t.isLongSentence,
1555
- onFavorite: n[5] || (n[5] = (A) => t.$emit("favorite")),
1556
- onSetting: n[6] || (n[6] = (A) => t.$emit("settings")),
1557
- onClose: n[7] || (n[7] = (A) => t.$emit("close")),
1558
- onLoadTTS: n[8] || (n[8] = (A) => t.$emit("loadTTS")),
1733
+ theme: e.theme,
1734
+ showThemeSelector: e.showThemeSelector,
1735
+ onFavorite: n[6] || (n[6] = (h) => t.$emit("favorite")),
1736
+ onSetting: n[7] || (n[7] = (h) => t.$emit("settings")),
1737
+ onClose: n[8] || (n[8] = (h) => t.$emit("close")),
1738
+ onLoadTTS: n[9] || (n[9] = (h) => t.$emit("loadTTS")),
1559
1739
  onAiTranslate: t.handleAITranslate,
1560
- onAiExplain: t.handleAIExplain
1561
- }, null, 8, ["tts", "isFavorite", "isAITranslate", "isAITranslateVisible", "isAIExplain", "isAIExplainVisible", "isAITranslationLoading", "isAIExplainLoading", "isFavoriteFeatureEnabled", "isLongSentence", "onAiTranslate", "onAiExplain"])),
1562
- E("div", Bt, [
1563
- (a = (r = t.data) == null ? void 0 : r.phonetic) != null && a.src ? (x(), H(me, {
1740
+ onAiExplain: t.handleAIExplain,
1741
+ onThemeChange: n[10] || (n[10] = (h) => t.$emit("themeChange", h))
1742
+ }, null, 8, ["tts", "isFavorite", "isAITranslate", "isAITranslateVisible", "isAIExplain", "isAIExplainVisible", "isAITranslationLoading", "isAIExplainLoading", "isFavoriteFeatureEnabled", "isLongSentence", "theme", "showThemeSelector", "onAiTranslate", "onAiExplain"])),
1743
+ y("div", H1, [
1744
+ (r = (a = t.data) == null ? void 0 : a.phonetic) != null && r.src ? (p(), I(pn, {
1564
1745
  key: 0,
1565
1746
  phonetic: (d = (c = t.data) == null ? void 0 : c.phonetic) == null ? void 0 : d.src
1566
- }, null, 8, ["phonetic"])) : U("", !0),
1567
- _(pe, {
1568
- sentences: t.isServiceUnavailable ? "Service Unavailable" : (f = t.data) == null ? void 0 : f.result
1747
+ }, null, 8, ["phonetic"])) : M("", !0),
1748
+ Z(bn, {
1749
+ sentences: t.isServiceUnavailable ? "Service Unavailable" : (u = t.data) == null ? void 0 : u.result
1569
1750
  }, null, 8, ["sentences"])
1570
1751
  ]),
1571
- !t.isServiceUnavailable && ((u = (C = t.data) == null ? void 0 : C.dictionary) == null ? void 0 : u.length) > 0 ? (x(), H(be, {
1752
+ !t.isServiceUnavailable && ((f = (g = t.data) == null ? void 0 : g.dictionary) == null ? void 0 : f.length) > 0 ? (p(), I(yn, {
1572
1753
  key: 2,
1573
- class: "p-3 pt-0 border-t border-[#D3D4D9]",
1754
+ class: "p-3 pt-0 border-t border-base-300",
1574
1755
  dictionary: t.data.dictionary
1575
- }, null, 8, ["dictionary"])) : U("", !0),
1576
- !t.isServiceUnavailable && e.isAIExplain && e.explanation ? (x(), H(Le, {
1756
+ }, null, 8, ["dictionary"])) : M("", !0),
1757
+ !t.isServiceUnavailable && e.isAIExplain && e.explanation ? (p(), I($n, {
1577
1758
  key: 3,
1578
- class: "p-3 pt-0 border-t border-[#D3D4D9]",
1759
+ class: "p-3 pt-0 border-t border-base-300",
1579
1760
  explanation: e.explanation
1580
- }, null, 8, ["explanation"])) : U("", !0)
1761
+ }, null, 8, ["explanation"])) : M("", !0)
1581
1762
  ])
1582
- ], 2)) : U("", !0);
1763
+ ], 2)) : M("", !0);
1583
1764
  };
1584
1765
  }
1585
1766
  });
1586
- function Et(e) {
1767
+ function Z1(e) {
1587
1768
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1588
1769
  }
1589
- var s0 = { exports: {} };
1590
- (function(e) {
1591
- (function() {
1592
- var t = [
1593
- "direction",
1594
- // RTL support
1595
- "boxSizing",
1596
- "width",
1597
- // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does
1598
- "height",
1599
- "overflowX",
1600
- "overflowY",
1601
- // copy the scrollbar for IE
1602
- "borderTopWidth",
1603
- "borderRightWidth",
1604
- "borderBottomWidth",
1605
- "borderLeftWidth",
1606
- "borderStyle",
1607
- "paddingTop",
1608
- "paddingRight",
1609
- "paddingBottom",
1610
- "paddingLeft",
1611
- // https://developer.mozilla.org/en-US/docs/Web/CSS/font
1612
- "fontStyle",
1613
- "fontVariant",
1614
- "fontWeight",
1615
- "fontStretch",
1616
- "fontSize",
1617
- "fontSizeAdjust",
1618
- "lineHeight",
1619
- "fontFamily",
1620
- "textAlign",
1621
- "textTransform",
1622
- "textIndent",
1623
- "textDecoration",
1624
- // might not make a difference, but better be safe
1625
- "letterSpacing",
1626
- "wordSpacing",
1627
- "tabSize",
1628
- "MozTabSize"
1629
- ], n = typeof window < "u", i = n && window.mozInnerScreenX != null;
1630
- function o(s, l, r) {
1631
- if (!n)
1632
- throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");
1633
- var a = r && r.debug || !1;
1634
- if (a) {
1635
- var c = document.querySelector("#input-textarea-caret-position-mirror-div");
1636
- c && c.parentNode.removeChild(c);
1770
+ var Te = { exports: {} }, je;
1771
+ function U1() {
1772
+ return je || (je = 1, function(e) {
1773
+ (function() {
1774
+ var t = [
1775
+ "direction",
1776
+ // RTL support
1777
+ "boxSizing",
1778
+ "width",
1779
+ // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does
1780
+ "height",
1781
+ "overflowX",
1782
+ "overflowY",
1783
+ // copy the scrollbar for IE
1784
+ "borderTopWidth",
1785
+ "borderRightWidth",
1786
+ "borderBottomWidth",
1787
+ "borderLeftWidth",
1788
+ "borderStyle",
1789
+ "paddingTop",
1790
+ "paddingRight",
1791
+ "paddingBottom",
1792
+ "paddingLeft",
1793
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/font
1794
+ "fontStyle",
1795
+ "fontVariant",
1796
+ "fontWeight",
1797
+ "fontStretch",
1798
+ "fontSize",
1799
+ "fontSizeAdjust",
1800
+ "lineHeight",
1801
+ "fontFamily",
1802
+ "textAlign",
1803
+ "textTransform",
1804
+ "textIndent",
1805
+ "textDecoration",
1806
+ // might not make a difference, but better be safe
1807
+ "letterSpacing",
1808
+ "wordSpacing",
1809
+ "tabSize",
1810
+ "MozTabSize"
1811
+ ], n = typeof window < "u", i = n && window.mozInnerScreenX != null;
1812
+ function o(s, l, a) {
1813
+ if (!n)
1814
+ throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");
1815
+ var r = a && a.debug || !1;
1816
+ if (r) {
1817
+ var c = document.querySelector("#input-textarea-caret-position-mirror-div");
1818
+ c && c.parentNode.removeChild(c);
1819
+ }
1820
+ var d = document.createElement("div");
1821
+ d.id = "input-textarea-caret-position-mirror-div", document.body.appendChild(d);
1822
+ var u = d.style, g = window.getComputedStyle ? window.getComputedStyle(s) : s.currentStyle, f = s.nodeName === "INPUT";
1823
+ u.whiteSpace = "pre-wrap", f || (u.wordWrap = "break-word"), u.position = "absolute", r || (u.visibility = "hidden"), t.forEach(function(w) {
1824
+ f && w === "lineHeight" ? u.lineHeight = g.height : u[w] = g[w];
1825
+ }), i ? s.scrollHeight > parseInt(g.height) && (u.overflowY = "scroll") : u.overflow = "hidden", d.textContent = s.value.substring(0, l), f && (d.textContent = d.textContent.replace(/\s/g, " "));
1826
+ var h = document.createElement("span");
1827
+ h.textContent = s.value.substring(l) || ".", d.appendChild(h);
1828
+ var v = {
1829
+ top: h.offsetTop + parseInt(g.borderTopWidth),
1830
+ left: h.offsetLeft + parseInt(g.borderLeftWidth),
1831
+ height: parseInt(g.lineHeight)
1832
+ };
1833
+ return r ? h.style.backgroundColor = "#aaa" : document.body.removeChild(d), v;
1637
1834
  }
1638
- var d = document.createElement("div");
1639
- d.id = "input-textarea-caret-position-mirror-div", document.body.appendChild(d);
1640
- var f = d.style, C = window.getComputedStyle ? window.getComputedStyle(s) : s.currentStyle, u = s.nodeName === "INPUT";
1641
- f.whiteSpace = "pre-wrap", u || (f.wordWrap = "break-word"), f.position = "absolute", a || (f.visibility = "hidden"), t.forEach(function(w) {
1642
- u && w === "lineHeight" ? f.lineHeight = C.height : f[w] = C[w];
1643
- }), i ? s.scrollHeight > parseInt(C.height) && (f.overflowY = "scroll") : f.overflow = "hidden", d.textContent = s.value.substring(0, l), u && (d.textContent = d.textContent.replace(/\s/g, " "));
1644
- var A = document.createElement("span");
1645
- A.textContent = s.value.substring(l) || ".", d.appendChild(A);
1646
- var m = {
1647
- top: A.offsetTop + parseInt(C.borderTopWidth),
1648
- left: A.offsetLeft + parseInt(C.borderLeftWidth),
1649
- height: parseInt(C.lineHeight)
1650
- };
1651
- return a ? A.style.backgroundColor = "#aaa" : document.body.removeChild(d), m;
1652
- }
1653
- e.exports = o;
1654
- })();
1655
- })(s0);
1656
- var Lt = s0.exports;
1657
- const Z2 = /* @__PURE__ */ Et(Lt);
1658
- function f2(e) {
1835
+ e.exports = o;
1836
+ })();
1837
+ }(Te)), Te.exports;
1838
+ }
1839
+ var j1 = U1();
1840
+ const Ke = /* @__PURE__ */ Z1(j1);
1841
+ function re(e) {
1659
1842
  const t = window.getSelection();
1660
1843
  let n = t + "";
1661
1844
  if (n = n.trim(), e && e.type === "password" || !n.length && (!(e && e.selectionEnd) || (n = e.value.substring(e.selectionStart, e.selectionEnd), n = n.trim(), !n.length)))
1662
1845
  return !1;
1663
- let o = t.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left: r, width: a, height: c } = o;
1664
- if (!l && !r) {
1846
+ let o = t.getRangeAt(0).getBoundingClientRect(), { top: s, bottom: l, left: a, width: r, height: c } = o;
1847
+ if (!l && !a) {
1665
1848
  if (!e.selectionEnd)
1666
1849
  return !1;
1667
- let d = Z2(e, e.selectionStart), f = Z2(e, e.selectionEnd);
1668
- o = e.getBoundingClientRect(), r = o.left + d.left, a = f.left - d.left, d.top != f.top && (r = o.left, a = o.width), s = o.top + d.top, l = o.top + f.top + 20;
1850
+ let d = Ke(e, e.selectionStart), u = Ke(e, e.selectionEnd);
1851
+ o = e.getBoundingClientRect(), a = o.left + d.left, r = u.left - d.left, d.top != u.top && (a = o.left, r = o.width), s = o.top + d.top, l = o.top + u.top + 20;
1669
1852
  }
1670
1853
  return c === 0 && (c = l - s), {
1671
1854
  text: n,
1672
1855
  // position
1673
- x: r,
1856
+ x: a,
1674
1857
  y: s,
1675
1858
  top: s,
1676
1859
  bottom: l,
1677
- left: r,
1678
- right: r + a,
1679
- width: a,
1860
+ left: a,
1861
+ right: a + r,
1862
+ width: r,
1680
1863
  height: c
1681
1864
  };
1682
1865
  }
1683
- function Qt() {
1866
+ function K1() {
1684
1867
  const e = document.getElementsByTagName("ddict-div");
1685
1868
  for (let t of e)
1686
1869
  if (!t.parentNode.matches('wrapper[dir="rtl"]')) {
@@ -1688,17 +1871,17 @@ function Qt() {
1688
1871
  n.setAttribute("dir", "rtl"), t.parentNode.insertBefore(n, t), n.appendChild(t);
1689
1872
  }
1690
1873
  }
1691
- function Ft() {
1874
+ function G1() {
1692
1875
  const e = document.querySelectorAll('wrapper[dir="rtl"]');
1693
1876
  for (let t of e) {
1694
1877
  const n = t.querySelector("ddict-div");
1695
1878
  n && (t.parentNode.insertBefore(n, t), t.remove());
1696
1879
  }
1697
1880
  }
1698
- const q2 = {
1699
- supportRTL: Qt,
1700
- removeRTL: Ft
1701
- }, St = {
1881
+ const Ge = {
1882
+ supportRTL: K1,
1883
+ removeRTL: G1
1884
+ }, X1 = {
1702
1885
  __name: "HotKeysListener",
1703
1886
  props: {
1704
1887
  textSelected: String
@@ -1707,14 +1890,14 @@ const q2 = {
1707
1890
  setup(e, { emit: t }) {
1708
1891
  const n = e, i = t, o = () => {
1709
1892
  setTimeout(() => {
1710
- n.textSelected && r("DoubleClick");
1893
+ n.textSelected && a("DoubleClick");
1711
1894
  }, 50);
1712
- }, s = (a) => {
1713
- (a.altKey && a.key.toLowerCase() === "w" || a.key === "∑") && n.textSelected && (r("Alt+W"), a.preventDefault()), a.key === "Escape" && (r("Escape"), a.preventDefault());
1714
- }, l = (a) => {
1715
- a.key === "Shift" && n.textSelected && r("Shift");
1716
- }, r = (a) => {
1717
- switch (a) {
1895
+ }, s = (r) => {
1896
+ (r.altKey && r.key.toLowerCase() === "w" || r.key === "∑") && n.textSelected && (a("Alt+W"), r.preventDefault()), r.key === "Escape" && (a("Escape"), r.preventDefault());
1897
+ }, l = (r) => {
1898
+ r.key === "Shift" && n.textSelected && a("Shift");
1899
+ }, a = (r) => {
1900
+ switch (r) {
1718
1901
  case "DoubleClick":
1719
1902
  i("toggleKey", "DoubleClick");
1720
1903
  break;
@@ -1729,13 +1912,13 @@ const q2 = {
1729
1912
  break;
1730
1913
  }
1731
1914
  };
1732
- return j2(() => {
1915
+ return qe(() => {
1733
1916
  window.addEventListener("dblclick", o), window.addEventListener("keydown", s), window.addEventListener("keyup", l);
1734
- }), M2(() => {
1917
+ }), $e(() => {
1735
1918
  window.removeEventListener("dblclick", o), window.removeEventListener("keydown", s), window.removeEventListener("keyup", l);
1736
- }), (a, c) => (x(), I("div"));
1919
+ }), (r, c) => (p(), b("div"));
1737
1920
  }
1738
- }, kt = {
1921
+ }, q1 = ["data-theme"], J1 = {
1739
1922
  __name: "BubbleWrapper",
1740
1923
  props: {
1741
1924
  translation: Object,
@@ -1753,6 +1936,14 @@ const q2 = {
1753
1936
  aiExplainMinLength: {
1754
1937
  type: Number,
1755
1938
  default: 0
1939
+ },
1940
+ theme: {
1941
+ type: String,
1942
+ default: "lofi"
1943
+ },
1944
+ showThemeSelector: {
1945
+ type: Boolean,
1946
+ default: !0
1756
1947
  }
1757
1948
  },
1758
1949
  emits: [
@@ -1763,132 +1954,101 @@ const q2 = {
1763
1954
  "close",
1764
1955
  "loadTTS",
1765
1956
  "aiTranslate",
1766
- "aiExplain"
1957
+ "aiExplain",
1958
+ "themeChange"
1767
1959
  ],
1768
1960
  setup(e, { emit: t }) {
1769
- const n = e, i = t, o = T(null), s = T(null), l = T(null), r = T(!1), a = T(""), c = Q(() => typeof window > "u" || !l.value || !a.value ? null : {
1770
- getBoundingClientRect: () => f2(l.value),
1771
- getClientRects: () => f2(l.value)
1772
- }), d = Q(() => {
1773
- if (!u.value.arrow || n.status === a2.LOGO)
1774
- return {
1775
- display: "none"
1776
- };
1777
- const { x: h, y: g } = u.value.arrow, y = {
1778
- top: "bottom",
1779
- right: "left",
1780
- bottom: "top",
1781
- left: "right"
1782
- }[u.value.offset.placement];
1783
- return {
1784
- left: h != null ? `${h}px` : "",
1785
- top: g != null ? `${g}px` : "",
1786
- [y]: "-8px",
1787
- position: "absolute"
1788
- };
1789
- }), f = Q(() => {
1790
- var g;
1791
- switch ((g = u.value.offset) == null ? void 0 : g.placement) {
1792
- case "top":
1793
- return { transform: "rotate(180deg)" };
1794
- case "left":
1795
- return { transform: "rotate(90deg)" };
1796
- case "right":
1797
- return { transform: "rotate(-90deg)" };
1798
- default:
1799
- return {};
1800
- }
1801
- }), { floatingStyles: C, middlewareData: u, update: A } = _0(c, o, {
1961
+ const n = e, i = t, o = B(null), s = B(null), l = B(!1), a = B(""), r = B(n.theme), c = R(() => typeof window > "u" || !s.value || !a.value ? null : {
1962
+ getBoundingClientRect: () => re(s.value),
1963
+ getClientRects: () => re(s.value)
1964
+ }), { floatingStyles: d, update: u } = Yt(c, o, {
1802
1965
  placement: "bottom",
1803
1966
  middleware: [
1804
- N0(4),
1805
- q0(),
1806
- Z0(),
1807
- X0({ element: s }),
1808
- j0({
1809
- apply({ rects: h, elements: g }) {
1810
- Object.assign(g.floating.style, {
1811
- maxWidth: `${h.reference.width > 250 ? h.reference.width / n.scale : 250}px`,
1967
+ Ut(4),
1968
+ Kt(),
1969
+ jt(),
1970
+ Gt({
1971
+ apply({ rects: m, elements: C }) {
1972
+ let L = m.reference.width > 250 ? m.reference.width / n.scale : 250;
1973
+ L > Ue && (L = Ue), Object.assign(C.floating.style, {
1974
+ maxWidth: L + "px",
1812
1975
  zIndex: 9999
1813
1976
  });
1814
1977
  }
1815
1978
  })
1816
1979
  ],
1817
- whileElementsMounted(h, g, y) {
1818
- return W0(h, g, y, {
1980
+ whileElementsMounted(m, C, L) {
1981
+ return Zt(m, C, L, {
1819
1982
  ancestorScroll: !0
1820
1983
  });
1821
1984
  }
1822
- }), m = Q(() => {
1823
- if (n.scale === 1) return C.value;
1824
- const h = C.value.transform;
1985
+ }), g = R(() => {
1986
+ const m = d.value;
1987
+ if (n.scale === 1) return m;
1988
+ const C = m.transform || "";
1825
1989
  return {
1826
- ...C.value,
1827
- transform: `${h} scale(${n.scale})`
1990
+ ...m,
1991
+ transform: `${C} scale(${n.scale})`
1828
1992
  };
1829
1993
  });
1830
- j2(() => {
1831
- document.addEventListener("keyup", (h) => {
1832
- if (!f2(h.target)) {
1994
+ qe(() => {
1995
+ document.addEventListener("keyup", (m) => {
1996
+ if (!re(m.target)) {
1833
1997
  a.value = "", v();
1834
1998
  return;
1835
1999
  }
1836
- }), document.documentElement.onclick = (h) => {
1837
- const g = f2(h.target);
1838
- if (!g) {
2000
+ }), document.documentElement.onclick = (m) => {
2001
+ const C = re(m.target);
2002
+ if (!C) {
1839
2003
  a.value = "", v();
1840
2004
  return;
1841
2005
  }
1842
- w(g, h);
1843
- }, document.documentElement.ontouchend = (h) => {
1844
- const g = f2(h.target);
1845
- if (!g) {
2006
+ f(C, m);
2007
+ }, document.documentElement.ontouchend = (m) => {
2008
+ const C = re(m.target);
2009
+ if (!C) {
1846
2010
  a.value = "", v();
1847
2011
  return;
1848
2012
  }
1849
- w(g, h);
2013
+ f(C, m);
1850
2014
  };
1851
- }), M2(() => {
2015
+ }), $e(() => {
1852
2016
  document.documentElement.onclick = null, document.documentElement.ontouchend = null;
1853
2017
  });
1854
- const w = (h, g) => {
1855
- n.status !== a2.LOGO && i("close"), l.value = g.target, a.value = h.text, r.value = !0, J2(A);
1856
- }, p = (h) => {
1857
- h.stopPropagation();
2018
+ const f = (m, C) => {
2019
+ n.status !== ae.LOGO && i("close"), s.value = C.target, a.value = m.text, l.value = !0, _e(u);
2020
+ }, h = (m) => {
2021
+ m.stopPropagation();
1858
2022
  }, v = async () => {
1859
- r.value = !1, i("close");
1860
- }, b = () => {
1861
- var g;
1862
- const h = (g = n == null ? void 0 : n.translation) == null ? void 0 : g.target;
1863
- pt.includes(h) ? q2.supportRTL() : q2.removeRTL();
2023
+ l.value = !1, i("close");
2024
+ }, w = (m) => {
2025
+ r.value = m, i("themeChange", m);
2026
+ }, x = () => {
2027
+ var C;
2028
+ const m = (C = n == null ? void 0 : n.translation) == null ? void 0 : C.target;
2029
+ D1.includes(m) ? Ge.supportRTL() : Ge.removeRTL();
1864
2030
  };
1865
- return A2(
2031
+ return te(
1866
2032
  () => n.status,
1867
2033
  () => {
1868
- r.value && J2(A), b();
2034
+ l.value && _e(u), x();
2035
+ }
2036
+ ), te(
2037
+ () => n.theme,
2038
+ (m) => {
2039
+ r.value = m;
1869
2040
  }
1870
- ), (h, g) => (x(), I(b2, null, [
1871
- r.value ? (x(), I("div", {
2041
+ ), (m, C) => (p(), b(ue, null, [
2042
+ l.value ? (p(), b("div", {
1872
2043
  key: 0,
1873
2044
  ref_key: "floatingEl",
1874
2045
  ref: o,
1875
- style: y2(m.value),
1876
- onClick: p
2046
+ class: "rounded-lg",
2047
+ style: Xe(g.value),
2048
+ "data-theme": r.value,
2049
+ onClick: h
1877
2050
  }, [
1878
- E("div", {
1879
- ref_key: "arrowEl",
1880
- ref: s,
1881
- style: y2(d.value),
1882
- class: "absolute transform"
1883
- }, [
1884
- E("img", {
1885
- style: y2(f.value),
1886
- class: "w-5",
1887
- src: f0,
1888
- alt: "arrow"
1889
- }, null, 4)
1890
- ], 4),
1891
- _(yt, {
2051
+ Z(z1, {
1892
2052
  translation: n.translation,
1893
2053
  explanation: n.explanation,
1894
2054
  tts: n.tts,
@@ -1898,23 +2058,26 @@ const q2 = {
1898
2058
  isAITranslate: n.isAITranslate,
1899
2059
  isAIExplain: n.isAIExplain,
1900
2060
  aiExplainMinLength: n.aiExplainMinLength,
1901
- onLogo: g[0] || (g[0] = (y) => i("logo")),
1902
- onFavorite: g[1] || (g[1] = (y) => i("favorite")),
1903
- onSettings: g[2] || (g[2] = (y) => i("settings")),
2061
+ theme: r.value,
2062
+ showThemeSelector: n.showThemeSelector,
2063
+ onLogo: C[0] || (C[0] = (L) => i("logo")),
2064
+ onFavorite: C[1] || (C[1] = (L) => i("favorite")),
2065
+ onSettings: C[2] || (C[2] = (L) => i("settings")),
1904
2066
  onClose: v,
1905
- onLoadTTS: g[3] || (g[3] = (y) => i("loadTTS")),
1906
- onAiTranslate: g[4] || (g[4] = (y) => i("aiTranslate")),
1907
- onAiExplain: g[5] || (g[5] = (y) => i("aiExplain"))
1908
- }, null, 8, ["translation", "explanation", "tts", "status", "isFavorite", "isFavoriteFeatureEnabled", "isAITranslate", "isAIExplain", "aiExplainMinLength"])
1909
- ], 4)) : U("", !0),
1910
- _(St, {
2067
+ onLoadTTS: C[3] || (C[3] = (L) => i("loadTTS")),
2068
+ onAiTranslate: C[4] || (C[4] = (L) => i("aiTranslate")),
2069
+ onAiExplain: C[5] || (C[5] = (L) => i("aiExplain")),
2070
+ onThemeChange: w
2071
+ }, null, 8, ["translation", "explanation", "tts", "status", "isFavorite", "isFavoriteFeatureEnabled", "isAITranslate", "isAIExplain", "aiExplainMinLength", "theme", "showThemeSelector"])
2072
+ ], 12, q1)) : M("", !0),
2073
+ Z(X1, {
1911
2074
  textSelected: a.value,
1912
- onToggleKey: g[6] || (g[6] = (y) => i("toggleKey", y)),
2075
+ onToggleKey: C[6] || (C[6] = (L) => i("toggleKey", L)),
1913
2076
  onClose: v
1914
2077
  }, null, 8, ["textSelected"])
1915
2078
  ], 64));
1916
2079
  }
1917
2080
  };
1918
2081
  export {
1919
- kt as default
2082
+ J1 as default
1920
2083
  };