@ddict/popup 1.0.18 → 1.0.19

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,14 +1,14 @@
1
- import { openBlock as w, createElementBlock as $, createElementVNode as g, computed as S, unref as V, shallowRef as pn, watch as F, triggerRef as ut, onScopeDispose as tt, ref as E, onUnmounted as nt, inject as Ie, watchEffect as ie, onMounted as Ce, cloneVNode as $t, h as Ee, Fragment as Z, defineComponent as ae, provide as ot, reactive as Tt, nextTick as Q, toRaw as K, effectScope as It, markRaw as de, hasInjectionContext as vn, getCurrentInstance as Lt, isRef as _e, isReactive as st, toRef as Ge, getCurrentScope as Pt, toRefs as ct, mergeModels as hn, useModel as mn, createBlock as ee, withCtx as Pe, createVNode as H, renderList as le, normalizeClass as xe, toDisplayString as te, createCommentVNode as X, withModifiers as dt, createTextVNode as gn, withDirectives as Rt, vModelText as Vt, pushScopeId as bn, popScopeId as _n } from "vue";
2
- const xn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e", Cn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e", yn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e", wn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%233B5695'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%233B5695'/%3e%3c/svg%3e", Sn = { class: "flex justify-between" }, En = /* @__PURE__ */ g("div", { class: "flex flex-row" }, [
3
- /* @__PURE__ */ g("img", {
4
- src: xn,
1
+ import { openBlock as w, createElementBlock as $, createElementVNode as m, computed as S, unref as V, shallowRef as pn, watch as F, triggerRef as ut, onScopeDispose as tt, ref as E, onUnmounted as nt, inject as Ie, watchEffect as ie, onMounted as Ce, cloneVNode as $t, h as Ee, Fragment as Z, defineComponent as ae, provide as ot, reactive as Tt, nextTick as Q, toRaw as K, effectScope as It, markRaw as de, hasInjectionContext as vn, getCurrentInstance as Lt, isRef as xe, isReactive as st, toRef as Ge, getCurrentScope as Pt, toRefs as ct, mergeModels as hn, useModel as mn, createBlock as ee, withCtx as Pe, createVNode as H, renderList as le, normalizeClass as _e, toDisplayString as te, createCommentVNode as X, withModifiers as dt, createTextVNode as gn, withDirectives as Rt, vModelText as Vt, pushScopeId as bn, popScopeId as xn } from "vue";
2
+ const _n = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%200%2096%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40.151%208.94498H35.7256V23.055H40.151C44.7473%2023.055%2047.826%2020.0825%2047.826%2015.9795C47.8267%2011.8093%2044.7678%208.94498%2040.151%208.94498ZM40.1312%2021.025H37.993V10.9974H40.1312C43.4217%2010.9974%2045.4972%2012.9846%2045.4972%2015.9795C45.4965%2018.9296%2043.4012%2021.025%2040.1312%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M54.5158%208.94498H50.0903V23.055H54.5158C59.1121%2023.055%2062.1908%2020.0825%2062.1908%2015.9795C62.1914%2011.8093%2059.1351%208.94498%2054.5158%208.94498ZM54.496%2021.025H52.3578V10.9974H54.496C57.789%2010.9974%2059.8619%2012.9846%2059.8619%2015.9795C59.8613%2018.9296%2057.766%2021.025%2054.496%2021.025Z'%20fill='%233B5695'/%3e%3cpath%20d='M66.7237%208.94498H64.4575V23.055H66.7237V8.94498Z'%20fill='%233B5695'/%3e%3cpath%20d='M76.4301%2010.7837C78.29%2010.7837%2079.7436%2011.6603%2080.7487%2013.2207L82.4589%2011.9591C81.2401%209.97057%2078.9957%208.70953%2076.409%208.70953C72.3898%208.64555%2068.9048%2011.9591%2068.9906%2016C68.9048%2020.0403%2072.3898%2023.3544%2076.409%2023.2905C79.0385%2023.2905%2081.2618%2022.0294%2082.4589%2020.0409L80.7487%2018.7793C79.7436%2020.3397%2078.29%2021.2163%2076.4301%2021.2163C73.544%2021.2163%2071.3418%2018.993%2071.3418%2016C71.3418%2013.007%2073.5433%2010.7837%2076.4301%2010.7837Z'%20fill='%233B5695'/%3e%3cpath%20d='M83.3135%208.94498V10.9757H88.0595V23.055H90.3256V10.9757H95.0934V8.94498H83.3135Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.66351%204.7121H4.604V15.4427L6.87208%2013.3839V6.79143H8.64559C11.4639%206.79143%2013.2835%208.47857%2013.2835%2011.0877C13.2835%2013.6916%2011.421%2015.4427%208.64559%2015.4427H4.604V17.5016H8.66351C12.7531%2017.5016%2015.6098%2014.8644%2015.6098%2011.0877C15.6104%207.27575%2012.8196%204.7121%208.66351%204.7121Z'%20fill='%233B5695'/%3e%3cpath%20d='M26.2425%209.25528H21.5502L20.7537%2014.293L21.4523%2014.3308L21.4069%2014.7294C21.3916%2014.8656%2021.3289%2015.0448%2021.112%2015.1734C21.1017%2015.9399%2021.0845%2017.0493%2020.9706%2018.1766H26.5937V19.8586H21.4677C22.4133%2022.9424%2024.1254%2024.9648%2026.5611%2025.8669L27.1536%2026.0864L26.6795%2026.5048C26.4875%2026.6737%2026.2182%2027.0141%2026.0896%2027.2489L25.9258%2027.5438L25.6155%2027.4152C23.167%2026.4095%2021.4223%2024.4926%2020.2905%2021.563C19.3602%2024.3365%2017.5797%2026.2553%2014.8592%2027.428L14.5438%2027.5617L14.3775%2027.2642C14.2764%2027.08%2014.0294%2026.7876%2013.8151%2026.5989L13.3564%2026.1951L13.9239%2025.9655C16.4555%2024.9392%2018.064%2023.1414%2018.8228%2020.4837C19.6647%2019.8381%2020.2099%2018.8221%2020.2169%2017.6801V4.53231C20.2169%202.58349%2018.6334%201%2016.6846%201H3.53487C1.58349%201%200%202.58349%200%204.53231V17.6795C0%2019.6283%201.58349%2021.2143%203.53487%2021.2143H8.25528V27.2431C8.25528%2029.3135%209.93986%2031%2012.0096%2031H26.2431C28.3161%2031%2029.9974%2029.3129%2029.9974%2027.2431V13.0096C29.9974%2010.9392%2028.3154%209.25528%2026.2425%209.25528ZM3.53487%2019.4517C2.55662%2019.4517%201.762%2018.6603%201.762%2017.6788V4.53231C1.762%203.55662%202.55598%202.762%203.53487%202.762H16.6839C17.6571%202.762%2018.4517%203.55598%2018.4517%204.53231V17.6795C18.4517%2017.778%2018.444%2017.8733%2018.4267%2017.9667C18.3941%2018.1811%2018.3231%2018.38%2018.215%2018.5592C17.9149%2019.0934%2017.3372%2019.4517%2016.6846%2019.4517H3.53487Z'%20fill='%233B5695'/%3e%3c/svg%3e", Cn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.5%203.25C5.25736%203.25%204.25%204.25736%204.25%205.5H3.5H2.75C2.75%203.42893%204.42893%201.75%206.5%201.75H17.5C17.9142%201.75%2018.25%202.08579%2018.25%202.5V15.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25H6.5C5.26293%2016.25%204.25%2017.2576%204.25%2018.5C4.25%2018.9142%203.91421%2019.25%203.5%2019.25C3.08579%2019.25%202.75%2018.9142%202.75%2018.5V5.5C2.75%205.49993%202.75%205.5%203.5%205.5C4.25%205.5%204.25%205.49993%204.25%205.5V15.5017C4.87779%2015.0296%205.65755%2014.75%206.5%2014.75H16.75V3.25H6.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.5%202.75C20.9142%202.75%2021.25%203.08579%2021.25%203.5V21.5C21.25%2021.9142%2020.9142%2022.25%2020.5%2022.25H6.5C4.42893%2022.25%202.75%2020.5711%202.75%2018.5C2.75%2016.4289%204.42893%2014.75%206.5%2014.75H17.4995C17.4996%2014.75%2017.5%2014.75%2017.5%2015.5C17.5%2016.25%2017.5001%2016.25%2017.5%2016.25H6.5C5.25736%2016.25%204.25%2017.2574%204.25%2018.5C4.25%2019.7426%205.25736%2020.75%206.5%2020.75H19.75V3.5C19.75%203.08579%2020.0858%202.75%2020.5%202.75ZM18.25%2015.5C18.25%2015.9142%2017.9142%2016.25%2017.5%2016.25V15.5L17.4995%2014.75C17.9137%2014.75%2018.25%2015.0858%2018.25%2015.5Z'%20fill='%233B5695'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.25%2018.5C6.25%2018.0858%206.58579%2017.75%207%2017.75H17C17.4142%2017.75%2017.75%2018.0858%2017.75%2018.5C17.75%2018.9142%2017.4142%2019.25%2017%2019.25H7C6.58579%2019.25%206.25%2018.9142%206.25%2018.5Z'%20fill='%233B5695'/%3e%3c/svg%3e", yn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.467%202.47236C2.75841%202.17799%203.23328%202.17559%203.52764%202.467L8.52765%207.41675C8.82201%207.70816%208.82441%208.18303%208.533%208.4774C8.24159%208.77176%207.76672%208.77416%207.47235%208.48275L2.47236%203.533C2.17799%203.24159%202.17559%202.76672%202.467%202.47236Z'%20fill='%233B5695'/%3e%3cpath%20d='M8.533%2015.4724C8.82441%2015.7667%208.82201%2016.2416%208.52765%2016.533L3.52765%2021.4828C3.23328%2021.7742%202.75841%2021.7718%202.467%2021.4774C2.17559%2021.183%202.17799%2020.7082%202.47236%2020.4167L7.47235%2015.467C7.76672%2015.1756%208.24159%2015.178%208.533%2015.4724Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.52%2015.4697C15.8129%2015.1768%2016.2877%2015.1768%2016.5806%2015.4697L21.5304%2020.4194C21.8233%2020.7123%2021.8233%2021.1872%2021.5304%2021.4801C21.2375%2021.773%2020.7626%2021.773%2020.4697%2021.4801L15.52%2016.5303C15.2271%2016.2374%2015.2271%2015.7626%2015.52%2015.4697Z'%20fill='%233B5695'/%3e%3cpath%20d='M21.4801%202.46967C21.773%202.76256%2021.773%203.23744%2021.4801%203.53033L16.5303%208.48008C16.2374%208.77297%2015.7626%208.77297%2015.4697%208.48008C15.1768%208.18719%2015.1768%207.71231%2015.4697%207.41942L20.4194%202.46967C20.7123%202.17678%2021.1872%202.17678%2021.4801%202.46967Z'%20fill='%233B5695'/%3e%3cpath%20d='M15.75%203C15.75%202.58579%2016.0858%202.25%2016.5%202.25H21C21.4142%202.25%2021.75%202.58579%2021.75%203V7.5C21.75%207.91421%2021.4142%208.25%2021%208.25C20.5858%208.25%2020.25%207.91421%2020.25%207.5V3.75H16.5C16.0858%203.75%2015.75%203.41421%2015.75%203Z'%20fill='%233B5695'/%3e%3cpath%20d='M21%2015.75C21.4142%2015.75%2021.75%2016.0858%2021.75%2016.5V21C21.75%2021.4142%2021.4142%2021.75%2021%2021.75H16.5C16.0858%2021.75%2015.75%2021.4142%2015.75%2021C15.75%2020.5858%2016.0858%2020.25%2016.5%2020.25H20.25V16.5C20.25%2016.0858%2020.5858%2015.75%2021%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M3%2015.75C3.41421%2015.75%203.75%2016.0858%203.75%2016.5V20.25H7.5C7.91421%2020.25%208.25%2020.5858%208.25%2021C8.25%2021.4142%207.91421%2021.75%207.5%2021.75H3C2.58579%2021.75%202.25%2021.4142%202.25%2021V16.5C2.25%2016.0858%202.58579%2015.75%203%2015.75Z'%20fill='%233B5695'/%3e%3cpath%20d='M2.25%203C2.25%202.58579%202.58579%202.25%203%202.25H7.5C7.91421%202.25%208.25%202.58579%208.25%203C8.25%203.41421%207.91421%203.75%207.5%203.75H3.75V7.5C3.75%207.91421%203.41421%208.25%203%208.25C2.58579%208.25%202.25%207.91421%202.25%207.5V3Z'%20fill='%233B5695'/%3e%3c/svg%3e", wn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.12596%201.63869C9.46935%201.54364%209.83221%201.70329%209.99413%202.02068C10.3672%202.75191%2011.1261%203.25%2012%203.25C12.8739%203.25%2013.6328%202.75191%2014.0059%202.02068C14.1678%201.70329%2014.5307%201.54364%2014.874%201.63869C16.5585%202.10497%2018.0759%202.9704%2019.3184%204.12574C19.5611%204.35137%2019.6269%204.70948%2019.4804%205.00666C19.3331%205.30535%2019.25%205.6419%2019.25%206C19.25%207.24263%2020.2574%208.25%2021.5%208.25L21.5314%208.24977C21.8629%208.24504%2022.1583%208.45859%2022.2576%208.77495C22.5777%209.79397%2022.75%2010.8776%2022.75%2012C22.75%2012.7408%2022.6749%2013.4649%2022.5318%2014.1648C22.4548%2014.5411%2022.1059%2014.7985%2021.7237%2014.7609C21.6504%2014.7537%2021.5758%2014.75%2021.5%2014.75C20.2574%2014.75%2019.25%2015.7574%2019.25%2017C19.25%2017.5531%2019.4486%2018.0579%2019.7793%2018.4498C20.027%2018.7434%2020.0128%2019.1767%2019.7465%2019.4535C18.4777%2020.7719%2016.8745%2021.7678%2015.0721%2022.3044C14.6807%2022.4209%2014.2681%2022.2029%2014.1437%2021.814C13.8535%2020.906%2013.0024%2020.25%2012%2020.25C10.9976%2020.25%2010.1465%2020.906%209.85629%2021.814C9.73195%2022.2029%209.31927%2022.4209%208.92789%2022.3044C7.12545%2021.7678%205.52229%2020.7719%204.25353%2019.4535C3.98716%2019.1767%203.97299%2018.7434%204.22072%2018.4498C4.55139%2018.0579%204.75%2017.5531%204.75%2017C4.75%2015.7574%203.74264%2014.75%202.5%2014.75C2.42423%2014.75%202.34963%2014.7537%202.27634%2014.7609C1.89406%2014.7985%201.54519%2014.5411%201.46821%2014.1648C1.32505%2013.4649%201.25%2012.7408%201.25%2012C1.25%2010.8776%201.42227%209.79398%201.74236%208.77494C1.84173%208.45859%202.13705%208.24504%202.4686%208.24977L2.5%208.25C3.74264%208.25%204.75%207.24263%204.75%206C4.75%205.6419%204.66689%205.30535%204.51962%205.00666C4.3731%204.70948%204.43894%204.35137%204.68159%204.12574C5.92411%202.9704%207.44153%202.10497%209.12596%201.63869ZM6.08277%204.88991C6.19152%205.24123%206.25%205.61424%206.25%206C6.25%207.88945%204.85261%209.45253%203.03493%209.71213C2.84898%2010.4432%202.75%2011.2096%202.75%2012C2.75%2012.4294%202.77921%2012.8516%202.83567%2013.2648C4.74948%2013.4346%206.25%2015.0421%206.25%2017C6.25%2017.6669%206.0754%2018.2941%205.76971%2018.8372C6.62645%2019.6184%207.63002%2020.2404%208.73362%2020.657C9.37706%2019.5189%2010.598%2018.75%2012%2018.75C13.402%2018.75%2014.6229%2019.5189%2015.2664%2020.657C16.37%2020.2404%2017.3735%2019.6184%2018.2303%2018.8372C17.9246%2018.2941%2017.75%2017.6669%2017.75%2017C17.75%2015.0421%2019.2505%2013.4346%2021.1643%2013.2648C21.2208%2012.8516%2021.25%2012.4294%2021.25%2012C21.25%2011.2096%2021.151%2010.4432%2020.9651%209.71213C19.1474%209.45252%2017.75%207.88945%2017.75%206C17.75%205.61424%2017.8085%205.24123%2017.9172%204.88991C17.0618%204.1771%2016.0762%203.61614%2015.0018%203.24775C14.3184%204.15897%2013.2287%204.75%2012%204.75C10.7713%204.75%209.68158%204.15897%208.99819%203.24775C7.92382%203.61614%206.93823%204.1771%206.08277%204.88991Z'%20fill='%233B5695'/%3e%3cpath%20d='M7.75%2012C7.75%209.65278%209.65279%207.75%2012%207.75C14.3472%207.75%2016.25%209.65278%2016.25%2012C16.25%2014.3472%2014.3472%2016.25%2012%2016.25C9.65279%2016.25%207.75%2014.3472%207.75%2012ZM12%209.25C10.4812%209.25%209.25%2010.4812%209.25%2012C9.25%2013.5188%2010.4812%2014.75%2012%2014.75C13.5188%2014.75%2014.75%2013.5188%2014.75%2012C14.75%2010.4812%2013.5188%209.25%2012%209.25Z'%20fill='%233B5695'/%3e%3c/svg%3e", Sn = { class: "flex justify-between" }, En = /* @__PURE__ */ m("div", { class: "flex flex-row" }, [
3
+ /* @__PURE__ */ m("img", {
4
+ src: _n,
5
5
  alt: "Vue logo",
6
6
  class: "w-24"
7
7
  })
8
8
  ], -1), On = { class: "flex" }, $n = {
9
9
  class: "tooltip tooltip-bottom tooltip-success 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%]",
10
10
  "data-tip": "Reader"
11
- }, Tn = /* @__PURE__ */ g("img", {
11
+ }, Tn = /* @__PURE__ */ m("img", {
12
12
  src: Cn,
13
13
  alt: "Reader",
14
14
  class: "w-7"
@@ -17,7 +17,7 @@ const xn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
17
17
  ], Ln = {
18
18
  class: "tooltip tooltip-bottom tooltip-success 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%] md:hidden",
19
19
  "data-tip": "Full screen"
20
- }, Pn = /* @__PURE__ */ g("img", {
20
+ }, Pn = /* @__PURE__ */ m("img", {
21
21
  src: yn,
22
22
  alt: "Full screen",
23
23
  class: "w-7"
@@ -26,7 +26,7 @@ const xn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
26
26
  ], Vn = {
27
27
  class: "tooltip tooltip-bottom tooltip-success 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%]",
28
28
  "data-tip": "Setting"
29
- }, kn = /* @__PURE__ */ g("img", {
29
+ }, kn = /* @__PURE__ */ m("img", {
30
30
  src: wn,
31
31
  alt: "Setting",
32
32
  class: "w-7"
@@ -39,21 +39,21 @@ const xn = "data:image/svg+xml,%3csvg%20width='96'%20height='32'%20viewBox='0%20
39
39
  const t = o;
40
40
  return (n, s) => (w(), $("div", Sn, [
41
41
  En,
42
- g("div", On, [
43
- g("div", $n, [
44
- g("button", {
42
+ m("div", On, [
43
+ m("div", $n, [
44
+ m("button", {
45
45
  class: "btn btn-ghost btn-circle",
46
46
  onClick: s[0] || (s[0] = (r) => t("reader"))
47
47
  }, In)
48
48
  ]),
49
- g("div", Ln, [
50
- g("button", {
49
+ m("div", Ln, [
50
+ m("button", {
51
51
  class: "btn btn-ghost btn-circle",
52
52
  onClick: s[1] || (s[1] = (r) => t("fullScreen"))
53
53
  }, Rn)
54
54
  ]),
55
- g("div", Vn, [
56
- g("button", {
55
+ m("div", Vn, [
56
+ m("button", {
57
57
  class: "btn btn-ghost btn-circle",
58
58
  onClick: s[2] || (s[2] = (r) => t("settings"))
59
59
  }, Mn)
@@ -69,18 +69,18 @@ function ye(e, o, t) {
69
69
  let u;
70
70
  t.key && ((r = t.debug) != null && r.call(t)) && (u = Date.now());
71
71
  const c = e();
72
- if (!(c.length !== n.length || c.some((C, h) => n[h] !== C)))
72
+ if (!(c.length !== n.length || c.some((x, _) => n[_] !== x)))
73
73
  return s;
74
74
  n = c;
75
- let _;
76
- if (t.key && ((i = t.debug) != null && i.call(t)) && (_ = Date.now()), s = o(...c), t.key && ((l = t.debug) != null && l.call(t))) {
77
- const C = Math.round((Date.now() - u) * 100) / 100, h = Math.round((Date.now() - _) * 100) / 100, v = h / 16, T = (N, I) => {
75
+ let g;
76
+ if (t.key && ((i = t.debug) != null && i.call(t)) && (g = Date.now()), s = o(...c), t.key && ((l = t.debug) != null && l.call(t))) {
77
+ const x = Math.round((Date.now() - u) * 100) / 100, _ = Math.round((Date.now() - g) * 100) / 100, v = _ / 16, T = (N, I) => {
78
78
  for (N = String(N); N.length < I; )
79
79
  N = " " + N;
80
80
  return N;
81
81
  };
82
82
  console.info(
83
- `%c⏱ ${T(h, 5)} /${T(C, 5)} ms`,
83
+ `%c⏱ ${T(_, 5)} /${T(x, 5)} ms`,
84
84
  `
85
85
  font-size: .6rem;
86
86
  font-weight: bold;
@@ -310,27 +310,27 @@ class Wn {
310
310
  this.pendingMeasuredCacheIndexes = [];
311
311
  const c = this.measurementsCache.slice(0, u);
312
312
  for (let p = u; p < t; p++) {
313
- let _ = (a = this.measurementsCache[p]) == null ? void 0 : a.measureElement;
314
- _ || (_ = (D) => {
315
- const m = r(p), P = this.elementsCache.get(m);
313
+ let g = (a = this.measurementsCache[p]) == null ? void 0 : a.measureElement;
314
+ g || (g = (D) => {
315
+ const h = r(p), P = this.elementsCache.get(h);
316
316
  if (!D) {
317
- P && (this.observer.unobserve(P), this.elementsCache.delete(m));
317
+ P && (this.observer.unobserve(P), this.elementsCache.delete(h));
318
318
  return;
319
319
  }
320
- P !== D && (P && this.observer.unobserve(P), this.observer.observe(D), this.elementsCache.set(m, D)), D.isConnected && this.resizeItem(
320
+ P !== D && (P && this.observer.unobserve(P), this.observer.observe(D), this.elementsCache.set(h, D)), D.isConnected && this.resizeItem(
321
321
  p,
322
322
  this.options.measureElement(D, void 0, this)
323
323
  );
324
324
  });
325
- const C = r(p), h = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), v = h ? h.end + this.options.gap : n + s, T = l.get(C), N = typeof T == "number" ? T : this.options.estimateSize(p), I = v + N, k = h ? h.lane : p % this.options.lanes;
325
+ const x = r(p), _ = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), v = _ ? _.end + this.options.gap : n + s, T = l.get(x), N = typeof T == "number" ? T : this.options.estimateSize(p), I = v + N, k = _ ? _.lane : p % this.options.lanes;
326
326
  c[p] = {
327
327
  index: p,
328
328
  start: v,
329
329
  size: N,
330
330
  end: I,
331
- key: C,
331
+ key: x,
332
332
  lane: k,
333
- measureElement: _
333
+ measureElement: g
334
334
  };
335
335
  }
336
336
  return this.measurementsCache = c, c;
@@ -769,7 +769,7 @@ function bo({ container: e, accept: o, walk: t, enabled: n }) {
769
769
  for (; l.nextNode(); ) t(l.currentNode);
770
770
  });
771
771
  }
772
- var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}), _o = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(_o || {});
772
+ var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}), xo = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(xo || {});
773
773
  function pe({ visible: e = !0, features: o = 0, ourProps: t, theirProps: n, ...s }) {
774
774
  var r;
775
775
  let i = At(n, t), l = Object.assign(s, { props: i });
@@ -788,20 +788,20 @@ function Je({ props: e, attrs: o, slots: t, slot: n, name: s }) {
788
788
  var r, i;
789
789
  let { as: l, ...a } = je(e, ["unmount", "static"]), u = (r = t.default) == null ? void 0 : r.call(t, n), c = {};
790
790
  if (n) {
791
- let p = !1, _ = [];
792
- for (let [C, h] of Object.entries(n)) typeof h == "boolean" && (p = !0), h === !0 && _.push(C);
793
- p && (c["data-headlessui-state"] = _.join(" "));
791
+ let p = !1, g = [];
792
+ for (let [x, _] of Object.entries(n)) typeof _ == "boolean" && (p = !0), _ === !0 && g.push(x);
793
+ p && (c["data-headlessui-state"] = g.join(" "));
794
794
  }
795
795
  if (l === "template") {
796
796
  if (u = Dt(u ?? []), Object.keys(a).length > 0 || Object.keys(o).length > 0) {
797
- let [p, ..._] = u ?? [];
798
- if (!Co(p) || _.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${s} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map((v) => v.trim()).filter((v, T, N) => N.indexOf(v) === T).sort((v, T) => v.localeCompare(T)).map((v) => ` - ${v}`).join(`
797
+ let [p, ...g] = u ?? [];
798
+ if (!Co(p) || g.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${s} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map((v) => v.trim()).filter((v, T, N) => N.indexOf(v) === T).sort((v, T) => v.localeCompare(T)).map((v) => ` - ${v}`).join(`
799
799
  `), "", "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((v) => ` - ${v}`).join(`
800
800
  `)].join(`
801
801
  `));
802
- let C = At((i = p.props) != null ? i : {}, a, c), h = $t(p, C, !0);
803
- for (let v in C) v.startsWith("on") && (h.props || (h.props = {}), h.props[v] = C[v]);
804
- return h;
802
+ let x = At((i = p.props) != null ? i : {}, a, c), _ = $t(p, x, !0);
803
+ for (let v in x) v.startsWith("on") && (_.props || (_.props = {}), _.props[v] = x[v]);
804
+ return _;
805
805
  }
806
806
  return Array.isArray(u) && u.length === 1 ? u[0] : u;
807
807
  }
@@ -825,7 +825,7 @@ function At(...e) {
825
825
  } });
826
826
  return o;
827
827
  }
828
- function xo(e) {
828
+ function _o(e) {
829
829
  let o = Object.assign({}, e);
830
830
  for (let t in o) o[t] === void 0 && delete o[t];
831
831
  return o;
@@ -950,12 +950,12 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
950
950
  }
951
951
  } }, s.value.getVirtualItems().map((l) => $t(o.default({ option: t.virtual.value.options[l.index], open: t.comboboxState.value === 0 })[0], { key: `${i.value}-${l.index}`, "data-index": l.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": l.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${l.start}px)`, overflowAnchor: "none" } })))];
952
952
  } }), Ro = ae({ 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: o, attrs: t, emit: n }) {
953
- let s = E(1), r = E(null), i = E(null), l = E(null), a = E(null), u = E({ static: !1, hold: !1 }), c = E([]), p = E(null), _ = E(2), C = E(!1);
954
- function h(d = (f) => f) {
953
+ let s = E(1), r = E(null), i = E(null), l = E(null), a = E(null), u = E({ static: !1, hold: !1 }), c = E([]), p = E(null), g = E(2), x = E(!1);
954
+ function _(d = (f) => f) {
955
955
  let f = p.value !== null ? c.value[p.value] : null, y = d(c.value.slice()), O = y.length > 0 && y[0].dataRef.order.value !== null ? y.sort((A, G) => A.dataRef.order.value - G.dataRef.order.value) : co(y, (A) => R(A.dataRef.domRef)), M = f ? O.indexOf(f) : null;
956
956
  return M === -1 && (M = null), { options: O, activeOptionIndex: M };
957
957
  }
958
- let v = S(() => e.multiple ? 1 : 0), T = S(() => e.nullable), [N, I] = Kn(S(() => e.modelValue), (d) => n("update:modelValue", d), S(() => e.defaultValue)), k = S(() => N.value === void 0 ? se(v.value, { 1: [], 0: void 0 }) : N.value), D = null, m = null;
958
+ let v = S(() => e.multiple ? 1 : 0), T = S(() => e.nullable), [N, I] = Kn(S(() => e.modelValue), (d) => n("update:modelValue", d), S(() => e.defaultValue)), k = S(() => N.value === void 0 ? se(v.value, { 1: [], 0: void 0 }) : N.value), D = null, h = null;
959
959
  function P(d) {
960
960
  return se(v.value, { 0() {
961
961
  return I == null ? void 0 : I(d);
@@ -964,9 +964,9 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
964
964
  return O === -1 ? f.push(y) : f.splice(O, 1), I == null ? void 0 : I(f);
965
965
  } });
966
966
  }
967
- let x = S(() => {
967
+ let C = S(() => {
968
968
  });
969
- F([x], ([d], [f]) => {
969
+ F([C], ([d], [f]) => {
970
970
  if (b.virtual.value && d && f && p.value !== null) {
971
971
  let y = d.indexOf(f[p.value]);
972
972
  y !== -1 ? p.value = y : p.value = null;
@@ -983,7 +983,7 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
983
983
  }, defaultValue: S(() => e.defaultValue), nullable: T, immediate: S(() => !1), virtual: S(() => null), inputRef: i, labelRef: r, buttonRef: l, optionsRef: a, disabled: S(() => e.disabled), options: c, change(d) {
984
984
  I(d);
985
985
  }, activeOptionIndex: S(() => {
986
- if (C.value && p.value === null && (b.virtual.value ? b.virtual.value.options.length > 0 : c.value.length > 0)) {
986
+ if (x.value && p.value === null && (b.virtual.value ? b.virtual.value.options.length > 0 : c.value.length > 0)) {
987
987
  if (b.virtual.value) {
988
988
  let f = b.virtual.value.options.findIndex((y) => {
989
989
  var O;
@@ -995,10 +995,10 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
995
995
  if (d !== -1) return d;
996
996
  }
997
997
  return p.value;
998
- }), activationTrigger: _, optionsPropsRef: u, closeCombobox() {
999
- C.value = !1, !e.disabled && s.value !== 1 && (s.value = 1, p.value = null);
998
+ }), activationTrigger: g, optionsPropsRef: u, closeCombobox() {
999
+ x.value = !1, !e.disabled && s.value !== 1 && (s.value = 1, p.value = null);
1000
1000
  }, openCombobox() {
1001
- if (C.value = !0, !e.disabled && s.value !== 0) {
1001
+ if (x.value = !0, !e.disabled && s.value !== 0) {
1002
1002
  if (b.value.value) {
1003
1003
  let d = b.calculateIndex(b.value.value);
1004
1004
  d !== -1 && (p.value = d);
@@ -1006,9 +1006,9 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
1006
1006
  s.value = 0;
1007
1007
  }
1008
1008
  }, setActivationTrigger(d) {
1009
- _.value = d;
1009
+ g.value = d;
1010
1010
  }, goToOption(d, f, y) {
1011
- C.value = !1, D !== null && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
1011
+ x.value = !1, D !== null && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
1012
1012
  if (e.disabled || a.value && !u.value.static && s.value === 1) return;
1013
1013
  if (b.virtual.value) {
1014
1014
  p.value = d === z.Specific ? f : gt({ focus: d }, { resolveItems: () => b.virtual.value.options, resolveActiveIndex: () => {
@@ -1019,16 +1019,16 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
1019
1019
  })) != null ? G : null;
1020
1020
  }, resolveDisabled: (A) => b.virtual.value.disabled(A), resolveId() {
1021
1021
  throw new Error("Function not implemented.");
1022
- } }), _.value = y ?? 2;
1022
+ } }), g.value = y ?? 2;
1023
1023
  return;
1024
1024
  }
1025
- let O = h();
1025
+ let O = _();
1026
1026
  if (O.activeOptionIndex === null) {
1027
1027
  let A = O.options.findIndex((G) => !G.dataRef.disabled);
1028
1028
  A !== -1 && (O.activeOptionIndex = A);
1029
1029
  }
1030
1030
  let M = d === z.Specific ? f : gt({ focus: d }, { resolveItems: () => O.options, resolveActiveIndex: () => O.activeOptionIndex, resolveId: (A) => A.id, resolveDisabled: (A) => A.dataRef.disabled });
1031
- p.value = M, _.value = y ?? 2, c.value = O.options;
1031
+ p.value = M, g.value = y ?? 2, c.value = O.options;
1032
1032
  });
1033
1033
  }, selectOption(d) {
1034
1034
  let f = c.value.find((O) => O.id === d);
@@ -1050,22 +1050,22 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
1050
1050
  c.value.push(y);
1051
1051
  return;
1052
1052
  }
1053
- m && cancelAnimationFrame(m);
1054
- let O = h((M) => (M.push(y), M));
1055
- p.value === null && b.isSelected(f.value.value) && (O.activeOptionIndex = O.options.indexOf(y)), c.value = O.options, p.value = O.activeOptionIndex, _.value = 2, O.options.some((M) => !R(M.dataRef.domRef)) && (m = requestAnimationFrame(() => {
1056
- let M = h();
1053
+ h && cancelAnimationFrame(h);
1054
+ let O = _((M) => (M.push(y), M));
1055
+ p.value === null && b.isSelected(f.value.value) && (O.activeOptionIndex = O.options.indexOf(y)), c.value = O.options, p.value = O.activeOptionIndex, g.value = 2, O.options.some((M) => !R(M.dataRef.domRef)) && (h = requestAnimationFrame(() => {
1056
+ let M = _();
1057
1057
  c.value = M.options, p.value = M.activeOptionIndex;
1058
1058
  }));
1059
1059
  }, unregisterOption(d, f) {
1060
- if (D !== null && cancelAnimationFrame(D), f && (C.value = !0), b.virtual.value) {
1060
+ if (D !== null && cancelAnimationFrame(D), f && (x.value = !0), b.virtual.value) {
1061
1061
  c.value = c.value.filter((O) => O.id !== d);
1062
1062
  return;
1063
1063
  }
1064
- let y = h((O) => {
1064
+ let y = _((O) => {
1065
1065
  let M = O.findIndex((A) => A.id === d);
1066
1066
  return M !== -1 && O.splice(M, 1), O;
1067
1067
  });
1068
- c.value = y.options, p.value = y.activeOptionIndex, _.value = 2;
1068
+ c.value = y.options, p.value = y.activeOptionIndex, g.value = 2;
1069
1069
  }, isSelected(d) {
1070
1070
  return se(v.value, { 0: () => b.compare(K(b.value.value), K(d)), 1: () => K(b.value.value).some((f) => b.compare(K(f), K(d))) });
1071
1071
  }, isActive(d) {
@@ -1090,7 +1090,7 @@ let Wt = Symbol("VirtualContext"), Po = ae({ name: "VirtualProvider", setup(e, {
1090
1090
  }), () => {
1091
1091
  var d, f, y;
1092
1092
  let { name: O, disabled: M, form: A, ...G } = e, q = { open: s.value === 0, disabled: M, activeIndex: b.activeOptionIndex.value, activeOption: b.activeOptionIndex.value === null ? null : b.virtual.value ? b.virtual.value.options[(d = b.activeOptionIndex.value) != null ? d : 0] : (y = (f = b.options.value[b.activeOptionIndex.value]) == null ? void 0 : f.dataRef.value) != null ? y : null, value: k.value };
1093
- return Ee(Z, [...O != null && k.value != null ? Ht({ [O]: k.value }).map(([j, fn]) => Ee(yo, xo({ features: Ft.Hidden, key: j, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, disabled: M, name: j, value: fn }))) : [], pe({ theirProps: { ...t, ...je(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: q, slots: o, attrs: t, name: "Combobox" })]);
1093
+ return Ee(Z, [...O != null && k.value != null ? Ht({ [O]: k.value }).map(([j, fn]) => Ee(yo, _o({ features: Ft.Hidden, key: j, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, disabled: M, name: j, value: fn }))) : [], pe({ theirProps: { ...t, ...je(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: q, slots: o, attrs: t, name: "Combobox" })]);
1094
1094
  };
1095
1095
  } });
1096
1096
  ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
@@ -1143,8 +1143,8 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1143
1143
  let u = mo(S(() => ({ as: e.as, type: o.type })), i.buttonRef);
1144
1144
  return () => {
1145
1145
  var c, p;
1146
- let _ = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...C } = e, h = { ref: i.buttonRef, id: r, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = R(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(p = R(i.labelRef)) == null ? void 0 : p.id, r].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick: l };
1147
- return pe({ ourProps: h, theirProps: C, slot: _, attrs: o, slots: t, name: "ComboboxButton" });
1146
+ let g = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...x } = e, _ = { ref: i.buttonRef, id: r, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = R(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(p = R(i.labelRef)) == null ? void 0 : p.id, r].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick: l };
1147
+ return pe({ ourProps: _, theirProps: x, slot: g, attrs: o, slots: t, name: "ComboboxButton" });
1148
1148
  };
1149
1149
  } }), ko = ae({ 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: o, attrs: t, slots: n, expose: s }) {
1150
1150
  var r;
@@ -1152,77 +1152,77 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1152
1152
  s({ el: l.inputRef, $el: l.inputRef });
1153
1153
  function c() {
1154
1154
  l.change(null);
1155
- let m = R(l.optionsRef);
1156
- m && (m.scrollTop = 0), l.goToOption(z.Nothing);
1155
+ let h = R(l.optionsRef);
1156
+ h && (h.scrollTop = 0), l.goToOption(z.Nothing);
1157
1157
  }
1158
1158
  let p = S(() => {
1159
- var m;
1159
+ var h;
1160
1160
  let P = l.value.value;
1161
- return R(l.inputRef) ? typeof e.displayValue < "u" && P !== void 0 ? (m = e.displayValue(P)) != null ? m : "" : typeof P == "string" ? P : "" : "";
1161
+ return R(l.inputRef) ? typeof e.displayValue < "u" && P !== void 0 ? (h = e.displayValue(P)) != null ? h : "" : typeof P == "string" ? P : "" : "";
1162
1162
  });
1163
1163
  Ce(() => {
1164
- F([p, l.comboboxState, a], ([m, P], [x, b]) => {
1164
+ F([p, l.comboboxState, a], ([h, P], [C, b]) => {
1165
1165
  if (u.value) return;
1166
1166
  let L = R(l.inputRef);
1167
- L && ((b === 0 && P === 1 || m !== x) && (L.value = m), requestAnimationFrame(() => {
1167
+ L && ((b === 0 && P === 1 || h !== C) && (L.value = h), requestAnimationFrame(() => {
1168
1168
  var d;
1169
1169
  if (u.value || !L || ((d = a.value) == null ? void 0 : d.activeElement) !== L) return;
1170
1170
  let { selectionStart: f, selectionEnd: y } = L;
1171
1171
  Math.abs((y ?? 0) - (f ?? 0)) === 0 && f === 0 && L.setSelectionRange(L.value.length, L.value.length);
1172
1172
  }));
1173
- }, { immediate: !0 }), F([l.comboboxState], ([m], [P]) => {
1174
- if (m === 0 && P === 1) {
1173
+ }, { immediate: !0 }), F([l.comboboxState], ([h], [P]) => {
1174
+ if (h === 0 && P === 1) {
1175
1175
  if (u.value) return;
1176
- let x = R(l.inputRef);
1177
- if (!x) return;
1178
- let b = x.value, { selectionStart: L, selectionEnd: d, selectionDirection: f } = x;
1179
- x.value = "", x.value = b, f !== null ? x.setSelectionRange(L, d, f) : x.setSelectionRange(L, d);
1176
+ let C = R(l.inputRef);
1177
+ if (!C) return;
1178
+ let b = C.value, { selectionStart: L, selectionEnd: d, selectionDirection: f } = C;
1179
+ C.value = "", C.value = b, f !== null ? C.setSelectionRange(L, d, f) : C.setSelectionRange(L, d);
1180
1180
  }
1181
1181
  });
1182
1182
  });
1183
- let _ = E(!1);
1184
- function C() {
1185
- _.value = !0;
1183
+ let g = E(!1);
1184
+ function x() {
1185
+ g.value = !0;
1186
1186
  }
1187
- function h() {
1187
+ function _() {
1188
1188
  De().nextFrame(() => {
1189
- _.value = !1;
1189
+ g.value = !1;
1190
1190
  });
1191
1191
  }
1192
1192
  let v = Xn();
1193
- function T(m) {
1193
+ function T(h) {
1194
1194
  switch (u.value = !0, v(() => {
1195
1195
  u.value = !1;
1196
- }), m.key) {
1196
+ }), h.key) {
1197
1197
  case W.Enter:
1198
- if (u.value = !1, l.comboboxState.value !== 0 || _.value) return;
1199
- if (m.preventDefault(), m.stopPropagation(), l.activeOptionIndex.value === null) {
1198
+ if (u.value = !1, l.comboboxState.value !== 0 || g.value) return;
1199
+ if (h.preventDefault(), h.stopPropagation(), l.activeOptionIndex.value === null) {
1200
1200
  l.closeCombobox();
1201
1201
  return;
1202
1202
  }
1203
1203
  l.selectActiveOption(), l.mode.value === 0 && l.closeCombobox();
1204
1204
  break;
1205
1205
  case W.ArrowDown:
1206
- return u.value = !1, m.preventDefault(), m.stopPropagation(), se(l.comboboxState.value, { 0: () => l.goToOption(z.Next), 1: () => l.openCombobox() });
1206
+ return u.value = !1, h.preventDefault(), h.stopPropagation(), se(l.comboboxState.value, { 0: () => l.goToOption(z.Next), 1: () => l.openCombobox() });
1207
1207
  case W.ArrowUp:
1208
- return u.value = !1, m.preventDefault(), m.stopPropagation(), se(l.comboboxState.value, { 0: () => l.goToOption(z.Previous), 1: () => {
1208
+ return u.value = !1, h.preventDefault(), h.stopPropagation(), se(l.comboboxState.value, { 0: () => l.goToOption(z.Previous), 1: () => {
1209
1209
  l.openCombobox(), Q(() => {
1210
1210
  l.value.value || l.goToOption(z.Last);
1211
1211
  });
1212
1212
  } });
1213
1213
  case W.Home:
1214
- if (m.shiftKey) break;
1215
- return u.value = !1, m.preventDefault(), m.stopPropagation(), l.goToOption(z.First);
1214
+ if (h.shiftKey) break;
1215
+ return u.value = !1, h.preventDefault(), h.stopPropagation(), l.goToOption(z.First);
1216
1216
  case W.PageUp:
1217
- return u.value = !1, m.preventDefault(), m.stopPropagation(), l.goToOption(z.First);
1217
+ return u.value = !1, h.preventDefault(), h.stopPropagation(), l.goToOption(z.First);
1218
1218
  case W.End:
1219
- if (m.shiftKey) break;
1220
- return u.value = !1, m.preventDefault(), m.stopPropagation(), l.goToOption(z.Last);
1219
+ if (h.shiftKey) break;
1220
+ return u.value = !1, h.preventDefault(), h.stopPropagation(), l.goToOption(z.Last);
1221
1221
  case W.PageDown:
1222
- return u.value = !1, m.preventDefault(), m.stopPropagation(), l.goToOption(z.Last);
1222
+ return u.value = !1, h.preventDefault(), h.stopPropagation(), l.goToOption(z.Last);
1223
1223
  case W.Escape:
1224
1224
  if (u.value = !1, l.comboboxState.value !== 0) return;
1225
- m.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && m.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && c(), l.closeCombobox();
1225
+ h.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && h.stopPropagation(), l.nullable.value && l.mode.value === 0 && l.value.value === null && c(), l.closeCombobox();
1226
1226
  break;
1227
1227
  case W.Tab:
1228
1228
  if (u.value = !1, l.comboboxState.value !== 0) return;
@@ -1230,28 +1230,28 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1230
1230
  break;
1231
1231
  }
1232
1232
  }
1233
- function N(m) {
1234
- o("change", m), l.nullable.value && l.mode.value === 0 && m.target.value === "" && c(), l.openCombobox();
1233
+ function N(h) {
1234
+ o("change", h), l.nullable.value && l.mode.value === 0 && h.target.value === "" && c(), l.openCombobox();
1235
1235
  }
1236
- function I(m) {
1237
- var P, x, b;
1238
- let L = (P = m.relatedTarget) != null ? P : ce.find((d) => d !== m.currentTarget);
1239
- if (u.value = !1, !((x = R(l.optionsRef)) != null && x.contains(L)) && !((b = R(l.buttonRef)) != null && b.contains(L)) && l.comboboxState.value === 0) return m.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? c() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
1236
+ function I(h) {
1237
+ var P, C, b;
1238
+ let L = (P = h.relatedTarget) != null ? P : ce.find((d) => d !== h.currentTarget);
1239
+ if (u.value = !1, !((C = R(l.optionsRef)) != null && C.contains(L)) && !((b = R(l.buttonRef)) != null && b.contains(L)) && l.comboboxState.value === 0) return h.preventDefault(), l.mode.value === 0 && (l.nullable.value && l.value.value === null ? c() : l.activationTrigger.value !== 1 && l.selectActiveOption()), l.closeCombobox();
1240
1240
  }
1241
- function k(m) {
1242
- var P, x, b;
1243
- let L = (P = m.relatedTarget) != null ? P : ce.find((d) => d !== m.currentTarget);
1244
- (x = R(l.buttonRef)) != null && x.contains(L) || (b = R(l.optionsRef)) != null && b.contains(L) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), De().nextFrame(() => {
1241
+ function k(h) {
1242
+ var P, C, b;
1243
+ let L = (P = h.relatedTarget) != null ? P : ce.find((d) => d !== h.currentTarget);
1244
+ (C = R(l.buttonRef)) != null && C.contains(L) || (b = R(l.optionsRef)) != null && b.contains(L) || l.disabled.value || l.immediate.value && l.comboboxState.value !== 0 && (l.openCombobox(), De().nextFrame(() => {
1245
1245
  l.setActivationTrigger(1);
1246
1246
  }));
1247
1247
  }
1248
1248
  let D = S(() => {
1249
- var m, P, x, b;
1250
- return (b = (x = (P = e.defaultValue) != null ? P : l.defaultValue.value !== void 0 ? (m = e.displayValue) == null ? void 0 : m.call(e, l.defaultValue.value) : null) != null ? x : l.defaultValue.value) != null ? b : "";
1249
+ var h, P, C, b;
1250
+ return (b = (C = (P = e.defaultValue) != null ? P : l.defaultValue.value !== void 0 ? (h = e.displayValue) == null ? void 0 : h.call(e, l.defaultValue.value) : null) != null ? C : l.defaultValue.value) != null ? b : "";
1251
1251
  });
1252
1252
  return () => {
1253
- var m, P, x, b, L, d, f;
1254
- let y = { open: l.comboboxState.value === 0 }, { displayValue: O, onChange: M, ...A } = e, G = { "aria-controls": (m = l.optionsRef.value) == null ? void 0 : m.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (P = l.options.value.find((q) => !l.virtual.value.disabled(q.dataRef.value) && l.compare(q.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : P.id : (x = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : x.id, "aria-labelledby": (d = (b = R(l.labelRef)) == null ? void 0 : b.id) != null ? d : (L = R(l.buttonRef)) == null ? void 0 : L.id, "aria-autocomplete": "list", id: i, onCompositionstart: C, onCompositionend: h, onKeydown: T, onInput: N, onFocus: k, onBlur: I, role: "combobox", type: (f = t.type) != null ? f : "text", tabIndex: 0, ref: l.inputRef, defaultValue: D.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
1253
+ var h, P, C, b, L, d, f;
1254
+ let y = { open: l.comboboxState.value === 0 }, { displayValue: O, onChange: M, ...A } = e, G = { "aria-controls": (h = l.optionsRef.value) == null ? void 0 : h.id, "aria-expanded": l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null ? void 0 : l.virtual.value ? (P = l.options.value.find((q) => !l.virtual.value.disabled(q.dataRef.value) && l.compare(q.dataRef.value, l.virtual.value.options[l.activeOptionIndex.value]))) == null ? void 0 : P.id : (C = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : C.id, "aria-labelledby": (d = (b = R(l.labelRef)) == null ? void 0 : b.id) != null ? d : (L = R(l.buttonRef)) == null ? void 0 : L.id, "aria-autocomplete": "list", id: i, onCompositionstart: x, onCompositionend: _, onKeydown: T, onInput: N, onFocus: k, onBlur: I, role: "combobox", type: (f = t.type) != null ? f : "text", tabIndex: 0, ref: l.inputRef, defaultValue: D.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
1255
1255
  return pe({ ourProps: G, theirProps: A, slot: y, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
1256
1256
  };
1257
1257
  } }), Mo = ae({ 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: o, slots: t, expose: n }) {
@@ -1272,8 +1272,8 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1272
1272
  }
1273
1273
  return () => {
1274
1274
  var u, c, p;
1275
- let _ = { open: s.comboboxState.value === 0 }, C = { "aria-labelledby": (p = (u = R(s.labelRef)) == null ? void 0 : u.id) != null ? p : (c = R(s.buttonRef)) == null ? void 0 : c.id, id: r, ref: s.optionsRef, role: "listbox", "aria-multiselectable": s.mode.value === 1 ? !0 : void 0, onMousedown: a }, h = je(e, ["hold"]);
1276
- return pe({ ourProps: C, theirProps: h, slot: _, attrs: o, slots: s.virtual.value && s.comboboxState.value === 0 ? { ...t, default: () => [Ee(Po, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: l.value, name: "ComboboxOptions" });
1275
+ let g = { open: s.comboboxState.value === 0 }, x = { "aria-labelledby": (p = (u = R(s.labelRef)) == null ? void 0 : u.id) != null ? p : (c = R(s.buttonRef)) == null ? void 0 : c.id, id: r, ref: s.optionsRef, role: "listbox", "aria-multiselectable": s.mode.value === 1 ? !0 : void 0, onMousedown: a }, _ = je(e, ["hold"]);
1276
+ return pe({ ourProps: x, theirProps: _, slot: g, attrs: o, slots: s.virtual.value && s.comboboxState.value === 0 ? { ...t, default: () => [Ee(Po, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: l.value, name: "ComboboxOptions" });
1277
1277
  };
1278
1278
  } }), No = ae({ 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: o, attrs: t, expose: n }) {
1279
1279
  let s = ve("ComboboxOption"), r = `headlessui-combobox-option-${Le()}`, i = E(null), l = S(() => e.disabled);
@@ -1291,35 +1291,35 @@ let Vo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], def
1291
1291
  return (k = (I = R(i)) == null ? void 0 : I.scrollIntoView) == null ? void 0 : k.call(I, { block: "nearest" });
1292
1292
  }));
1293
1293
  });
1294
- function _(I) {
1294
+ function g(I) {
1295
1295
  I.preventDefault(), I.button === Bt.Left && (l.value || (s.selectOption(r), Nt() || requestAnimationFrame(() => {
1296
1296
  var k;
1297
1297
  return (k = R(s.inputRef)) == null ? void 0 : k.focus({ preventScroll: !0 });
1298
1298
  }), s.mode.value === 0 && s.closeCombobox()));
1299
1299
  }
1300
- function C() {
1300
+ function x() {
1301
1301
  var I;
1302
1302
  if (e.disabled || (I = s.virtual.value) != null && I.disabled(e.value)) return s.goToOption(z.Nothing);
1303
1303
  let k = s.calculateIndex(e.value);
1304
1304
  s.goToOption(z.Specific, k);
1305
1305
  }
1306
- let h = go();
1306
+ let _ = go();
1307
1307
  function v(I) {
1308
- h.update(I);
1308
+ _.update(I);
1309
1309
  }
1310
1310
  function T(I) {
1311
1311
  var k;
1312
- if (!h.wasMoved(I) || e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value) return;
1312
+ if (!_.wasMoved(I) || e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value) return;
1313
1313
  let D = s.calculateIndex(e.value);
1314
1314
  s.goToOption(z.Specific, D, 0);
1315
1315
  }
1316
1316
  function N(I) {
1317
1317
  var k;
1318
- h.wasMoved(I) && (e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value && (s.optionsPropsRef.value.hold || s.goToOption(z.Nothing)));
1318
+ _.wasMoved(I) && (e.disabled || (k = s.virtual.value) != null && k.disabled(e.value) || a.value && (s.optionsPropsRef.value.hold || s.goToOption(z.Nothing)));
1319
1319
  }
1320
1320
  return () => {
1321
- let { disabled: I } = e, k = { active: a.value, selected: u.value, disabled: I }, D = { id: r, ref: i, role: "option", tabIndex: I === !0 ? void 0 : -1, "aria-disabled": I === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: _, onFocus: C, onPointerenter: v, onMouseenter: v, onPointermove: T, onMousemove: T, onPointerleave: N, onMouseleave: N }, m = je(e, ["order", "value"]);
1322
- return pe({ ourProps: D, theirProps: m, slot: k, attrs: t, slots: o, name: "ComboboxOption" });
1321
+ let { disabled: I } = e, k = { active: a.value, selected: u.value, disabled: I }, D = { id: r, ref: i, role: "option", tabIndex: I === !0 ? void 0 : -1, "aria-disabled": I === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: g, onFocus: x, onPointerenter: v, onMouseenter: v, onPointermove: T, onMousemove: T, onPointerleave: N, onMouseleave: N }, h = je(e, ["order", "value"]);
1322
+ return pe({ ourProps: D, theirProps: h, slot: k, attrs: t, slots: o, name: "ComboboxOption" });
1323
1323
  };
1324
1324
  } });
1325
1325
  function Do(e, o) {
@@ -1330,7 +1330,7 @@ function Do(e, o) {
1330
1330
  "aria-hidden": "true",
1331
1331
  "data-slot": "icon"
1332
1332
  }, [
1333
- g("path", {
1333
+ m("path", {
1334
1334
  "fill-rule": "evenodd",
1335
1335
  d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
1336
1336
  "clip-rule": "evenodd"
@@ -1345,7 +1345,7 @@ function Ao(e, o) {
1345
1345
  "aria-hidden": "true",
1346
1346
  "data-slot": "icon"
1347
1347
  }, [
1348
- g("path", {
1348
+ m("path", {
1349
1349
  "fill-rule": "evenodd",
1350
1350
  d: "M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",
1351
1351
  "clip-rule": "evenodd"
@@ -1360,7 +1360,7 @@ function Fo(e, o) {
1360
1360
  "aria-hidden": "true",
1361
1361
  "data-slot": "icon"
1362
1362
  }, [
1363
- g("path", {
1363
+ m("path", {
1364
1364
  "fill-rule": "evenodd",
1365
1365
  d: "M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",
1366
1366
  "clip-rule": "evenodd"
@@ -1985,7 +1985,7 @@ function as(e, o) {
1985
1985
  });
1986
1986
  }
1987
1987
  let sn = 0, re;
1988
- function _t(e, o, t) {
1988
+ function xt(e, o, t) {
1989
1989
  const n = o.reduce((s, r) => (s[r] = K(e)[r], s), {});
1990
1990
  for (const s in n)
1991
1991
  e[s] = function() {
@@ -2005,10 +2005,10 @@ function _t(e, o, t) {
2005
2005
  function us({ app: e, store: o, options: t }) {
2006
2006
  if (o.$id.startsWith("__hot:"))
2007
2007
  return;
2008
- o._isOptionsAPI = !!t.state, _t(o, Object.keys(t.actions), o._isOptionsAPI);
2008
+ o._isOptionsAPI = !!t.state, xt(o, Object.keys(t.actions), o._isOptionsAPI);
2009
2009
  const n = o._hotUpdate;
2010
2010
  K(o)._hotUpdate = function(s) {
2011
- n.apply(this, arguments), _t(o, Object.keys(s._hmrPayload.actions), !!o._isOptionsAPI);
2011
+ n.apply(this, arguments), xt(o, Object.keys(s._hmrPayload.actions), !!o._isOptionsAPI);
2012
2012
  }, as(
2013
2013
  e,
2014
2014
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
@@ -2041,13 +2041,13 @@ function ln(e, o) {
2041
2041
  if (!(t in e))
2042
2042
  continue;
2043
2043
  const s = e[t];
2044
- fe(s) && fe(n) && !_e(n) && !st(n) ? e[t] = ln(s, n) : e[t] = n;
2044
+ fe(s) && fe(n) && !xe(n) && !st(n) ? e[t] = ln(s, n) : e[t] = n;
2045
2045
  }
2046
2046
  return e;
2047
2047
  }
2048
2048
  const rn = () => {
2049
2049
  };
2050
- function xt(e, o, t, n = rn) {
2050
+ function _t(e, o, t, n = rn) {
2051
2051
  e.push(o);
2052
2052
  const s = () => {
2053
2053
  const r = e.indexOf(o);
@@ -2067,7 +2067,7 @@ function Xe(e, o) {
2067
2067
  if (!o.hasOwnProperty(t))
2068
2068
  continue;
2069
2069
  const n = o[t], s = e[t];
2070
- fe(s) && fe(n) && e.hasOwnProperty(t) && !_e(n) && !st(n) ? e[t] = Xe(s, n) : e[t] = n;
2070
+ fe(s) && fe(n) && e.hasOwnProperty(t) && !xe(n) && !st(n) ? e[t] = Xe(s, n) : e[t] = n;
2071
2071
  }
2072
2072
  return e;
2073
2073
  }
@@ -2080,7 +2080,7 @@ function ps(e) {
2080
2080
  }
2081
2081
  const { assign: J } = Object;
2082
2082
  function Ct(e) {
2083
- return !!(_e(e) && e.effect);
2083
+ return !!(xe(e) && e.effect);
2084
2084
  }
2085
2085
  function yt(e, o, t, n) {
2086
2086
  const { state: s, actions: r, getters: i } = o, l = t.state.value[e];
@@ -2091,10 +2091,10 @@ function yt(e, o, t, n) {
2091
2091
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
2092
2092
  ct(E(s ? s() : {}).value)
2093
2093
  ) : ct(t.state.value[e]);
2094
- return J(c, r, Object.keys(i || {}).reduce((p, _) => (process.env.NODE_ENV !== "production" && _ in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${_}" in store "${e}".`), p[_] = de(S(() => {
2094
+ return J(c, r, Object.keys(i || {}).reduce((p, g) => (process.env.NODE_ENV !== "production" && g in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${g}" in store "${e}".`), p[g] = de(S(() => {
2095
2095
  Te(t);
2096
- const C = t._s.get(e);
2097
- return i[_].call(C, C);
2096
+ const x = t._s.get(e);
2097
+ return i[g].call(x, x);
2098
2098
  })), p), {}));
2099
2099
  }
2100
2100
  return a = et(e, u, o, t, n, !0), a;
@@ -2109,24 +2109,24 @@ function et(e, o, t = {}, n, s, r) {
2109
2109
  // flush: 'post',
2110
2110
  };
2111
2111
  process.env.NODE_ENV !== "production" && !Gt && (a.onTrigger = (d) => {
2112
- u ? C = d : u == !1 && !x._hotUpdating && (Array.isArray(C) ? C.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2112
+ u ? x = d : u == !1 && !C._hotUpdating && (Array.isArray(x) ? x.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2113
2113
  });
2114
- let u, c, p = [], _ = [], C;
2115
- const h = n.state.value[e];
2116
- !r && !h && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
2114
+ let u, c, p = [], g = [], x;
2115
+ const _ = n.state.value[e];
2116
+ !r && !_ && (process.env.NODE_ENV === "production" || !s) && (n.state.value[e] = {});
2117
2117
  const v = E({});
2118
2118
  let T;
2119
2119
  function N(d) {
2120
2120
  let f;
2121
- u = c = !1, process.env.NODE_ENV !== "production" && (C = []), typeof d == "function" ? (d(n.state.value[e]), f = {
2121
+ u = c = !1, process.env.NODE_ENV !== "production" && (x = []), typeof d == "function" ? (d(n.state.value[e]), f = {
2122
2122
  type: ne.patchFunction,
2123
2123
  storeId: e,
2124
- events: C
2124
+ events: x
2125
2125
  }) : (Xe(n.state.value[e], d), f = {
2126
2126
  type: ne.patchObject,
2127
2127
  payload: d,
2128
2128
  storeId: e,
2129
- events: C
2129
+ events: x
2130
2130
  });
2131
2131
  const y = T = Symbol();
2132
2132
  Q().then(() => {
@@ -2145,7 +2145,7 @@ function et(e, o, t = {}, n, s, r) {
2145
2145
  } : rn
2146
2146
  );
2147
2147
  function k() {
2148
- i.stop(), p = [], _ = [], n._s.delete(e);
2148
+ i.stop(), p = [], g = [], n._s.delete(e);
2149
2149
  }
2150
2150
  function D(d, f) {
2151
2151
  return function() {
@@ -2157,23 +2157,23 @@ function et(e, o, t = {}, n, s, r) {
2157
2157
  function G(j) {
2158
2158
  M.push(j);
2159
2159
  }
2160
- ge(_, {
2160
+ ge(g, {
2161
2161
  args: y,
2162
2162
  name: d,
2163
- store: x,
2163
+ store: C,
2164
2164
  after: A,
2165
2165
  onError: G
2166
2166
  });
2167
2167
  let q;
2168
2168
  try {
2169
- q = f.apply(this && this.$id === e ? this : x, y);
2169
+ q = f.apply(this && this.$id === e ? this : C, y);
2170
2170
  } catch (j) {
2171
2171
  throw ge(M, j), j;
2172
2172
  }
2173
2173
  return q instanceof Promise ? q.then((j) => (ge(O, j), j)).catch((j) => (ge(M, j), Promise.reject(j))) : (ge(O, q), q);
2174
2174
  };
2175
2175
  }
2176
- const m = /* @__PURE__ */ de({
2176
+ const h = /* @__PURE__ */ de({
2177
2177
  actions: {},
2178
2178
  getters: {},
2179
2179
  state: [],
@@ -2182,23 +2182,23 @@ function et(e, o, t = {}, n, s, r) {
2182
2182
  _p: n,
2183
2183
  // _s: scope,
2184
2184
  $id: e,
2185
- $onAction: xt.bind(null, _),
2185
+ $onAction: _t.bind(null, g),
2186
2186
  $patch: N,
2187
2187
  $reset: I,
2188
2188
  $subscribe(d, f = {}) {
2189
- const y = xt(p, d, f.detached, () => O()), O = i.run(() => F(() => n.state.value[e], (M) => {
2189
+ const y = _t(p, d, f.detached, () => O()), O = i.run(() => F(() => n.state.value[e], (M) => {
2190
2190
  (f.flush === "sync" ? c : u) && d({
2191
2191
  storeId: e,
2192
2192
  type: ne.direct,
2193
- events: C
2193
+ events: x
2194
2194
  }, M);
2195
2195
  }, J({}, a, f)));
2196
2196
  return y;
2197
2197
  },
2198
2198
  $dispose: k
2199
- }, x = Tt(process.env.NODE_ENV !== "production" || Se ? J(
2199
+ }, C = Tt(process.env.NODE_ENV !== "production" || Se ? J(
2200
2200
  {
2201
- _hmrPayload: m,
2201
+ _hmrPayload: h,
2202
2202
  _customProperties: de(/* @__PURE__ */ new Set())
2203
2203
  // devtools custom properties
2204
2204
  },
@@ -2206,22 +2206,22 @@ function et(e, o, t = {}, n, s, r) {
2206
2206
  // must be added later
2207
2207
  // setupStore
2208
2208
  ) : P);
2209
- n._s.set(e, x);
2209
+ n._s.set(e, C);
2210
2210
  const L = (n._a && n._a.runWithContext || ds)(() => n._e.run(() => (i = It()).run(o)));
2211
2211
  for (const d in L) {
2212
2212
  const f = L[d];
2213
- if (_e(f) && !Ct(f) || st(f))
2214
- process.env.NODE_ENV !== "production" && s ? Ve(v.value, d, Ge(L, d)) : r || (h && ps(f) && (_e(f) ? f.value = h[d] : Xe(f, h[d])), n.state.value[e][d] = f), process.env.NODE_ENV !== "production" && m.state.push(d);
2213
+ if (xe(f) && !Ct(f) || st(f))
2214
+ process.env.NODE_ENV !== "production" && s ? Ve(v.value, d, Ge(L, d)) : r || (_ && ps(f) && (xe(f) ? f.value = _[d] : Xe(f, _[d])), n.state.value[e][d] = f), process.env.NODE_ENV !== "production" && h.state.push(d);
2215
2215
  else if (typeof f == "function") {
2216
2216
  const y = process.env.NODE_ENV !== "production" && s ? f : D(d, f);
2217
- L[d] = y, process.env.NODE_ENV !== "production" && (m.actions[d] = f), l.actions[d] = f;
2218
- } else process.env.NODE_ENV !== "production" && Ct(f) && (m.getters[d] = r ? (
2217
+ L[d] = y, process.env.NODE_ENV !== "production" && (h.actions[d] = f), l.actions[d] = f;
2218
+ } else process.env.NODE_ENV !== "production" && Ct(f) && (h.getters[d] = r ? (
2219
2219
  // @ts-expect-error
2220
2220
  t.getters[d]
2221
2221
  ) : f, Be && (L._getters || // @ts-expect-error: same
2222
2222
  (L._getters = de([]))).push(d));
2223
2223
  }
2224
- if (J(x, L), J(K(x), L), Object.defineProperty(x, "$state", {
2224
+ if (J(C, L), J(K(C), L), Object.defineProperty(C, "$state", {
2225
2225
  get: () => process.env.NODE_ENV !== "production" && s ? v.value : n.state.value[e],
2226
2226
  set: (d) => {
2227
2227
  if (process.env.NODE_ENV !== "production" && s)
@@ -2230,34 +2230,34 @@ function et(e, o, t = {}, n, s, r) {
2230
2230
  J(f, d);
2231
2231
  });
2232
2232
  }
2233
- }), process.env.NODE_ENV !== "production" && (x._hotUpdate = de((d) => {
2234
- x._hotUpdating = !0, d._hmrPayload.state.forEach((f) => {
2235
- if (f in x.$state) {
2236
- const y = d.$state[f], O = x.$state[f];
2233
+ }), process.env.NODE_ENV !== "production" && (C._hotUpdate = de((d) => {
2234
+ C._hotUpdating = !0, d._hmrPayload.state.forEach((f) => {
2235
+ if (f in C.$state) {
2236
+ const y = d.$state[f], O = C.$state[f];
2237
2237
  typeof y == "object" && fe(y) && fe(O) ? ln(y, O) : d.$state[f] = O;
2238
2238
  }
2239
- Ve(x, f, Ge(d.$state, f));
2240
- }), Object.keys(x.$state).forEach((f) => {
2241
- f in d.$state || Ke(x, f);
2239
+ Ve(C, f, Ge(d.$state, f));
2240
+ }), Object.keys(C.$state).forEach((f) => {
2241
+ f in d.$state || Ke(C, f);
2242
2242
  }), u = !1, c = !1, n.state.value[e] = Ge(d._hmrPayload, "hotState"), c = !0, Q().then(() => {
2243
2243
  u = !0;
2244
2244
  });
2245
2245
  for (const f in d._hmrPayload.actions) {
2246
2246
  const y = d[f];
2247
- Ve(x, f, D(f, y));
2247
+ Ve(C, f, D(f, y));
2248
2248
  }
2249
2249
  for (const f in d._hmrPayload.getters) {
2250
2250
  const y = d._hmrPayload.getters[f], O = r ? (
2251
2251
  // special handling of options api
2252
- S(() => (Te(n), y.call(x, x)))
2252
+ S(() => (Te(n), y.call(C, C)))
2253
2253
  ) : y;
2254
- Ve(x, f, O);
2254
+ Ve(C, f, O);
2255
2255
  }
2256
- Object.keys(x._hmrPayload.getters).forEach((f) => {
2257
- f in d._hmrPayload.getters || Ke(x, f);
2258
- }), Object.keys(x._hmrPayload.actions).forEach((f) => {
2259
- f in d._hmrPayload.actions || Ke(x, f);
2260
- }), x._hmrPayload = d._hmrPayload, x._getters = d._getters, x._hotUpdating = !1;
2256
+ Object.keys(C._hmrPayload.getters).forEach((f) => {
2257
+ f in d._hmrPayload.getters || Ke(C, f);
2258
+ }), Object.keys(C._hmrPayload.actions).forEach((f) => {
2259
+ f in d._hmrPayload.actions || Ke(C, f);
2260
+ }), C._hmrPayload = d._hmrPayload, C._getters = d._getters, C._hotUpdating = !1;
2261
2261
  })), Se) {
2262
2262
  const d = {
2263
2263
  writable: !0,
@@ -2266,28 +2266,28 @@ function et(e, o, t = {}, n, s, r) {
2266
2266
  enumerable: !1
2267
2267
  };
2268
2268
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((f) => {
2269
- Object.defineProperty(x, f, J({ value: x[f] }, d));
2269
+ Object.defineProperty(C, f, J({ value: C[f] }, d));
2270
2270
  });
2271
2271
  }
2272
2272
  return n._p.forEach((d) => {
2273
2273
  if (Se) {
2274
2274
  const f = i.run(() => d({
2275
- store: x,
2275
+ store: C,
2276
2276
  app: n._a,
2277
2277
  pinia: n,
2278
2278
  options: l
2279
2279
  }));
2280
- Object.keys(f || {}).forEach((y) => x._customProperties.add(y)), J(x, f);
2280
+ Object.keys(f || {}).forEach((y) => C._customProperties.add(y)), J(C, f);
2281
2281
  } else
2282
- J(x, i.run(() => d({
2283
- store: x,
2282
+ J(C, i.run(() => d({
2283
+ store: C,
2284
2284
  app: n._a,
2285
2285
  pinia: n,
2286
2286
  options: l
2287
2287
  })));
2288
- }), process.env.NODE_ENV !== "production" && x.$state && typeof x.$state == "object" && typeof x.$state.constructor == "function" && !x.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2288
+ }), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2289
2289
  state: () => new MyClass()
2290
- Found in store "${x.$id}".`), h && r && t.hydrate && t.hydrate(x.$state, h), u = !0, c = !0, x;
2290
+ Found in store "${C.$id}".`), _ && r && t.hydrate && t.hydrate(C.$state, _), u = !0, c = !0, C;
2291
2291
  }
2292
2292
  function He(e, o, t) {
2293
2293
  let n, s;
@@ -2307,15 +2307,15 @@ This will fail in production.`);
2307
2307
  l = we, l._s.has(n) || (r ? et(n, o, s, l) : yt(n, s, l), process.env.NODE_ENV !== "production" && (i._pinia = l));
2308
2308
  const c = l._s.get(n);
2309
2309
  if (process.env.NODE_ENV !== "production" && a) {
2310
- const p = "__hot:" + n, _ = r ? et(p, o, s, l, !0) : yt(p, J({}, s), l, !0);
2311
- a._hotUpdate(_), delete l.state.value[p], l._s.delete(p);
2310
+ const p = "__hot:" + n, g = r ? et(p, o, s, l, !0) : yt(p, J({}, s), l, !0);
2311
+ a._hotUpdate(g), delete l.state.value[p], l._s.delete(p);
2312
2312
  }
2313
2313
  if (process.env.NODE_ENV !== "production" && Be) {
2314
2314
  const p = Lt();
2315
2315
  if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
2316
2316
  !a) {
2317
- const _ = p.proxy, C = "_pStores" in _ ? _._pStores : _._pStores = {};
2318
- C[n] = c;
2317
+ const g = p.proxy, x = "_pStores" in g ? g._pStores : g._pStores = {};
2318
+ x[n] = c;
2319
2319
  }
2320
2320
  }
2321
2321
  return c;
@@ -2374,15 +2374,15 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
2374
2374
  key: c,
2375
2375
  value: c
2376
2376
  }, {
2377
- default: Pe(({ active: _, selected: C }) => [
2378
- g("li", {
2379
- class: xe([
2377
+ default: Pe(({ active: g, selected: x }) => [
2378
+ m("li", {
2379
+ class: _e([
2380
2380
  "relative cursor-default select-none py-2 pl-3 pr-9",
2381
- _ ? "bg-[#3B5695] text-white" : "text-textCustom"
2381
+ g ? "bg-[#3B5695] text-white" : "text-textCustom"
2382
2382
  ])
2383
2383
  }, [
2384
- g("span", {
2385
- class: xe(["block truncate", C && "font-semibold"])
2384
+ m("span", {
2385
+ class: _e(["block truncate", x && "font-semibold"])
2386
2386
  }, te(p), 3)
2387
2387
  ], 2)
2388
2388
  ]),
@@ -2395,19 +2395,19 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
2395
2395
  _: 1
2396
2396
  }, 8, ["modelValue", "disabled"]));
2397
2397
  }
2398
- }, an = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e", vs = ["disabled"], hs = /* @__PURE__ */ g("img", {
2398
+ }, an = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.68688%202.3131C3.88214%202.50837%203.88214%202.82495%203.68688%203.02021L2.04043%204.66666L3.68688%206.3131C3.88214%206.50837%203.88214%206.82495%203.68688%207.02021C3.49162%207.21547%203.17504%207.21547%202.97977%207.02021L0.979775%205.02021C0.784513%204.82495%200.784513%204.50837%200.979775%204.3131L2.97977%202.3131C3.17504%202.11784%203.49162%202.11784%203.68688%202.3131Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M12.3131%208.97977C12.5084%208.78451%2012.825%208.78451%2013.0202%208.97977L15.0202%2010.9798C15.2155%2011.175%2015.2155%2011.4916%2015.0202%2011.6869L13.0202%2013.6869C12.825%2013.8821%2012.5084%2013.8821%2012.3131%2013.6869C12.1178%2013.4916%2012.1178%2013.175%2012.3131%2012.9798L13.9596%2011.3333L12.3131%209.68688C12.1178%209.49161%2012.1178%209.17503%2012.3131%208.97977Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%204.66666C0.833328%204.39051%201.05719%204.16666%201.33333%204.16666H14.6667C14.9428%204.16666%2015.1667%204.39051%2015.1667%204.66666C15.1667%204.9428%2014.9428%205.16666%2014.6667%205.16666H1.33333C1.05719%205.16666%200.833328%204.9428%200.833328%204.66666Z'%20fill='%237E7E7E'/%3e%3cpath%20d='M0.833328%2011.3333C0.833328%2011.0572%201.05719%2010.8333%201.33333%2010.8333H14.6667C14.9428%2010.8333%2015.1667%2011.0572%2015.1667%2011.3333C15.1667%2011.6095%2014.9428%2011.8333%2014.6667%2011.8333H1.33333C1.05719%2011.8333%200.833328%2011.6095%200.833328%2011.3333Z'%20fill='%237E7E7E'/%3e%3c/svg%3e", vs = ["disabled"], hs = /* @__PURE__ */ m("img", {
2399
2399
  src: an,
2400
2400
  alt: "swap",
2401
2401
  class: "w-4"
2402
2402
  }, null, -1), ms = [
2403
2403
  hs
2404
- ], gs = ["disabled"], bs = /* @__PURE__ */ g("img", {
2404
+ ], gs = ["disabled"], bs = /* @__PURE__ */ m("img", {
2405
2405
  src: an,
2406
2406
  alt: "swap",
2407
2407
  class: "w-4"
2408
- }, null, -1), _s = [
2408
+ }, null, -1), xs = [
2409
2409
  bs
2410
- ], xs = {
2410
+ ], _s = {
2411
2411
  __name: "SwapBtn",
2412
2412
  props: {
2413
2413
  isBidirect: {
@@ -2422,7 +2422,7 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
2422
2422
  key: 1,
2423
2423
  onClick: r[0] || (r[0] = (i) => n("swap")),
2424
2424
  disabled: V(t).loading
2425
- }, _s, 8, gs)) : (w(), $("button", {
2425
+ }, xs, 8, gs)) : (w(), $("button", {
2426
2426
  key: 0,
2427
2427
  disabled: V(t).loading
2428
2428
  }, ms, 8, vs));
@@ -2461,7 +2461,7 @@ const ze = He("loader", () => ({ loading: E(!1) })), wt = {
2461
2461
  languages: V(o).languages.src,
2462
2462
  class: "grow"
2463
2463
  }, null, 8, ["modelValue", "languages"]),
2464
- H(xs, {
2464
+ H(_s, {
2465
2465
  isBidirect: V(o).src !== "auto",
2466
2466
  class: "grow-0 mx-3",
2467
2467
  onSwap: t
@@ -2510,12 +2510,12 @@ const $s = /* @__PURE__ */ Ze(Ss, [["render", Os]]), Ts = "data:image/svg+xml,%3
2510
2510
  get: t,
2511
2511
  reset: n
2512
2512
  };
2513
- }), Ls = /* @__PURE__ */ g("img", {
2513
+ }), Ls = /* @__PURE__ */ m("img", {
2514
2514
  src: Ts,
2515
2515
  alt: "Play"
2516
2516
  }, null, -1), Ps = [
2517
2517
  Ls
2518
- ], Rs = /* @__PURE__ */ g("img", {
2518
+ ], Rs = /* @__PURE__ */ m("img", {
2519
2519
  src: Is,
2520
2520
  alt: "Stop"
2521
2521
  }, null, -1), Vs = [
@@ -2561,7 +2561,7 @@ const $s = /* @__PURE__ */ Ze(Ss, [["render", Os]]), Ts = "data:image/svg+xml,%3
2561
2561
  }
2562
2562
  return l.onended = () => {
2563
2563
  i.value = !1;
2564
- }, (p, _) => i.value ? (w(), $("button", {
2564
+ }, (p, g) => i.value ? (w(), $("button", {
2565
2565
  key: 1,
2566
2566
  class: "btn btn-xs btn-ghost btn-circle",
2567
2567
  onClick: dt(c, ["prevent"])
@@ -2571,7 +2571,7 @@ const $s = /* @__PURE__ */ Ze(Ss, [["render", Os]]), Ts = "data:image/svg+xml,%3
2571
2571
  onClick: dt(a, ["prevent"])
2572
2572
  }, Ps));
2573
2573
  }
2574
- }, Ms = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Ns = {}, Ds = { class: "btn btn-xs btn-circle btn-ghost" }, As = /* @__PURE__ */ g("img", {
2574
+ }, Ms = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.19102%203.19102C3.44571%202.93633%203.85864%202.93633%204.11333%203.19102L12.809%2011.8867C13.0637%2012.1414%2013.0637%2012.5543%2012.809%2012.809C12.5543%2013.0637%2012.1414%2013.0637%2011.8867%2012.809L3.19102%204.11333C2.93633%203.85864%202.93633%203.44571%203.19102%203.19102Z'%20fill='%231A1F2A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.809%203.19102C13.0637%203.44571%2013.0637%203.85864%2012.809%204.11333L4.11333%2012.809C3.85864%2013.0637%203.44571%2013.0637%203.19102%2012.809C2.93633%2012.5543%202.93633%2012.1414%203.19102%2011.8867L11.8867%203.19102C12.1414%202.93633%2012.5543%202.93633%2012.809%203.19102Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Ns = {}, Ds = { class: "btn btn-xs btn-circle btn-ghost" }, As = /* @__PURE__ */ m("img", {
2575
2575
  src: Ms,
2576
2576
  alt: "Clear",
2577
2577
  class: "w-4"
@@ -2605,7 +2605,7 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
2605
2605
  }, qs = { class: "flex flex-row rounded-t-lg bg-white border border-b-0 px-1 pr-1 pt-1 gap-1 items-center" }, Js = { class: "text-sm text-gray-600" }, Ks = {
2606
2606
  key: 0,
2607
2607
  class: "italic"
2608
- }, Ys = /* @__PURE__ */ g("div", { class: "flex-grow" }, null, -1), cn = {
2608
+ }, Ys = /* @__PURE__ */ m("div", { class: "flex-grow" }, null, -1), cn = {
2609
2609
  __name: "TranslationBtnGroup",
2610
2610
  props: {
2611
2611
  loading: {
@@ -2655,7 +2655,7 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
2655
2655
  type: t.type,
2656
2656
  onLoadTTS: r[0] || (r[0] = (i) => n("loadTTS"))
2657
2657
  }, null, 8, ["type"])) : X("", !0),
2658
- g("div", Js, [
2658
+ m("div", Js, [
2659
2659
  gn(te(e.srcLabel) + " ", 1),
2660
2660
  e.phonetic ? (w(), $("span", Ks, "- [" + te(t.phonetic) + "]", 1)) : X("", !0)
2661
2661
  ]),
@@ -2679,11 +2679,11 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
2679
2679
  }), s = E(null), r = E([]), i = E([]), l = E([]), a = E([]), u = E({
2680
2680
  src: null,
2681
2681
  target: null
2682
- }), c = Ue(), p = S(() => c.getLabel(e.value)), _ = S(() => c.getLabel(o.value));
2683
- function C(v) {
2682
+ }), c = Ue(), p = S(() => c.getLabel(e.value)), g = S(() => c.getLabel(o.value));
2683
+ function x(v) {
2684
2684
  e.value = v.src, o.value = v.target, t.value = v.text, n.value = v.phonetic, s.value = v.result, r.value = v.dictionary, i.value = v.definitions, l.value = v.synonyms, a.value = v.examples, u.value = v.tts;
2685
2685
  }
2686
- function h() {
2686
+ function _() {
2687
2687
  e.value = null, o.value = null, t.value = null, n.value = {
2688
2688
  src: null,
2689
2689
  target: null
@@ -2696,7 +2696,7 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
2696
2696
  src: e,
2697
2697
  srcLabel: p,
2698
2698
  target: o,
2699
- targetLabel: _,
2699
+ targetLabel: g,
2700
2700
  phonetic: n,
2701
2701
  text: t,
2702
2702
  result: s,
@@ -2705,8 +2705,8 @@ const Bs = /* @__PURE__ */ Ze(Ns, [["render", js]]), Hs = "data:image/svg+xml,%3
2705
2705
  synonyms: l,
2706
2706
  examples: a,
2707
2707
  tts: u,
2708
- init: C,
2709
- reset: h
2708
+ init: x,
2709
+ reset: _
2710
2710
  };
2711
2711
  });
2712
2712
  function Qs(e) {
@@ -2775,8 +2775,8 @@ function rl(e, o, t = {}) {
2775
2775
  (p) => {
2776
2776
  if (l(), i.value && n) {
2777
2777
  r = new ResizeObserver(o);
2778
- for (const _ of p)
2779
- _ && r.observe(_, s);
2778
+ for (const g of p)
2779
+ g && r.observe(g, s);
2780
2780
  }
2781
2781
  },
2782
2782
  { immediate: !0, flush: "post" }
@@ -2818,40 +2818,40 @@ const il = {
2818
2818
  emits: ["change", "clear", "loadTTS"],
2819
2819
  setup(e, { emit: o }) {
2820
2820
  const t = he(), n = e, s = E(""), r = S(() => t.src), i = S(() => t.srcLabel), l = S(() => {
2821
- var h;
2822
- return (h = t.phonetic) == null ? void 0 : h.src;
2821
+ var _;
2822
+ return (_ = t.phonetic) == null ? void 0 : _.src;
2823
2823
  }), { textarea: a } = dn({ input: s, styleProp: "minHeight" }), u = o, c = nl(() => {
2824
2824
  u("change", s.value);
2825
2825
  }, ws.INPUT_DEBOUNCE);
2826
2826
  function p() {
2827
2827
  if (!s.value) {
2828
- _();
2828
+ g();
2829
2829
  return;
2830
2830
  }
2831
2831
  c();
2832
2832
  }
2833
- function _() {
2833
+ function g() {
2834
2834
  u("clear"), s.value = "", a.value.focus();
2835
2835
  }
2836
- async function C() {
2836
+ async function x() {
2837
2837
  await Q(), a.value.select();
2838
2838
  }
2839
2839
  return F(
2840
2840
  () => n.text,
2841
- (h) => {
2842
- s.value !== h && C(), s.value = h;
2841
+ (_) => {
2842
+ s.value !== _ && x(), s.value = _;
2843
2843
  }
2844
- ), (h, v) => (w(), $(Z, null, [
2844
+ ), (_, v) => (w(), $(Z, null, [
2845
2845
  H(cn, {
2846
2846
  src: r.value,
2847
2847
  srcLabel: i.value,
2848
2848
  type: "src",
2849
2849
  phonetic: l.value,
2850
2850
  isClearBtn: !0,
2851
- onClear: _,
2851
+ onClear: g,
2852
2852
  onLoadTTS: v[0] || (v[0] = (T) => u("loadTTS"))
2853
2853
  }, null, 8, ["src", "srcLabel", "phonetic"]),
2854
- Rt(g("textarea", {
2854
+ Rt(m("textarea", {
2855
2855
  ref_key: "textarea",
2856
2856
  ref: a,
2857
2857
  "onUpdate:modelValue": v[1] || (v[1] = (T) => s.value = T),
@@ -2859,7 +2859,7 @@ const il = {
2859
2859
  autofocus: "",
2860
2860
  rows: "2",
2861
2861
  onInput: p,
2862
- onFocus: C
2862
+ onFocus: x
2863
2863
  }, null, 544), [
2864
2864
  [
2865
2865
  Vt,
@@ -2870,46 +2870,47 @@ const il = {
2870
2870
  ])
2871
2871
  ], 64));
2872
2872
  }
2873
- }, al = /* @__PURE__ */ Ze(il, [["__scopeId", "data-v-90bf3e0d"]]), ul = (e) => (bn("data-v-4b9f4a7b"), e = e(), _n(), e), cl = { class: "flex flex-col" }, dl = /* @__PURE__ */ ul(() => /* @__PURE__ */ g("div", { class: "w-full flex align-item-center justify-end mt-2" }, null, -1)), fl = {
2873
+ }, al = /* @__PURE__ */ Ze(il, [["__scopeId", "data-v-90bf3e0d"]]), ul = (e) => (bn("data-v-f47b8efe"), e = e(), xn(), e), cl = { class: "flex flex-col" }, dl = /* @__PURE__ */ ul(() => /* @__PURE__ */ m("div", { class: "w-full flex align-item-center justify-end mt-2" }, null, -1)), fl = {
2874
2874
  __name: "TranslationResult",
2875
2875
  props: {
2876
- isFavoriteFeatureEnabled: Boolean
2876
+ isFavoriteFeatureEnabled: Boolean,
2877
+ isFavorite: Boolean
2877
2878
  },
2878
- emits: ["loadTTS"],
2879
+ emits: ["loadTTS", "favorite"],
2879
2880
  setup(e, { emit: o }) {
2880
- const t = he(), n = E(!1), s = S(() => t.result), r = S(() => t.target), i = S(() => t.targetLabel), l = S(() => {
2881
- var C;
2882
- return (C = t.phonetic) == null ? void 0 : C.target;
2883
- }), a = e, u = ze(), { textarea: c, input: p } = dn({ input: s, styleProp: "minHeight" }), _ = o;
2884
- return (C, h) => (w(), $(Z, null, [
2881
+ const t = he(), n = S(() => t.result), s = S(() => t.target), r = S(() => t.targetLabel), i = S(() => {
2882
+ var g;
2883
+ return (g = t.phonetic) == null ? void 0 : g.target;
2884
+ }), l = e, a = ze(), { textarea: u, input: c } = dn({ input: n, styleProp: "minHeight" }), p = o;
2885
+ return (g, x) => (w(), $(Z, null, [
2885
2886
  H(cn, {
2886
- loading: V(u).loading,
2887
- src: r.value,
2888
- srcLabel: i.value,
2887
+ loading: V(a).loading,
2888
+ src: s.value,
2889
+ srcLabel: r.value,
2889
2890
  type: "target",
2890
- isFavoriteBtn: a.isFavoriteFeatureEnabled,
2891
- isFavorite: n.value,
2892
- phonetic: l.value,
2893
- onFavorite: h[0] || (h[0] = (v) => n.value = !n.value),
2894
- onLoadTTS: h[1] || (h[1] = (v) => _("loadTTS"))
2891
+ isFavoriteBtn: l.isFavoriteFeatureEnabled,
2892
+ isFavorite: e.isFavorite,
2893
+ phonetic: i.value,
2894
+ onFavorite: x[0] || (x[0] = (_) => p("favorite")),
2895
+ onLoadTTS: x[1] || (x[1] = (_) => p("loadTTS"))
2895
2896
  }, null, 8, ["loading", "src", "srcLabel", "isFavoriteBtn", "isFavorite", "phonetic"]),
2896
- g("div", cl, [
2897
- Rt(g("textarea", {
2897
+ m("div", cl, [
2898
+ Rt(m("textarea", {
2898
2899
  ref_key: "textarea",
2899
- ref: c,
2900
- "onUpdate:modelValue": h[2] || (h[2] = (v) => _e(p) ? p.value = v : null),
2900
+ ref: u,
2901
+ "onUpdate:modelValue": x[2] || (x[2] = (_) => xe(c) ? c.value = _ : null),
2901
2902
  class: "w-full border rounded-b-md border-t-0 outline-none outline-0 px-3 pl-5 bg-white text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
2902
2903
  readonly: "",
2903
2904
  rows: "2",
2904
2905
  spellcheck: "false"
2905
2906
  }, null, 512), [
2906
- [Vt, V(p)]
2907
+ [Vt, V(c)]
2907
2908
  ]),
2908
2909
  dl
2909
2910
  ])
2910
2911
  ], 64));
2911
2912
  }
2912
- }, pl = /* @__PURE__ */ Ze(fl, [["__scopeId", "data-v-4b9f4a7b"]]), vl = { class: "btn btn-sm btn-circle btn-ghost" }, We = {
2913
+ }, pl = /* @__PURE__ */ Ze(fl, [["__scopeId", "data-v-f47b8efe"]]), vl = { class: "btn btn-sm btn-circle btn-ghost" }, We = {
2913
2914
  __name: "ToggleBtn",
2914
2915
  props: {
2915
2916
  isExpanded: Boolean
@@ -2926,7 +2927,7 @@ const il = {
2926
2927
  }))
2927
2928
  ]));
2928
2929
  }
2929
- }, hl = { class: "card border bg-white rounded-lg" }, ml = { class: "card-body px-4 py-2 gap-0" }, gl = { class: "flex justify-between items-center" }, bl = /* @__PURE__ */ g("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Translations", -1), _l = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, xl = { class: "list-none list-inside" }, Cl = ["onClick"], yl = { class: "text-base font-normal text-gray-800 leading-4" }, wl = {
2930
+ }, hl = { class: "card border bg-white rounded-lg" }, ml = { class: "card-body px-4 py-2 gap-0" }, gl = { class: "flex justify-between items-center" }, bl = /* @__PURE__ */ m("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Translations", -1), xl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, _l = { class: "list-none list-inside" }, Cl = ["onClick"], yl = { class: "text-base font-normal text-gray-800 leading-4" }, wl = {
2930
2931
  __name: "Dictionary",
2931
2932
  emits: ["translate"],
2932
2933
  setup(e, { emit: o }) {
@@ -2936,32 +2937,32 @@ const il = {
2936
2937
  i("translate", u, n.target, n.src), s.src = n.target, s.target = n.src, window.scrollTo(0, 0);
2937
2938
  };
2938
2939
  return (u, c) => (w(), $("div", hl, [
2939
- g("div", ml, [
2940
- g("div", gl, [
2940
+ m("div", ml, [
2941
+ m("div", gl, [
2941
2942
  bl,
2942
2943
  H(We, {
2943
2944
  isExpanded: t.value,
2944
2945
  onClick: l
2945
2946
  }, null, 8, ["isExpanded"])
2946
2947
  ]),
2947
- g("div", {
2948
- class: xe(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
2948
+ m("div", {
2949
+ class: _e(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
2949
2950
  }, [
2950
- g("ul", null, [
2951
- (w(!0), $(Z, null, le(r.value, (p, _) => (w(), $("li", {
2952
- key: `${p.pos}-${_}`,
2951
+ m("ul", null, [
2952
+ (w(!0), $(Z, null, le(r.value, (p, g) => (w(), $("li", {
2953
+ key: `${p.pos}-${g}`,
2953
2954
  class: "mb-2"
2954
2955
  }, [
2955
- g("h5", _l, te(p.pos), 1),
2956
- g("ul", xl, [
2957
- (w(!0), $(Z, null, le(p.items, (C, h) => (w(), $("li", {
2958
- key: `${C.word}-${h}`
2956
+ m("h5", xl, te(p.pos), 1),
2957
+ m("ul", _l, [
2958
+ (w(!0), $(Z, null, le(p.items, (x, _) => (w(), $("li", {
2959
+ key: `${x.word}-${_}`
2959
2960
  }, [
2960
- g("span", {
2961
+ m("span", {
2961
2962
  class: "p-3 m-0.5 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
2962
- onClick: (v) => a(C.word)
2963
- }, te(C.word), 9, Cl),
2964
- g("small", yl, " - " + te(C.reverse_translation.join(", ")), 1)
2963
+ onClick: (v) => a(x.word)
2964
+ }, te(x.word), 9, Cl),
2965
+ m("small", yl, " - " + te(x.reverse_translation.join(", ")), 1)
2965
2966
  ]))), 128))
2966
2967
  ])
2967
2968
  ]))), 128))
@@ -2970,7 +2971,7 @@ const il = {
2970
2971
  ])
2971
2972
  ]));
2972
2973
  }
2973
- }, Sl = { class: "card border bg-white rounded-lg" }, El = { class: "card-body px-4 py-2 gap-0" }, Ol = { class: "flex justify-between items-center" }, $l = /* @__PURE__ */ g("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Definitions", -1), Tl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Il = { class: "text-base text-textCustom list-decimal list-outside ml-5" }, Ll = /* @__PURE__ */ g("br", null, null, -1), Pl = {
2974
+ }, Sl = { class: "card border bg-white rounded-lg" }, El = { class: "card-body px-4 py-2 gap-0" }, Ol = { class: "flex justify-between items-center" }, $l = /* @__PURE__ */ m("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Definitions", -1), Tl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Il = { class: "text-base text-textCustom list-decimal list-outside ml-5" }, Ll = /* @__PURE__ */ m("br", null, null, -1), Pl = {
2974
2975
  key: 0,
2975
2976
  class: "italic"
2976
2977
  }, Rl = {
@@ -2980,29 +2981,29 @@ const il = {
2980
2981
  o.value = !o.value;
2981
2982
  };
2982
2983
  return (r, i) => (w(), $("div", Sl, [
2983
- g("div", El, [
2984
- g("div", Ol, [
2984
+ m("div", El, [
2985
+ m("div", Ol, [
2985
2986
  $l,
2986
2987
  H(We, {
2987
2988
  isExpanded: o.value,
2988
2989
  onClick: s
2989
2990
  }, null, 8, ["isExpanded"])
2990
2991
  ]),
2991
- g("div", {
2992
- class: xe(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
2992
+ m("div", {
2993
+ class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
2993
2994
  }, [
2994
- g("ul", null, [
2995
+ m("ul", null, [
2995
2996
  (w(!0), $(Z, null, le(n.value, (l, a) => (w(), $("li", {
2996
2997
  key: `${l.pos}-${a}`,
2997
2998
  class: "mb-2"
2998
2999
  }, [
2999
- g("h5", Tl, te(l.pos), 1),
3000
- g("ul", Il, [
3000
+ m("h5", Tl, te(l.pos), 1),
3001
+ m("ul", Il, [
3001
3002
  (w(!0), $(Z, null, le(l.items, (u, c) => (w(), $("li", {
3002
3003
  key: `${u.gloss}-${c}`,
3003
3004
  class: "mb-1"
3004
3005
  }, [
3005
- g("span", null, te(u.gloss), 1),
3006
+ m("span", null, te(u.gloss), 1),
3006
3007
  Ll,
3007
3008
  u.example ? (w(), $("small", Pl, '"' + te(u.example) + '"', 1)) : X("", !0)
3008
3009
  ]))), 128))
@@ -3013,25 +3014,25 @@ const il = {
3013
3014
  ])
3014
3015
  ]));
3015
3016
  }
3016
- }, Vl = { class: "card border bg-white rounded-lg" }, kl = { class: "card-body px-4 py-2 gap-0" }, Ml = { class: "flex justify-between items-center" }, Nl = /* @__PURE__ */ g("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), Dl = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, Al = ["innerHTML"], Fl = {
3017
+ }, Vl = { class: "card border bg-white rounded-lg" }, kl = { class: "card-body px-4 py-2 gap-0" }, Ml = { class: "flex justify-between items-center" }, Nl = /* @__PURE__ */ m("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), Dl = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, Al = ["innerHTML"], Fl = {
3017
3018
  __name: "Example",
3018
3019
  setup(e) {
3019
3020
  const o = E(!0), t = he(), n = S(() => t.examples), s = () => {
3020
3021
  o.value = !o.value;
3021
3022
  };
3022
3023
  return (r, i) => (w(), $("div", Vl, [
3023
- g("div", kl, [
3024
- g("div", Ml, [
3024
+ m("div", kl, [
3025
+ m("div", Ml, [
3025
3026
  Nl,
3026
3027
  H(We, {
3027
3028
  isExpanded: o.value,
3028
3029
  onClick: s
3029
3030
  }, null, 8, ["isExpanded"])
3030
3031
  ]),
3031
- g("div", {
3032
- class: xe(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3032
+ m("div", {
3033
+ class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3033
3034
  }, [
3034
- g("ul", Dl, [
3035
+ m("ul", Dl, [
3035
3036
  (w(!0), $(Z, null, le(n.value, (l, a) => (w(), $("li", {
3036
3037
  key: `${l.definition_id}-${a}`,
3037
3038
  innerHTML: l
@@ -3041,7 +3042,7 @@ const il = {
3041
3042
  ])
3042
3043
  ]));
3043
3044
  }
3044
- }, jl = { class: "card border bg-white rounded-lg" }, Bl = { class: "card-body px-4 py-2 gap-0" }, Hl = { class: "flex justify-between items-center" }, zl = /* @__PURE__ */ g("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Synonyms", -1), Ul = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Zl = { class: "list-none list-inside" }, Wl = { class: "flex flex-wrap" }, Gl = ["onClick"], ql = {
3045
+ }, jl = { class: "card border bg-white rounded-lg" }, Bl = { class: "card-body px-4 py-2 gap-0" }, Hl = { class: "flex justify-between items-center" }, zl = /* @__PURE__ */ m("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Synonyms", -1), Ul = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Zl = { class: "list-none list-inside" }, Wl = { class: "flex flex-wrap" }, Gl = ["onClick"], ql = {
3045
3046
  __name: "Synonyms",
3046
3047
  emits: ["translate"],
3047
3048
  setup(e, { emit: o }) {
@@ -3051,34 +3052,34 @@ const il = {
3051
3052
  r("translate", a), window.scrollTo(0, 0);
3052
3053
  };
3053
3054
  return (a, u) => (w(), $("div", jl, [
3054
- g("div", Bl, [
3055
- g("div", Hl, [
3055
+ m("div", Bl, [
3056
+ m("div", Hl, [
3056
3057
  zl,
3057
3058
  H(We, {
3058
3059
  isExpanded: t.value,
3059
3060
  onClick: i
3060
3061
  }, null, 8, ["isExpanded"])
3061
3062
  ]),
3062
- g("div", {
3063
- class: xe(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3063
+ m("div", {
3064
+ class: _e(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3064
3065
  }, [
3065
- g("ul", null, [
3066
+ m("ul", null, [
3066
3067
  (w(!0), $(Z, null, le(s.value, (c, p) => (w(), $("li", {
3067
3068
  key: `${c.pos}-${p}`,
3068
3069
  class: "mb-2"
3069
3070
  }, [
3070
- g("h5", Ul, te(c.pos), 1),
3071
- g("ul", Zl, [
3072
- (w(!0), $(Z, null, le(c.items, (_, C) => (w(), $("li", {
3073
- key: `${_.word}-${C}`,
3071
+ m("h5", Ul, te(c.pos), 1),
3072
+ m("ul", Zl, [
3073
+ (w(!0), $(Z, null, le(c.items, (g, x) => (w(), $("li", {
3074
+ key: `${g.word}-${x}`,
3074
3075
  class: "mb-2"
3075
3076
  }, [
3076
- g("div", Wl, [
3077
- (w(!0), $(Z, null, le(_.synonym, (h, v) => (w(), $("span", {
3078
- key: `${h}-${v}`,
3077
+ m("div", Wl, [
3078
+ (w(!0), $(Z, null, le(g.synonym, (_, v) => (w(), $("span", {
3079
+ key: `${_}-${v}`,
3079
3080
  class: "p-3 m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
3080
- onClick: (T) => l(h)
3081
- }, te(h), 9, Gl))), 128))
3081
+ onClick: (T) => l(_)
3082
+ }, te(_), 9, Gl))), 128))
3082
3083
  ])
3083
3084
  ]))), 128))
3084
3085
  ])
@@ -3098,7 +3099,7 @@ function Kl() {
3098
3099
  const Ot = {
3099
3100
  supportRTL: Jl,
3100
3101
  removeRTL: Kl
3101
- }, Yl = ["ar", "fa", "iw", "yi", "ur", "pa"], Ql = { class: "bg-white min-h-screen flex flex-col" }, Xl = { class: "py-2 px-5 shadow-lg" }, e2 = { class: "px-5 flex-grow" }, t2 = { class: "flex flex-col lg:flex-row lg:gap-2" }, n2 = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, o2 = /* @__PURE__ */ g("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), s2 = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, l2 = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, r2 = {
3102
+ }, Yl = ["ar", "fa", "iw", "yi", "ur", "pa"], Ql = { class: "bg-white min-h-screen flex flex-col" }, Xl = { class: "py-2 px-5 shadow-lg" }, e2 = { class: "px-5 flex-grow" }, t2 = { class: "flex flex-col lg:flex-row lg:gap-2" }, n2 = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, o2 = /* @__PURE__ */ m("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), s2 = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, l2 = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, r2 = {
3102
3103
  key: 0,
3103
3104
  class: "w-full my-4"
3104
3105
  }, i2 = {
@@ -3126,9 +3127,21 @@ const Ot = {
3126
3127
  isFavoriteFeatureEnabled: {
3127
3128
  type: Boolean,
3128
3129
  default: !1
3130
+ },
3131
+ isFavorite: {
3132
+ type: Boolean,
3133
+ default: !1
3129
3134
  }
3130
3135
  },
3131
- emits: ["opt", "translate", "reader", "settings", "fullscreen", "loadTTS"],
3136
+ emits: [
3137
+ "opt",
3138
+ "translate",
3139
+ "reader",
3140
+ "settings",
3141
+ "fullscreen",
3142
+ "loadTTS",
3143
+ "favorite"
3144
+ ],
3132
3145
  setup(e, { emit: o }) {
3133
3146
  const t = cs(), n = he(t), s = un(t), r = Ue(t), i = ze(t), l = e, a = o, u = E(""), c = () => {
3134
3147
  const v = l.opt.target;
@@ -3153,21 +3166,21 @@ const Ot = {
3153
3166
  ), F([() => l.opt, () => l.languages], ([v, T]) => {
3154
3167
  r.init(v, T), c();
3155
3168
  }), F([() => r.src, () => r.target], ([v, T]) => {
3156
- a("opt", { src: v, target: T }), h(u.value);
3169
+ a("opt", { src: v, target: T }), _(u.value);
3157
3170
  }), Ce(() => {
3158
3171
  r.init(l.opt, l.languages), c();
3159
3172
  });
3160
3173
  function p() {
3161
3174
  u.value = "", n.reset();
3162
3175
  }
3163
- function _(v) {
3164
- h(v);
3176
+ function g(v) {
3177
+ _(v);
3165
3178
  }
3166
- function C(v) {
3179
+ function x(v) {
3167
3180
  const T = v === "src" ? n.text : n.result;
3168
3181
  a("loadTTS", { type: v, data: T });
3169
3182
  }
3170
- function h(v, T = r.src, N = r.target) {
3183
+ function _(v, T = r.src, N = r.target) {
3171
3184
  v && (u.value = v, i.loading = !0, a("translate", {
3172
3185
  src: T,
3173
3186
  target: N,
@@ -3177,42 +3190,44 @@ const Ot = {
3177
3190
  return (v, T) => {
3178
3191
  var N, I, k, D;
3179
3192
  return w(), $("div", Ql, [
3180
- g("div", Xl, [
3193
+ m("div", Xl, [
3181
3194
  H(Nn, {
3182
- onReader: T[0] || (T[0] = (m) => a("reader")),
3183
- onSettings: T[1] || (T[1] = (m) => a("settings")),
3184
- onFullScreen: T[2] || (T[2] = (m) => a("fullscreen"))
3195
+ onReader: T[0] || (T[0] = (h) => a("reader")),
3196
+ onSettings: T[1] || (T[1] = (h) => a("settings")),
3197
+ onFullScreen: T[2] || (T[2] = (h) => a("fullscreen"))
3185
3198
  })
3186
3199
  ]),
3187
- g("div", e2, [
3200
+ m("div", e2, [
3188
3201
  H(ys, { class: "my-4" }),
3189
- g("div", t2, [
3190
- g("div", n2, [
3202
+ m("div", t2, [
3203
+ m("div", n2, [
3191
3204
  H(al, {
3192
3205
  text: u.value,
3193
- onChange: _,
3206
+ onChange: g,
3194
3207
  onClear: p,
3195
- onLoadTTS: T[3] || (T[3] = (m) => C("src"))
3208
+ onLoadTTS: T[3] || (T[3] = (h) => x("src"))
3196
3209
  }, null, 8, ["text"])
3197
3210
  ]),
3198
3211
  o2,
3199
- g("div", s2, [
3212
+ m("div", s2, [
3200
3213
  H(pl, {
3201
3214
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
3202
- onLoadTTS: T[4] || (T[4] = (m) => C("target"))
3203
- }, null, 8, ["isFavoriteFeatureEnabled"])
3215
+ isFavorite: e.isFavorite,
3216
+ onFavorite: T[4] || (T[4] = (h) => a("favorite")),
3217
+ onLoadTTS: T[5] || (T[5] = (h) => x("target"))
3218
+ }, null, 8, ["isFavoriteFeatureEnabled", "isFavorite"])
3204
3219
  ])
3205
3220
  ]),
3206
3221
  l.translation ? (w(), $(Z, { key: 0 }, [
3207
- g("div", l2, [
3222
+ m("div", l2, [
3208
3223
  (N = V(n).dictionary) != null && N.length ? (w(), ee(wl, {
3209
3224
  key: 0,
3210
- onTranslate: h
3225
+ onTranslate: _
3211
3226
  })) : X("", !0),
3212
3227
  (I = V(n).definitions) != null && I.length ? (w(), ee(Rl, { key: 1 })) : X("", !0),
3213
3228
  (k = V(n).synonyms) != null && k.length ? (w(), ee(ql, {
3214
3229
  key: 2,
3215
- onTranslate: h
3230
+ onTranslate: _
3216
3231
  })) : X("", !0)
3217
3232
  ]),
3218
3233
  (D = V(n).examples) != null && D.length ? (w(), $("div", r2, [