@ddict/popup 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/popup.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as g, openBlock as h, createElementVNode as f, Fragment as z, renderList as Y, normalizeClass as P, createTextVNode as Ee, normalizeStyle as Zn, toDisplayString as G, createStaticVNode as Be, createBlock as W, createCommentVNode as R, computed as L, unref as M, shallowRef as Un, watch as F, triggerRef as Dt, onScopeDispose as Tt, ref as O, onUnmounted as Fe, inject as le, watchEffect as fe, onMounted as se, cloneVNode as sn, h as Ve, defineComponent as pe, provide as ce, nextTick as X, toRaw as ne, reactive as an, hasInjectionContext as Wn, getCurrentInstance as rn, markRaw as be, effectScope as un, isRef as $e, isReactive as St, toRef as it, getCurrentScope as cn, toRefs as Rt, mergeModels as qn, useModel as Gn, withCtx as ze, createVNode as B, withModifiers as ft, withDirectives as tt, vModelText as nt, pushScopeId as Et, popScopeId as $t, withKeys as Jn } from "vue";
1
+ import { createElementBlock as g, openBlock as h, createElementVNode as f, Fragment as z, renderList as Y, normalizeClass as P, createTextVNode as Ee, normalizeStyle as Zn, toDisplayString as G, createStaticVNode as Be, createCommentVNode as R, createBlock as W, computed as L, unref as M, shallowRef as Un, watch as F, triggerRef as Dt, onScopeDispose as Tt, ref as O, onUnmounted as Fe, inject as le, watchEffect as fe, onMounted as se, cloneVNode as sn, h as Ve, defineComponent as pe, provide as ce, nextTick as X, toRaw as ne, reactive as an, hasInjectionContext as Wn, getCurrentInstance as rn, markRaw as be, effectScope as un, isRef as $e, isReactive as St, toRef as it, getCurrentScope as cn, toRefs as Rt, mergeModels as qn, useModel as Gn, withCtx as ze, createVNode as B, withModifiers as ft, withDirectives as tt, vModelText as nt, pushScopeId as Et, popScopeId as $t, withKeys as Jn } from "vue";
2
2
  const vt = navigator.userAgent.match(
3
3
  /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
4
4
  ), Ze = {
@@ -86,7 +86,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
86
86
  ])
87
87
  ]));
88
88
  }
89
- }, ao = { class: "flex justify-between" }, ro = /* @__PURE__ */ Be('<div class="flex flex-row"><svg class="w-24 text-primary" viewBox="0 0 96 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.151 8.94498H35.7256V23.055H40.151C44.7473 23.055 47.826 20.0825 47.826 15.9795C47.8267 11.8093 44.7678 8.94498 40.151 8.94498ZM40.1312 21.025H37.993V10.9974H40.1312C43.4217 10.9974 45.4972 12.9846 45.4972 15.9795C45.4965 18.9296 43.4012 21.025 40.1312 21.025Z" fill="currentColor"></path><path d="M54.5158 8.94498H50.0903V23.055H54.5158C59.1121 23.055 62.1908 20.0825 62.1908 15.9795C62.1914 11.8093 59.1351 8.94498 54.5158 8.94498ZM54.496 21.025H52.3578V10.9974H54.496C57.789 10.9974 59.8619 12.9846 59.8619 15.9795C59.8613 18.9296 57.766 21.025 54.496 21.025Z" fill="currentColor"></path><path d="M66.7237 8.94498H64.4575V23.055H66.7237V8.94498Z" fill="currentColor"></path><path d="M76.4301 10.7837C78.29 10.7837 79.7436 11.6603 80.7487 13.2207L82.4589 11.9591C81.2401 9.97057 78.9957 8.70953 76.409 8.70953C72.3898 8.64555 68.9048 11.9591 68.9906 16C68.9048 20.0403 72.3898 23.3544 76.409 23.2905C79.0385 23.2905 81.2618 22.0294 82.4589 20.0409L80.7487 18.7793C79.7436 20.3397 78.29 21.2163 76.4301 21.2163C73.544 21.2163 71.3418 18.993 71.3418 16C71.3418 13.007 73.5433 10.7837 76.4301 10.7837Z" fill="currentColor"></path><path d="M83.3135 8.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z" fill="currentColor"></path><path d="M8.66351 4.7121H4.604V15.4427L6.87208 13.3839V6.79143H8.64559C11.4639 6.79143 13.2835 8.47857 13.2835 11.0877C13.2835 13.6916 11.421 15.4427 8.64559 15.4427H4.604V17.5016H8.66351C12.7531 17.5016 15.6098 14.8644 15.6098 11.0877C15.6104 7.27575 12.8196 4.7121 8.66351 4.7121Z" fill="currentColor"></path><path d="M26.2425 9.25528H21.5502L20.7537 14.293L21.4523 14.3308L21.4069 14.7294C21.3916 14.8656 21.3289 15.0448 21.112 15.1734C21.1017 15.9399 21.0845 17.0493 20.9706 18.1766H26.5937V19.8586H21.4677C22.4133 22.9424 24.1254 24.9648 26.5611 25.8669L27.1536 26.0864L26.6795 26.5048C26.4875 26.6737 26.2182 27.0141 26.0896 27.2489L25.9258 27.5438L25.6155 27.4152C23.167 26.4095 21.4223 24.4926 20.2905 21.563C19.3602 24.3365 17.5797 26.2553 14.8592 27.428L14.5438 27.5617L14.3775 27.2642C14.2764 27.08 14.0294 26.7876 13.8151 26.5989L13.3564 26.1951L13.9239 25.9655C16.4555 24.9392 18.064 23.1414 18.8228 20.4837C19.6647 19.8381 20.2099 18.8221 20.2169 17.6801V4.53231C20.2169 2.58349 18.6334 1 16.6846 1H3.53487C1.58349 1 0 2.58349 0 4.53231V17.6795C0 19.6283 1.58349 21.2143 3.53487 21.2143H8.25528V27.2431C8.25528 29.3135 9.93986 31 12.0096 31H26.2431C28.3161 31 29.9974 29.3129 29.9974 27.2431V13.0096C29.9974 10.9392 28.3154 9.25528 26.2425 9.25528ZM3.53487 19.4517C2.55662 19.4517 1.762 18.6603 1.762 17.6788V4.53231C1.762 3.55662 2.55598 2.762 3.53487 2.762H16.6839C17.6571 2.762 18.4517 3.55598 18.4517 4.53231V17.6795C18.4517 17.778 18.444 17.8733 18.4267 17.9667C18.3941 18.1811 18.3231 18.38 18.215 18.5592C17.9149 19.0934 17.3372 19.4517 16.6846 19.4517H3.53487Z" fill="currentColor"></path></svg></div>', 1), io = { class: "flex" }, uo = /* @__PURE__ */ f("svg", {
89
+ }, ao = { class: "flex justify-between" }, ro = { class: "flex flex-row items-center" }, io = /* @__PURE__ */ Be('<svg class="w-24 text-primary" viewBox="0 0 96 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40.151 8.94498H35.7256V23.055H40.151C44.7473 23.055 47.826 20.0825 47.826 15.9795C47.8267 11.8093 44.7678 8.94498 40.151 8.94498ZM40.1312 21.025H37.993V10.9974H40.1312C43.4217 10.9974 45.4972 12.9846 45.4972 15.9795C45.4965 18.9296 43.4012 21.025 40.1312 21.025Z" fill="currentColor"></path><path d="M54.5158 8.94498H50.0903V23.055H54.5158C59.1121 23.055 62.1908 20.0825 62.1908 15.9795C62.1914 11.8093 59.1351 8.94498 54.5158 8.94498ZM54.496 21.025H52.3578V10.9974H54.496C57.789 10.9974 59.8619 12.9846 59.8619 15.9795C59.8613 18.9296 57.766 21.025 54.496 21.025Z" fill="currentColor"></path><path d="M66.7237 8.94498H64.4575V23.055H66.7237V8.94498Z" fill="currentColor"></path><path d="M76.4301 10.7837C78.29 10.7837 79.7436 11.6603 80.7487 13.2207L82.4589 11.9591C81.2401 9.97057 78.9957 8.70953 76.409 8.70953C72.3898 8.64555 68.9048 11.9591 68.9906 16C68.9048 20.0403 72.3898 23.3544 76.409 23.2905C79.0385 23.2905 81.2618 22.0294 82.4589 20.0409L80.7487 18.7793C79.7436 20.3397 78.29 21.2163 76.4301 21.2163C73.544 21.2163 71.3418 18.993 71.3418 16C71.3418 13.007 73.5433 10.7837 76.4301 10.7837Z" fill="currentColor"></path><path d="M83.3135 8.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z" fill="currentColor"></path><path d="M8.66351 4.7121H4.604V15.4427L6.87208 13.3839V6.79143H8.64559C11.4639 6.79143 13.2835 8.47857 13.2835 11.0877C13.2835 13.6916 11.421 15.4427 8.64559 15.4427H4.604V17.5016H8.66351C12.7531 17.5016 15.6098 14.8644 15.6098 11.0877C15.6104 7.27575 12.8196 4.7121 8.66351 4.7121Z" fill="currentColor"></path><path d="M26.2425 9.25528H21.5502L20.7537 14.293L21.4523 14.3308L21.4069 14.7294C21.3916 14.8656 21.3289 15.0448 21.112 15.1734C21.1017 15.9399 21.0845 17.0493 20.9706 18.1766H26.5937V19.8586H21.4677C22.4133 22.9424 24.1254 24.9648 26.5611 25.8669L27.1536 26.0864L26.6795 26.5048C26.4875 26.6737 26.2182 27.0141 26.0896 27.2489L25.9258 27.5438L25.6155 27.4152C23.167 26.4095 21.4223 24.4926 20.2905 21.563C19.3602 24.3365 17.5797 26.2553 14.8592 27.428L14.5438 27.5617L14.3775 27.2642C14.2764 27.08 14.0294 26.7876 13.8151 26.5989L13.3564 26.1951L13.9239 25.9655C16.4555 24.9392 18.064 23.1414 18.8228 20.4837C19.6647 19.8381 20.2099 18.8221 20.2169 17.6801V4.53231C20.2169 2.58349 18.6334 1 16.6846 1H3.53487C1.58349 1 0 2.58349 0 4.53231V17.6795C0 19.6283 1.58349 21.2143 3.53487 21.2143H8.25528V27.2431C8.25528 29.3135 9.93986 31 12.0096 31H26.2431C28.3161 31 29.9974 29.3129 29.9974 27.2431V13.0096C29.9974 10.9392 28.3154 9.25528 26.2425 9.25528ZM3.53487 19.4517C2.55662 19.4517 1.762 18.6603 1.762 17.6788V4.53231C1.762 3.55662 2.55598 2.762 3.53487 2.762H16.6839C17.6571 2.762 18.4517 3.55598 18.4517 4.53231V17.6795C18.4517 17.778 18.444 17.8733 18.4267 17.9667C18.3941 18.1811 18.3231 18.38 18.215 18.5592C17.9149 19.0934 17.3372 19.4517 16.6846 19.4517H3.53487Z" fill="currentColor"></path></svg>', 1), uo = {
90
+ key: 0,
91
+ class: "ml-2 px-1.5 py-0.5 text-[10px] font-medium bg-primary/10 text-primary border border-primary/20 rounded-full"
92
+ }, co = { class: "flex" }, fo = /* @__PURE__ */ f("svg", {
90
93
  class: "w-6 h-6 text-primary",
91
94
  viewBox: "0 0 24 24",
92
95
  fill: "none",
@@ -110,9 +113,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
110
113
  d: "M6.25 18.5C6.25 18.0858 6.58579 17.75 7 17.75H17C17.4142 17.75 17.75 18.0858 17.75 18.5C17.75 18.9142 17.4142 19.25 17 19.25H7C6.58579 19.25 6.25 18.9142 6.25 18.5Z",
111
114
  fill: "currentColor"
112
115
  })
113
- ], -1), co = [
114
- uo
115
- ], fo = /* @__PURE__ */ f("svg", {
116
+ ], -1), vo = [
117
+ fo
118
+ ], po = /* @__PURE__ */ f("svg", {
116
119
  class: "w-6 h-6 text-primary",
117
120
  viewBox: "0 0 24 24",
118
121
  fill: "none",
@@ -139,10 +142,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
139
142
  "stroke-linecap": "round",
140
143
  "stroke-linejoin": "round"
141
144
  })
142
- ], -1), vo = {
145
+ ], -1), ho = {
143
146
  key: 0,
144
147
  class: "absolute -top-0.5 -right-0.5 bg-red-500 text-white text-xs rounded-full h-4 min-w-[16px] flex items-center justify-center px-1 text-[8px]"
145
- }, po = /* @__PURE__ */ f("svg", {
148
+ }, mo = /* @__PURE__ */ f("svg", {
146
149
  class: "w-6 h-6 text-primary",
147
150
  viewBox: "0 0 24 24",
148
151
  fill: "none",
@@ -155,9 +158,9 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
155
158
  "stroke-linecap": "round",
156
159
  "stroke-linejoin": "round"
157
160
  })
158
- ], -1), ho = [
159
- po
160
- ], mo = /* @__PURE__ */ f("svg", {
161
+ ], -1), go = [
162
+ mo
163
+ ], bo = /* @__PURE__ */ f("svg", {
161
164
  class: "w-6 h-6 text-primary",
162
165
  viewBox: "0 0 24 24",
163
166
  fill: "none",
@@ -171,11 +174,11 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
171
174
  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",
172
175
  fill: "currentColor"
173
176
  })
174
- ], -1), go = [
175
- mo
176
- ], bo = /* @__PURE__ */ Be('<svg class="w-6 h-6 text-primary" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.467 2.47236C2.75841 2.17799 3.23328 2.17559 3.52764 2.467L8.52765 7.41675C8.82201 7.70816 8.82441 8.18303 8.533 8.4774C8.24159 8.77176 7.76672 8.77416 7.47235 8.48275L2.47236 3.533C2.17799 3.24159 2.17559 2.76672 2.467 2.47236Z" fill="currentColor"></path><path d="M8.533 15.4724C8.82441 15.7667 8.82201 16.2416 8.52765 16.533L3.52765 21.4828C3.23328 21.7742 2.75841 21.7718 2.467 21.4774C2.17559 21.183 2.17799 20.7082 2.47236 20.4167L7.47235 15.467C7.76672 15.1756 8.24159 15.178 8.533 15.4724Z" fill="currentColor"></path><path d="M15.52 15.4697C15.8129 15.1768 16.2877 15.1768 16.5806 15.4697L21.5304 20.4194C21.8233 20.7123 21.8233 21.1872 21.5304 21.4801C21.2375 21.773 20.7626 21.773 20.4697 21.4801L15.52 16.5303C15.2271 16.2374 15.2271 15.7626 15.52 15.4697Z" fill="currentColor"></path><path d="M21.4801 2.46967C21.773 2.76256 21.773 3.23744 21.4801 3.53033L16.5303 8.48008C16.2374 8.77297 15.7626 8.77297 15.4697 8.48008C15.1768 8.18719 15.1768 7.71231 15.4697 7.41942L20.4194 2.46967C20.7123 2.17678 21.1872 2.17678 21.4801 2.46967Z" fill="currentColor"></path><path d="M15.75 3C15.75 2.58579 16.0858 2.25 16.5 2.25H21C21.4142 2.25 21.75 2.58579 21.75 3V7.5C21.75 7.91421 21.4142 8.25 21 8.25C20.5858 8.25 20.25 7.91421 20.25 7.5V3.75H16.5C16.0858 3.75 15.75 3.41421 15.75 3Z" fill="currentColor"></path><path d="M21 15.75C21.4142 15.75 21.75 16.0858 21.75 16.5V21C21.75 21.4142 21.4142 21.75 21 21.75H16.5C16.0858 21.75 15.75 21.4142 15.75 21C15.75 20.5858 16.0858 20.25 16.5 20.25H20.25V16.5C20.25 16.0858 20.5858 15.75 21 15.75Z" fill="currentColor"></path><path d="M3 15.75C3.41421 15.75 3.75 16.0858 3.75 16.5V20.25H7.5C7.91421 20.25 8.25 20.5858 8.25 21C8.25 21.4142 7.91421 21.75 7.5 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V16.5C2.25 16.0858 2.58579 15.75 3 15.75Z" fill="currentColor"></path><path d="M2.25 3C2.25 2.58579 2.58579 2.25 3 2.25H7.5C7.91421 2.25 8.25 2.58579 8.25 3C8.25 3.41421 7.91421 3.75 7.5 3.75H3.75V7.5C3.75 7.91421 3.41421 8.25 3 8.25C2.58579 8.25 2.25 7.91421 2.25 7.5V3Z" fill="currentColor"></path></svg>', 1), Co = [
177
+ ], -1), Co = [
177
178
  bo
178
- ], xo = {
179
+ ], xo = /* @__PURE__ */ Be('<svg class="w-6 h-6 text-primary" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.467 2.47236C2.75841 2.17799 3.23328 2.17559 3.52764 2.467L8.52765 7.41675C8.82201 7.70816 8.82441 8.18303 8.533 8.4774C8.24159 8.77176 7.76672 8.77416 7.47235 8.48275L2.47236 3.533C2.17799 3.24159 2.17559 2.76672 2.467 2.47236Z" fill="currentColor"></path><path d="M8.533 15.4724C8.82441 15.7667 8.82201 16.2416 8.52765 16.533L3.52765 21.4828C3.23328 21.7742 2.75841 21.7718 2.467 21.4774C2.17559 21.183 2.17799 20.7082 2.47236 20.4167L7.47235 15.467C7.76672 15.1756 8.24159 15.178 8.533 15.4724Z" fill="currentColor"></path><path d="M15.52 15.4697C15.8129 15.1768 16.2877 15.1768 16.5806 15.4697L21.5304 20.4194C21.8233 20.7123 21.8233 21.1872 21.5304 21.4801C21.2375 21.773 20.7626 21.773 20.4697 21.4801L15.52 16.5303C15.2271 16.2374 15.2271 15.7626 15.52 15.4697Z" fill="currentColor"></path><path d="M21.4801 2.46967C21.773 2.76256 21.773 3.23744 21.4801 3.53033L16.5303 8.48008C16.2374 8.77297 15.7626 8.77297 15.4697 8.48008C15.1768 8.18719 15.1768 7.71231 15.4697 7.41942L20.4194 2.46967C20.7123 2.17678 21.1872 2.17678 21.4801 2.46967Z" fill="currentColor"></path><path d="M15.75 3C15.75 2.58579 16.0858 2.25 16.5 2.25H21C21.4142 2.25 21.75 2.58579 21.75 3V7.5C21.75 7.91421 21.4142 8.25 21 8.25C20.5858 8.25 20.25 7.91421 20.25 7.5V3.75H16.5C16.0858 3.75 15.75 3.41421 15.75 3Z" fill="currentColor"></path><path d="M21 15.75C21.4142 15.75 21.75 16.0858 21.75 16.5V21C21.75 21.4142 21.4142 21.75 21 21.75H16.5C16.0858 21.75 15.75 21.4142 15.75 21C15.75 20.5858 16.0858 20.25 16.5 20.25H20.25V16.5C20.25 16.0858 20.5858 15.75 21 15.75Z" fill="currentColor"></path><path d="M3 15.75C3.41421 15.75 3.75 16.0858 3.75 16.5V20.25H7.5C7.91421 20.25 8.25 20.5858 8.25 21C8.25 21.4142 7.91421 21.75 7.5 21.75H3C2.58579 21.75 2.25 21.4142 2.25 21V16.5C2.25 16.0858 2.58579 15.75 3 15.75Z" fill="currentColor"></path><path d="M2.25 3C2.25 2.58579 2.58579 2.25 3 2.25H7.5C7.91421 2.25 8.25 2.58579 8.25 3C8.25 3.41421 7.91421 3.75 7.5 3.75H3.75V7.5C3.75 7.91421 3.41421 8.25 3 8.25C2.58579 8.25 2.25 7.91421 2.25 7.5V3Z" fill="currentColor"></path></svg>', 1), yo = [
180
+ xo
181
+ ], wo = {
179
182
  __name: "Header",
180
183
  props: {
181
184
  headerSettings: {
@@ -193,6 +196,10 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
193
196
  currentTheme: {
194
197
  type: String,
195
198
  default: "lofi"
199
+ },
200
+ isPremium: {
201
+ type: Boolean,
202
+ default: !1
196
203
  }
197
204
  },
198
205
  emits: ["settings", "fullScreen", "reader", "learn", "account", "themeChange"],
@@ -201,8 +208,11 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
201
208
  t("themeChange", l);
202
209
  };
203
210
  return (l, s) => (h(), g("div", ao, [
204
- ro,
205
- f("div", io, [
211
+ f("div", ro, [
212
+ io,
213
+ e.isPremium ? (h(), g("span", uo, "Premium")) : R("", !0)
214
+ ]),
215
+ f("div", co, [
206
216
  e.headerSettings.showThemeSelector ? (h(), W(so, {
207
217
  key: 0,
208
218
  "current-theme": e.currentTheme,
@@ -212,29 +222,29 @@ const Kn = { class: "dropdown dropdown-end z-50" }, eo = /* @__PURE__ */ f("div"
212
222
  key: 1,
213
223
  class: "btn btn-ghost btn-circle btn-sm",
214
224
  onClick: s[0] || (s[0] = (r) => t("reader"))
215
- }, co)) : R("", !0),
225
+ }, vo)) : R("", !0),
216
226
  f("button", {
217
227
  class: "btn btn-ghost btn-circle btn-sm relative",
218
228
  onClick: s[1] || (s[1] = (r) => t("learn"))
219
229
  }, [
220
- fo,
221
- e.headerSettings.showLearn > 0 ? (h(), g("span", vo, G(e.headerSettings.showLearn > 999 ? "999+" : e.headerSettings.showLearn), 1)) : R("", !0)
230
+ po,
231
+ e.headerSettings.showLearn > 0 ? (h(), g("span", ho, G(e.headerSettings.showLearn > 999 ? "999+" : e.headerSettings.showLearn), 1)) : R("", !0)
222
232
  ]),
223
233
  e.headerSettings.showAccount ? (h(), g("button", {
224
234
  key: 2,
225
235
  class: "btn btn-ghost btn-circle btn-sm",
226
236
  onClick: s[2] || (s[2] = (r) => t("account"))
227
- }, ho)) : R("", !0),
237
+ }, go)) : R("", !0),
228
238
  e.headerSettings.showSettings ? (h(), g("button", {
229
239
  key: 3,
230
240
  class: "btn btn-ghost btn-circle btn-sm",
231
241
  onClick: s[3] || (s[3] = (r) => t("settings"))
232
- }, go)) : R("", !0),
242
+ }, Co)) : R("", !0),
233
243
  e.headerSettings.showFullscreen ? (h(), g("button", {
234
244
  key: 4,
235
245
  class: "btn btn-ghost btn-circle btn-sm",
236
246
  onClick: s[4] || (s[4] = (r) => t("fullScreen"))
237
- }, Co)) : R("", !0)
247
+ }, yo)) : R("", !0)
238
248
  ])
239
249
  ]));
240
250
  }
@@ -276,17 +286,17 @@ function ut(e, n) {
276
286
  throw new Error("Unexpected undefined");
277
287
  return e;
278
288
  }
279
- const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
289
+ const _o = (e, n) => Math.abs(e - n) < 1, To = (e, n, t) => {
280
290
  let o;
281
291
  return function(...l) {
282
292
  e.clearTimeout(o), o = e.setTimeout(() => n.apply(this, l), t);
283
293
  };
284
- }, _o = (e) => e, To = (e) => {
294
+ }, So = (e) => e, Eo = (e) => {
285
295
  const n = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), o = [];
286
296
  for (let l = n; l <= t; l++)
287
297
  o.push(l);
288
298
  return o;
289
- }, So = (e, n) => {
299
+ }, $o = (e, n) => {
290
300
  const t = e.scrollElement;
291
301
  if (!t)
292
302
  return;
@@ -316,7 +326,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
316
326
  };
317
327
  }, Pt = {
318
328
  passive: !0
319
- }, Eo = typeof window > "u" ? !0 : "onscrollend" in window, $o = (e, n) => {
329
+ }, Oo = typeof window > "u" ? !0 : "onscrollend" in window, Io = (e, n) => {
320
330
  const t = e.scrollElement;
321
331
  if (!t)
322
332
  return;
@@ -324,8 +334,8 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
324
334
  if (!o)
325
335
  return;
326
336
  let l = 0;
327
- const s = Eo ? () => {
328
- } : wo(
337
+ const s = Oo ? () => {
338
+ } : To(
329
339
  o,
330
340
  () => {
331
341
  n(l, !1);
@@ -337,7 +347,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
337
347
  return i(), t.addEventListener("scroll", a, Pt), t.addEventListener("scrollend", i, Pt), () => {
338
348
  t.removeEventListener("scroll", a), t.removeEventListener("scrollend", i);
339
349
  };
340
- }, Oo = (e, n, t) => {
350
+ }, Lo = (e, n, t) => {
341
351
  if (n != null && n.borderBoxSize) {
342
352
  const o = n.borderBoxSize[0];
343
353
  if (o)
@@ -348,7 +358,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
348
358
  return Math.round(
349
359
  e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
350
360
  );
351
- }, Io = (e, {
361
+ }, ko = (e, {
352
362
  adjustments: n = 0,
353
363
  behavior: t
354
364
  }, o) => {
@@ -359,7 +369,7 @@ const yo = (e, n) => Math.abs(e - n) < 1, wo = (e, n, t) => {
359
369
  behavior: t
360
370
  });
361
371
  };
362
- class Lo {
372
+ class Mo {
363
373
  constructor(n) {
364
374
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
365
375
  let t = null;
@@ -394,11 +404,11 @@ class Lo {
394
404
  scrollPaddingStart: 0,
395
405
  scrollPaddingEnd: 0,
396
406
  horizontal: !1,
397
- getItemKey: _o,
398
- rangeExtractor: To,
407
+ getItemKey: So,
408
+ rangeExtractor: Eo,
399
409
  onChange: () => {
400
410
  },
401
- measureElement: Oo,
411
+ measureElement: Lo,
402
412
  initialRect: { width: 0, height: 0 },
403
413
  scrollMargin: 0,
404
414
  gap: 0,
@@ -518,7 +528,7 @@ class Lo {
518
528
  }
519
529
  ), this.calculateRange = Le(
520
530
  () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
521
- (t, o, l) => this.range = t.length > 0 && o > 0 ? ko({
531
+ (t, o, l) => this.range = t.length > 0 && o > 0 ? Ao({
522
532
  measurements: t,
523
533
  outerSize: o,
524
534
  scrollOffset: l
@@ -638,7 +648,7 @@ class Lo {
638
648
  const [u] = ut(
639
649
  this.getOffsetForIndex(t, a)
640
650
  );
641
- yo(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
651
+ _o(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
642
652
  } else
643
653
  this.scrollToIndex(t, { align: a, behavior: l });
644
654
  }));
@@ -679,7 +689,7 @@ const dn = (e, n, t, o) => {
679
689
  }
680
690
  return e > 0 ? e - 1 : 0;
681
691
  };
682
- function ko({
692
+ function Ao({
683
693
  measurements: e,
684
694
  outerSize: n,
685
695
  scrollOffset: t
@@ -690,8 +700,8 @@ function ko({
690
700
  r++;
691
701
  return { startIndex: s, endIndex: r };
692
702
  }
693
- function Mo(e) {
694
- const n = new Lo(M(e)), t = Un(n), o = n._didMount();
703
+ function Vo(e) {
704
+ const n = new Mo(M(e)), t = Un(n), o = n._didMount();
695
705
  return F(
696
706
  () => M(e).getScrollElement(),
697
707
  (l) => {
@@ -716,23 +726,23 @@ function Mo(e) {
716
726
  }
717
727
  ), Tt(o), t;
718
728
  }
719
- function Ao(e) {
720
- return Mo(
729
+ function Do(e) {
730
+ return Vo(
721
731
  L(() => ({
722
- observeElementRect: So,
723
- observeElementOffset: $o,
724
- scrollToFn: Io,
732
+ observeElementRect: $o,
733
+ observeElementOffset: Io,
734
+ scrollToFn: ko,
725
735
  ...M(e)
726
736
  }))
727
737
  );
728
738
  }
729
- function Vo(e, n, t) {
739
+ function Ro(e, n, t) {
730
740
  let o = O(t == null ? void 0 : t.value), l = L(() => e.value !== void 0);
731
741
  return [L(() => l.value ? e.value : o.value), function(s) {
732
742
  return l.value || (o.value = s), n == null ? void 0 : n(s);
733
743
  }];
734
744
  }
735
- function Do(e) {
745
+ function Po(e) {
736
746
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((n) => setTimeout(() => {
737
747
  throw n;
738
748
  }));
@@ -752,7 +762,7 @@ function Qe() {
752
762
  n.add(() => clearTimeout(o));
753
763
  }, microTask(...t) {
754
764
  let o = { current: !0 };
755
- return Do(() => {
765
+ return Po(() => {
756
766
  o.current && t[0]();
757
767
  }), n.add(() => {
758
768
  o.current = !1;
@@ -775,19 +785,19 @@ function Qe() {
775
785
  } };
776
786
  return n;
777
787
  }
778
- function Ro() {
788
+ function No() {
779
789
  let e = Qe();
780
790
  return Fe(() => e.dispose()), e;
781
791
  }
782
- function Po() {
783
- let e = Ro();
792
+ function Bo() {
793
+ let e = No();
784
794
  return (n) => {
785
795
  e.dispose(), e.nextFrame(n);
786
796
  };
787
797
  }
788
- let No = Symbol("headlessui.useid"), Bo = 0;
798
+ let Fo = Symbol("headlessui.useid"), jo = 0;
789
799
  function je() {
790
- return le(No, () => `${++Bo}`)();
800
+ return le(Fo, () => `${++jo}`)();
791
801
  }
792
802
  function N(e) {
793
803
  var n;
@@ -803,8 +813,8 @@ function ue(e, n, ...t) {
803
813
  let o = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((l) => `"${l}"`).join(", ")}.`);
804
814
  throw Error.captureStackTrace && Error.captureStackTrace(o, ue), o;
805
815
  }
806
- var Fo = Object.defineProperty, jo = (e, n, t) => n in e ? Fo(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (jo(e, typeof n != "symbol" ? n + "" : n, t), t);
807
- let Ho = class {
816
+ var Ho = Object.defineProperty, zo = (e, n, t) => n in e ? Ho(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, Nt = (e, n, t) => (zo(e, typeof n != "symbol" ? n + "" : n, t), t);
817
+ let Zo = class {
808
818
  constructor() {
809
819
  Nt(this, "current", this.detect()), Nt(this, "currentId", 0);
810
820
  }
@@ -826,7 +836,7 @@ let Ho = class {
826
836
  detect() {
827
837
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
828
838
  }
829
- }, Ot = new Ho();
839
+ }, Ot = new Zo();
830
840
  function It(e) {
831
841
  if (Ot.isServer) return null;
832
842
  if (e instanceof Node) return e.ownerDocument;
@@ -837,8 +847,8 @@ function It(e) {
837
847
  return document;
838
848
  }
839
849
  let Bt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
840
- var zo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(zo || {}), Zo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zo || {}), Uo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Uo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
841
- function Wo(e, n = 0) {
850
+ var Uo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Uo || {}), Wo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Wo || {}), qo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(qo || {}), fn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(fn || {});
851
+ function Go(e, n = 0) {
842
852
  var t;
843
853
  return e === ((t = It(e)) == null ? void 0 : t.body) ? !1 : ue(n, { 0() {
844
854
  return e.matches(Bt);
@@ -851,13 +861,13 @@ function Wo(e, n = 0) {
851
861
  return !1;
852
862
  } });
853
863
  }
854
- var qo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(qo || {});
864
+ var Jo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Jo || {});
855
865
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
856
866
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
857
867
  }, !0), document.addEventListener("click", (e) => {
858
868
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
859
869
  }, !0));
860
- function Go(e, n = (t) => t) {
870
+ function Yo(e, n = (t) => t) {
861
871
  return e.slice().sort((t, o) => {
862
872
  let l = n(t), s = n(o);
863
873
  if (l === null || s === null) return 0;
@@ -865,26 +875,26 @@ function Go(e, n = (t) => t) {
865
875
  return r & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : r & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
866
876
  });
867
877
  }
868
- function Jo() {
878
+ function Qo() {
869
879
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
870
880
  }
871
- function Yo() {
881
+ function Xo() {
872
882
  return /Android/gi.test(window.navigator.userAgent);
873
883
  }
874
884
  function vn() {
875
- return Jo() || Yo();
885
+ return Qo() || Xo();
876
886
  }
877
887
  function Ue(e, n, t) {
878
888
  Ot.isServer || fe((o) => {
879
889
  document.addEventListener(e, n, t), o(() => document.removeEventListener(e, n, t));
880
890
  });
881
891
  }
882
- function Qo(e, n, t) {
892
+ function Ko(e, n, t) {
883
893
  Ot.isServer || fe((o) => {
884
894
  window.addEventListener(e, n, t), o(() => window.removeEventListener(e, n, t));
885
895
  });
886
896
  }
887
- function Xo(e, n, t = L(() => !0)) {
897
+ function el(e, n, t = L(() => !0)) {
888
898
  function o(s, r) {
889
899
  if (!t.value || s.defaultPrevented) return;
890
900
  let a = r(s);
@@ -897,7 +907,7 @@ function Xo(e, n, t = L(() => !0)) {
897
907
  let c = u instanceof HTMLElement ? u : N(u);
898
908
  if (c != null && c.contains(a) || s.composed && s.composedPath().includes(c)) return;
899
909
  }
900
- return !Wo(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
910
+ return !Go(a, fn.Loose) && a.tabIndex !== -1 && s.preventDefault(), n(s, a);
901
911
  }
902
912
  let l = O(null);
903
913
  Ue("pointerdown", (s) => {
@@ -908,14 +918,14 @@ function Xo(e, n, t = L(() => !0)) {
908
918
  t.value && (l.value = ((a = (r = s.composedPath) == null ? void 0 : r.call(s)) == null ? void 0 : a[0]) || s.target);
909
919
  }, !0), Ue("click", (s) => {
910
920
  vn() || l.value && (o(s, () => l.value), l.value = null);
911
- }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Qo("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
921
+ }, !0), Ue("touchend", (s) => o(s, () => s.target instanceof HTMLElement ? s.target : null), !0), Ko("blur", (s) => o(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
912
922
  }
913
923
  function Ft(e, n) {
914
924
  if (e) return e;
915
925
  let t = n ?? "button";
916
926
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
917
927
  }
918
- function Ko(e, n) {
928
+ function tl(e, n) {
919
929
  let t = O(Ft(e.value.type, e.value.as));
920
930
  return se(() => {
921
931
  t.value = Ft(e.value.type, e.value.as);
@@ -927,7 +937,7 @@ function Ko(e, n) {
927
937
  function jt(e) {
928
938
  return [e.screenX, e.screenY];
929
939
  }
930
- function el() {
940
+ function nl() {
931
941
  let e = O([-1, -1]);
932
942
  return { wasMoved(n) {
933
943
  let t = jt(n);
@@ -936,7 +946,7 @@ function el() {
936
946
  e.value = jt(n);
937
947
  } };
938
948
  }
939
- function tl({ container: e, accept: n, walk: t, enabled: o }) {
949
+ function ol({ container: e, accept: n, walk: t, enabled: o }) {
940
950
  fe(() => {
941
951
  let l = e.value;
942
952
  if (!l || o !== void 0 && !o.value) return;
@@ -946,7 +956,7 @@ function tl({ container: e, accept: n, walk: t, enabled: o }) {
946
956
  for (; a.nextNode(); ) t(a.currentNode);
947
957
  });
948
958
  }
949
- var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), nl = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(nl || {});
959
+ var De = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(De || {}), ll = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ll || {});
950
960
  function ye({ visible: e = !0, features: n = 0, ourProps: t, theirProps: o, ...l }) {
951
961
  var s;
952
962
  let r = hn(o, t), a = Object.assign(l, { props: r });
@@ -972,7 +982,7 @@ function ct({ props: e, attrs: n, slots: t, slot: o, name: l }) {
972
982
  if (a === "template") {
973
983
  if (u = pn(u ?? []), Object.keys(i).length > 0 || Object.keys(n).length > 0) {
974
984
  let [d, ...x] = u ?? [];
975
- if (!ll(d) || x.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(n)).map((b) => b.trim()).filter((b, I, $) => $.indexOf(b) === I).sort((b, I) => b.localeCompare(I)).map((b) => ` - ${b}`).join(`
985
+ if (!al(d) || x.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(i).concat(Object.keys(n)).map((b) => b.trim()).filter((b, I, $) => $.indexOf(b) === I).sort((b, I) => b.localeCompare(I)).map((b) => ` - ${b}`).join(`
976
986
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((b) => ` - ${b}`).join(`
977
987
  `)].join(`
978
988
  `));
@@ -1002,7 +1012,7 @@ function hn(...e) {
1002
1012
  } });
1003
1013
  return n;
1004
1014
  }
1005
- function ol(e) {
1015
+ function sl(e) {
1006
1016
  let n = Object.assign({}, e);
1007
1017
  for (let t in n) n[t] === void 0 && delete n[t];
1008
1018
  return n;
@@ -1012,11 +1022,11 @@ function ot(e, n = []) {
1012
1022
  for (let o of n) o in t && delete t[o];
1013
1023
  return t;
1014
1024
  }
1015
- function ll(e) {
1025
+ function al(e) {
1016
1026
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
1017
1027
  }
1018
1028
  var mn = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(mn || {});
1019
- let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1029
+ let rl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: n, attrs: t }) {
1020
1030
  return () => {
1021
1031
  var o;
1022
1032
  let { features: l, ...s } = e, r = { "aria-hidden": (l & 2) === 2 ? !0 : (o = s["aria-hidden"]) != null ? o : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
@@ -1024,27 +1034,27 @@ let sl = pe({ name: "Hidden", props: { as: { type: [Object, String], default: "d
1024
1034
  };
1025
1035
  } }), gn = Symbol("Context");
1026
1036
  var Re = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Re || {});
1027
- function al() {
1037
+ function il() {
1028
1038
  return le(gn, null);
1029
1039
  }
1030
- function rl(e) {
1040
+ function ul(e) {
1031
1041
  ce(gn, e);
1032
1042
  }
1033
1043
  var Q = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Q || {}), bn = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(bn || {});
1034
- function il(e) {
1044
+ function cl(e) {
1035
1045
  function n() {
1036
1046
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", n));
1037
1047
  }
1038
1048
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", n), n());
1039
1049
  }
1040
1050
  let ge = [];
1041
- il(() => {
1051
+ cl(() => {
1042
1052
  function e(n) {
1043
1053
  n.target instanceof HTMLElement && n.target !== document.body && ge[0] !== n.target && (ge.unshift(n.target), ge = ge.filter((t) => t != null && t.isConnected), ge.splice(10));
1044
1054
  }
1045
1055
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
1046
1056
  });
1047
- function ul(e) {
1057
+ function dl(e) {
1048
1058
  throw new Error("Unexpected object: " + e);
1049
1059
  }
1050
1060
  var q = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(q || {});
@@ -1077,7 +1087,7 @@ function Ht(e, n) {
1077
1087
  case 5:
1078
1088
  return null;
1079
1089
  default:
1080
- ul(e);
1090
+ dl(e);
1081
1091
  }
1082
1092
  }
1083
1093
  function Cn(e = {}, n = null, t = []) {
@@ -1091,10 +1101,10 @@ function yn(e, n, t) {
1091
1101
  if (Array.isArray(t)) for (let [o, l] of t.entries()) yn(e, xn(n, o.toString()), l);
1092
1102
  else t instanceof Date ? e.push([n, t.toISOString()]) : typeof t == "boolean" ? e.push([n, t ? "1" : "0"]) : typeof t == "string" ? e.push([n, t]) : typeof t == "number" ? e.push([n, `${t}`]) : t == null ? e.push([n, ""]) : Cn(t, n, e);
1093
1103
  }
1094
- function cl(e, n) {
1104
+ function fl(e, n) {
1095
1105
  return e === n;
1096
1106
  }
1097
- var dl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(dl || {}), fl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(fl || {}), vl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(vl || {});
1107
+ var vl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(vl || {}), pl = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(pl || {}), hl = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(hl || {});
1098
1108
  let wn = Symbol("ComboboxContext");
1099
1109
  function we(e) {
1100
1110
  let n = le(wn, null);
@@ -1104,13 +1114,13 @@ function we(e) {
1104
1114
  }
1105
1115
  return n;
1106
1116
  }
1107
- let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1117
+ let _n = Symbol("VirtualContext"), ml = pe({ name: "VirtualProvider", setup(e, { slots: n }) {
1108
1118
  let t = we("VirtualProvider"), o = L(() => {
1109
1119
  let a = N(t.optionsRef);
1110
1120
  if (!a) return { start: 0, end: 0 };
1111
1121
  let i = window.getComputedStyle(a);
1112
1122
  return { start: parseFloat(i.paddingBlockStart || i.paddingTop), end: parseFloat(i.paddingBlockEnd || i.paddingBottom) };
1113
- }), l = Ao(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1123
+ }), l = Do(L(() => ({ scrollPaddingStart: o.value.start, scrollPaddingEnd: o.value.end, count: t.virtual.value.options.length, estimateSize() {
1114
1124
  return 40;
1115
1125
  }, getScrollElement() {
1116
1126
  return N(t.optionsRef);
@@ -1126,13 +1136,13 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1126
1136
  t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
1127
1137
  }
1128
1138
  } }, l.value.getVirtualItems().map((a) => sn(n.default({ option: t.virtual.value.options[a.index], open: t.comboboxState.value === 0 })[0], { key: `${r.value}-${a.index}`, "data-index": a.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": a.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${a.start}px)`, overflowAnchor: "none" } })))];
1129
- } }), hl = pe({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: n, attrs: t, emit: o }) {
1139
+ } }), gl = pe({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: n, attrs: t, emit: o }) {
1130
1140
  let l = O(1), s = O(null), r = O(null), a = O(null), i = O(null), u = O({ static: !1, hold: !1 }), c = O([]), d = O(null), x = O(2), m = O(!1);
1131
1141
  function C(v = (p) => p) {
1132
- let p = d.value !== null ? c.value[d.value] : null, k = v(c.value.slice()), A = k.length > 0 && k[0].dataRef.order.value !== null ? k.sort((H, K) => H.dataRef.order.value - K.dataRef.order.value) : Go(k, (H) => N(H.dataRef.domRef)), j = p ? A.indexOf(p) : null;
1142
+ let p = d.value !== null ? c.value[d.value] : null, k = v(c.value.slice()), A = k.length > 0 && k[0].dataRef.order.value !== null ? k.sort((H, K) => H.dataRef.order.value - K.dataRef.order.value) : Yo(k, (H) => N(H.dataRef.domRef)), j = p ? A.indexOf(p) : null;
1133
1143
  return j === -1 && (j = null), { options: A, activeOptionIndex: j };
1134
1144
  }
1135
- let b = L(() => e.multiple ? 1 : 0), I = L(() => e.nullable), [$, w] = Vo(L(() => e.modelValue), (v) => o("update:modelValue", v), L(() => e.defaultValue)), y = L(() => $.value === void 0 ? ue(b.value, { 1: [], 0: void 0 }) : $.value), _ = null, T = null;
1145
+ let b = L(() => e.multiple ? 1 : 0), I = L(() => e.nullable), [$, w] = Ro(L(() => e.modelValue), (v) => o("update:modelValue", v), L(() => e.defaultValue)), y = L(() => $.value === void 0 ? ue(b.value, { 1: [], 0: void 0 }) : $.value), _ = null, T = null;
1136
1146
  function V(v) {
1137
1147
  return ue(b.value, { 0() {
1138
1148
  return w == null ? void 0 : w(v);
@@ -1154,7 +1164,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1154
1164
  let k = e.by;
1155
1165
  return (v == null ? void 0 : v[k]) === (p == null ? void 0 : p[k]);
1156
1166
  }
1157
- return e.by === null ? cl(v, p) : e.by(v, p);
1167
+ return e.by === null ? fl(v, p) : e.by(v, p);
1158
1168
  }, calculateIndex(v) {
1159
1169
  return E.virtual.value ? e.by === null ? E.virtual.value.options.indexOf(v) : E.virtual.value.options.findIndex((p) => E.compare(p, v)) : c.value.findIndex((p) => E.compare(p.dataRef.value, v));
1160
1170
  }, defaultValue: L(() => e.defaultValue), nullable: I, immediate: L(() => !1), virtual: L(() => null), inputRef: r, labelRef: s, buttonRef: a, optionsRef: i, disabled: L(() => e.disabled), options: c, change(v) {
@@ -1248,7 +1258,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1248
1258
  }, isActive(v) {
1249
1259
  return d.value === E.calculateIndex(v);
1250
1260
  } };
1251
- Xo([r, a, i], () => E.closeCombobox(), L(() => l.value === 0)), ce(wn, E), rl(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1261
+ el([r, a, i], () => E.closeCombobox(), L(() => l.value === 0)), ce(wn, E), ul(L(() => ue(l.value, { 0: Re.Open, 1: Re.Closed })));
1252
1262
  let D = L(() => {
1253
1263
  var v;
1254
1264
  return (v = N(r)) == null ? void 0 : v.closest("form");
@@ -1267,7 +1277,7 @@ let _n = Symbol("VirtualContext"), pl = pe({ name: "VirtualProvider", setup(e, {
1267
1277
  }), () => {
1268
1278
  var v, p, k;
1269
1279
  let { name: A, disabled: j, form: H, ...K } = e, ee = { open: l.value === 0, disabled: j, activeIndex: E.activeOptionIndex.value, activeOption: E.activeOptionIndex.value === null ? null : E.virtual.value ? E.virtual.value.options[(v = E.activeOptionIndex.value) != null ? v : 0] : (k = (p = E.options.value[E.activeOptionIndex.value]) == null ? void 0 : p.dataRef.value) != null ? k : null, value: y.value };
1270
- return Ve(z, [...A != null && y.value != null ? Cn({ [A]: y.value }).map(([Z, zn]) => Ve(sl, ol({ features: mn.Hidden, key: Z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: H, disabled: j, name: Z, value: zn }))) : [], ye({ theirProps: { ...t, ...ot(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ee, slots: n, attrs: t, name: "Combobox" })]);
1280
+ return Ve(z, [...A != null && y.value != null ? Cn({ [A]: y.value }).map(([Z, zn]) => Ve(rl, sl({ features: mn.Hidden, key: Z, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: H, disabled: j, name: Z, value: zn }))) : [], ye({ theirProps: { ...t, ...ot(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ee, slots: n, attrs: t, name: "Combobox" })]);
1271
1281
  };
1272
1282
  } });
1273
1283
  pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t }) {
@@ -1282,7 +1292,7 @@ pe({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "lab
1282
1292
  return ye({ ourProps: u, theirProps: i, slot: a, attrs: n, slots: t, name: "ComboboxLabel" });
1283
1293
  };
1284
1294
  } });
1285
- let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1295
+ let bl = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: n, slots: t, expose: o }) {
1286
1296
  var l;
1287
1297
  let s = (l = e.id) != null ? l : `headlessui-combobox-button-${je()}`, r = we("ComboboxButton");
1288
1298
  o({ el: r.buttonRef, $el: r.buttonRef });
@@ -1317,13 +1327,13 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1317
1327
  return;
1318
1328
  }
1319
1329
  }
1320
- let u = Ko(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1330
+ let u = tl(L(() => ({ as: e.as, type: n.type })), r.buttonRef);
1321
1331
  return () => {
1322
1332
  var c, d;
1323
1333
  let x = { open: r.comboboxState.value === 0, disabled: r.disabled.value, value: r.value.value }, { ...m } = e, C = { ref: r.buttonRef, id: s, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = N(r.optionsRef)) == null ? void 0 : c.id, "aria-expanded": r.comboboxState.value === 0, "aria-labelledby": r.labelRef.value ? [(d = N(r.labelRef)) == null ? void 0 : d.id, s].join(" ") : void 0, disabled: r.disabled.value === !0 ? !0 : void 0, onKeydown: i, onClick: a };
1324
1334
  return ye({ ourProps: C, theirProps: m, slot: x, attrs: n, slots: t, name: "ComboboxButton" });
1325
1335
  };
1326
- } }), gl = pe({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: n, attrs: t, slots: o, expose: l }) {
1336
+ } }), Cl = pe({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: null } }, emits: { change: (e) => !0 }, setup(e, { emit: n, attrs: t, slots: o, expose: l }) {
1327
1337
  var s;
1328
1338
  let r = (s = e.id) != null ? s : `headlessui-combobox-input-${je()}`, a = we("ComboboxInput"), i = L(() => It(N(a.inputRef))), u = { value: !1 };
1329
1339
  l({ el: a.inputRef, $el: a.inputRef });
@@ -1366,7 +1376,7 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1366
1376
  x.value = !1;
1367
1377
  });
1368
1378
  }
1369
- let b = Po();
1379
+ let b = Bo();
1370
1380
  function I(T) {
1371
1381
  switch (u.value = !0, b(() => {
1372
1382
  u.value = !1;
@@ -1431,15 +1441,15 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1431
1441
  let k = { open: a.comboboxState.value === 0 }, { displayValue: A, onChange: j, ...H } = e, K = { "aria-controls": (T = a.optionsRef.value) == null ? void 0 : T.id, "aria-expanded": a.comboboxState.value === 0, "aria-activedescendant": a.activeOptionIndex.value === null ? void 0 : a.virtual.value ? (V = a.options.value.find((ee) => !a.virtual.value.disabled(ee.dataRef.value) && a.compare(ee.dataRef.value, a.virtual.value.options[a.activeOptionIndex.value]))) == null ? void 0 : V.id : (S = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : S.id, "aria-labelledby": (v = (E = N(a.labelRef)) == null ? void 0 : E.id) != null ? v : (D = N(a.buttonRef)) == null ? void 0 : D.id, "aria-autocomplete": "list", id: r, onCompositionstart: m, onCompositionend: C, onKeydown: I, onInput: $, onFocus: y, onBlur: w, role: "combobox", type: (p = t.type) != null ? p : "text", tabIndex: 0, ref: a.inputRef, defaultValue: _.value, disabled: a.disabled.value === !0 ? !0 : void 0 };
1432
1442
  return ye({ ourProps: K, theirProps: H, slot: k, attrs: t, slots: o, features: De.RenderStrategy | De.Static, name: "ComboboxInput" });
1433
1443
  };
1434
- } }), bl = pe({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: n, slots: t, expose: o }) {
1444
+ } }), xl = pe({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: n, slots: t, expose: o }) {
1435
1445
  let l = we("ComboboxOptions"), s = `headlessui-combobox-options-${je()}`;
1436
1446
  o({ el: l.optionsRef, $el: l.optionsRef }), fe(() => {
1437
1447
  l.optionsPropsRef.value.static = e.static;
1438
1448
  }), fe(() => {
1439
1449
  l.optionsPropsRef.value.hold = e.hold;
1440
1450
  });
1441
- let r = al(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1442
- tl({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1451
+ let r = il(), a = L(() => r !== null ? (r.value & Re.Open) === Re.Open : l.comboboxState.value === 0);
1452
+ ol({ container: L(() => N(l.optionsRef)), enabled: L(() => l.comboboxState.value === 0), accept(u) {
1443
1453
  return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1444
1454
  }, walk(u) {
1445
1455
  u.setAttribute("role", "none");
@@ -1450,9 +1460,9 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1450
1460
  return () => {
1451
1461
  var u, c, d;
1452
1462
  let x = { open: l.comboboxState.value === 0 }, m = { "aria-labelledby": (d = (u = N(l.labelRef)) == null ? void 0 : u.id) != null ? d : (c = N(l.buttonRef)) == null ? void 0 : c.id, id: s, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: i }, C = ot(e, ["hold"]);
1453
- return ye({ ourProps: m, theirProps: C, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(pl, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1463
+ return ye({ ourProps: m, theirProps: C, slot: x, attrs: n, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ve(ml, {}, t.default)] } : t, features: De.RenderStrategy | De.Static, visible: a.value, name: "ComboboxOptions" });
1454
1464
  };
1455
- } }), Cl = pe({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: n, attrs: t, expose: o }) {
1465
+ } }), yl = pe({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 }, order: { type: [Number], default: null } }, setup(e, { slots: n, attrs: t, expose: o }) {
1456
1466
  let l = we("ComboboxOption"), s = `headlessui-combobox-option-${je()}`, r = O(null), a = L(() => e.disabled);
1457
1467
  o({ el: r, $el: r });
1458
1468
  let i = L(() => {
@@ -1480,7 +1490,7 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1480
1490
  let y = l.calculateIndex(e.value);
1481
1491
  l.goToOption(q.Specific, y);
1482
1492
  }
1483
- let C = el();
1493
+ let C = nl();
1484
1494
  function b(w) {
1485
1495
  C.update(w);
1486
1496
  }
@@ -1499,7 +1509,7 @@ let ml = pe({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1499
1509
  return ye({ ourProps: _, theirProps: T, slot: y, attrs: t, slots: n, name: "ComboboxOption" });
1500
1510
  };
1501
1511
  } });
1502
- function xl(e, n) {
1512
+ function wl(e, n) {
1503
1513
  return h(), g("svg", {
1504
1514
  xmlns: "http://www.w3.org/2000/svg",
1505
1515
  viewBox: "0 0 20 20",
@@ -1514,7 +1524,7 @@ function xl(e, n) {
1514
1524
  })
1515
1525
  ]);
1516
1526
  }
1517
- function yl(e, n) {
1527
+ function _l(e, n) {
1518
1528
  return h(), g("svg", {
1519
1529
  xmlns: "http://www.w3.org/2000/svg",
1520
1530
  viewBox: "0 0 20 20",
@@ -1529,7 +1539,7 @@ function yl(e, n) {
1529
1539
  })
1530
1540
  ]);
1531
1541
  }
1532
- function wl(e, n) {
1542
+ function Tl(e, n) {
1533
1543
  return h(), g("svg", {
1534
1544
  xmlns: "http://www.w3.org/2000/svg",
1535
1545
  viewBox: "0 0 20 20",
@@ -1554,22 +1564,22 @@ function dt(e, n) {
1554
1564
  }
1555
1565
  delete e[n];
1556
1566
  }
1557
- function _l() {
1567
+ function Sl() {
1558
1568
  return Tn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1559
1569
  }
1560
1570
  function Tn() {
1561
1571
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1562
1572
  }
1563
- const Tl = typeof Proxy == "function", Sl = "devtools-plugin:setup", El = "plugin:settings:set";
1573
+ const El = typeof Proxy == "function", $l = "devtools-plugin:setup", Ol = "plugin:settings:set";
1564
1574
  let _e, pt;
1565
- function $l() {
1575
+ function Il() {
1566
1576
  var e;
1567
1577
  return _e !== void 0 || (typeof window < "u" && window.performance ? (_e = !0, pt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (_e = !0, pt = globalThis.perf_hooks.performance) : _e = !1), _e;
1568
1578
  }
1569
- function Ol() {
1570
- return $l() ? pt.now() : Date.now();
1579
+ function Ll() {
1580
+ return Il() ? pt.now() : Date.now();
1571
1581
  }
1572
- class Il {
1582
+ class kl {
1573
1583
  constructor(n, t) {
1574
1584
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = n, this.hook = t;
1575
1585
  const o = {};
@@ -1597,9 +1607,9 @@ class Il {
1597
1607
  s = r;
1598
1608
  },
1599
1609
  now() {
1600
- return Ol();
1610
+ return Ll();
1601
1611
  }
1602
- }, t && t.on(El, (r, a) => {
1612
+ }, t && t.on(Ol, (r, a) => {
1603
1613
  r === this.plugin.id && this.fallbacks.setSettings(a);
1604
1614
  }), this.proxiedOn = new Proxy({}, {
1605
1615
  get: (r, a) => this.target ? this.target.on[a] : (...i) => {
@@ -1632,11 +1642,11 @@ class Il {
1632
1642
  }
1633
1643
  }
1634
1644
  function Sn(e, n) {
1635
- const t = e, o = Tn(), l = _l(), s = Tl && t.enableEarlyProxy;
1645
+ const t = e, o = Tn(), l = Sl(), s = El && t.enableEarlyProxy;
1636
1646
  if (l && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1637
- l.emit(Sl, e, n);
1647
+ l.emit($l, e, n);
1638
1648
  else {
1639
- const r = s ? new Il(t, l) : null;
1649
+ const r = s ? new kl(t, l) : null;
1640
1650
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1641
1651
  pluginDescriptor: t,
1642
1652
  setupFn: n,
@@ -1662,7 +1672,7 @@ var ae;
1662
1672
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
1663
1673
  })(ae || (ae = {}));
1664
1674
  const lt = typeof window < "u", Ae = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && lt, zt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
1665
- function Ll(e, { autoBom: n = !1 } = {}) {
1675
+ function Ml(e, { autoBom: n = !1 } = {}) {
1666
1676
  return n && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
1667
1677
  }
1668
1678
  function Lt(e, n, t) {
@@ -1692,16 +1702,16 @@ function Ge(e) {
1692
1702
  }
1693
1703
  const Je = typeof navigator == "object" ? navigator : { userAgent: "" }, On = /Macintosh/.test(Je.userAgent) && /AppleWebKit/.test(Je.userAgent) && !/Safari/.test(Je.userAgent), In = lt ? (
1694
1704
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
1695
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? kl : (
1705
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !On ? Al : (
1696
1706
  // Use msSaveOrOpenBlob as a second approach
1697
- "msSaveOrOpenBlob" in Je ? Ml : (
1707
+ "msSaveOrOpenBlob" in Je ? Vl : (
1698
1708
  // Fallback to using FileReader and a popup
1699
- Al
1709
+ Dl
1700
1710
  )
1701
1711
  )
1702
1712
  ) : () => {
1703
1713
  };
1704
- function kl(e, n = "download", t) {
1714
+ function Al(e, n = "download", t) {
1705
1715
  const o = document.createElement("a");
1706
1716
  o.download = n, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? $n(o.href) ? Lt(e, n, t) : (o.target = "_blank", Ge(o)) : Ge(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
1707
1717
  URL.revokeObjectURL(o.href);
@@ -1709,7 +1719,7 @@ function kl(e, n = "download", t) {
1709
1719
  Ge(o);
1710
1720
  }, 0));
1711
1721
  }
1712
- function Ml(e, n = "download", t) {
1722
+ function Vl(e, n = "download", t) {
1713
1723
  if (typeof e == "string")
1714
1724
  if ($n(e))
1715
1725
  Lt(e, n, t);
@@ -1720,9 +1730,9 @@ function Ml(e, n = "download", t) {
1720
1730
  });
1721
1731
  }
1722
1732
  else
1723
- navigator.msSaveOrOpenBlob(Ll(e, t), n);
1733
+ navigator.msSaveOrOpenBlob(Ml(e, t), n);
1724
1734
  }
1725
- function Al(e, n, t, o) {
1735
+ function Dl(e, n, t, o) {
1726
1736
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
1727
1737
  return Lt(e, n, t);
1728
1738
  const l = e.type === "application/octet-stream", s = /constructor/i.test(String(zt.HTMLElement)) || "safari" in zt, r = /CriOS\/[\d]+/.test(navigator.userAgent);
@@ -1755,7 +1765,7 @@ function Ln() {
1755
1765
  function kn(e) {
1756
1766
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (U('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
1757
1767
  }
1758
- async function Vl(e) {
1768
+ async function Rl(e) {
1759
1769
  if (!Ln())
1760
1770
  try {
1761
1771
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), U("Global state copied to clipboard.");
@@ -1765,7 +1775,7 @@ async function Vl(e) {
1765
1775
  U("Failed to serialize the state. Check the console for more details.", "error"), console.error(n);
1766
1776
  }
1767
1777
  }
1768
- async function Dl(e) {
1778
+ async function Pl(e) {
1769
1779
  if (!Ln())
1770
1780
  try {
1771
1781
  Mn(e, JSON.parse(await navigator.clipboard.readText())), U("Global state pasted from clipboard.");
@@ -1775,7 +1785,7 @@ async function Dl(e) {
1775
1785
  U("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(n);
1776
1786
  }
1777
1787
  }
1778
- async function Rl(e) {
1788
+ async function Nl(e) {
1779
1789
  try {
1780
1790
  In(new Blob([JSON.stringify(e.state.value)], {
1781
1791
  type: "text/plain;charset=utf-8"
@@ -1785,7 +1795,7 @@ async function Rl(e) {
1785
1795
  }
1786
1796
  }
1787
1797
  let ie;
1788
- function Pl() {
1798
+ function Bl() {
1789
1799
  ie || (ie = document.createElement("input"), ie.type = "file", ie.accept = ".json");
1790
1800
  function e() {
1791
1801
  return new Promise((n, t) => {
@@ -1800,9 +1810,9 @@ function Pl() {
1800
1810
  }
1801
1811
  return e;
1802
1812
  }
1803
- async function Nl(e) {
1813
+ async function Fl(e) {
1804
1814
  try {
1805
- const t = await Pl()();
1815
+ const t = await Bl()();
1806
1816
  if (!t)
1807
1817
  return;
1808
1818
  const { text: o, file: l } = t;
@@ -1825,7 +1835,7 @@ function oe(e) {
1825
1835
  };
1826
1836
  }
1827
1837
  const An = "🍍 Pinia (root)", ht = "_root";
1828
- function Bl(e) {
1838
+ function jl(e) {
1829
1839
  return kt(e) ? {
1830
1840
  id: ht,
1831
1841
  label: An
@@ -1834,7 +1844,7 @@ function Bl(e) {
1834
1844
  label: e.$id
1835
1845
  };
1836
1846
  }
1837
- function Fl(e) {
1847
+ function Hl(e) {
1838
1848
  if (kt(e)) {
1839
1849
  const t = Array.from(e._s.keys()), o = e._s;
1840
1850
  return {
@@ -1870,7 +1880,7 @@ function Fl(e) {
1870
1880
  value: e[t]
1871
1881
  }))), n;
1872
1882
  }
1873
- function jl(e) {
1883
+ function zl(e) {
1874
1884
  return e ? Array.isArray(e) ? e.reduce((n, t) => (n.keys.push(t.key), n.operations.push(t.type), n.oldValue[t.key] = t.oldValue, n.newValue[t.key] = t.newValue, n), {
1875
1885
  oldValue: {},
1876
1886
  keys: [],
@@ -1883,7 +1893,7 @@ function jl(e) {
1883
1893
  newValue: e.newValue
1884
1894
  } : {};
1885
1895
  }
1886
- function Hl(e) {
1896
+ function Zl(e) {
1887
1897
  switch (e) {
1888
1898
  case ae.direct:
1889
1899
  return "mutation";
@@ -1896,8 +1906,8 @@ function Hl(e) {
1896
1906
  }
1897
1907
  }
1898
1908
  let Se = !0;
1899
- const Ye = [], me = "pinia:mutations", J = "pinia", { assign: zl } = Object, Xe = (e) => "🍍 " + e;
1900
- function Zl(e, n) {
1909
+ const Ye = [], me = "pinia:mutations", J = "pinia", { assign: Ul } = Object, Xe = (e) => "🍍 " + e;
1910
+ function Wl(e, n) {
1901
1911
  Sn({
1902
1912
  id: "dev.esm.pinia",
1903
1913
  label: "Pinia 🍍",
@@ -1920,28 +1930,28 @@ function Zl(e, n) {
1920
1930
  {
1921
1931
  icon: "content_copy",
1922
1932
  action: () => {
1923
- Vl(n);
1933
+ Rl(n);
1924
1934
  },
1925
1935
  tooltip: "Serialize and copy the state"
1926
1936
  },
1927
1937
  {
1928
1938
  icon: "content_paste",
1929
1939
  action: async () => {
1930
- await Dl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1940
+ await Pl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1931
1941
  },
1932
1942
  tooltip: "Replace the state with the content of your clipboard"
1933
1943
  },
1934
1944
  {
1935
1945
  icon: "save",
1936
1946
  action: () => {
1937
- Rl(n);
1947
+ Nl(n);
1938
1948
  },
1939
1949
  tooltip: "Save the state as a JSON file"
1940
1950
  },
1941
1951
  {
1942
1952
  icon: "folder_open",
1943
1953
  action: async () => {
1944
- await Nl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1954
+ await Fl(n), t.sendInspectorTree(J), t.sendInspectorState(J);
1945
1955
  },
1946
1956
  tooltip: "Import the state from a JSON file"
1947
1957
  }
@@ -1998,14 +2008,14 @@ function Zl(e, n) {
1998
2008
  }), t.on.getInspectorTree((o) => {
1999
2009
  if (o.app === e && o.inspectorId === J) {
2000
2010
  let l = [n];
2001
- l = l.concat(Array.from(n._s.values())), o.rootNodes = (o.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : An.toLowerCase().includes(o.filter.toLowerCase())) : l).map(Bl);
2011
+ l = l.concat(Array.from(n._s.values())), o.rootNodes = (o.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : An.toLowerCase().includes(o.filter.toLowerCase())) : l).map(jl);
2002
2012
  }
2003
2013
  }), t.on.getInspectorState((o) => {
2004
2014
  if (o.app === e && o.inspectorId === J) {
2005
2015
  const l = o.nodeId === ht ? n : n._s.get(o.nodeId);
2006
2016
  if (!l)
2007
2017
  return;
2008
- l && (o.state = Fl(l));
2018
+ l && (o.state = Hl(l));
2009
2019
  }
2010
2020
  }), t.on.editInspectorState((o, l) => {
2011
2021
  if (o.app === e && o.inspectorId === J) {
@@ -2030,7 +2040,7 @@ Only state can be modified.`);
2030
2040
  });
2031
2041
  });
2032
2042
  }
2033
- function Ul(e, n) {
2043
+ function ql(e, n) {
2034
2044
  Ye.includes(Xe(n.$id)) || Ye.push(Xe(n.$id)), Sn({
2035
2045
  id: "dev.esm.pinia",
2036
2046
  label: "Pinia 🍍",
@@ -2123,8 +2133,8 @@ function Ul(e, n) {
2123
2133
  return;
2124
2134
  const u = {
2125
2135
  time: o(),
2126
- title: Hl(a),
2127
- data: zl({ store: oe(n.$id) }, jl(r)),
2136
+ title: Zl(a),
2137
+ data: Ul({ store: oe(n.$id) }, zl(r)),
2128
2138
  groupId: de
2129
2139
  };
2130
2140
  a === ae.patchFunction ? u.subtitle = "⤵️" : a === ae.patchObject ? u.subtitle = "🧩" : r && !Array.isArray(r) && (u.subtitle = r.type), r && (u.data["rawEvent(s)"] = {
@@ -2178,25 +2188,25 @@ function Zt(e, n, t) {
2178
2188
  return de = void 0, a;
2179
2189
  };
2180
2190
  }
2181
- function Wl({ app: e, store: n, options: t }) {
2191
+ function Gl({ app: e, store: n, options: t }) {
2182
2192
  if (n.$id.startsWith("__hot:"))
2183
2193
  return;
2184
2194
  n._isOptionsAPI = !!t.state, Zt(n, Object.keys(t.actions), n._isOptionsAPI);
2185
2195
  const o = n._hotUpdate;
2186
2196
  ne(n)._hotUpdate = function(l) {
2187
2197
  o.apply(this, arguments), Zt(n, Object.keys(l._hmrPayload.actions), !!n._isOptionsAPI);
2188
- }, Ul(
2198
+ }, ql(
2189
2199
  e,
2190
2200
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
2191
2201
  n
2192
2202
  );
2193
2203
  }
2194
- function ql() {
2204
+ function Jl() {
2195
2205
  const e = un(!0), n = e.run(() => O({}));
2196
2206
  let t = [], o = [];
2197
2207
  const l = be({
2198
2208
  install(s) {
2199
- Pe(l), l._a = s, s.provide(En, l), s.config.globalProperties.$pinia = l, Ae && Zl(s, l), o.forEach((r) => t.push(r)), o = [];
2209
+ Pe(l), l._a = s, s.provide(En, l), s.config.globalProperties.$pinia = l, Ae && Wl(s, l), o.forEach((r) => t.push(r)), o = [];
2200
2210
  },
2201
2211
  use(s) {
2202
2212
  return this._a ? t.push(s) : o.push(s), this;
@@ -2209,7 +2219,7 @@ function ql() {
2209
2219
  _s: /* @__PURE__ */ new Map(),
2210
2220
  state: n
2211
2221
  });
2212
- return Ae && typeof Proxy < "u" && l.use(Wl), l;
2222
+ return Ae && typeof Proxy < "u" && l.use(Gl), l;
2213
2223
  }
2214
2224
  function Dn(e, n) {
2215
2225
  for (const t in n) {
@@ -2236,7 +2246,7 @@ function Te(e, ...n) {
2236
2246
  t(...n);
2237
2247
  });
2238
2248
  }
2239
- const Gl = (e) => e();
2249
+ const Yl = (e) => e();
2240
2250
  function mt(e, n) {
2241
2251
  e instanceof Map && n instanceof Map && n.forEach((t, o) => e.set(o, t)), e instanceof Set && n instanceof Set && n.forEach(e.add, e);
2242
2252
  for (const t in n) {
@@ -2247,12 +2257,12 @@ function mt(e, n) {
2247
2257
  }
2248
2258
  return e;
2249
2259
  }
2250
- const Jl = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2260
+ const Ql = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2251
2261
  /* istanbul ignore next */
2252
2262
  Symbol()
2253
2263
  );
2254
- function Yl(e) {
2255
- return !Ce(e) || !e.hasOwnProperty(Jl);
2264
+ function Xl(e) {
2265
+ return !Ce(e) || !e.hasOwnProperty(Ql);
2256
2266
  }
2257
2267
  const { assign: te } = Object;
2258
2268
  function Wt(e) {
@@ -2383,11 +2393,11 @@ function gt(e, n, t = {}, o, l, s) {
2383
2393
  // setupStore
2384
2394
  ) : V);
2385
2395
  o._s.set(e, S);
2386
- const D = (o._a && o._a.runWithContext || Gl)(() => o._e.run(() => (r = un()).run(n)));
2396
+ const D = (o._a && o._a.runWithContext || Yl)(() => o._e.run(() => (r = un()).run(n)));
2387
2397
  for (const v in D) {
2388
2398
  const p = D[v];
2389
2399
  if ($e(p) && !Wt(p) || St(p))
2390
- process.env.NODE_ENV !== "production" && l ? We(b.value, v, it(D, v)) : s || (C && Yl(p) && ($e(p) ? p.value = C[v] : mt(p, C[v])), o.state.value[e][v] = p), process.env.NODE_ENV !== "production" && T.state.push(v);
2400
+ process.env.NODE_ENV !== "production" && l ? We(b.value, v, it(D, v)) : s || (C && Xl(p) && ($e(p) ? p.value = C[v] : mt(p, C[v])), o.state.value[e][v] = p), process.env.NODE_ENV !== "production" && T.state.push(v);
2391
2401
  else if (typeof p == "function") {
2392
2402
  const k = process.env.NODE_ENV !== "production" && l ? p : _(v, p);
2393
2403
  D[v] = k, process.env.NODE_ENV !== "production" && (T.actions[v] = p), a.actions[v] = p;
@@ -2525,7 +2535,7 @@ const xe = He("loader", () => {
2525
2535
  )), a = (i) => {
2526
2536
  i.target.value = "", l.value = "", s.value && s.value.$el.click();
2527
2537
  };
2528
- return (i, u) => (h(), W(M(hl), {
2538
+ return (i, u) => (h(), W(M(gl), {
2529
2539
  modelValue: o.value,
2530
2540
  "onUpdate:modelValue": u[3] || (u[3] = (c) => o.value = c),
2531
2541
  disabled: M(n).loading,
@@ -2533,19 +2543,19 @@ const xe = He("loader", () => {
2533
2543
  class: "relative mt-1"
2534
2544
  }, {
2535
2545
  default: ze(() => [
2536
- B(M(gl), {
2546
+ B(M(Cl), {
2537
2547
  class: "w-full bg-base-100 border border-base-300 rounded py-2.5 pl-3 pr-10 text-sm text-base-content font-medium focus:outline-none focus:ring-0.5 focus:ring-primary focus:border-primary",
2538
2548
  onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
2539
2549
  displayValue: (c) => e.languages[c],
2540
2550
  onFocus: u[1] || (u[1] = (c) => a(c))
2541
2551
  }, null, 8, ["displayValue"]),
2542
- B(M(ml), {
2552
+ B(M(bl), {
2543
2553
  ref_key: "btnSelect",
2544
2554
  ref: s,
2545
2555
  class: "absolute inset-y-0 right-0 flex items-center pr-2"
2546
2556
  }, {
2547
2557
  default: ze(() => [
2548
- B(M(yl), {
2558
+ B(M(_l), {
2549
2559
  class: "h-5 w-5 text-base-content/50",
2550
2560
  "aria-hidden": "true",
2551
2561
  onClick: u[2] || (u[2] = (c) => a(c))
@@ -2553,9 +2563,9 @@ const xe = He("loader", () => {
2553
2563
  ]),
2554
2564
  _: 1
2555
2565
  }, 512),
2556
- B(M(bl), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50" }, {
2566
+ B(M(xl), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-base-100 py-1 text-base shadow-lg ring-1 ring-base-300 focus:outline-none sm:text-sm z-50" }, {
2557
2567
  default: ze(() => [
2558
- (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(Cl), {
2568
+ (h(!0), g(z, null, Y(r.value, ([c, d]) => (h(), W(M(yl), {
2559
2569
  key: c,
2560
2570
  value: c
2561
2571
  }, {
@@ -2580,11 +2590,11 @@ const xe = He("loader", () => {
2580
2590
  _: 1
2581
2591
  }, 8, ["modelValue", "disabled"]));
2582
2592
  }
2583
- }, Ql = ["disabled"], Xl = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), Kl = [
2584
- Xl
2585
- ], es = ["disabled"], ts = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ns = [
2586
- ts
2587
- ], os = {
2593
+ }, Kl = ["disabled"], es = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ts = [
2594
+ es
2595
+ ], ns = ["disabled"], os = /* @__PURE__ */ Be('<svg class="w-4 h-4 text-primary" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.68688 2.3131C3.88214 2.50837 3.88214 2.82495 3.68688 3.02021L2.04043 4.66666L3.68688 6.3131C3.88214 6.50837 3.88214 6.82495 3.68688 7.02021C3.49162 7.21547 3.17504 7.21547 2.97977 7.02021L0.979775 5.02021C0.784513 4.82495 0.784513 4.50837 0.979775 4.3131L2.97977 2.3131C3.17504 2.11784 3.49162 2.11784 3.68688 2.3131Z" fill="currentColor"></path><path d="M12.3131 8.97977C12.5084 8.78451 12.825 8.78451 13.0202 8.97977L15.0202 10.9798C15.2155 11.175 15.2155 11.4916 15.0202 11.6869L13.0202 13.6869C12.825 13.8821 12.5084 13.8821 12.3131 13.6869C12.1178 13.4916 12.1178 13.175 12.3131 12.9798L13.9596 11.3333L12.3131 9.68688C12.1178 9.49161 12.1178 9.17503 12.3131 8.97977Z" fill="currentColor"></path><path d="M0.833328 4.66666C0.833328 4.39051 1.05719 4.16666 1.33333 4.16666H14.6667C14.9428 4.16666 15.1667 4.39051 15.1667 4.66666C15.1667 4.9428 14.9428 5.16666 14.6667 5.16666H1.33333C1.05719 5.16666 0.833328 4.9428 0.833328 4.66666Z" fill="currentColor"></path><path d="M0.833328 11.3333C0.833328 11.0572 1.05719 10.8333 1.33333 10.8333H14.6667C14.9428 10.8333 15.1667 11.0572 15.1667 11.3333C15.1667 11.6095 14.9428 11.8333 14.6667 11.8333H1.33333C1.05719 11.8333 0.833328 11.6095 0.833328 11.3333Z" fill="currentColor"></path></svg>', 1), ls = [
2596
+ os
2597
+ ], ss = {
2588
2598
  __name: "SwapBtn",
2589
2599
  props: {
2590
2600
  isBidirect: {
@@ -2599,10 +2609,10 @@ const xe = He("loader", () => {
2599
2609
  key: 1,
2600
2610
  onClick: r[0] || (r[0] = (a) => l("swap")),
2601
2611
  disabled: o.value
2602
- }, ns, 8, es)) : (h(), g("button", {
2612
+ }, ls, 8, ns)) : (h(), g("button", {
2603
2613
  key: 0,
2604
2614
  disabled: o.value
2605
- }, Kl, 8, Ql));
2615
+ }, ts, 8, Kl));
2606
2616
  }
2607
2617
  }, Oe = He("language", () => {
2608
2618
  const e = O("auto"), n = O("vi"), t = O({
@@ -2621,16 +2631,16 @@ const xe = He("loader", () => {
2621
2631
  return t.value.src[i] || t.value.target[i];
2622
2632
  }
2623
2633
  return { languages: t, src: e, target: n, srcLabel: o, targetLabel: l, init: s, swap: r, getLabel: a };
2624
- }), ls = {
2634
+ }), as = {
2625
2635
  key: 0,
2626
2636
  class: "flex flex-col"
2627
- }, ss = { class: "flex" }, as = { class: "grow flex flex-col" }, rs = {
2637
+ }, rs = { class: "flex" }, is = { class: "grow flex flex-col" }, us = {
2628
2638
  key: 0,
2629
2639
  class: "flex mt-1 space-x-1"
2630
- }, is = ["onClick"], us = { class: "grow flex flex-col" }, cs = {
2640
+ }, cs = ["onClick"], ds = { class: "grow flex flex-col" }, fs = {
2631
2641
  key: 0,
2632
2642
  class: "flex mt-1 space-x-1 justify-end"
2633
- }, ds = ["onClick"], fs = { class: "flex" }, vs = { class: "grow flex flex-col" }, ps = { class: "grow flex flex-col" }, Jt = 3, hs = {
2643
+ }, vs = ["onClick"], ps = { class: "flex" }, hs = { class: "grow flex flex-col" }, ms = { class: "grow flex flex-col" }, Jt = 3, gs = {
2634
2644
  __name: "Selects",
2635
2645
  setup(e) {
2636
2646
  const n = Oe(), t = O([]), o = O([]);
@@ -2650,29 +2660,29 @@ const xe = He("loader", () => {
2650
2660
  (s) => {
2651
2661
  s && (o.value.includes(s) || (o.value.unshift(s), o.value = o.value.slice(0, Jt), Ze.setLocalStorage("recentTarget", o.value)));
2652
2662
  }
2653
- ), (s, r) => M(n).languages ? (h(), g("div", ls, [
2654
- f("div", ss, [
2655
- f("div", as, [
2656
- t.value.length > 0 ? (h(), g("div", rs, [
2663
+ ), (s, r) => M(n).languages ? (h(), g("div", as, [
2664
+ f("div", rs, [
2665
+ f("div", is, [
2666
+ t.value.length > 0 ? (h(), g("div", us, [
2657
2667
  (h(!0), g(z, null, Y(t.value, (a) => (h(), g("button", {
2658
2668
  key: a,
2659
2669
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2660
2670
  onClick: (i) => M(n).src = a
2661
- }, G(M(n).languages.src[a]), 9, is))), 128))
2671
+ }, G(M(n).languages.src[a]), 9, cs))), 128))
2662
2672
  ])) : R("", !0)
2663
2673
  ]),
2664
- f("div", us, [
2665
- o.value.length > 0 ? (h(), g("div", cs, [
2674
+ f("div", ds, [
2675
+ o.value.length > 0 ? (h(), g("div", fs, [
2666
2676
  (h(!0), g(z, null, Y(o.value, (a) => (h(), g("button", {
2667
2677
  key: a,
2668
2678
  class: "px-1 bg-base-100 border border-primary text-primary text-xs rounded hover:bg-primary hover:text-primary-content",
2669
2679
  onClick: (i) => M(n).target = a
2670
- }, G(M(n).languages.target[a]), 9, ds))), 128))
2680
+ }, G(M(n).languages.target[a]), 9, vs))), 128))
2671
2681
  ])) : R("", !0)
2672
2682
  ])
2673
2683
  ]),
2674
- f("div", fs, [
2675
- f("div", vs, [
2684
+ f("div", ps, [
2685
+ f("div", hs, [
2676
2686
  B(Gt, {
2677
2687
  modelValue: M(n).src,
2678
2688
  "onUpdate:modelValue": r[0] || (r[0] = (a) => M(n).src = a),
@@ -2680,12 +2690,12 @@ const xe = He("loader", () => {
2680
2690
  class: "grow"
2681
2691
  }, null, 8, ["modelValue", "languages"])
2682
2692
  ]),
2683
- B(os, {
2693
+ B(ss, {
2684
2694
  isBidirect: M(n).src !== "auto",
2685
2695
  class: "grow-0 mx-3 mt-4 self-start",
2686
2696
  onSwap: l
2687
2697
  }, null, 8, ["isBidirect"]),
2688
- f("div", ps, [
2698
+ f("div", ms, [
2689
2699
  B(Gt, {
2690
2700
  modelValue: M(n).target,
2691
2701
  "onUpdate:modelValue": r[1] || (r[1] = (a) => M(n).target = a),
@@ -2706,11 +2716,11 @@ const xe = He("loader", () => {
2706
2716
  for (const [o, l] of n)
2707
2717
  t[o] = l;
2708
2718
  return t;
2709
- }, ms = {}, gs = { class: "mr-2 loading loading-dots loading-xs" };
2710
- function bs(e, n) {
2711
- return h(), g("span", gs);
2719
+ }, bs = {}, Cs = { class: "mr-2 loading loading-dots loading-xs" };
2720
+ function xs(e, n) {
2721
+ return h(), g("span", Cs);
2712
2722
  }
2713
- const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2723
+ const Mt = /* @__PURE__ */ he(bs, [["render", xs]]), bt = He("tts", () => {
2714
2724
  const e = O({
2715
2725
  src: null,
2716
2726
  target: null
@@ -2734,12 +2744,12 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2734
2744
  get: t,
2735
2745
  reset: o
2736
2746
  };
2737
- }), Cs = ["disabled"], xs = /* @__PURE__ */ f("path", {
2747
+ }), ys = ["disabled"], ws = /* @__PURE__ */ f("path", {
2738
2748
  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",
2739
2749
  fill: "currentColor"
2740
- }, null, -1), ys = [
2741
- xs
2742
- ], ws = /* @__PURE__ */ f("svg", {
2750
+ }, null, -1), _s = [
2751
+ ws
2752
+ ], Ts = /* @__PURE__ */ f("svg", {
2743
2753
  class: "w-4 h-4 text-primary",
2744
2754
  fill: "none",
2745
2755
  xmlns: "http://www.w3.org/2000/svg",
@@ -2751,9 +2761,9 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2751
2761
  "clip-rule": "evenodd",
2752
2762
  fill: "currentColor"
2753
2763
  })
2754
- ], -1), _s = [
2755
- ws
2756
- ], Ts = {
2764
+ ], -1), Ss = [
2765
+ Ts
2766
+ ], Es = {
2757
2767
  __name: "SpeakBtn",
2758
2768
  props: {
2759
2769
  type: {
@@ -2799,7 +2809,7 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2799
2809
  key: 1,
2800
2810
  class: "btn btn-xs btn-circle",
2801
2811
  onClick: ft(d, ["prevent"])
2802
- }, _s)) : (h(), g("button", {
2812
+ }, Ss)) : (h(), g("button", {
2803
2813
  key: 0,
2804
2814
  class: P(["btn btn-xs btn-circle", [
2805
2815
  { "btn-ghost": !e.disabled },
@@ -2813,32 +2823,32 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2813
2823
  viewBox: "0 0 16 16",
2814
2824
  fill: "none",
2815
2825
  xmlns: "http://www.w3.org/2000/svg"
2816
- }, ys, 2))
2817
- ], 10, Cs));
2826
+ }, _s, 2))
2827
+ ], 10, ys));
2818
2828
  }
2819
- }, Ss = {
2829
+ }, $s = {
2820
2830
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2821
2831
  "data-tip": "Clear"
2822
- }, Es = ["disabled"], $s = /* @__PURE__ */ f("path", {
2832
+ }, Os = ["disabled"], Is = /* @__PURE__ */ f("path", {
2823
2833
  "fill-rule": "evenodd",
2824
2834
  "clip-rule": "evenodd",
2825
2835
  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",
2826
2836
  fill: "currentColor"
2827
- }, null, -1), Os = /* @__PURE__ */ f("path", {
2837
+ }, null, -1), Ls = /* @__PURE__ */ f("path", {
2828
2838
  "fill-rule": "evenodd",
2829
2839
  "clip-rule": "evenodd",
2830
2840
  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",
2831
2841
  fill: "currentColor"
2832
- }, null, -1), Is = [
2833
- $s,
2834
- Os
2842
+ }, null, -1), ks = [
2843
+ Is,
2844
+ Ls
2835
2845
  ], Pn = {
2836
2846
  __name: "ClearBtn",
2837
2847
  props: {
2838
2848
  disabled: Boolean
2839
2849
  },
2840
2850
  setup(e) {
2841
- return (n, t) => (h(), g("div", Ss, [
2851
+ return (n, t) => (h(), g("div", $s, [
2842
2852
  f("button", {
2843
2853
  class: P(["btn btn-xs btn-circle", [
2844
2854
  { "btn-ghost": !e.disabled },
@@ -2851,31 +2861,31 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2851
2861
  viewBox: "0 0 16 16",
2852
2862
  fill: "none",
2853
2863
  xmlns: "http://www.w3.org/2000/svg"
2854
- }, Is, 2))
2855
- ], 10, Es)
2864
+ }, ks, 2))
2865
+ ], 10, Os)
2856
2866
  ]));
2857
2867
  }
2858
- }, Ls = {
2868
+ }, Ms = {
2859
2869
  class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2860
2870
  "data-tip": "Favorite"
2861
- }, ks = ["disabled"], Ms = /* @__PURE__ */ f("path", {
2871
+ }, As = ["disabled"], Vs = /* @__PURE__ */ f("path", {
2862
2872
  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",
2863
2873
  fill: "currentColor"
2864
- }, null, -1), As = [
2865
- Ms
2866
- ], Vs = /* @__PURE__ */ f("path", {
2867
- 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",
2868
- fill: "currentColor"
2869
2874
  }, null, -1), Ds = [
2870
2875
  Vs
2871
- ], Rs = {
2876
+ ], Rs = /* @__PURE__ */ f("path", {
2877
+ 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",
2878
+ fill: "currentColor"
2879
+ }, null, -1), Ps = [
2880
+ Rs
2881
+ ], Ns = {
2872
2882
  __name: "FavoriteBtn",
2873
2883
  props: {
2874
2884
  disabled: Boolean,
2875
2885
  isFilled: Boolean
2876
2886
  },
2877
2887
  setup(e) {
2878
- return (n, t) => (h(), g("div", Ls, [
2888
+ return (n, t) => (h(), g("div", Ms, [
2879
2889
  f("button", {
2880
2890
  class: P(["btn btn-xs btn-circle", [
2881
2891
  { "btn-ghost": !e.disabled },
@@ -2889,42 +2899,42 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2889
2899
  viewBox: "0 0 16 16",
2890
2900
  fill: "none",
2891
2901
  xmlns: "http://www.w3.org/2000/svg"
2892
- }, Ds, 2)) : (h(), g("svg", {
2902
+ }, Ps, 2)) : (h(), g("svg", {
2893
2903
  key: 0,
2894
2904
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2895
2905
  viewBox: "0 0 16 16",
2896
2906
  fill: "none",
2897
2907
  xmlns: "http://www.w3.org/2000/svg"
2898
- }, As, 2))
2899
- ], 10, ks)
2908
+ }, Ds, 2))
2909
+ ], 10, As)
2900
2910
  ]));
2901
2911
  }
2902
- }, Ps = {
2912
+ }, Bs = {
2903
2913
  class: "tooltip tooltip-top tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!text-xs before:!py-1 before:!px-2",
2904
2914
  "data-tip": "AI Translate"
2905
- }, Ns = ["disabled"], Bs = /* @__PURE__ */ f("path", {
2915
+ }, Fs = ["disabled"], js = /* @__PURE__ */ f("path", {
2906
2916
  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",
2907
2917
  fill: "currentColor"
2908
- }, null, -1), Fs = /* @__PURE__ */ f("path", {
2918
+ }, null, -1), Hs = /* @__PURE__ */ f("path", {
2909
2919
  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",
2910
2920
  fill: "currentColor"
2911
- }, null, -1), js = /* @__PURE__ */ f("path", {
2921
+ }, null, -1), zs = /* @__PURE__ */ f("path", {
2912
2922
  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",
2913
2923
  fill: "currentColor"
2914
- }, null, -1), Hs = [
2915
- Bs,
2916
- Fs,
2917
- js
2918
- ], zs = /* @__PURE__ */ Be('<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><path d="M3.5 1L4.79904 2.5H2.20096L3.5 1Z" fill="currentColor"></path><path d="M6 3.5L4.5 4.79904L4.5 2.20096L6 3.5Z" fill="currentColor"></path><path d="M10.3697 6.67832L8.22108 7.01422L9.5776 4.65296L10.3697 6.67832Z" fill="currentColor"></path><path d="M8.27756 5.34149L10.768 6.00067L9.11199 7.77878L8.27756 5.34149Z" fill="currentColor"></path><path d="M1 3.5L2.5 2.20096L2.5 4.79904L1 3.5Z" fill="currentColor"></path><path d="M3.5 6L2.20096 4.5L4.79904 4.5L3.5 6Z" fill="currentColor"></path><circle cx="9" cy="6" r="1" fill="currentColor"></circle><path d="M5.49718 9.92495L4.03391 10.4693L3.96891 9.60573L5.49718 9.92495Z" fill="currentColor"></path><path d="M3.54089 9.71696L5.10212 9.72621L4.857 10.5568L3.54089 9.71696Z" fill="currentColor"></path><path d="M3.50071 9.96247L5.0159 9.58606L4.9834 10.4515L3.50071 9.96247Z" fill="currentColor"></path>', 15), Zs = [
2924
+ }, null, -1), Zs = [
2925
+ js,
2926
+ Hs,
2919
2927
  zs
2920
- ], Us = {
2928
+ ], Us = /* @__PURE__ */ Be('<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><path d="M3.5 1L4.79904 2.5H2.20096L3.5 1Z" fill="currentColor"></path><path d="M6 3.5L4.5 4.79904L4.5 2.20096L6 3.5Z" fill="currentColor"></path><path d="M10.3697 6.67832L8.22108 7.01422L9.5776 4.65296L10.3697 6.67832Z" fill="currentColor"></path><path d="M8.27756 5.34149L10.768 6.00067L9.11199 7.77878L8.27756 5.34149Z" fill="currentColor"></path><path d="M1 3.5L2.5 2.20096L2.5 4.79904L1 3.5Z" fill="currentColor"></path><path d="M3.5 6L2.20096 4.5L4.79904 4.5L3.5 6Z" fill="currentColor"></path><circle cx="9" cy="6" r="1" fill="currentColor"></circle><path d="M5.49718 9.92495L4.03391 10.4693L3.96891 9.60573L5.49718 9.92495Z" fill="currentColor"></path><path d="M3.54089 9.71696L5.10212 9.72621L4.857 10.5568L3.54089 9.71696Z" fill="currentColor"></path><path d="M3.50071 9.96247L5.0159 9.58606L4.9834 10.4515L3.50071 9.96247Z" fill="currentColor"></path>', 15), Ws = [
2929
+ Us
2930
+ ], qs = {
2921
2931
  __name: "AIBtn",
2922
2932
  props: {
2923
2933
  disabled: Boolean,
2924
2934
  isFilled: Boolean
2925
2935
  },
2926
2936
  setup(e) {
2927
- return (n, t) => (h(), g("div", Ps, [
2937
+ return (n, t) => (h(), g("div", Bs, [
2928
2938
  f("button", {
2929
2939
  class: P(["btn btn-xs btn-circle", [
2930
2940
  { "btn-ghost": !e.disabled },
@@ -2938,21 +2948,21 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2938
2948
  viewBox: "0 0 12 12",
2939
2949
  fill: "none",
2940
2950
  xmlns: "http://www.w3.org/2000/svg"
2941
- }, Zs, 2)) : (h(), g("svg", {
2951
+ }, Ws, 2)) : (h(), g("svg", {
2942
2952
  key: 0,
2943
2953
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
2944
2954
  viewBox: "0 0 12 12",
2945
2955
  fill: "none",
2946
2956
  xmlns: "http://www.w3.org/2000/svg"
2947
- }, Hs, 2))
2948
- ], 10, Ns)
2957
+ }, Zs, 2))
2958
+ ], 10, Fs)
2949
2959
  ]));
2950
2960
  }
2951
- }, Ws = ["data-tip"], qs = ["disabled"], Gs = /* @__PURE__ */ f("path", {
2961
+ }, Gs = ["data-tip"], Js = ["disabled"], Ys = /* @__PURE__ */ f("path", {
2952
2962
  d: "M13.9023 3.26667L10.8093 0.1C10.7767 0.0666667 10.7116 0 10.5814 0H3.74419C3.12558 0 2.60465 0.533333 2.60465 1.16667V2.66667H1.13953C0.52093 2.66667 0 3.2 0 3.83333V14.8667C0 15.4667 0.52093 16 1.13953 16H10.2558C10.8744 16 11.3953 15.4667 11.3953 14.8333V13.3333H12.8605C13.4791 13.3333 14 12.8 14 12.1667V3.5C14 3.4 13.9674 3.3 13.9023 3.26667ZM12.893 3.16667H11.3954C11.1349 3.16667 10.907 2.93333 10.907 2.66667V1.13333L12.893 3.16667ZM10.2558 15.3333H1.13953C0.87907 15.3333 0.651163 15.1 0.651163 14.8333V3.83333C0.651163 3.53333 0.87907 3.33333 1.13953 3.33333H7.68372V5.33333C7.68372 5.96667 8.20465 6.5 8.82326 6.5H10.7767V14.8667C10.7442 15.1 10.5488 15.3333 10.2558 15.3333ZM9.31163 4.8L10.2884 5.8H8.7907C8.53023 5.8 8.30233 5.56667 8.30233 5.3V3.76667L9.31163 4.8ZM12.8605 12.6667H11.3953V6.13333C11.3953 6.06667 11.3628 5.96667 11.2977 5.9L8.20465 2.73333C8.17209 2.7 8.07442 2.66667 8.0093 2.66667H3.25581V1.16667C3.25581 0.9 3.45116 0.666666 3.74419 0.666666H10.2558V2.66667C10.2558 3.3 10.7767 3.83333 11.3954 3.83333H13.3488V12.2C13.3488 12.4667 13.1209 12.6667 12.8605 12.6667Z",
2953
2963
  fill: "currentColor"
2954
- }, null, -1), Js = [
2955
- Gs
2964
+ }, null, -1), Qs = [
2965
+ Ys
2956
2966
  ], Nn = {
2957
2967
  __name: "CopyBtn",
2958
2968
  props: {
@@ -2981,14 +2991,14 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
2981
2991
  viewBox: "0 0 14 16",
2982
2992
  fill: "none",
2983
2993
  xmlns: "http://www.w3.org/2000/svg"
2984
- }, Js, 2))
2985
- ], 10, qs)
2986
- ], 8, Ws));
2994
+ }, Qs, 2))
2995
+ ], 10, Js)
2996
+ ], 8, Gs));
2987
2997
  }
2988
- }, Ys = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Qs = { class: "ml-1 text-sm text-base-content/70" }, Xs = {
2998
+ }, Xs = { class: "flex flex-row px-1 pr-10 pt-1 items-center bg-transparent relative" }, Ks = { class: "ml-1 text-sm text-base-content/70" }, ea = {
2989
2999
  key: 0,
2990
3000
  class: "italic"
2991
- }, Ks = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, ea = {
3001
+ }, ta = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, na = {
2992
3002
  __name: "InputBtnGroup",
2993
3003
  props: {
2994
3004
  loading: {
@@ -3048,33 +3058,33 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3048
3058
  emits: ["clear", "favorite", "loadTTS", "aiTranslate", "copy"],
3049
3059
  setup(e, { emit: n }) {
3050
3060
  const t = n;
3051
- return (o, l) => (h(), g("div", Ys, [
3052
- e.src && e.isTTS ? (h(), W(Ts, {
3061
+ return (o, l) => (h(), g("div", Xs, [
3062
+ e.src && e.isTTS ? (h(), W(Es, {
3053
3063
  key: 0,
3054
3064
  type: e.type,
3055
3065
  onLoadTTS: l[0] || (l[0] = (s) => t("loadTTS"))
3056
3066
  }, null, 8, ["type"])) : R("", !0),
3057
- f("div", Qs, [
3067
+ f("div", Ks, [
3058
3068
  Ee(G(e.srcLabel) + " ", 1),
3059
- e.phonetic ? (h(), g("span", Xs, "- " + G(e.phonetic), 1)) : R("", !0)
3069
+ e.phonetic ? (h(), g("span", ea, "- " + G(e.phonetic), 1)) : R("", !0)
3060
3070
  ]),
3061
3071
  e.loading ? (h(), W(Mt, {
3062
3072
  key: 1,
3063
3073
  class: "absolute right-6 top-2"
3064
3074
  })) : R("", !0),
3065
- f("div", Ks, [
3075
+ f("div", ta, [
3066
3076
  e.hasClearBtn ? (h(), W(Pn, {
3067
3077
  key: 0,
3068
3078
  onClick: l[1] || (l[1] = (s) => t("clear")),
3069
3079
  disabled: e.loading
3070
3080
  }, null, 8, ["disabled"])) : R("", !0),
3071
- e.src && e.hasAIBtn ? (h(), W(Us, {
3081
+ e.src && e.hasAIBtn ? (h(), W(qs, {
3072
3082
  key: 1,
3073
3083
  isFilled: e.isAITranslate,
3074
3084
  onClick: l[2] || (l[2] = (s) => t("aiTranslate")),
3075
3085
  disabled: e.loading
3076
3086
  }, null, 8, ["isFilled", "disabled"])) : R("", !0),
3077
- e.src && e.hasFavoriteBtn ? (h(), W(Rs, {
3087
+ e.src && e.hasFavoriteBtn ? (h(), W(Ns, {
3078
3088
  key: 2,
3079
3089
  isFilled: e.isFavorite,
3080
3090
  onClick: l[3] || (l[3] = (s) => t("favorite")),
@@ -3088,7 +3098,7 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3088
3098
  ])
3089
3099
  ]));
3090
3100
  }
3091
- }, Bn = /* @__PURE__ */ he(ea, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3101
+ }, Bn = /* @__PURE__ */ he(na, [["__scopeId", "data-v-faca0157"]]), ve = He("translation", () => {
3092
3102
  const e = O(null), n = O(null), t = O(null), o = O({
3093
3103
  src: null,
3094
3104
  target: null
@@ -3125,17 +3135,17 @@ const Mt = /* @__PURE__ */ he(ms, [["render", bs]]), bt = He("tts", () => {
3125
3135
  reset: C
3126
3136
  };
3127
3137
  });
3128
- function ta(e) {
3138
+ function oa(e) {
3129
3139
  return cn() ? (Tt(e), !0) : !1;
3130
3140
  }
3131
3141
  function Ke(e) {
3132
3142
  return typeof e == "function" ? e() : M(e);
3133
3143
  }
3134
- const na = typeof window < "u" && typeof document < "u";
3144
+ const la = typeof window < "u" && typeof document < "u";
3135
3145
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3136
3146
  const Yt = () => {
3137
3147
  };
3138
- function oa(e, n) {
3148
+ function sa(e, n) {
3139
3149
  function t(...o) {
3140
3150
  return new Promise((l, s) => {
3141
3151
  Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(l).catch(s);
@@ -3143,7 +3153,7 @@ function oa(e, n) {
3143
3153
  }
3144
3154
  return t;
3145
3155
  }
3146
- function la(e, n = {}) {
3156
+ function aa(e, n = {}) {
3147
3157
  let t, o, l = Yt;
3148
3158
  const s = (a) => {
3149
3159
  clearTimeout(a), l(), l = Yt;
@@ -3159,9 +3169,9 @@ function la(e, n = {}) {
3159
3169
  });
3160
3170
  };
3161
3171
  }
3162
- function sa(e, n = 200, t = {}) {
3163
- return oa(
3164
- la(n, t),
3172
+ function ra(e, n = 200, t = {}) {
3173
+ return sa(
3174
+ aa(n, t),
3165
3175
  e
3166
3176
  );
3167
3177
  }
@@ -3170,21 +3180,21 @@ function Qt(e) {
3170
3180
  const t = Ke(e);
3171
3181
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
3172
3182
  }
3173
- const aa = na ? window : void 0;
3174
- function ra() {
3183
+ const ia = la ? window : void 0;
3184
+ function ua() {
3175
3185
  const e = O(!1), n = rn();
3176
3186
  return n && se(() => {
3177
3187
  e.value = !0;
3178
3188
  }, n), e;
3179
3189
  }
3180
- function ia(e) {
3181
- const n = ra();
3190
+ function ca(e) {
3191
+ const n = ua();
3182
3192
  return L(() => (n.value, !!e()));
3183
3193
  }
3184
- function ua(e, n, t = {}) {
3185
- const { window: o = aa, ...l } = t;
3194
+ function da(e, n, t = {}) {
3195
+ const { window: o = ia, ...l } = t;
3186
3196
  let s;
3187
- const r = ia(() => o && "ResizeObserver" in o), a = () => {
3197
+ const r = ca(() => o && "ResizeObserver" in o), a = () => {
3188
3198
  s && (s.disconnect(), s = void 0);
3189
3199
  }, i = L(() => Array.isArray(e) ? e.map((d) => Qt(d)) : [Qt(e)]), u = F(
3190
3200
  i,
@@ -3199,7 +3209,7 @@ function ua(e, n, t = {}) {
3199
3209
  ), c = () => {
3200
3210
  a(), u();
3201
3211
  };
3202
- return ta(c), {
3212
+ return oa(c), {
3203
3213
  isSupported: r,
3204
3214
  stop: c
3205
3215
  };
@@ -3217,13 +3227,13 @@ function st(e) {
3217
3227
  return F([o, t], () => X(r), { immediate: !0 }), F(s, () => {
3218
3228
  var a;
3219
3229
  return (a = e == null ? void 0 : e.onResize) == null ? void 0 : a.call(e);
3220
- }), ua(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3230
+ }), da(t, () => r()), e != null && e.watch && F(e.watch, r, { immediate: !0, deep: !0 }), {
3221
3231
  textarea: t,
3222
3232
  input: o,
3223
3233
  triggerResize: r
3224
3234
  };
3225
3235
  }
3226
- const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, da = {
3236
+ const fa = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, va = {
3227
3237
  __name: "Input",
3228
3238
  props: {
3229
3239
  text: {
@@ -3240,7 +3250,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3240
3250
  const t = ve(), o = e, l = O(o.text), s = L(() => t.src), r = L(() => t.srcLabel), a = L(() => {
3241
3251
  var C;
3242
3252
  return (C = t.phonetic) == null ? void 0 : C.src;
3243
- }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = sa(() => {
3253
+ }), { textarea: i } = st({ input: l, styleProp: "minHeight" }), u = n, c = ra(() => {
3244
3254
  u("change", l.value);
3245
3255
  }, Ie.INPUT_DEBOUNCE);
3246
3256
  se(() => {
@@ -3264,7 +3274,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3264
3274
  (C) => {
3265
3275
  l.value !== C && m(), l.value = C;
3266
3276
  }
3267
- ), (C, b) => (h(), g("div", ca, [
3277
+ ), (C, b) => (h(), g("div", fa, [
3268
3278
  B(Bn, {
3269
3279
  src: s.value,
3270
3280
  srcLabel: r.value,
@@ -3294,7 +3304,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3294
3304
  ])
3295
3305
  ]));
3296
3306
  }
3297
- }, fa = /* @__PURE__ */ he(da, [["__scopeId", "data-v-66ae5655"]]), va = { class: "bg-base-100 relative z-10 rounded-md h-full" }, pa = { class: "bg-transparent" }, ha = {
3307
+ }, pa = /* @__PURE__ */ he(va, [["__scopeId", "data-v-66ae5655"]]), ha = { class: "bg-base-100 relative z-10 rounded-md h-full" }, ma = { class: "bg-transparent" }, ga = {
3298
3308
  __name: "Result",
3299
3309
  props: {
3300
3310
  isFavoriteFeatureEnabled: Boolean,
@@ -3320,7 +3330,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3320
3330
  }
3321
3331
  ])
3322
3332
  }, [
3323
- f("div", va, [
3333
+ f("div", ha, [
3324
3334
  B(Bn, {
3325
3335
  loading: i.value,
3326
3336
  src: l.value,
@@ -3338,7 +3348,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3338
3348
  onAiTranslate: m[2] || (m[2] = (C) => d("aiTranslate")),
3339
3349
  onCopy: m[3] || (m[3] = (C) => d("copy"))
3340
3350
  }, null, 8, ["loading", "src", "srcLabel", "isTTS", "hasFavoriteBtn", "hasAIBtn", "isFavorite", "isAITranslate", "phonetic"]),
3341
- f("div", pa, [
3351
+ f("div", ma, [
3342
3352
  tt(f("textarea", {
3343
3353
  ref_key: "textarea",
3344
3354
  ref: u,
@@ -3354,24 +3364,24 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3354
3364
  ])
3355
3365
  ], 2));
3356
3366
  }
3357
- }, ma = /* @__PURE__ */ he(ha, [["__scopeId", "data-v-88599360"]]), ga = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3367
+ }, ba = /* @__PURE__ */ he(ga, [["__scopeId", "data-v-88599360"]]), Ca = { class: "btn btn-xs btn-circle btn-ghost" }, at = {
3358
3368
  __name: "ToggleBtn",
3359
3369
  props: {
3360
3370
  isExpanded: Boolean
3361
3371
  },
3362
3372
  setup(e) {
3363
3373
  const n = e;
3364
- return (t, o) => (h(), g("button", ga, [
3365
- n.isExpanded ? (h(), W(M(wl), {
3374
+ return (t, o) => (h(), g("button", Ca, [
3375
+ n.isExpanded ? (h(), W(M(Tl), {
3366
3376
  key: 0,
3367
3377
  class: "w-7 text-base-content/50"
3368
- })) : (h(), W(M(xl), {
3378
+ })) : (h(), W(M(wl), {
3369
3379
  key: 1,
3370
3380
  class: "w-7 text-base-content/50"
3371
3381
  }))
3372
3382
  ]));
3373
3383
  }
3374
- }, ba = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), Ca = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, xa = { class: "list-none list-inside" }, ya = ["onClick"], wa = { class: "text-sm font-normal text-base-content/80 leading-4" }, _a = {
3384
+ }, xa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Dictionary", -1), ya = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, wa = { class: "list-none list-inside" }, _a = ["onClick"], Ta = { class: "text-sm font-normal text-base-content/80 leading-4" }, Sa = {
3375
3385
  __name: "Dictionary",
3376
3386
  emits: ["translate"],
3377
3387
  setup(e, { emit: n }) {
@@ -3385,7 +3395,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3385
3395
  class: "flex justify-between items-center",
3386
3396
  onClick: a
3387
3397
  }, [
3388
- ba,
3398
+ xa,
3389
3399
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3390
3400
  ]),
3391
3401
  f("div", {
@@ -3396,16 +3406,16 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3396
3406
  key: `${d.pos}-${x}`,
3397
3407
  class: "mb-2"
3398
3408
  }, [
3399
- f("h5", Ca, G(d.pos), 1),
3400
- f("ul", xa, [
3409
+ f("h5", ya, G(d.pos), 1),
3410
+ f("ul", wa, [
3401
3411
  (h(!0), g(z, null, Y(d.items, (m, C) => (h(), g("li", {
3402
3412
  key: `${m.word}-${C}`
3403
3413
  }, [
3404
3414
  f("span", {
3405
3415
  class: "m-0.5 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3406
3416
  onClick: (b) => i(m.word)
3407
- }, G(m.word), 9, ya),
3408
- f("small", wa, " - " + G(m.reverse_translation.join(", ")), 1)
3417
+ }, G(m.word), 9, _a),
3418
+ f("small", Ta, " - " + G(m.reverse_translation.join(", ")), 1)
3409
3419
  ]))), 128))
3410
3420
  ])
3411
3421
  ]))), 128))
@@ -3413,10 +3423,10 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3413
3423
  ], 2)
3414
3424
  ], 64));
3415
3425
  }
3416
- }, Ta = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Definitions", -1), Sa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ea = { class: "text-sm text-base-content list-disc list-outside ml-5" }, $a = /* @__PURE__ */ f("br", null, null, -1), Oa = {
3426
+ }, Ea = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Definitions", -1), $a = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Oa = { class: "text-sm text-base-content list-disc list-outside ml-5" }, Ia = /* @__PURE__ */ f("br", null, null, -1), La = {
3417
3427
  key: 0,
3418
3428
  class: "italic text-base-content/70"
3419
- }, Ia = {
3429
+ }, ka = {
3420
3430
  __name: "Definition",
3421
3431
  setup(e) {
3422
3432
  const n = O(!0), t = ve(), o = L(() => t.definitions), l = () => {
@@ -3427,7 +3437,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3427
3437
  class: "flex justify-between items-center",
3428
3438
  onClick: l
3429
3439
  }, [
3430
- Ta,
3440
+ Ea,
3431
3441
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3432
3442
  ]),
3433
3443
  f("div", {
@@ -3438,15 +3448,15 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3438
3448
  key: `${a.pos}-${i}`,
3439
3449
  class: "mb-2"
3440
3450
  }, [
3441
- f("h5", Sa, G(a.pos), 1),
3442
- f("ul", Ea, [
3451
+ f("h5", $a, G(a.pos), 1),
3452
+ f("ul", Oa, [
3443
3453
  (h(!0), g(z, null, Y(a.items, (u, c) => (h(), g("li", {
3444
3454
  key: `${u.gloss}-${c}`,
3445
3455
  class: "mb-1"
3446
3456
  }, [
3447
3457
  f("span", null, G(u.gloss), 1),
3448
- $a,
3449
- u.example ? (h(), g("small", Oa, '"' + G(u.example) + '"', 1)) : R("", !0)
3458
+ Ia,
3459
+ u.example ? (h(), g("small", La, '"' + G(u.example) + '"', 1)) : R("", !0)
3450
3460
  ]))), 128))
3451
3461
  ])
3452
3462
  ]))), 128))
@@ -3454,7 +3464,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3454
3464
  ], 2)
3455
3465
  ], 64));
3456
3466
  }
3457
- }, La = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), ka = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, Ma = ["innerHTML"], Aa = {
3467
+ }, Ma = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Examples", -1), Aa = { class: "text-base-content text-sm list-disc list-outside ml-5 my-2" }, Va = ["innerHTML"], Da = {
3458
3468
  __name: "Example",
3459
3469
  setup(e) {
3460
3470
  const n = O(!0), t = ve(), o = L(() => t.examples), l = () => {
@@ -3465,22 +3475,22 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3465
3475
  class: "flex justify-between items-center",
3466
3476
  onClick: l
3467
3477
  }, [
3468
- La,
3478
+ Ma,
3469
3479
  B(at, { isExpanded: n.value }, null, 8, ["isExpanded"])
3470
3480
  ]),
3471
3481
  f("div", {
3472
3482
  class: P(["overflow-hidden", n.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3473
3483
  }, [
3474
- f("ul", ka, [
3484
+ f("ul", Aa, [
3475
3485
  (h(!0), g(z, null, Y(o.value, (a, i) => (h(), g("li", {
3476
3486
  key: `${a.definition_id}-${i}`,
3477
3487
  innerHTML: a
3478
- }, null, 8, Ma))), 128))
3488
+ }, null, 8, Va))), 128))
3479
3489
  ])
3480
3490
  ], 2)
3481
3491
  ], 64));
3482
3492
  }
3483
- }, Va = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Da = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Ra = { class: "list-none list-inside" }, Pa = { class: "flex flex-wrap" }, Na = ["onClick"], Ba = {
3493
+ }, Ra = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "Synonyms", -1), Pa = { class: "capitalize text-xs font-normal text-base-content/70 mb-1" }, Na = { class: "list-none list-inside" }, Ba = { class: "flex flex-wrap" }, Fa = ["onClick"], ja = {
3484
3494
  __name: "Synonyms",
3485
3495
  emits: ["translate"],
3486
3496
  setup(e, { emit: n }) {
@@ -3494,7 +3504,7 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3494
3504
  class: "flex justify-between items-center",
3495
3505
  onClick: r
3496
3506
  }, [
3497
- Va,
3507
+ Ra,
3498
3508
  B(at, { isExpanded: t.value }, null, 8, ["isExpanded"])
3499
3509
  ]),
3500
3510
  f("div", {
@@ -3505,18 +3515,18 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3505
3515
  key: `${c.pos}-${d}`,
3506
3516
  class: "mb-2"
3507
3517
  }, [
3508
- f("h5", Da, G(c.pos), 1),
3509
- f("ul", Ra, [
3518
+ f("h5", Pa, G(c.pos), 1),
3519
+ f("ul", Na, [
3510
3520
  (h(!0), g(z, null, Y(c.items, (x, m) => (h(), g("li", {
3511
3521
  key: `${x.word}-${m}`,
3512
3522
  class: "mb-2"
3513
3523
  }, [
3514
- f("div", Pa, [
3524
+ f("div", Ba, [
3515
3525
  (h(!0), g(z, null, Y(x.synonym, (C, b) => (h(), g("span", {
3516
3526
  key: `${C}-${b}`,
3517
3527
  class: "m-0.5 ml-0 font-normal badge badge-ghost bg-primary text-primary-content cursor-pointer border-0 rounded",
3518
3528
  onClick: (I) => a(C)
3519
- }, G(C), 9, Na))), 128))
3529
+ }, G(C), 9, Fa))), 128))
3520
3530
  ])
3521
3531
  ]))), 128))
3522
3532
  ])
@@ -3525,27 +3535,27 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3525
3535
  ], 2)
3526
3536
  ], 64));
3527
3537
  }
3528
- }, Fa = ["disabled"], ja = /* @__PURE__ */ f("path", {
3538
+ }, Ha = ["disabled"], za = /* @__PURE__ */ f("path", {
3529
3539
  stroke: "currentColor",
3530
3540
  "stroke-linecap": "round",
3531
3541
  "stroke-linejoin": "round",
3532
3542
  "stroke-width": "2",
3533
3543
  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"
3534
- }, null, -1), Ha = [
3535
- ja
3536
- ], za = /* @__PURE__ */ f("path", {
3544
+ }, null, -1), Za = [
3545
+ za
3546
+ ], Ua = /* @__PURE__ */ f("path", {
3537
3547
  fill: "currentColor",
3538
3548
  d: "M12 7a5 5 0 0 0-2 9.584V19h4v-2.416A5.001 5.001 0 0 0 12 7z"
3539
- }, null, -1), Za = /* @__PURE__ */ f("path", {
3549
+ }, null, -1), Wa = /* @__PURE__ */ f("path", {
3540
3550
  stroke: "currentColor",
3541
3551
  "stroke-linecap": "round",
3542
3552
  "stroke-linejoin": "round",
3543
3553
  "stroke-width": "2",
3544
3554
  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"
3545
- }, null, -1), Ua = [
3546
- za,
3547
- Za
3548
- ], Wa = {
3555
+ }, null, -1), qa = [
3556
+ Ua,
3557
+ Wa
3558
+ ], Ga = {
3549
3559
  __name: "ChevronAIBtn",
3550
3560
  props: {
3551
3561
  disabled: Boolean,
@@ -3565,22 +3575,22 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3565
3575
  viewBox: "0 0 24 24",
3566
3576
  xmlns: "http://www.w3.org/2000/svg",
3567
3577
  fill: "none"
3568
- }, Ua, 2)) : (h(), g("svg", {
3578
+ }, qa, 2)) : (h(), g("svg", {
3569
3579
  key: 0,
3570
3580
  class: P(["w-6 h-6 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3571
3581
  viewBox: "0 0 24 24",
3572
3582
  xmlns: "http://www.w3.org/2000/svg",
3573
3583
  fill: "none"
3574
- }, Ha, 2))
3575
- ], 10, Fa));
3584
+ }, Za, 2))
3585
+ ], 10, Ha));
3576
3586
  }
3577
- }, qa = { class: "p-2 gap-0 relative z-10" }, Ga = { class: "flex justify-between items-center" }, Ja = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Ya = { class: "flex items-center" }, Qa = {
3587
+ }, Ja = { class: "p-2 gap-0 relative z-10" }, Ya = { class: "flex justify-between items-center" }, Qa = /* @__PURE__ */ f("h2", { class: "card-title text-base font-bold text-base-content" }, "AI Summary", -1), Xa = { class: "flex items-center" }, Ka = {
3578
3588
  class: "tooltip tooltip-bottom tooltip-small before:!bg-base-100 before:!border before:!border-solid before:!border-base-300 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded before:!text-base-content/70 before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
3579
3589
  "data-tip": "AI Summarize"
3580
- }, Xa = {
3590
+ }, er = {
3581
3591
  key: 0,
3582
3592
  class: "text-base-content list-none list-outside"
3583
- }, Ka = ["innerHTML"], er = {
3593
+ }, tr = ["innerHTML"], nr = {
3584
3594
  __name: "AIExplanation",
3585
3595
  props: {
3586
3596
  isAIExplain: {
@@ -3601,13 +3611,13 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3601
3611
  }
3602
3612
  return (r, a) => {
3603
3613
  var i, u;
3604
- return h(), g("div", qa, [
3605
- f("div", Ga, [
3606
- Ja,
3607
- f("div", Ya, [
3614
+ return h(), g("div", Ja, [
3615
+ f("div", Ya, [
3616
+ Qa,
3617
+ f("div", Xa, [
3608
3618
  o.value ? (h(), W(Mt, { key: 0 })) : R("", !0),
3609
- f("div", Qa, [
3610
- B(Wa, {
3619
+ f("div", Ka, [
3620
+ B(Ga, {
3611
3621
  isExpanded: e.isAIExplain,
3612
3622
  disabled: o.value,
3613
3623
  onClick: s
@@ -3618,52 +3628,52 @@ const ca = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
3618
3628
  f("div", {
3619
3629
  class: P(["overflow-hidden", e.isAIExplain ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3620
3630
  }, [
3621
- (i = e.explanation) != null && i.result ? (h(), g("ul", Xa, [
3631
+ (i = e.explanation) != null && i.result ? (h(), g("ul", er, [
3622
3632
  (h(!0), g(z, null, Y(((u = e.explanation) == null ? void 0 : u.result.split(`
3623
3633
  `)) || [], (c, d) => (h(), g("li", {
3624
3634
  key: `${c}-${d}`,
3625
3635
  innerHTML: c
3626
- }, null, 8, Ka))), 128))
3636
+ }, null, 8, tr))), 128))
3627
3637
  ])) : R("", !0)
3628
3638
  ], 2)
3629
3639
  ]);
3630
3640
  };
3631
3641
  }
3632
3642
  };
3633
- function tr() {
3643
+ function or() {
3634
3644
  document.documentElement.setAttribute("dir", "rtl");
3635
3645
  }
3636
- function nr() {
3646
+ function lr() {
3637
3647
  document.documentElement.removeAttribute("dir");
3638
3648
  }
3639
3649
  const Xt = {
3640
- supportRTL: tr,
3641
- removeRTL: nr
3642
- }, or = ["ar", "fa", "iw", "yi", "ur", "pa"], lr = (e) => (Et("data-v-08f9cb53"), e = e(), $t(), e), sr = { class: "pb-6" }, ar = { class: "flex flex-col lg:flex-row lg:gap-2" }, rr = {
3650
+ supportRTL: or,
3651
+ removeRTL: lr
3652
+ }, sr = ["ar", "fa", "iw", "yi", "ur", "pa"], ar = (e) => (Et("data-v-08f9cb53"), e = e(), $t(), e), rr = { class: "pb-6" }, ir = { class: "flex flex-col lg:flex-row lg:gap-2" }, ur = {
3643
3653
  id: "input",
3644
3654
  class: "w-full lg:w-[calc(50%-1rem)] flex mt-1"
3645
- }, ir = /* @__PURE__ */ lr(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), ur = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, cr = {
3655
+ }, cr = /* @__PURE__ */ ar(() => /* @__PURE__ */ f("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1)), dr = { class: "w-full lg:w-[calc(50%-1rem)] flex mt-1" }, fr = {
3646
3656
  key: 0,
3647
3657
  class: "masonry-container mt-1"
3648
- }, dr = {
3658
+ }, vr = {
3649
3659
  key: 0,
3650
3660
  class: "masonry-item border border-base-300 bg-base-100"
3651
- }, fr = {
3661
+ }, pr = {
3652
3662
  key: 1,
3653
3663
  class: "masonry-item border border-base-300 bg-base-100"
3654
- }, vr = { class: "p-2" }, pr = {
3664
+ }, hr = { class: "p-2" }, mr = {
3655
3665
  key: 2,
3656
3666
  class: "masonry-item border border-base-300 bg-base-100"
3657
- }, hr = { class: "p-2" }, mr = {
3667
+ }, gr = { class: "p-2" }, br = {
3658
3668
  key: 3,
3659
3669
  class: "masonry-item border border-base-300 bg-base-100"
3660
- }, gr = { class: "p-2" }, br = {
3670
+ }, Cr = { class: "p-2" }, xr = {
3661
3671
  key: 4,
3662
3672
  class: "masonry-item border border-base-300 bg-base-100"
3663
- }, Cr = { class: "p-2" }, xr = {
3673
+ }, yr = { class: "p-2" }, wr = {
3664
3674
  key: 1,
3665
3675
  class: "text-base-content italic font-medium"
3666
- }, yr = {
3676
+ }, _r = {
3667
3677
  __name: "TranslateTab",
3668
3678
  props: {
3669
3679
  opt: Object,
@@ -3691,7 +3701,7 @@ const Xt = {
3691
3701
  setup(e, { emit: n }) {
3692
3702
  const t = O(""), o = e, l = le("translationStore"), s = le("ttsStore"), r = le("languageStore"), a = le("loaderStore"), i = n, u = () => {
3693
3703
  const $ = o.opt.target;
3694
- or.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3704
+ sr.includes($) ? Xt.supportRTL() : Xt.removeRTL();
3695
3705
  };
3696
3706
  F(
3697
3707
  () => o.translation,
@@ -3759,11 +3769,11 @@ const Xt = {
3759
3769
  }
3760
3770
  return ($, w) => {
3761
3771
  var y, _, T, V, S;
3762
- return h(), g("div", sr, [
3763
- B(hs),
3764
- f("div", ar, [
3765
- f("div", rr, [
3766
- B(fa, {
3772
+ return h(), g("div", rr, [
3773
+ B(gs),
3774
+ f("div", ir, [
3775
+ f("div", ur, [
3776
+ B(pa, {
3767
3777
  text: t.value,
3768
3778
  isTTS: e.isTTS,
3769
3779
  onChange: d,
@@ -3772,9 +3782,9 @@ const Xt = {
3772
3782
  class: "flex-grow flex flex-col"
3773
3783
  }, null, 8, ["text", "isTTS"])
3774
3784
  ]),
3775
- ir,
3776
- f("div", ur, [
3777
- B(ma, {
3785
+ cr,
3786
+ f("div", dr, [
3787
+ B(ba, {
3778
3788
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
3779
3789
  isAITranslateFeatureEnabled: e.isAITranslateFeatureEnabled,
3780
3790
  isAITranslate: e.isAITranslate,
@@ -3791,46 +3801,46 @@ const Xt = {
3791
3801
  }, null, 8, ["isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isAITranslate", "isFavorite", "isTTS"])
3792
3802
  ])
3793
3803
  ]),
3794
- e.translation ? (h(), g("div", cr, [
3795
- ((y = M(l).result) == null ? void 0 : y.length) > e.aiExplainMinLength ? (h(), g("div", dr, [
3796
- B(er, {
3804
+ e.translation ? (h(), g("div", fr, [
3805
+ ((y = M(l).result) == null ? void 0 : y.length) > e.aiExplainMinLength ? (h(), g("div", vr, [
3806
+ B(nr, {
3797
3807
  isAIExplain: e.isAIExplain,
3798
3808
  explanation: e.explanation,
3799
3809
  onAiExplain: b
3800
3810
  }, null, 8, ["isAIExplain", "explanation"])
3801
3811
  ])) : R("", !0),
3802
- (_ = M(l).dictionary) != null && _.length ? (h(), g("div", fr, [
3803
- f("div", vr, [
3804
- B(_a, { onTranslate: m })
3805
- ])
3806
- ])) : R("", !0),
3807
- (T = M(l).definitions) != null && T.length ? (h(), g("div", pr, [
3812
+ (_ = M(l).dictionary) != null && _.length ? (h(), g("div", pr, [
3808
3813
  f("div", hr, [
3809
- B(Ia)
3814
+ B(Sa, { onTranslate: m })
3810
3815
  ])
3811
3816
  ])) : R("", !0),
3812
- (V = M(l).synonyms) != null && V.length ? (h(), g("div", mr, [
3817
+ (T = M(l).definitions) != null && T.length ? (h(), g("div", mr, [
3813
3818
  f("div", gr, [
3814
- B(Ba, { onTranslate: m })
3819
+ B(ka)
3815
3820
  ])
3816
3821
  ])) : R("", !0),
3817
- (S = M(l).examples) != null && S.length ? (h(), g("div", br, [
3822
+ (V = M(l).synonyms) != null && V.length ? (h(), g("div", br, [
3818
3823
  f("div", Cr, [
3819
- B(Aa)
3824
+ B(ja, { onTranslate: m })
3825
+ ])
3826
+ ])) : R("", !0),
3827
+ (S = M(l).examples) != null && S.length ? (h(), g("div", xr, [
3828
+ f("div", yr, [
3829
+ B(Da)
3820
3830
  ])
3821
3831
  ])) : R("", !0)
3822
- ])) : (h(), g("span", xr, "Service unavailable"))
3832
+ ])) : (h(), g("span", wr, "Service unavailable"))
3823
3833
  ]);
3824
3834
  };
3825
3835
  }
3826
- }, wr = /* @__PURE__ */ he(yr, [["__scopeId", "data-v-08f9cb53"]]), _r = ["disabled"], Tr = /* @__PURE__ */ f("path", {
3836
+ }, Tr = /* @__PURE__ */ he(_r, [["__scopeId", "data-v-08f9cb53"]]), Sr = ["disabled"], Er = /* @__PURE__ */ f("path", {
3827
3837
  "stroke-linecap": "round",
3828
3838
  "stroke-linejoin": "round",
3829
3839
  "stroke-width": "2",
3830
3840
  d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
3831
- }, null, -1), Sr = [
3832
- Tr
3833
- ], Er = {
3841
+ }, null, -1), $r = [
3842
+ Er
3843
+ ], Or = {
3834
3844
  __name: "RetryBtn",
3835
3845
  props: {
3836
3846
  disabled: Boolean
@@ -3849,14 +3859,14 @@ const Xt = {
3849
3859
  fill: "none",
3850
3860
  viewBox: "0 0 24 24",
3851
3861
  stroke: "currentColor"
3852
- }, Sr, 2))
3853
- ], 8, _r));
3862
+ }, $r, 2))
3863
+ ], 8, Sr));
3854
3864
  }
3855
- }, $r = ["data-tip"], Or = ["disabled"], Ir = /* @__PURE__ */ f("path", { d: "M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z" }, null, -1), Lr = [
3856
- Ir
3857
- ], kr = /* @__PURE__ */ f("path", { d: "M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z" }, null, -1), Mr = [
3865
+ }, Ir = ["data-tip"], Lr = ["disabled"], kr = /* @__PURE__ */ f("path", { d: "M2.293,21.707a1,1,0,0,0,1.414,0l3.2-3.2A9.581,9.581,0,0,0,12,20c4.325,0,8.227-3,9.938-7.654a.993.993,0,0,0,0-.692A12.6,12.6,0,0,0,18.7,6.719l3.012-3.012a1,1,0,1,0-1.414-1.414l-3.2,3.2A9.581,9.581,0,0,0,12,4C7.675,4,3.773,7,2.062,11.654a.993.993,0,0,0,0,.692,12.6,12.6,0,0,0,3.243,4.935L2.293,20.293A1,1,0,0,0,2.293,21.707ZM17.266,8.148A10.454,10.454,0,0,1,19.929,12c-1.478,3.657-4.556,6-7.929,6a7.52,7.52,0,0,1-3.632-.954l1.613-1.613A3.947,3.947,0,0,0,12,16a4,4,0,0,0,4-4,3.947,3.947,0,0,0-.567-2.019Zm-7.191,4.363A1.96,1.96,0,0,1,10,12a2,2,0,0,1,2-2,1.96,1.96,0,0,1,.511.075Zm3.85-1.022A1.96,1.96,0,0,1,14,12a2,2,0,0,1-2,2,1.96,1.96,0,0,1-.511-.075ZM4.071,12C5.549,8.343,8.627,6,12,6a7.52,7.52,0,0,1,3.632.954L14.019,8.567A3.947,3.947,0,0,0,12,8a4,4,0,0,0-4,4,3.947,3.947,0,0,0,.567,2.019L6.734,15.852A10.454,10.454,0,0,1,4.071,12Z" }, null, -1), Mr = [
3858
3866
  kr
3859
- ], Ar = {
3867
+ ], Ar = /* @__PURE__ */ f("path", { d: "M12,7a4,4,0,1,0,4,4A4,4,0,0,0,12,7Zm0,6a2,2,0,1,1,2-2A2,2,0,0,1,12,13Zm6.5,2v1.5H20a1,1,0,0,1,0,2H18.5V20a1,1,0,0,1-2,0V18.5H15a1,1,0,0,1,0-2h1.5V15a1,1,0,0,1,2,0Zm3.438-4.345a.987.987,0,0,1,0,.69,13.339,13.339,0,0,1-1.08,2.264,1,1,0,1,1-1.715-1.028A11.3,11.3,0,0,0,19.928,11C18.451,7.343,15.373,5,12,5S5.549,7.343,4.072,11a9.315,9.315,0,0,0,6.167,5.787,1,1,0,1,1-.478,1.942,11.393,11.393,0,0,1-7.7-7.383.99.99,0,0,1,0-.691C3.773,6,7.674,3,12,3S20.227,6,21.938,10.655Z" }, null, -1), Vr = [
3868
+ Ar
3869
+ ], Dr = {
3860
3870
  __name: "ToggleDiffBtn",
3861
3871
  props: {
3862
3872
  disabled: Boolean,
@@ -3882,17 +3892,17 @@ const Xt = {
3882
3892
  fill: "currentColor",
3883
3893
  viewBox: "0 0 24 24",
3884
3894
  xmlns: "http://www.w3.org/2000/svg"
3885
- }, Mr, 2)) : (h(), g("svg", {
3895
+ }, Vr, 2)) : (h(), g("svg", {
3886
3896
  key: 0,
3887
3897
  class: P(["w-4 h-4 text-primary", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]]),
3888
3898
  fill: "currentColor",
3889
3899
  viewBox: "0 0 24 24",
3890
3900
  xmlns: "http://www.w3.org/2000/svg"
3891
- }, Lr, 2))
3892
- ], 10, Or)
3893
- ], 8, $r));
3901
+ }, Mr, 2))
3902
+ ], 10, Lr)
3903
+ ], 8, Ir));
3894
3904
  }
3895
- }, Vr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Dr = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3905
+ }, Rr = { class: "flex flex-row px-2 pr-10 items-center bg-transparent relative" }, Pr = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, Fn = {
3896
3906
  __name: "InputBtnGroup",
3897
3907
  props: {
3898
3908
  loading: {
@@ -3926,13 +3936,13 @@ const Xt = {
3926
3936
  },
3927
3937
  emits: ["copy", "clear", "toggleDiff", "info"],
3928
3938
  setup(e) {
3929
- return (n, t) => (h(), g("div", Vr, [
3939
+ return (n, t) => (h(), g("div", Rr, [
3930
3940
  e.loading ? (h(), W(Mt, {
3931
3941
  key: 0,
3932
3942
  class: "absolute right-6 top-2"
3933
3943
  })) : R("", !0),
3934
- f("div", Dr, [
3935
- e.showDiffToggle ? (h(), W(Ar, {
3944
+ f("div", Pr, [
3945
+ e.showDiffToggle ? (h(), W(Dr, {
3936
3946
  key: 0,
3937
3947
  disabled: e.loading,
3938
3948
  isDiffMode: e.isDiffMode,
@@ -3950,7 +3960,7 @@ const Xt = {
3950
3960
  ])
3951
3961
  ]));
3952
3962
  }
3953
- }, Rr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Pr = ["onKeydown", "placeholder"], Nr = {
3963
+ }, Nr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Br = ["onKeydown", "placeholder"], Fr = {
3954
3964
  __name: "Input",
3955
3965
  props: {
3956
3966
  text: {
@@ -3986,7 +3996,7 @@ const Xt = {
3986
3996
  o.value = t.text, X(() => {
3987
3997
  l.value.focus(), i();
3988
3998
  });
3989
- }), (c, d) => (h(), g("div", Rr, [
3999
+ }), (c, d) => (h(), g("div", Nr, [
3990
4000
  B(Fn, {
3991
4001
  src: e.text,
3992
4002
  hasClearBtn: !0,
@@ -4005,7 +4015,7 @@ const Xt = {
4005
4015
  onFocus: i,
4006
4016
  onKeydown: Jn(ft(u, ["ctrl", "prevent"]), ["enter"]),
4007
4017
  placeholder: `Min ${M(Ie).IMPROVE_INPUT_MIN_LENGTH} characters. ${M(vt) ? "" : "Ctrl+Enter to improve"}`
4008
- }, null, 40, Pr), [
4018
+ }, null, 40, Br), [
4009
4019
  [
4010
4020
  nt,
4011
4021
  o.value,
@@ -4015,7 +4025,7 @@ const Xt = {
4015
4025
  ])
4016
4026
  ]));
4017
4027
  }
4018
- }, Br = /* @__PURE__ */ he(Nr, [["__scopeId", "data-v-66614870"]]);
4028
+ }, jr = /* @__PURE__ */ he(Fr, [["__scopeId", "data-v-66614870"]]);
4019
4029
  function re() {
4020
4030
  }
4021
4031
  re.prototype = {
@@ -4186,9 +4196,9 @@ function qe(e, n) {
4186
4196
  return xt(e, n, "");
4187
4197
  }
4188
4198
  function nn(e, n) {
4189
- return n.slice(0, Fr(e, n));
4199
+ return n.slice(0, Hr(e, n));
4190
4200
  }
4191
- function Fr(e, n) {
4201
+ function Hr(e, n) {
4192
4202
  var t = 0;
4193
4203
  e.length > n.length && (t = e.length - n.length);
4194
4204
  var o = n.length;
@@ -4208,7 +4218,7 @@ function Fr(e, n) {
4208
4218
  }
4209
4219
  return s;
4210
4220
  }
4211
- var et = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", jr = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4221
+ var et = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", zr = new RegExp("[".concat(et, "]+|\\s+|[^").concat(et, "]"), "ug"), rt = new re();
4212
4222
  rt.equals = function(e, n, t) {
4213
4223
  return t.ignoreCase && (e = e.toLowerCase(), n = n.toLowerCase()), e.trim() === n.trim();
4214
4224
  };
@@ -4221,7 +4231,7 @@ rt.tokenize = function(e) {
4221
4231
  return s.segment;
4222
4232
  });
4223
4233
  } else
4224
- t = e.match(jr) || [];
4234
+ t = e.match(zr) || [];
4225
4235
  var o = [], l = null;
4226
4236
  return t.forEach(function(s) {
4227
4237
  /\s/.test(s) ? l == null ? o.push(s) : o.push(o.pop() + s) : /\s/.test(l) ? o[o.length - 1] == l ? o.push(o.pop() + s) : o.push(l + s) : o.push(s), l = s;
@@ -4271,7 +4281,7 @@ jn.tokenize = function(e) {
4271
4281
  var n = new RegExp("(\\r?\\n)|[".concat(et, "]+|[^\\S\\n\\r]+|[^").concat(et, "]"), "ug");
4272
4282
  return e.match(n) || [];
4273
4283
  };
4274
- function Hr(e, n, t) {
4284
+ function Zr(e, n, t) {
4275
4285
  return jn.diff(e, n, t);
4276
4286
  }
4277
4287
  var At = new re();
@@ -4293,12 +4303,12 @@ At.equals = function(e, n, t) {
4293
4303
  `) && (e = e.slice(0, -1)), n.endsWith(`
4294
4304
  `) && (n = n.slice(0, -1))), re.prototype.equals.call(this, e, n, t);
4295
4305
  };
4296
- var zr = new re();
4297
- zr.tokenize = function(e) {
4306
+ var Ur = new re();
4307
+ Ur.tokenize = function(e) {
4298
4308
  return e.split(/(\S.+?[.!?])(?=\s+|$)/);
4299
4309
  };
4300
- var Zr = new re();
4301
- Zr.tokenize = function(e) {
4310
+ var Wr = new re();
4311
+ Wr.tokenize = function(e) {
4302
4312
  return e.split(/([{}:;,]|\s+)/);
4303
4313
  };
4304
4314
  function yt(e) {
@@ -4352,7 +4362,7 @@ _t.tokenize = function(e) {
4352
4362
  _t.join = _t.removeEmpty = function(e) {
4353
4363
  return e;
4354
4364
  };
4355
- const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Wr = { class: "flex justify-end items-center mb-1" }, qr = { class: "bg-transparent" }, Gr = ["innerHTML"], Jr = {
4365
+ const qr = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }, Gr = { class: "flex justify-end items-center mb-1" }, Jr = { class: "bg-transparent" }, Yr = ["innerHTML"], Qr = {
4356
4366
  __name: "Result",
4357
4367
  props: {
4358
4368
  text: {
@@ -4375,7 +4385,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4375
4385
  !l.value && s.value && u("copy", s.value);
4376
4386
  }
4377
4387
  function d(m, C) {
4378
- return Hr(m, C).map((I) => I.added ? `<span class="bg-addedBg inline leading-snug animate-addedText">${I.value}</span>` : I.removed ? `<span class="bg-removedBg inline leading-snug animate-removedText">${I.value}</span>` : I.value).join("");
4388
+ return Zr(m, C).map((I) => I.added ? `<span class="bg-addedBg inline leading-snug animate-addedText">${I.value}</span>` : I.removed ? `<span class="bg-removedBg inline leading-snug animate-removedText">${I.value}</span>` : I.value).join("");
4379
4389
  }
4380
4390
  function x() {
4381
4391
  a.value = !a.value, Ie.DEFAULT_DIFF_MODE = a.value;
@@ -4388,8 +4398,8 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4388
4398
  { immediate: !0 }
4389
4399
  ), F(s, (m) => {
4390
4400
  u("change", m);
4391
- }), (m, C) => (h(), g("div", Ur, [
4392
- f("div", Wr, [
4401
+ }), (m, C) => (h(), g("div", qr, [
4402
+ f("div", Gr, [
4393
4403
  B(Fn, {
4394
4404
  loading: l.value,
4395
4405
  src: s.value,
@@ -4400,7 +4410,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4400
4410
  onToggleDiff: x
4401
4411
  }, null, 8, ["loading", "src", "hasCopyBtn", "showDiffToggle", "isDiffMode"])
4402
4412
  ]),
4403
- f("div", qr, [
4413
+ f("div", Jr, [
4404
4414
  e.type !== "check" || !a.value ? tt((h(), g("textarea", {
4405
4415
  key: 0,
4406
4416
  ref_key: "textarea",
@@ -4415,27 +4425,27 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4415
4425
  key: 1,
4416
4426
  class: "w-full min-h-[80px] outline-none px-1 pr-8 bg-transparent text-base-content resize-none pb-3 overflow-x-hidden overflow-y-hidden whitespace-pre-wrap break-words font-sans text-base leading-normal",
4417
4427
  innerHTML: l.value ? "" : r.value
4418
- }, null, 8, Gr))
4428
+ }, null, 8, Yr))
4419
4429
  ])
4420
4430
  ]));
4421
4431
  }
4422
- }, Yr = "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='currentColor'%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", Qr = "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='currentColor'/%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='currentColor'/%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='currentColor'/%3e%3c/svg%3e", Xr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Kr = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Vt = (e) => (Et("data-v-345bc0b4"), e = e(), $t(), e), ei = { class: "flex rounded-md w-full" }, ti = ["disabled"], ni = { class: "flex items-center text-xs" }, oi = ["src"], li = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), si = { class: "relative block" }, ai = ["aria-expanded", "disabled"], ri = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ii = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4423
- src: Kr,
4432
+ }, Xr = "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='currentColor'%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", Kr = "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='currentColor'/%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='currentColor'/%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='currentColor'/%3e%3c/svg%3e", ei = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", ti = "data:image/svg+xml,%3csvg%20class='w-5%20h-5'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20fill='currentColor'%20aria-hidden='true'%20%3e%3cpath%20fill-rule='evenodd'%20d='M5.293%207.293a1%201%200%20011.414%200L10%2010.586l3.293-3.293a1%201%200%20111.414%201.414l-4%204a1%201%200%2001-1.414%200l-4-4a1%201%200%20010-1.414z'%20clip-rule='evenodd'%20/%3e%3c/svg%3e", Vt = (e) => (Et("data-v-345bc0b4"), e = e(), $t(), e), ni = { class: "flex rounded-md w-full" }, oi = ["disabled"], li = { class: "flex items-center text-xs" }, si = ["src"], ai = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("div", { class: "w-px bg-base-300" }, null, -1)), ri = { class: "relative block" }, ii = ["aria-expanded", "disabled"], ui = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("span", { class: "sr-only" }, "Open options", -1)), ci = /* @__PURE__ */ Vt(() => /* @__PURE__ */ f("img", {
4433
+ src: ti,
4424
4434
  alt: "Chevron down",
4425
4435
  class: "w-4 h-4 fill-current"
4426
- }, null, -1)), ui = [
4427
- ri,
4428
- ii
4429
- ], ci = {
4436
+ }, null, -1)), di = [
4437
+ ui,
4438
+ ci
4439
+ ], fi = {
4430
4440
  key: 0,
4431
4441
  class: "origin-top-right absolute left-0 mt-1 w-full rounded-md shadow-lg bg-base-100 ring-1 ring-base-300 focus:outline-none z-50",
4432
4442
  role: "menu",
4433
4443
  "aria-orientation": "vertical",
4434
4444
  "aria-labelledby": "options-menu"
4435
- }, di = {
4445
+ }, vi = {
4436
4446
  class: "py-1",
4437
4447
  role: "none"
4438
- }, fi = ["onClick"], vi = { class: "flex items-center" }, pi = ["src"], hi = {
4448
+ }, pi = ["onClick"], hi = { class: "flex items-center" }, mi = ["src"], gi = {
4439
4449
  __name: "ButtonSelect",
4440
4450
  props: {
4441
4451
  modelValue: {
@@ -4472,7 +4482,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4472
4482
  m.value !== s.value && (s.value = m.value, o("update:modelValue", m.value)), l.value = !1;
4473
4483
  }
4474
4484
  function d(m) {
4475
- return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Yr, "../../assets/icons/ai-translate.svg": Qr, "../../assets/icons/chevron-down.svg": Xr }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4485
+ return new URL((/* @__PURE__ */ Object.assign({ "../../assets/icons/ai-explain.svg": Xr, "../../assets/icons/ai-translate.svg": Kr, "../../assets/icons/chevron-down.svg": ei }))[`../../assets/icons/${m}.svg`], import.meta.url).href;
4476
4486
  }
4477
4487
  function x(m) {
4478
4488
  r.value && !r.value.contains(m.target) && (l.value = !1);
@@ -4502,7 +4512,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4502
4512
  e.isTextEmpty || t.loading ? "border-base-300" : "border-primary"
4503
4513
  ])
4504
4514
  }, [
4505
- f("div", ei, [
4515
+ f("div", ni, [
4506
4516
  f("button", {
4507
4517
  onClick: i,
4508
4518
  class: P(["px-2 py-1 text-sm font-medium rounded-s focus:z-10 focus:outline-none flex-grow text-left relative", [
@@ -4510,17 +4520,17 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4510
4520
  ]]),
4511
4521
  disabled: e.isTextEmpty || t.loading
4512
4522
  }, [
4513
- f("div", ni, [
4523
+ f("div", li, [
4514
4524
  f("img", {
4515
4525
  src: d(a.value.icon),
4516
4526
  alt: "",
4517
4527
  class: "w-4 h-4 mr-2"
4518
- }, null, 8, oi),
4528
+ }, null, 8, si),
4519
4529
  Ee(" " + G(a.value.label), 1)
4520
4530
  ])
4521
- ], 10, ti),
4522
- li,
4523
- f("div", si, [
4531
+ ], 10, oi),
4532
+ ai,
4533
+ f("div", ri, [
4524
4534
  f("button", {
4525
4535
  onClick: u,
4526
4536
  type: "button",
@@ -4530,12 +4540,12 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4530
4540
  "aria-haspopup": "true",
4531
4541
  "aria-expanded": l.value,
4532
4542
  disabled: e.isTextEmpty || t.loading
4533
- }, ui, 10, ai)
4543
+ }, di, 10, ii)
4534
4544
  ])
4535
4545
  ])
4536
4546
  ], 2),
4537
- l.value ? (h(), g("div", ci, [
4538
- f("div", di, [
4547
+ l.value ? (h(), g("div", fi, [
4548
+ f("div", vi, [
4539
4549
  (h(!0), g(z, null, Y(e.options, (b) => (h(), g("a", {
4540
4550
  key: b.value,
4541
4551
  onClick: (I) => c(b),
@@ -4543,23 +4553,23 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4543
4553
  class: "block px-1 py-1 text-sm text-base-content hover:bg-base-200 hover:text-primary",
4544
4554
  role: "menuitem"
4545
4555
  }, [
4546
- f("div", vi, [
4556
+ f("div", hi, [
4547
4557
  f("img", {
4548
4558
  src: d(b.icon),
4549
4559
  alt: "",
4550
4560
  class: "w-4 h-4 mr-2"
4551
- }, null, 8, pi),
4561
+ }, null, 8, mi),
4552
4562
  Ee(" " + G(b.label), 1)
4553
4563
  ])
4554
- ], 8, fi))), 128))
4564
+ ], 8, pi))), 128))
4555
4565
  ])
4556
4566
  ])) : R("", !0)
4557
4567
  ], 512));
4558
4568
  }
4559
- }, mi = /* @__PURE__ */ he(hi, [["__scopeId", "data-v-345bc0b4"]]), gi = { class: "w-full mt-1" }, bi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, Ci = { class: "lg:flex-grow lg:w-0 flex flex-col" }, xi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, yi = {
4569
+ }, bi = /* @__PURE__ */ he(gi, [["__scopeId", "data-v-345bc0b4"]]), Ci = { class: "w-full mt-1" }, xi = { class: "flex flex-col lg:flex-row lg:items-stretch lg:space-x-4 lg:min-h-[50vh]" }, yi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, wi = { class: "flex flex-row lg:flex-col items-center justify-center place-content-center min-h-full" }, _i = {
4560
4570
  class: "flex items-center",
4561
4571
  style: { "max-width": "300px" }
4562
- }, wi = { class: "lg:flex-grow lg:w-0 flex flex-col" }, _i = {
4572
+ }, Ti = { class: "lg:flex-grow lg:w-0 flex flex-col" }, Si = {
4563
4573
  __name: "WriteTab",
4564
4574
  props: {
4565
4575
  opt: {
@@ -4580,7 +4590,8 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4580
4590
  const t = le("writingStore"), o = le("loaderStore"), l = e, s = n, r = [
4581
4591
  { value: "check", label: "Check", icon: "ai-translate" },
4582
4592
  { value: "improve", label: "Improve", icon: "ai-explain" },
4583
- { value: "improve-plus", label: "Improve +++", icon: "ai-explain" },
4593
+ { value: "improve-plus", label: "Academy", icon: "ai-explain" },
4594
+ { value: "friendly", label: "Friendly", icon: "ai-translate" },
4584
4595
  { value: "simplify", label: "Simplify", icon: "ai-translate" },
4585
4596
  { value: "more-detailed", label: "More detailed", icon: "ai-explain" }
4586
4597
  ];
@@ -4628,10 +4639,10 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4628
4639
  }
4629
4640
  return (b, I) => {
4630
4641
  var $, w;
4631
- return h(), g("div", gi, [
4632
- f("div", bi, [
4633
- f("div", Ci, [
4634
- B(Br, {
4642
+ return h(), g("div", Ci, [
4643
+ f("div", xi, [
4644
+ f("div", yi, [
4645
+ B(jr, {
4635
4646
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4636
4647
  text: M(t).text,
4637
4648
  onChange: a,
@@ -4639,9 +4650,9 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4639
4650
  onImprove: d
4640
4651
  }, null, 8, ["text"])
4641
4652
  ]),
4642
- f("div", xi, [
4643
- f("div", yi, [
4644
- B(mi, {
4653
+ f("div", wi, [
4654
+ f("div", _i, [
4655
+ B(bi, {
4645
4656
  class: "w-full",
4646
4657
  modelValue: l.opt.type,
4647
4658
  options: r,
@@ -4652,14 +4663,14 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4652
4663
  onAction: d
4653
4664
  }, null, 8, ["modelValue", "loading", "isTextEmpty", "hasResult"])
4654
4665
  ]),
4655
- B(Er, {
4666
+ B(Or, {
4656
4667
  class: "ml-2 lg:m-2",
4657
4668
  disabled: ((w = M(t).text) == null ? void 0 : w.length) < 5 || !M(t).result,
4658
4669
  onClick: x
4659
4670
  }, null, 8, ["disabled"])
4660
4671
  ]),
4661
- f("div", wi, [
4662
- B(Jr, {
4672
+ f("div", Ti, [
4673
+ B(Qr, {
4663
4674
  class: "my-2 lg:my-0 w-full flex-grow lg:min-h-[50vh]",
4664
4675
  text: M(t).result,
4665
4676
  originalText: M(t).text,
@@ -4694,17 +4705,17 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4694
4705
  init: a,
4695
4706
  reset: i
4696
4707
  };
4697
- }), Hn = (e) => (Et("data-v-e4dbf9d3"), e = e(), $t(), e), Ti = ["data-theme"], Si = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Ei = { class: "flex-none" }, $i = { class: "flex w-full border-b border-base-300 items-center" }, Oi = {
4708
+ }), Hn = (e) => (Et("data-v-8885ead1"), e = e(), $t(), e), Ei = ["data-theme"], $i = { class: "flex-none py-2 pl-3 pr-2 shadow border border-base-300" }, Oi = { class: "flex-none" }, Ii = { class: "flex w-full border-b border-base-300 items-center" }, Li = {
4698
4709
  key: 0,
4699
4710
  class: "text-xs text-base-content/40 ml-1 italic"
4700
- }, Ii = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Li = [
4701
- Ii
4702
- ], ki = {
4711
+ }, ki = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Mi = [
4712
+ ki
4713
+ ], Ai = {
4703
4714
  key: 0,
4704
4715
  class: "text-xs text-base-content/40 ml-1 italic"
4705
- }, Mi = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Ai = [
4706
- Mi
4707
- ], Vi = { class: "flex-1 min-h-0" }, Di = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Ri = {
4716
+ }, Vi = /* @__PURE__ */ Hn(() => /* @__PURE__ */ f("small", null, "(Tab)", -1)), Di = [
4717
+ Vi
4718
+ ], Ri = { class: "flex-1 min-h-0" }, Pi = { class: "h-full overflow-y-auto overflow-x-hidden custom-scrollbar" }, Ni = {
4708
4719
  __name: "Popup",
4709
4720
  props: {
4710
4721
  options: {
@@ -4742,11 +4753,15 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4742
4753
  theme: {
4743
4754
  type: String,
4744
4755
  default: "light"
4756
+ },
4757
+ isPremium: {
4758
+ type: Boolean,
4759
+ default: !1
4745
4760
  }
4746
4761
  },
4747
4762
  emits: ["nav", "translate", "write", "common"],
4748
4763
  setup(e, { emit: n }) {
4749
- const t = ql();
4764
+ const t = Jl();
4750
4765
  ve(t), bt(t), Oe(t), xe(t), ln(t);
4751
4766
  const o = ve(), l = bt(), s = Oe(), r = xe(), a = ln();
4752
4767
  ce("translationStore", o), ce("ttsStore", l), ce("languageStore", s), ce("loaderStore", r), ce("writingStore", a);
@@ -4791,20 +4806,21 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4791
4806
  "data-theme": e.theme,
4792
4807
  class: "h-screen flex flex-col bg-base-100"
4793
4808
  }, [
4794
- f("div", Si, [
4795
- B(xo, {
4809
+ f("div", $i, [
4810
+ B(wo, {
4796
4811
  "header-settings": e.headerSettings,
4797
4812
  "current-theme": e.theme,
4813
+ "is-premium": e.isPremium,
4798
4814
  onReader: y[0] || (y[0] = (_) => u("reader")),
4799
4815
  onLearn: y[1] || (y[1] = (_) => u("learn")),
4800
4816
  onSettings: y[2] || (y[2] = (_) => u("settings")),
4801
4817
  onFullScreen: y[3] || (y[3] = (_) => u("fullscreen")),
4802
4818
  onAccount: y[4] || (y[4] = (_) => u("account")),
4803
4819
  onThemeChange: c
4804
- }, null, 8, ["header-settings", "current-theme"])
4820
+ }, null, 8, ["header-settings", "current-theme", "is-premium"])
4805
4821
  ]),
4806
- f("div", Ei, [
4807
- f("div", $i, [
4822
+ f("div", Oi, [
4823
+ f("div", Ii, [
4808
4824
  f("button", {
4809
4825
  class: P([
4810
4826
  "w-1/2 px-4 py-2 text-sm font-medium",
@@ -4813,7 +4829,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4813
4829
  onClick: y[5] || (y[5] = (_) => u("activeTab", "translate"))
4814
4830
  }, [
4815
4831
  Ee(" Translate "),
4816
- !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Oi, Li)) : R("", !0)
4832
+ !M(vt) && I.value.activeTab !== "translate" ? (h(), g("span", Li, Mi)) : R("", !0)
4817
4833
  ], 2),
4818
4834
  f("button", {
4819
4835
  class: P([
@@ -4823,13 +4839,13 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4823
4839
  onClick: y[6] || (y[6] = (_) => u("activeTab", "write"))
4824
4840
  }, [
4825
4841
  Ee(" Write "),
4826
- !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", ki, Ai)) : R("", !0)
4842
+ !M(vt) && I.value.activeTab !== "write" ? (h(), g("span", Ai, Di)) : R("", !0)
4827
4843
  ], 2)
4828
4844
  ])
4829
4845
  ]),
4830
- f("div", Vi, [
4831
- f("div", Di, [
4832
- I.value.activeTab === "translate" ? (h(), W(wr, {
4846
+ f("div", Ri, [
4847
+ f("div", Pi, [
4848
+ I.value.activeTab === "translate" ? (h(), W(Tr, {
4833
4849
  key: 0,
4834
4850
  opt: I.value.translateOpts,
4835
4851
  languages: I.value.languages,
@@ -4851,7 +4867,7 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4851
4867
  onAiExplain: y[12] || (y[12] = (_) => d("aiExplain", _)),
4852
4868
  onCopy: y[13] || (y[13] = (_) => m("copy", _))
4853
4869
  }, null, 8, ["opt", "languages", "translation", "explanation", "tts", "isTTS", "isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isFavorite", "isAITranslate", "isAIExplain", "aiExplainMinLength"])) : R("", !0),
4854
- I.value.activeTab === "write" ? (h(), W(_i, {
4870
+ I.value.activeTab === "write" ? (h(), W(Si, {
4855
4871
  key: 1,
4856
4872
  opt: I.value.writeOpts,
4857
4873
  languages: I.value.languages,
@@ -4862,9 +4878,9 @@ const Ur = { class: "bg-base-100 relative z-10 border border-base-300 rounded" }
4862
4878
  }, null, 8, ["opt", "languages", "writing"])) : R("", !0)
4863
4879
  ])
4864
4880
  ])
4865
- ], 8, Ti));
4881
+ ], 8, Ei));
4866
4882
  }
4867
- }, Bi = /* @__PURE__ */ he(Ri, [["__scopeId", "data-v-e4dbf9d3"]]);
4883
+ }, ji = /* @__PURE__ */ he(Ni, [["__scopeId", "data-v-8885ead1"]]);
4868
4884
  export {
4869
- Bi as default
4885
+ ji as default
4870
4886
  };