@ddict/popup 1.0.21 → 1.1.0

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,135 +1,130 @@
1
- import { openBlock as w, createElementBlock as T, createElementVNode as h, pushScopeId as Tt, popScopeId as It, computed as S, unref as V, shallowRef as mn, watch as F, triggerRef as ct, onScopeDispose as nt, ref as E, onUnmounted as ot, inject as Ie, watchEffect as ie, onMounted as Ce, cloneVNode as Lt, h as Ee, Fragment as Z, defineComponent as ae, provide as lt, reactive as Rt, nextTick as Q, toRaw as K, effectScope as Pt, markRaw as de, hasInjectionContext as gn, getCurrentInstance as Vt, isRef as xe, isReactive as st, toRef as qe, getCurrentScope as kt, toRefs as dt, mergeModels as bn, useModel as xn, createBlock as ee, withCtx as Ve, createVNode as H, renderList as se, normalizeClass as _e, toDisplayString as te, createCommentVNode as X, withModifiers as ft, createTextVNode as _n, withDirectives as Mt, vModelText as Nt } from "vue";
2
- const Cn = "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", yn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B5695'%20class='bi%20bi-list-stars%20fill-primaryColor'%3e%3cpath%20fill-rule='evenodd'%20d='M5%2011.5a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5z'/%3e%3cpath%20d='M2.242%202.194a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.256-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53z'/%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%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", Sn = "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", En = "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", Le = (e, o) => {
3
- const t = e.__vccOpts || e;
4
- for (const [n, l] of o)
5
- t[n] = l;
6
- return t;
7
- }, Re = (e) => (Tt("data-v-5c07032a"), e = e(), It(), e), On = { class: "flex justify-between" }, $n = /* @__PURE__ */ Re(() => /* @__PURE__ */ h("div", { class: "flex flex-row" }, [
8
- /* @__PURE__ */ h("img", {
9
- src: Cn,
1
+ import { openBlock as w, createElementBlock as E, createElementVNode as v, computed as _, unref as V, shallowRef as p2, watch as B, triggerRef as ut, onScopeDispose as tt, ref as O, onUnmounted as nt, inject as Ie, watchEffect as re, onMounted as ye, cloneVNode as Tt, h as Ee, Fragment as Q, defineComponent as ue, provide as ot, reactive as $t, nextTick as ee, toRaw as Y, effectScope as It, markRaw as fe, hasInjectionContext as v2, getCurrentInstance as Lt, isRef as xe, isReactive as lt, toRef as Ge, getCurrentScope as Mt, toRefs as ct, mergeModels as h2, useModel as m2, createBlock as se, withCtx as Me, createVNode as N, renderList as ae, normalizeClass as U, toDisplayString as te, createCommentVNode as W, withModifiers as dt, createTextVNode as b2, withDirectives as Vt, vModelText as At, pushScopeId as g2, popScopeId as C2 } from "vue";
2
+ const x2 = "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", y2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B5695'%20class='bi%20bi-list-stars%20fill-primaryColor'%3e%3cpath%20fill-rule='evenodd'%20d='M5%2011.5a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5zm0-4a.5.5%200%200%201%20.5-.5h9a.5.5%200%200%201%200%201h-9a.5.5%200%200%201-.5-.5z'/%3e%3cpath%20d='M2.242%202.194a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.256-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53zm0%204a.27.27%200%200%201%20.516%200l.162.53c.035.115.14.194.258.194h.551c.259%200%20.37.333.164.493l-.468.363a.277.277%200%200%200-.094.3l.173.569c.078.255-.213.462-.423.3l-.417-.324a.267.267%200%200%200-.328%200l-.417.323c-.21.163-.5-.043-.423-.299l.173-.57a.277.277%200%200%200-.094-.299l-.468-.363c-.206-.16-.095-.493.164-.493h.55a.271.271%200%200%200%20.259-.194l.162-.53z'/%3e%3c/svg%3e", w2 = "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", _2 = "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", S2 = "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", E2 = { class: "flex justify-between" }, O2 = /* @__PURE__ */ v("div", { class: "flex flex-row" }, [
3
+ /* @__PURE__ */ v("img", {
4
+ src: x2,
10
5
  alt: "Vue logo",
11
6
  class: "w-24"
12
7
  })
13
- ], -1)), Tn = { class: "flex" }, In = {
14
- class: "tooltip tooltip-bottom tooltip-custom 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%]",
8
+ ], -1), T2 = { class: "flex" }, $2 = {
9
+ class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
15
10
  "data-tip": "Saved Words"
16
- }, Ln = /* @__PURE__ */ Re(() => /* @__PURE__ */ h("img", {
17
- src: yn,
11
+ }, I2 = /* @__PURE__ */ v("img", {
12
+ src: y2,
18
13
  alt: "Star list",
19
14
  class: "w-7"
20
- }, null, -1)), Rn = [
21
- Ln
22
- ], Pn = {
23
- class: "tooltip tooltip-bottom tooltip-custom 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%]",
15
+ }, null, -1), L2 = [
16
+ I2
17
+ ], M2 = {
18
+ class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
24
19
  "data-tip": "Reader"
25
- }, Vn = /* @__PURE__ */ Re(() => /* @__PURE__ */ h("img", {
26
- src: wn,
20
+ }, V2 = /* @__PURE__ */ v("img", {
21
+ src: w2,
27
22
  alt: "Reader",
28
23
  class: "w-7"
29
- }, null, -1)), kn = [
30
- Vn
31
- ], Mn = {
32
- class: "tooltip tooltip-bottom tooltip-custom 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",
24
+ }, null, -1), A2 = [
25
+ V2
26
+ ], F2 = {
27
+ class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] md:hidden",
33
28
  "data-tip": "Full screen"
34
- }, Nn = /* @__PURE__ */ Re(() => /* @__PURE__ */ h("img", {
35
- src: Sn,
29
+ }, P2 = /* @__PURE__ */ v("img", {
30
+ src: _2,
36
31
  alt: "Full screen",
37
32
  class: "w-7"
38
- }, null, -1)), Dn = [
39
- Nn
40
- ], An = {
41
- class: "tooltip tooltip-bottom tooltip-custom 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%]",
33
+ }, null, -1), R2 = [
34
+ P2
35
+ ], k2 = {
36
+ class: "tooltip tooltip-bottom before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%]",
42
37
  "data-tip": "Settings"
43
- }, Fn = /* @__PURE__ */ Re(() => /* @__PURE__ */ h("img", {
44
- src: En,
38
+ }, D2 = /* @__PURE__ */ v("img", {
39
+ src: S2,
45
40
  alt: "Setting",
46
41
  class: "w-7"
47
- }, null, -1)), jn = [
48
- Fn
49
- ], Bn = {
42
+ }, null, -1), N2 = [
43
+ D2
44
+ ], B2 = {
50
45
  __name: "Header",
51
46
  emits: ["settings", "fullScreen", "reader", "starList"],
52
47
  setup(e, { emit: o }) {
53
48
  const t = o;
54
- return (n, l) => (w(), T("div", On, [
55
- $n,
56
- h("div", Tn, [
57
- h("div", In, [
58
- h("button", {
49
+ return (n, l) => (w(), E("div", E2, [
50
+ O2,
51
+ v("div", T2, [
52
+ v("div", $2, [
53
+ v("button", {
59
54
  class: "btn btn-ghost btn-circle",
60
- onClick: l[0] || (l[0] = (r) => t("starList"))
61
- }, Rn)
55
+ onClick: l[0] || (l[0] = (s) => t("starList"))
56
+ }, L2)
62
57
  ]),
63
- h("div", Pn, [
64
- h("button", {
58
+ v("div", M2, [
59
+ v("button", {
65
60
  class: "btn btn-ghost btn-circle",
66
- onClick: l[1] || (l[1] = (r) => t("reader"))
67
- }, kn)
61
+ onClick: l[1] || (l[1] = (s) => t("reader"))
62
+ }, A2)
68
63
  ]),
69
- h("div", Mn, [
70
- h("button", {
64
+ v("div", F2, [
65
+ v("button", {
71
66
  class: "btn btn-ghost btn-circle",
72
- onClick: l[2] || (l[2] = (r) => t("fullScreen"))
73
- }, Dn)
67
+ onClick: l[2] || (l[2] = (s) => t("fullScreen"))
68
+ }, R2)
74
69
  ]),
75
- h("div", An, [
76
- h("button", {
70
+ v("div", k2, [
71
+ v("button", {
77
72
  class: "btn btn-ghost btn-circle",
78
- onClick: l[3] || (l[3] = (r) => t("settings"))
79
- }, jn)
73
+ onClick: l[3] || (l[3] = (s) => t("settings"))
74
+ }, N2)
80
75
  ])
81
76
  ])
82
77
  ]));
83
78
  }
84
- }, Hn = /* @__PURE__ */ Le(Bn, [["__scopeId", "data-v-5c07032a"]]);
85
- function ye(e, o, t) {
79
+ };
80
+ function we(e, o, t) {
86
81
  let n = t.initialDeps ?? [], l;
87
82
  return () => {
88
- var r, i, s, a;
83
+ var s, i, a, r;
89
84
  let u;
90
- t.key && ((r = t.debug) != null && r.call(t)) && (u = Date.now());
85
+ t.key && ((s = t.debug) != null && s.call(t)) && (u = Date.now());
91
86
  const c = e();
92
- if (!(c.length !== n.length || c.some((x, _) => n[_] !== x)))
87
+ if (!(c.length !== n.length || c.some((m, b) => n[b] !== m)))
93
88
  return l;
94
89
  n = c;
95
- let g;
96
- if (t.key && ((i = t.debug) != null && i.call(t)) && (g = Date.now()), l = o(...c), t.key && ((s = t.debug) != null && s.call(t))) {
97
- const x = Math.round((Date.now() - u) * 100) / 100, _ = Math.round((Date.now() - g) * 100) / 100, v = _ / 16, $ = (N, I) => {
98
- for (N = String(N); N.length < I; )
99
- N = " " + N;
100
- return N;
90
+ let h;
91
+ if (t.key && ((i = t.debug) != null && i.call(t)) && (h = Date.now()), l = o(...c), t.key && ((a = t.debug) != null && a.call(t))) {
92
+ const m = Math.round((Date.now() - u) * 100) / 100, b = Math.round((Date.now() - h) * 100) / 100, S = b / 16, I = (T, L) => {
93
+ for (T = String(T); T.length < L; )
94
+ T = " " + T;
95
+ return T;
101
96
  };
102
97
  console.info(
103
- `%c⏱ ${$(_, 5)} /${$(x, 5)} ms`,
98
+ `%c⏱ ${I(b, 5)} /${I(m, 5)} ms`,
104
99
  `
105
100
  font-size: .6rem;
106
101
  font-weight: bold;
107
102
  color: hsl(${Math.max(
108
103
  0,
109
- Math.min(120 - 120 * v, 120)
104
+ Math.min(120 - 120 * S, 120)
110
105
  )}deg 100% 31%);`,
111
106
  t == null ? void 0 : t.key
112
107
  );
113
108
  }
114
- return (a = t == null ? void 0 : t.onChange) == null || a.call(t, l), l;
109
+ return (r = t == null ? void 0 : t.onChange) == null || r.call(t, l), l;
115
110
  };
116
111
  }
117
- function Je(e, o) {
112
+ function qe(e, o) {
118
113
  if (e === void 0)
119
114
  throw new Error("Unexpected undefined");
120
115
  return e;
121
116
  }
122
- const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
117
+ const j2 = (e, o) => Math.abs(e - o) < 1, H2 = (e, o, t) => {
123
118
  let n;
124
119
  return function(...l) {
125
120
  e.clearTimeout(n), n = e.setTimeout(() => o.apply(this, l), t);
126
121
  };
127
- }, Zn = (e) => e, Wn = (e) => {
122
+ }, z2 = (e) => e, U2 = (e) => {
128
123
  const o = Math.max(e.startIndex - e.overscan, 0), t = Math.min(e.endIndex + e.overscan, e.count - 1), n = [];
129
124
  for (let l = o; l <= t; l++)
130
125
  n.push(l);
131
126
  return n;
132
- }, Gn = (e, o) => {
127
+ }, Z2 = (e, o) => {
133
128
  const t = e.scrollElement;
134
129
  if (!t)
135
130
  return;
@@ -137,29 +132,29 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
137
132
  if (!n)
138
133
  return;
139
134
  const l = (i) => {
140
- const { width: s, height: a } = i;
141
- o({ width: Math.round(s), height: Math.round(a) });
135
+ const { width: a, height: r } = i;
136
+ o({ width: Math.round(a), height: Math.round(r) });
142
137
  };
143
138
  if (l(t.getBoundingClientRect()), !n.ResizeObserver)
144
139
  return () => {
145
140
  };
146
- const r = new n.ResizeObserver((i) => {
147
- const s = i[0];
148
- if (s != null && s.borderBoxSize) {
149
- const a = s.borderBoxSize[0];
150
- if (a) {
151
- l({ width: a.inlineSize, height: a.blockSize });
141
+ const s = new n.ResizeObserver((i) => {
142
+ const a = i[0];
143
+ if (a != null && a.borderBoxSize) {
144
+ const r = a.borderBoxSize[0];
145
+ if (r) {
146
+ l({ width: r.inlineSize, height: r.blockSize });
152
147
  return;
153
148
  }
154
149
  }
155
150
  l(t.getBoundingClientRect());
156
151
  });
157
- return r.observe(t, { box: "border-box" }), () => {
158
- r.unobserve(t);
152
+ return s.observe(t, { box: "border-box" }), () => {
153
+ s.unobserve(t);
159
154
  };
160
- }, pt = {
155
+ }, ft = {
161
156
  passive: !0
162
- }, qn = typeof window > "u" ? !0 : "onscrollend" in window, Jn = (e, o) => {
157
+ }, W2 = typeof window > "u" ? !0 : "onscrollend" in window, G2 = (e, o) => {
163
158
  const t = e.scrollElement;
164
159
  if (!t)
165
160
  return;
@@ -167,20 +162,20 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
167
162
  if (!n)
168
163
  return;
169
164
  let l = 0;
170
- const r = qn ? () => {
171
- } : Un(
165
+ const s = W2 ? () => {
166
+ } : H2(
172
167
  n,
173
168
  () => {
174
169
  o(l, !1);
175
170
  },
176
171
  e.options.isScrollingResetDelay
177
172
  ), i = (u) => () => {
178
- l = t[e.options.horizontal ? "scrollLeft" : "scrollTop"], r(), o(l, u);
179
- }, s = i(!0), a = i(!1);
180
- return a(), t.addEventListener("scroll", s, pt), t.addEventListener("scrollend", a, pt), () => {
181
- t.removeEventListener("scroll", s), t.removeEventListener("scrollend", a);
173
+ l = t[e.options.horizontal ? "scrollLeft" : "scrollTop"], s(), o(l, u);
174
+ }, a = i(!0), r = i(!1);
175
+ return r(), t.addEventListener("scroll", a, ft), t.addEventListener("scrollend", r, ft), () => {
176
+ t.removeEventListener("scroll", a), t.removeEventListener("scrollend", r);
182
177
  };
183
- }, Kn = (e, o, t) => {
178
+ }, q2 = (e, o, t) => {
184
179
  if (o != null && o.borderBoxSize) {
185
180
  const n = o.borderBoxSize[0];
186
181
  if (n)
@@ -191,24 +186,24 @@ const zn = (e, o) => Math.abs(e - o) < 1, Un = (e, o, t) => {
191
186
  return Math.round(
192
187
  e.getBoundingClientRect()[t.options.horizontal ? "width" : "height"]
193
188
  );
194
- }, Yn = (e, {
189
+ }, J2 = (e, {
195
190
  adjustments: o = 0,
196
191
  behavior: t
197
192
  }, n) => {
198
- var l, r;
193
+ var l, s;
199
194
  const i = e + o;
200
- (r = (l = n.scrollElement) == null ? void 0 : l.scrollTo) == null || r.call(l, {
195
+ (s = (l = n.scrollElement) == null ? void 0 : l.scrollTo) == null || s.call(l, {
201
196
  [n.options.horizontal ? "left" : "top"]: i,
202
197
  behavior: t
203
198
  });
204
199
  };
205
- class Qn {
200
+ class K2 {
206
201
  constructor(o) {
207
202
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollToIndexTimeoutId = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
208
203
  let t = null;
209
204
  const n = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((l) => {
210
- l.forEach((r) => {
211
- this._measureElement(r.target, r);
205
+ l.forEach((s) => {
206
+ this._measureElement(s.target, s);
212
207
  });
213
208
  }));
214
209
  return {
@@ -217,12 +212,12 @@ class Qn {
217
212
  return (l = n()) == null ? void 0 : l.disconnect();
218
213
  },
219
214
  observe: (l) => {
220
- var r;
221
- return (r = n()) == null ? void 0 : r.observe(l, { box: "border-box" });
215
+ var s;
216
+ return (s = n()) == null ? void 0 : s.observe(l, { box: "border-box" });
222
217
  },
223
218
  unobserve: (l) => {
224
- var r;
225
- return (r = n()) == null ? void 0 : r.unobserve(l);
219
+ var s;
220
+ return (s = n()) == null ? void 0 : s.unobserve(l);
226
221
  }
227
222
  };
228
223
  })(), this.range = null, this.setOptions = (t) => {
@@ -237,11 +232,11 @@ class Qn {
237
232
  scrollPaddingStart: 0,
238
233
  scrollPaddingEnd: 0,
239
234
  horizontal: !1,
240
- getItemKey: Zn,
241
- rangeExtractor: Wn,
235
+ getItemKey: z2,
236
+ rangeExtractor: U2,
242
237
  onChange: () => {
243
238
  },
244
- measureElement: Kn,
239
+ measureElement: q2,
245
240
  initialRect: { width: 0, height: 0 },
246
241
  scrollMargin: 0,
247
242
  gap: 0,
@@ -253,12 +248,12 @@ class Qn {
253
248
  ...t
254
249
  };
255
250
  }, this.notify = (t, n) => {
256
- var l, r;
257
- const { startIndex: i, endIndex: s } = this.range ?? {
251
+ var l, s;
252
+ const { startIndex: i, endIndex: a } = this.range ?? {
258
253
  startIndex: void 0,
259
254
  endIndex: void 0
260
- }, a = this.calculateRange();
261
- (t || i !== (a == null ? void 0 : a.startIndex) || s !== (a == null ? void 0 : a.endIndex)) && ((r = (l = this.options).onChange) == null || r.call(l, this, n));
255
+ }, r = this.calculateRange();
256
+ (t || i !== (r == null ? void 0 : r.startIndex) || a !== (r == null ? void 0 : r.endIndex)) && ((s = (l = this.options).onChange) == null || s.call(l, this, n));
262
257
  }, this.cleanup = () => {
263
258
  this.unsubs.filter(Boolean).forEach((t) => t()), this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.observer.disconnect(), this.elementsCache.clear();
264
259
  }, this._didMount = () => () => {
@@ -279,27 +274,27 @@ class Qn {
279
274
  this.scrollRect = l, this.notify(!1, !1);
280
275
  })
281
276
  ), this.unsubs.push(
282
- this.options.observeElementOffset(this, (l, r) => {
283
- this.scrollAdjustments = 0, this.scrollDirection = r ? this.getScrollOffset() < l ? "forward" : "backward" : null, this.scrollOffset = l;
277
+ this.options.observeElementOffset(this, (l, s) => {
278
+ this.scrollAdjustments = 0, this.scrollDirection = s ? this.getScrollOffset() < l ? "forward" : "backward" : null, this.scrollOffset = l;
284
279
  const i = this.isScrolling;
285
- this.isScrolling = r, this.notify(i !== r, r);
280
+ this.isScrolling = s, this.notify(i !== s, s);
286
281
  })
287
282
  );
288
283
  }
289
284
  }, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, n) => {
290
- const l = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
285
+ const l = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
291
286
  for (let i = n - 1; i >= 0; i--) {
292
- const s = t[i];
293
- if (l.has(s.lane))
287
+ const a = t[i];
288
+ if (l.has(a.lane))
294
289
  continue;
295
- const a = r.get(
296
- s.lane
290
+ const r = s.get(
291
+ a.lane
297
292
  );
298
- if (a == null || s.end > a.end ? r.set(s.lane, s) : s.end < a.end && l.set(s.lane, !0), l.size === this.options.lanes)
293
+ if (r == null || a.end > r.end ? s.set(a.lane, a) : a.end < r.end && l.set(a.lane, !0), l.size === this.options.lanes)
299
294
  break;
300
295
  }
301
- return r.size === this.options.lanes ? Array.from(r.values()).sort((i, s) => i.end === s.end ? i.index - s.index : i.end - s.end)[0] : void 0;
302
- }, this.getMeasurementOptions = ye(
296
+ return s.size === this.options.lanes ? Array.from(s.values()).sort((i, a) => i.end === a.end ? i.index - a.index : i.end - a.end)[0] : void 0;
297
+ }, this.getMeasurementOptions = we(
303
298
  () => [
304
299
  this.options.count,
305
300
  this.options.paddingStart,
@@ -307,20 +302,20 @@ class Qn {
307
302
  this.options.getItemKey,
308
303
  this.options.enabled
309
304
  ],
310
- (t, n, l, r, i) => (this.pendingMeasuredCacheIndexes = [], {
305
+ (t, n, l, s, i) => (this.pendingMeasuredCacheIndexes = [], {
311
306
  count: t,
312
307
  paddingStart: n,
313
308
  scrollMargin: l,
314
- getItemKey: r,
309
+ getItemKey: s,
315
310
  enabled: i
316
311
  }),
317
312
  {
318
313
  key: !1
319
314
  }
320
- ), this.getMeasurements = ye(
315
+ ), this.getMeasurements = we(
321
316
  () => [this.getMeasurementOptions(), this.itemSizeCache],
322
- ({ count: t, paddingStart: n, scrollMargin: l, getItemKey: r, enabled: i }, s) => {
323
- var a;
317
+ ({ count: t, paddingStart: n, scrollMargin: l, getItemKey: s, enabled: i }, a) => {
318
+ var r;
324
319
  if (!i)
325
320
  return this.measurementsCache = [], this.itemSizeCache.clear(), [];
326
321
  this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((p) => {
@@ -330,27 +325,27 @@ class Qn {
330
325
  this.pendingMeasuredCacheIndexes = [];
331
326
  const c = this.measurementsCache.slice(0, u);
332
327
  for (let p = u; p < t; p++) {
333
- let g = (a = this.measurementsCache[p]) == null ? void 0 : a.measureElement;
334
- g || (g = (D) => {
335
- const m = r(p), R = this.elementsCache.get(m);
336
- if (!D) {
337
- R && (this.observer.unobserve(R), this.elementsCache.delete(m));
328
+ let h = (r = this.measurementsCache[p]) == null ? void 0 : r.measureElement;
329
+ h || (h = (k) => {
330
+ const g = s(p), M = this.elementsCache.get(g);
331
+ if (!k) {
332
+ M && (this.observer.unobserve(M), this.elementsCache.delete(g));
338
333
  return;
339
334
  }
340
- R !== D && (R && this.observer.unobserve(R), this.observer.observe(D), this.elementsCache.set(m, D)), D.isConnected && this.resizeItem(
335
+ M !== k && (M && this.observer.unobserve(M), this.observer.observe(k), this.elementsCache.set(g, k)), k.isConnected && this.resizeItem(
341
336
  p,
342
- this.options.measureElement(D, void 0, this)
337
+ this.options.measureElement(k, void 0, this)
343
338
  );
344
339
  });
345
- const x = r(p), _ = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), v = _ ? _.end + this.options.gap : n + l, $ = s.get(x), N = typeof $ == "number" ? $ : this.options.estimateSize(p), I = v + N, k = _ ? _.lane : p % this.options.lanes;
340
+ const m = s(p), b = this.options.lanes === 1 ? c[p - 1] : this.getFurthestMeasurement(c, p), S = b ? b.end + this.options.gap : n + l, I = a.get(m), T = typeof I == "number" ? I : this.options.estimateSize(p), L = S + T, P = b ? b.lane : p % this.options.lanes;
346
341
  c[p] = {
347
342
  index: p,
348
- start: v,
349
- size: N,
350
- end: I,
351
- key: x,
352
- lane: k,
353
- measureElement: g
343
+ start: S,
344
+ size: T,
345
+ end: L,
346
+ key: m,
347
+ lane: P,
348
+ measureElement: h
354
349
  };
355
350
  }
356
351
  return this.measurementsCache = c, c;
@@ -359,9 +354,9 @@ class Qn {
359
354
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
360
355
  debug: () => this.options.debug
361
356
  }
362
- ), this.calculateRange = ye(
357
+ ), this.calculateRange = we(
363
358
  () => [this.getMeasurements(), this.getSize(), this.getScrollOffset()],
364
- (t, n, l) => this.range = t.length > 0 && n > 0 ? Xn({
359
+ (t, n, l) => this.range = t.length > 0 && n > 0 ? Y2({
365
360
  measurements: t,
366
361
  outerSize: n,
367
362
  scrollOffset: l
@@ -370,18 +365,18 @@ class Qn {
370
365
  key: process.env.NODE_ENV !== "production" && "calculateRange",
371
366
  debug: () => this.options.debug
372
367
  }
373
- ), this.getIndexes = ye(
368
+ ), this.getIndexes = we(
374
369
  () => [
375
370
  this.options.rangeExtractor,
376
371
  this.calculateRange(),
377
372
  this.options.overscan,
378
373
  this.options.count
379
374
  ],
380
- (t, n, l, r) => n === null ? [] : t({
375
+ (t, n, l, s) => n === null ? [] : t({
381
376
  startIndex: n.startIndex,
382
377
  endIndex: n.endIndex,
383
378
  overscan: l,
384
- count: r
379
+ count: s
385
380
  }),
386
381
  {
387
382
  key: process.env.NODE_ENV !== "production" && "getIndexes",
@@ -393,33 +388,33 @@ class Qn {
393
388
  `Missing attribute name '${n}={index}' on measured element.`
394
389
  ), -1);
395
390
  }, this._measureElement = (t, n) => {
396
- const l = this.indexFromElement(t), r = this.getMeasurements()[l];
397
- if (!r || !t.isConnected) {
398
- this.elementsCache.forEach((s, a) => {
399
- s === t && (this.observer.unobserve(t), this.elementsCache.delete(a));
391
+ const l = this.indexFromElement(t), s = this.getMeasurements()[l];
392
+ if (!s || !t.isConnected) {
393
+ this.elementsCache.forEach((a, r) => {
394
+ a === t && (this.observer.unobserve(t), this.elementsCache.delete(r));
400
395
  });
401
396
  return;
402
397
  }
403
- const i = this.elementsCache.get(r.key);
404
- i !== t && (i && this.observer.unobserve(i), this.observer.observe(t), this.elementsCache.set(r.key, t)), this.resizeItem(l, this.options.measureElement(t, n, this));
398
+ const i = this.elementsCache.get(s.key);
399
+ i !== t && (i && this.observer.unobserve(i), this.observer.observe(t), this.elementsCache.set(s.key, t)), this.resizeItem(l, this.options.measureElement(t, n, this));
405
400
  }, this.resizeItem = (t, n) => {
406
401
  const l = this.getMeasurements()[t];
407
402
  if (!l)
408
403
  return;
409
- const r = this.itemSizeCache.get(l.key) ?? l.size, i = n - r;
404
+ const s = this.itemSizeCache.get(l.key) ?? l.size, i = n - s;
410
405
  i !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(l, i, this) : l.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", i), this._scrollToOffset(this.getScrollOffset(), {
411
406
  adjustments: this.scrollAdjustments += i,
412
407
  behavior: void 0
413
408
  })), this.pendingMeasuredCacheIndexes.push(l.index), this.itemSizeCache = new Map(this.itemSizeCache.set(l.key, n)), this.notify(!0, !1));
414
409
  }, this.measureElement = (t) => {
415
410
  t && this._measureElement(t, void 0);
416
- }, this.getVirtualItems = ye(
411
+ }, this.getVirtualItems = we(
417
412
  () => [this.getIndexes(), this.getMeasurements()],
418
413
  (t, n) => {
419
414
  const l = [];
420
- for (let r = 0, i = t.length; r < i; r++) {
421
- const s = t[r], a = n[s];
422
- l.push(a);
415
+ for (let s = 0, i = t.length; s < i; s++) {
416
+ const a = t[s], r = n[a];
417
+ l.push(r);
423
418
  }
424
419
  return l;
425
420
  },
@@ -430,34 +425,34 @@ class Qn {
430
425
  ), this.getVirtualItemForOffset = (t) => {
431
426
  const n = this.getMeasurements();
432
427
  if (n.length !== 0)
433
- return Je(
434
- n[Dt(
428
+ return qe(
429
+ n[Ft(
435
430
  0,
436
431
  n.length - 1,
437
- (l) => Je(n[l]).start,
432
+ (l) => qe(n[l]).start,
438
433
  t
439
434
  )]
440
435
  );
441
436
  }, this.getOffsetForAlignment = (t, n) => {
442
- const l = this.getSize(), r = this.getScrollOffset();
443
- n === "auto" && (t <= r ? n = "start" : t >= r + l ? n = "end" : n = "start"), n === "start" ? t = t : n === "end" ? t = t - l : n === "center" && (t = t - l / 2);
444
- const i = this.options.horizontal ? "scrollWidth" : "scrollHeight", a = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[i] : this.scrollElement[i] : 0) - l;
445
- return Math.max(Math.min(a, t), 0);
437
+ const l = this.getSize(), s = this.getScrollOffset();
438
+ n === "auto" && (t <= s ? n = "start" : t >= s + l ? n = "end" : n = "start"), n === "start" ? t = t : n === "end" ? t = t - l : n === "center" && (t = t - l / 2);
439
+ const i = this.options.horizontal ? "scrollWidth" : "scrollHeight", r = (this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[i] : this.scrollElement[i] : 0) - l;
440
+ return Math.max(Math.min(r, t), 0);
446
441
  }, this.getOffsetForIndex = (t, n = "auto") => {
447
442
  t = Math.max(0, Math.min(t, this.options.count - 1));
448
443
  const l = this.getMeasurements()[t];
449
444
  if (!l)
450
445
  return;
451
- const r = this.getSize(), i = this.getScrollOffset();
446
+ const s = this.getSize(), i = this.getScrollOffset();
452
447
  if (n === "auto")
453
- if (l.end >= i + r - this.options.scrollPaddingEnd)
448
+ if (l.end >= i + s - this.options.scrollPaddingEnd)
454
449
  n = "end";
455
450
  else if (l.start <= i + this.options.scrollPaddingStart)
456
451
  n = "start";
457
452
  else
458
453
  return [i, n];
459
- const s = n === "end" ? l.end + this.options.scrollPaddingEnd : l.start - this.options.scrollPaddingStart;
460
- return [this.getOffsetForAlignment(s, n), n];
454
+ const a = n === "end" ? l.end + this.options.scrollPaddingEnd : l.start - this.options.scrollPaddingStart;
455
+ return [this.getOffsetForAlignment(a, n), n];
461
456
  }, this.isDynamicMode = () => this.elementsCache.size > 0, this.cancelScrollToIndex = () => {
462
457
  this.scrollToIndexTimeoutId !== null && this.targetWindow && (this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId), this.scrollToIndexTimeoutId = null);
463
458
  }, this.scrollToOffset = (t, { align: n = "start", behavior: l } = {}) => {
@@ -471,19 +466,19 @@ class Qn {
471
466
  t = Math.max(0, Math.min(t, this.options.count - 1)), this.cancelScrollToIndex(), l === "smooth" && this.isDynamicMode() && console.warn(
472
467
  "The `smooth` scroll behavior is not fully supported with dynamic size."
473
468
  );
474
- const r = this.getOffsetForIndex(t, n);
475
- if (!r) return;
476
- const [i, s] = r;
469
+ const s = this.getOffsetForIndex(t, n);
470
+ if (!s) return;
471
+ const [i, a] = s;
477
472
  this._scrollToOffset(i, { adjustments: void 0, behavior: l }), l !== "smooth" && this.isDynamicMode() && this.targetWindow && (this.scrollToIndexTimeoutId = this.targetWindow.setTimeout(() => {
478
473
  if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
479
474
  this.options.getItemKey(t)
480
475
  )) {
481
- const [u] = Je(
482
- this.getOffsetForIndex(t, s)
476
+ const [u] = qe(
477
+ this.getOffsetForIndex(t, a)
483
478
  );
484
- zn(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: s, behavior: l });
479
+ j2(u, this.getScrollOffset()) || this.scrollToIndex(t, { align: a, behavior: l });
485
480
  } else
486
- this.scrollToIndex(t, { align: s, behavior: l });
481
+ this.scrollToIndex(t, { align: a, behavior: l });
487
482
  }));
488
483
  }, this.scrollBy = (t, { behavior: n } = {}) => {
489
484
  this.cancelScrollToIndex(), n === "smooth" && this.isDynamicMode() && console.warn(
@@ -497,7 +492,7 @@ class Qn {
497
492
  const n = this.getMeasurements();
498
493
  let l;
499
494
  return n.length === 0 ? l = this.options.paddingStart : l = this.options.lanes === 1 ? ((t = n[n.length - 1]) == null ? void 0 : t.end) ?? 0 : Math.max(
500
- ...n.slice(-this.options.lanes).map((r) => r.end)
495
+ ...n.slice(-this.options.lanes).map((s) => s.end)
501
496
  ), l - this.options.scrollMargin + this.options.paddingEnd;
502
497
  }, this._scrollToOffset = (t, {
503
498
  adjustments: n,
@@ -510,32 +505,32 @@ class Qn {
510
505
  }, this.setOptions(o);
511
506
  }
512
507
  }
513
- const Dt = (e, o, t, n) => {
508
+ const Ft = (e, o, t, n) => {
514
509
  for (; e <= o; ) {
515
- const l = (e + o) / 2 | 0, r = t(l);
516
- if (r < n)
510
+ const l = (e + o) / 2 | 0, s = t(l);
511
+ if (s < n)
517
512
  e = l + 1;
518
- else if (r > n)
513
+ else if (s > n)
519
514
  o = l - 1;
520
515
  else
521
516
  return l;
522
517
  }
523
518
  return e > 0 ? e - 1 : 0;
524
519
  };
525
- function Xn({
520
+ function Y2({
526
521
  measurements: e,
527
522
  outerSize: o,
528
523
  scrollOffset: t
529
524
  }) {
530
- const n = e.length - 1, r = Dt(0, n, (s) => e[s].start, t);
531
- let i = r;
525
+ const n = e.length - 1, s = Ft(0, n, (a) => e[a].start, t);
526
+ let i = s;
532
527
  for (; i < n && e[i].end < t + o; )
533
528
  i++;
534
- return { startIndex: r, endIndex: i };
529
+ return { startIndex: s, endIndex: i };
535
530
  }
536
- function eo(e) {
537
- const o = new Qn(V(e)), t = mn(o), n = o._didMount();
538
- return F(
531
+ function Q2(e) {
532
+ const o = new K2(V(e)), t = p2(o), n = o._didMount();
533
+ return B(
539
534
  () => V(e).getScrollElement(),
540
535
  (l) => {
541
536
  l && o._willUpdate();
@@ -543,46 +538,46 @@ function eo(e) {
543
538
  {
544
539
  immediate: !0
545
540
  }
546
- ), F(
541
+ ), B(
547
542
  () => V(e),
548
543
  (l) => {
549
544
  o.setOptions({
550
545
  ...l,
551
- onChange: (r, i) => {
552
- var s;
553
- ct(t), (s = l.onChange) == null || s.call(l, r, i);
546
+ onChange: (s, i) => {
547
+ var a;
548
+ ut(t), (a = l.onChange) == null || a.call(l, s, i);
554
549
  }
555
- }), o._willUpdate(), ct(t);
550
+ }), o._willUpdate(), ut(t);
556
551
  },
557
552
  {
558
553
  immediate: !0
559
554
  }
560
- ), nt(n), t;
561
- }
562
- function to(e) {
563
- return eo(
564
- S(() => ({
565
- observeElementRect: Gn,
566
- observeElementOffset: Jn,
567
- scrollToFn: Yn,
555
+ ), tt(n), t;
556
+ }
557
+ function X2(e) {
558
+ return Q2(
559
+ _(() => ({
560
+ observeElementRect: Z2,
561
+ observeElementOffset: G2,
562
+ scrollToFn: J2,
568
563
  ...V(e)
569
564
  }))
570
565
  );
571
566
  }
572
- function no(e, o, t) {
573
- let n = E(t == null ? void 0 : t.value), l = S(() => e.value !== void 0);
574
- return [S(() => l.value ? e.value : n.value), function(r) {
575
- return l.value || (n.value = r), o == null ? void 0 : o(r);
567
+ function e0(e, o, t) {
568
+ let n = O(t == null ? void 0 : t.value), l = _(() => e.value !== void 0);
569
+ return [_(() => l.value ? e.value : n.value), function(s) {
570
+ return l.value || (n.value = s), o == null ? void 0 : o(s);
576
571
  }];
577
572
  }
578
- function oo(e) {
573
+ function t0(e) {
579
574
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((o) => setTimeout(() => {
580
575
  throw o;
581
576
  }));
582
577
  }
583
- function Fe() {
584
- let e = [], o = { addEventListener(t, n, l, r) {
585
- return t.addEventListener(n, l, r), o.add(() => t.removeEventListener(n, l, r));
578
+ function ke() {
579
+ let e = [], o = { addEventListener(t, n, l, s) {
580
+ return t.addEventListener(n, l, s), o.add(() => t.removeEventListener(n, l, s));
586
581
  }, requestAnimationFrame(...t) {
587
582
  let n = requestAnimationFrame(...t);
588
583
  o.add(() => cancelAnimationFrame(n));
@@ -595,18 +590,18 @@ function Fe() {
595
590
  o.add(() => clearTimeout(n));
596
591
  }, microTask(...t) {
597
592
  let n = { current: !0 };
598
- return oo(() => {
593
+ return t0(() => {
599
594
  n.current && t[0]();
600
595
  }), o.add(() => {
601
596
  n.current = !1;
602
597
  });
603
598
  }, style(t, n, l) {
604
- let r = t.style.getPropertyValue(n);
599
+ let s = t.style.getPropertyValue(n);
605
600
  return Object.assign(t.style, { [n]: l }), this.add(() => {
606
- Object.assign(t.style, { [n]: r });
601
+ Object.assign(t.style, { [n]: s });
607
602
  });
608
603
  }, group(t) {
609
- let n = Fe();
604
+ let n = ke();
610
605
  return t(n), this.add(() => n.dispose());
611
606
  }, add(t) {
612
607
  return e.push(t), () => {
@@ -618,21 +613,21 @@ function Fe() {
618
613
  } };
619
614
  return o;
620
615
  }
621
- function lo() {
622
- let e = Fe();
623
- return ot(() => e.dispose()), e;
616
+ function n0() {
617
+ let e = ke();
618
+ return nt(() => e.dispose()), e;
624
619
  }
625
- function so() {
626
- let e = lo();
620
+ function o0() {
621
+ let e = n0();
627
622
  return (o) => {
628
623
  e.dispose(), e.nextFrame(o);
629
624
  };
630
625
  }
631
- let ro = Symbol("headlessui.useid"), io = 0;
632
- function Pe() {
633
- return Ie(ro, () => `${++io}`)();
626
+ let l0 = Symbol("headlessui.useid"), s0 = 0;
627
+ function Le() {
628
+ return Ie(l0, () => `${++s0}`)();
634
629
  }
635
- function P(e) {
630
+ function F(e) {
636
631
  var o;
637
632
  if (e == null || e.value == null) return null;
638
633
  let t = (o = e.value.$el) != null ? o : e.value;
@@ -646,10 +641,10 @@ function le(e, o, ...t) {
646
641
  let n = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map((l) => `"${l}"`).join(", ")}.`);
647
642
  throw Error.captureStackTrace && Error.captureStackTrace(n, le), n;
648
643
  }
649
- var ao = Object.defineProperty, uo = (e, o, t) => o in e ? ao(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, vt = (e, o, t) => (uo(e, typeof o != "symbol" ? o + "" : o, t), t);
650
- let co = class {
644
+ var a0 = Object.defineProperty, i0 = (e, o, t) => o in e ? a0(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, pt = (e, o, t) => (i0(e, typeof o != "symbol" ? o + "" : o, t), t);
645
+ let r0 = class {
651
646
  constructor() {
652
- vt(this, "current", this.detect()), vt(this, "currentId", 0);
647
+ pt(this, "current", this.detect()), pt(this, "currentId", 0);
653
648
  }
654
649
  set(o) {
655
650
  this.current !== o && (this.currentId = 0, this.current = o);
@@ -669,225 +664,225 @@ let co = class {
669
664
  detect() {
670
665
  return typeof window > "u" || typeof document > "u" ? "server" : "client";
671
666
  }
672
- }, rt = new co();
673
- function it(e) {
674
- if (rt.isServer) return null;
667
+ }, st = new r0();
668
+ function at(e) {
669
+ if (st.isServer) return null;
675
670
  if (e instanceof Node) return e.ownerDocument;
676
671
  if (e != null && e.hasOwnProperty("value")) {
677
- let o = P(e);
672
+ let o = F(e);
678
673
  if (o) return o.ownerDocument;
679
674
  }
680
675
  return document;
681
676
  }
682
- let ht = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
683
- var fo = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(fo || {}), po = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(po || {}), vo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(vo || {}), At = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(At || {});
684
- function ho(e, o = 0) {
677
+ let vt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
678
+ var u0 = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(u0 || {}), c0 = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(c0 || {}), d0 = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(d0 || {}), Pt = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Pt || {});
679
+ function f0(e, o = 0) {
685
680
  var t;
686
- return e === ((t = it(e)) == null ? void 0 : t.body) ? !1 : le(o, { 0() {
687
- return e.matches(ht);
681
+ return e === ((t = at(e)) == null ? void 0 : t.body) ? !1 : le(o, { 0() {
682
+ return e.matches(vt);
688
683
  }, 1() {
689
684
  let n = e;
690
685
  for (; n !== null; ) {
691
- if (n.matches(ht)) return !0;
686
+ if (n.matches(vt)) return !0;
692
687
  n = n.parentElement;
693
688
  }
694
689
  return !1;
695
690
  } });
696
691
  }
697
- var mo = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(mo || {});
692
+ var p0 = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(p0 || {});
698
693
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
699
694
  e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
700
695
  }, !0), document.addEventListener("click", (e) => {
701
696
  e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
702
697
  }, !0));
703
- function go(e, o = (t) => t) {
698
+ function v0(e, o = (t) => t) {
704
699
  return e.slice().sort((t, n) => {
705
- let l = o(t), r = o(n);
706
- if (l === null || r === null) return 0;
707
- let i = l.compareDocumentPosition(r);
700
+ let l = o(t), s = o(n);
701
+ if (l === null || s === null) return 0;
702
+ let i = l.compareDocumentPosition(s);
708
703
  return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
709
704
  });
710
705
  }
711
- function bo() {
706
+ function h0() {
712
707
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
713
708
  }
714
- function xo() {
709
+ function m0() {
715
710
  return /Android/gi.test(window.navigator.userAgent);
716
711
  }
717
- function Ft() {
718
- return bo() || xo();
712
+ function Rt() {
713
+ return h0() || m0();
719
714
  }
720
- function ke(e, o, t) {
721
- rt.isServer || ie((n) => {
715
+ function Ve(e, o, t) {
716
+ st.isServer || re((n) => {
722
717
  document.addEventListener(e, o, t), n(() => document.removeEventListener(e, o, t));
723
718
  });
724
719
  }
725
- function _o(e, o, t) {
726
- rt.isServer || ie((n) => {
720
+ function b0(e, o, t) {
721
+ st.isServer || re((n) => {
727
722
  window.addEventListener(e, o, t), n(() => window.removeEventListener(e, o, t));
728
723
  });
729
724
  }
730
- function Co(e, o, t = S(() => !0)) {
731
- function n(r, i) {
732
- if (!t.value || r.defaultPrevented) return;
733
- let s = i(r);
734
- if (s === null || !s.getRootNode().contains(s)) return;
735
- let a = function u(c) {
725
+ function g0(e, o, t = _(() => !0)) {
726
+ function n(s, i) {
727
+ if (!t.value || s.defaultPrevented) return;
728
+ let a = i(s);
729
+ if (a === null || !a.getRootNode().contains(a)) return;
730
+ let r = function u(c) {
736
731
  return typeof c == "function" ? u(c()) : Array.isArray(c) || c instanceof Set ? c : [c];
737
732
  }(e);
738
- for (let u of a) {
733
+ for (let u of r) {
739
734
  if (u === null) continue;
740
- let c = u instanceof HTMLElement ? u : P(u);
741
- if (c != null && c.contains(s) || r.composed && r.composedPath().includes(c)) return;
735
+ let c = u instanceof HTMLElement ? u : F(u);
736
+ if (c != null && c.contains(a) || s.composed && s.composedPath().includes(c)) return;
742
737
  }
743
- return !ho(s, At.Loose) && s.tabIndex !== -1 && r.preventDefault(), o(r, s);
744
- }
745
- let l = E(null);
746
- ke("pointerdown", (r) => {
747
- var i, s;
748
- t.value && (l.value = ((s = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : s[0]) || r.target);
749
- }, !0), ke("mousedown", (r) => {
750
- var i, s;
751
- t.value && (l.value = ((s = (i = r.composedPath) == null ? void 0 : i.call(r)) == null ? void 0 : s[0]) || r.target);
752
- }, !0), ke("click", (r) => {
753
- Ft() || l.value && (n(r, () => l.value), l.value = null);
754
- }, !0), ke("touchend", (r) => n(r, () => r.target instanceof HTMLElement ? r.target : null), !0), _o("blur", (r) => n(r, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
755
- }
756
- function mt(e, o) {
738
+ return !f0(a, Pt.Loose) && a.tabIndex !== -1 && s.preventDefault(), o(s, a);
739
+ }
740
+ let l = O(null);
741
+ Ve("pointerdown", (s) => {
742
+ var i, a;
743
+ t.value && (l.value = ((a = (i = s.composedPath) == null ? void 0 : i.call(s)) == null ? void 0 : a[0]) || s.target);
744
+ }, !0), Ve("mousedown", (s) => {
745
+ var i, a;
746
+ t.value && (l.value = ((a = (i = s.composedPath) == null ? void 0 : i.call(s)) == null ? void 0 : a[0]) || s.target);
747
+ }, !0), Ve("click", (s) => {
748
+ Rt() || l.value && (n(s, () => l.value), l.value = null);
749
+ }, !0), Ve("touchend", (s) => n(s, () => s.target instanceof HTMLElement ? s.target : null), !0), b0("blur", (s) => n(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
750
+ }
751
+ function ht(e, o) {
757
752
  if (e) return e;
758
753
  let t = o ?? "button";
759
754
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
760
755
  }
761
- function yo(e, o) {
762
- let t = E(mt(e.value.type, e.value.as));
763
- return Ce(() => {
764
- t.value = mt(e.value.type, e.value.as);
765
- }), ie(() => {
756
+ function C0(e, o) {
757
+ let t = O(ht(e.value.type, e.value.as));
758
+ return ye(() => {
759
+ t.value = ht(e.value.type, e.value.as);
760
+ }), re(() => {
766
761
  var n;
767
- t.value || P(o) && P(o) instanceof HTMLButtonElement && !((n = P(o)) != null && n.hasAttribute("type")) && (t.value = "button");
762
+ t.value || F(o) && F(o) instanceof HTMLButtonElement && !((n = F(o)) != null && n.hasAttribute("type")) && (t.value = "button");
768
763
  }), t;
769
764
  }
770
- function gt(e) {
765
+ function mt(e) {
771
766
  return [e.screenX, e.screenY];
772
767
  }
773
- function wo() {
774
- let e = E([-1, -1]);
768
+ function x0() {
769
+ let e = O([-1, -1]);
775
770
  return { wasMoved(o) {
776
- let t = gt(o);
771
+ let t = mt(o);
777
772
  return e.value[0] === t[0] && e.value[1] === t[1] ? !1 : (e.value = t, !0);
778
773
  }, update(o) {
779
- e.value = gt(o);
774
+ e.value = mt(o);
780
775
  } };
781
776
  }
782
- function So({ container: e, accept: o, walk: t, enabled: n }) {
783
- ie(() => {
777
+ function y0({ container: e, accept: o, walk: t, enabled: n }) {
778
+ re(() => {
784
779
  let l = e.value;
785
780
  if (!l || n !== void 0 && !n.value) return;
786
- let r = it(e);
787
- if (!r) return;
788
- let i = Object.assign((a) => o(a), { acceptNode: o }), s = r.createTreeWalker(l, NodeFilter.SHOW_ELEMENT, i, !1);
789
- for (; s.nextNode(); ) t(s.currentNode);
781
+ let s = at(e);
782
+ if (!s) return;
783
+ let i = Object.assign((r) => o(r), { acceptNode: o }), a = s.createTreeWalker(l, NodeFilter.SHOW_ELEMENT, i, !1);
784
+ for (; a.nextNode(); ) t(a.currentNode);
790
785
  });
791
786
  }
792
- var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}), Eo = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Eo || {});
793
- function pe({ visible: e = !0, features: o = 0, ourProps: t, theirProps: n, ...l }) {
794
- var r;
795
- let i = Bt(n, t), s = Object.assign(l, { props: i });
796
- if (e || o & 2 && i.static) return Ke(s);
787
+ var Oe = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Oe || {}), w0 = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(w0 || {});
788
+ function ve({ visible: e = !0, features: o = 0, ourProps: t, theirProps: n, ...l }) {
789
+ var s;
790
+ let i = Dt(n, t), a = Object.assign(l, { props: i });
791
+ if (e || o & 2 && i.static) return Je(a);
797
792
  if (o & 1) {
798
- let a = (r = i.unmount) == null || r ? 0 : 1;
799
- return le(a, { 0() {
793
+ let r = (s = i.unmount) == null || s ? 0 : 1;
794
+ return le(r, { 0() {
800
795
  return null;
801
796
  }, 1() {
802
- return Ke({ ...l, props: { ...i, hidden: !0, style: { display: "none" } } });
797
+ return Je({ ...l, props: { ...i, hidden: !0, style: { display: "none" } } });
803
798
  } });
804
799
  }
805
- return Ke(s);
800
+ return Je(a);
806
801
  }
807
- function Ke({ props: e, attrs: o, slots: t, slot: n, name: l }) {
808
- var r, i;
809
- let { as: s, ...a } = He(e, ["unmount", "static"]), u = (r = t.default) == null ? void 0 : r.call(t, n), c = {};
802
+ function Je({ props: e, attrs: o, slots: t, slot: n, name: l }) {
803
+ var s, i;
804
+ let { as: a, ...r } = Be(e, ["unmount", "static"]), u = (s = t.default) == null ? void 0 : s.call(t, n), c = {};
810
805
  if (n) {
811
- let p = !1, g = [];
812
- for (let [x, _] of Object.entries(n)) typeof _ == "boolean" && (p = !0), _ === !0 && g.push(x);
813
- p && (c["data-headlessui-state"] = g.join(" "));
814
- }
815
- if (s === "template") {
816
- if (u = jt(u ?? []), Object.keys(a).length > 0 || Object.keys(o).length > 0) {
817
- let [p, ...g] = u ?? [];
818
- if (!$o(p) || g.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(a).concat(Object.keys(o)).map((v) => v.trim()).filter((v, $, N) => N.indexOf(v) === $).sort((v, $) => v.localeCompare($)).map((v) => ` - ${v}`).join(`
819
- `), "", "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(`
806
+ let p = !1, h = [];
807
+ for (let [m, b] of Object.entries(n)) typeof b == "boolean" && (p = !0), b === !0 && h.push(m);
808
+ p && (c["data-headlessui-state"] = h.join(" "));
809
+ }
810
+ if (a === "template") {
811
+ if (u = kt(u ?? []), Object.keys(r).length > 0 || Object.keys(o).length > 0) {
812
+ let [p, ...h] = u ?? [];
813
+ if (!S0(p) || h.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${l} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(r).concat(Object.keys(o)).map((S) => S.trim()).filter((S, I, T) => T.indexOf(S) === I).sort((S, I) => S.localeCompare(I)).map((S) => ` - ${S}`).join(`
814
+ `), "", "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((S) => ` - ${S}`).join(`
820
815
  `)].join(`
821
816
  `));
822
- let x = Bt((i = p.props) != null ? i : {}, a, c), _ = Lt(p, x, !0);
823
- for (let v in x) v.startsWith("on") && (_.props || (_.props = {}), _.props[v] = x[v]);
824
- return _;
817
+ let m = Dt((i = p.props) != null ? i : {}, r, c), b = Tt(p, m, !0);
818
+ for (let S in m) S.startsWith("on") && (b.props || (b.props = {}), b.props[S] = m[S]);
819
+ return b;
825
820
  }
826
821
  return Array.isArray(u) && u.length === 1 ? u[0] : u;
827
822
  }
828
- return Ee(s, Object.assign({}, a, c), { default: () => u });
823
+ return Ee(a, Object.assign({}, r, c), { default: () => u });
829
824
  }
830
- function jt(e) {
831
- return e.flatMap((o) => o.type === Z ? jt(o.children) : [o]);
825
+ function kt(e) {
826
+ return e.flatMap((o) => o.type === Q ? kt(o.children) : [o]);
832
827
  }
833
- function Bt(...e) {
828
+ function Dt(...e) {
834
829
  if (e.length === 0) return {};
835
830
  if (e.length === 1) return e[0];
836
831
  let o = {}, t = {};
837
832
  for (let n of e) for (let l in n) l.startsWith("on") && typeof n[l] == "function" ? (t[l] != null || (t[l] = []), t[l].push(n[l])) : o[l] = n[l];
838
833
  if (o.disabled || o["aria-disabled"]) return Object.assign(o, Object.fromEntries(Object.keys(t).map((n) => [n, void 0])));
839
- for (let n in t) Object.assign(o, { [n](l, ...r) {
834
+ for (let n in t) Object.assign(o, { [n](l, ...s) {
840
835
  let i = t[n];
841
- for (let s of i) {
836
+ for (let a of i) {
842
837
  if (l instanceof Event && l.defaultPrevented) return;
843
- s(l, ...r);
838
+ a(l, ...s);
844
839
  }
845
840
  } });
846
841
  return o;
847
842
  }
848
- function Oo(e) {
843
+ function _0(e) {
849
844
  let o = Object.assign({}, e);
850
845
  for (let t in o) o[t] === void 0 && delete o[t];
851
846
  return o;
852
847
  }
853
- function He(e, o = []) {
848
+ function Be(e, o = []) {
854
849
  let t = Object.assign({}, e);
855
850
  for (let n of o) n in t && delete t[n];
856
851
  return t;
857
852
  }
858
- function $o(e) {
853
+ function S0(e) {
859
854
  return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
860
855
  }
861
- var Ht = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ht || {});
862
- let To = ae({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: o, attrs: t }) {
856
+ var Nt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Nt || {});
857
+ let E0 = ue({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: o, attrs: t }) {
863
858
  return () => {
864
859
  var n;
865
- let { features: l, ...r } = e, i = { "aria-hidden": (l & 2) === 2 ? !0 : (n = r["aria-hidden"]) != null ? n : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
866
- return pe({ ourProps: i, theirProps: r, slot: {}, attrs: t, slots: o, name: "Hidden" });
860
+ let { features: l, ...s } = e, i = { "aria-hidden": (l & 2) === 2 ? !0 : (n = s["aria-hidden"]) != null ? n : void 0, hidden: (l & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
861
+ return ve({ ourProps: i, theirProps: s, slot: {}, attrs: t, slots: o, name: "Hidden" });
867
862
  };
868
- } }), zt = Symbol("Context");
869
- var $e = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))($e || {});
870
- function Io() {
871
- return Ie(zt, null);
863
+ } }), Bt = Symbol("Context");
864
+ var Te = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Te || {});
865
+ function O0() {
866
+ return Ie(Bt, null);
872
867
  }
873
- function Lo(e) {
874
- lt(zt, e);
868
+ function T0(e) {
869
+ ot(Bt, e);
875
870
  }
876
- var W = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(W || {}), Ut = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(Ut || {});
877
- function Ro(e) {
871
+ var G = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(G || {}), jt = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(jt || {});
872
+ function $0(e) {
878
873
  function o() {
879
874
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", o));
880
875
  }
881
876
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", o), o());
882
877
  }
883
- let ce = [];
884
- Ro(() => {
878
+ let de = [];
879
+ $0(() => {
885
880
  function e(o) {
886
- o.target instanceof HTMLElement && o.target !== document.body && ce[0] !== o.target && (ce.unshift(o.target), ce = ce.filter((t) => t != null && t.isConnected), ce.splice(10));
881
+ o.target instanceof HTMLElement && o.target !== document.body && de[0] !== o.target && (de.unshift(o.target), de = de.filter((t) => t != null && t.isConnected), de.splice(10));
887
882
  }
888
883
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
889
884
  });
890
- function Po(e) {
885
+ function I0(e) {
891
886
  throw new Error("Unexpected object: " + e);
892
887
  }
893
888
  var z = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(z || {});
@@ -897,117 +892,117 @@ function bt(e, o) {
897
892
  let n = o.resolveActiveIndex(), l = n ?? -1;
898
893
  switch (e.focus) {
899
894
  case 0: {
900
- for (let r = 0; r < t.length; ++r) if (!o.resolveDisabled(t[r], r, t)) return r;
895
+ for (let s = 0; s < t.length; ++s) if (!o.resolveDisabled(t[s], s, t)) return s;
901
896
  return n;
902
897
  }
903
898
  case 1: {
904
899
  l === -1 && (l = t.length);
905
- for (let r = l - 1; r >= 0; --r) if (!o.resolveDisabled(t[r], r, t)) return r;
900
+ for (let s = l - 1; s >= 0; --s) if (!o.resolveDisabled(t[s], s, t)) return s;
906
901
  return n;
907
902
  }
908
903
  case 2: {
909
- for (let r = l + 1; r < t.length; ++r) if (!o.resolveDisabled(t[r], r, t)) return r;
904
+ for (let s = l + 1; s < t.length; ++s) if (!o.resolveDisabled(t[s], s, t)) return s;
910
905
  return n;
911
906
  }
912
907
  case 3: {
913
- for (let r = t.length - 1; r >= 0; --r) if (!o.resolveDisabled(t[r], r, t)) return r;
908
+ for (let s = t.length - 1; s >= 0; --s) if (!o.resolveDisabled(t[s], s, t)) return s;
914
909
  return n;
915
910
  }
916
911
  case 4: {
917
- for (let r = 0; r < t.length; ++r) if (o.resolveId(t[r], r, t) === e.id) return r;
912
+ for (let s = 0; s < t.length; ++s) if (o.resolveId(t[s], s, t) === e.id) return s;
918
913
  return n;
919
914
  }
920
915
  case 5:
921
916
  return null;
922
917
  default:
923
- Po(e);
918
+ I0(e);
924
919
  }
925
920
  }
926
- function Zt(e = {}, o = null, t = []) {
927
- for (let [n, l] of Object.entries(e)) Gt(t, Wt(o, n), l);
921
+ function Ht(e = {}, o = null, t = []) {
922
+ for (let [n, l] of Object.entries(e)) Ut(t, zt(o, n), l);
928
923
  return t;
929
924
  }
930
- function Wt(e, o) {
925
+ function zt(e, o) {
931
926
  return e ? e + "[" + o + "]" : o;
932
927
  }
933
- function Gt(e, o, t) {
934
- if (Array.isArray(t)) for (let [n, l] of t.entries()) Gt(e, Wt(o, n.toString()), l);
935
- else t instanceof Date ? e.push([o, t.toISOString()]) : typeof t == "boolean" ? e.push([o, t ? "1" : "0"]) : typeof t == "string" ? e.push([o, t]) : typeof t == "number" ? e.push([o, `${t}`]) : t == null ? e.push([o, ""]) : Zt(t, o, e);
928
+ function Ut(e, o, t) {
929
+ if (Array.isArray(t)) for (let [n, l] of t.entries()) Ut(e, zt(o, n.toString()), l);
930
+ else t instanceof Date ? e.push([o, t.toISOString()]) : typeof t == "boolean" ? e.push([o, t ? "1" : "0"]) : typeof t == "string" ? e.push([o, t]) : typeof t == "number" ? e.push([o, `${t}`]) : t == null ? e.push([o, ""]) : Ht(t, o, e);
936
931
  }
937
- function Vo(e, o) {
932
+ function L0(e, o) {
938
933
  return e === o;
939
934
  }
940
- var ko = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ko || {}), Mo = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Mo || {}), No = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(No || {});
941
- let qt = Symbol("ComboboxContext");
942
- function ve(e) {
943
- let o = Ie(qt, null);
935
+ var M0 = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(M0 || {}), V0 = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(V0 || {}), A0 = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Focus = 1] = "Focus", e[e.Other = 2] = "Other", e))(A0 || {});
936
+ let Zt = Symbol("ComboboxContext");
937
+ function he(e) {
938
+ let o = Ie(Zt, null);
944
939
  if (o === null) {
945
940
  let t = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
946
- throw Error.captureStackTrace && Error.captureStackTrace(t, ve), t;
941
+ throw Error.captureStackTrace && Error.captureStackTrace(t, he), t;
947
942
  }
948
943
  return o;
949
944
  }
950
- let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, { slots: o }) {
951
- let t = ve("VirtualProvider"), n = S(() => {
952
- let s = P(t.optionsRef);
953
- if (!s) return { start: 0, end: 0 };
954
- let a = window.getComputedStyle(s);
955
- return { start: parseFloat(a.paddingBlockStart || a.paddingTop), end: parseFloat(a.paddingBlockEnd || a.paddingBottom) };
956
- }), l = to(S(() => ({ scrollPaddingStart: n.value.start, scrollPaddingEnd: n.value.end, count: t.virtual.value.options.length, estimateSize() {
945
+ let Wt = Symbol("VirtualContext"), F0 = ue({ name: "VirtualProvider", setup(e, { slots: o }) {
946
+ let t = he("VirtualProvider"), n = _(() => {
947
+ let a = F(t.optionsRef);
948
+ if (!a) return { start: 0, end: 0 };
949
+ let r = window.getComputedStyle(a);
950
+ return { start: parseFloat(r.paddingBlockStart || r.paddingTop), end: parseFloat(r.paddingBlockEnd || r.paddingBottom) };
951
+ }), l = X2(_(() => ({ scrollPaddingStart: n.value.start, scrollPaddingEnd: n.value.end, count: t.virtual.value.options.length, estimateSize() {
957
952
  return 40;
958
953
  }, getScrollElement() {
959
- return P(t.optionsRef);
960
- }, overscan: 12 }))), r = S(() => {
961
- var s;
962
- return (s = t.virtual.value) == null ? void 0 : s.options;
963
- }), i = E(0);
964
- return F([r], () => {
954
+ return F(t.optionsRef);
955
+ }, overscan: 12 }))), s = _(() => {
956
+ var a;
957
+ return (a = t.virtual.value) == null ? void 0 : a.options;
958
+ }), i = O(0);
959
+ return B([s], () => {
965
960
  i.value += 1;
966
- }), lt(Jt, t.virtual.value ? l : null), () => [Ee("div", { style: { position: "relative", width: "100%", height: `${l.value.getTotalSize()}px` }, ref: (s) => {
967
- if (s) {
961
+ }), ot(Wt, t.virtual.value ? l : null), () => [Ee("div", { style: { position: "relative", width: "100%", height: `${l.value.getTotalSize()}px` }, ref: (a) => {
962
+ if (a) {
968
963
  if (typeof process < "u" && process.env.JEST_WORKER_ID !== void 0 || t.activationTrigger.value === 0) return;
969
964
  t.activeOptionIndex.value !== null && t.virtual.value.options.length > t.activeOptionIndex.value && l.value.scrollToIndex(t.activeOptionIndex.value);
970
965
  }
971
- } }, l.value.getVirtualItems().map((s) => Lt(o.default({ option: t.virtual.value.options[s.index], open: t.comboboxState.value === 0 })[0], { key: `${i.value}-${s.index}`, "data-index": s.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": s.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${s.start}px)`, overflowAnchor: "none" } })))];
972
- } }), Ao = 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 }) {
973
- let l = E(1), r = E(null), i = E(null), s = E(null), a = E(null), u = E({ static: !1, hold: !1 }), c = E([]), p = E(null), g = E(2), x = E(!1);
974
- function _(d = (f) => f) {
975
- 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) : go(y, (A) => P(A.dataRef.domRef)), M = f ? O.indexOf(f) : null;
976
- return M === -1 && (M = null), { options: O, activeOptionIndex: M };
977
- }
978
- let v = S(() => e.multiple ? 1 : 0), $ = S(() => e.nullable), [N, I] = no(S(() => e.modelValue), (d) => n("update:modelValue", d), S(() => e.defaultValue)), k = S(() => N.value === void 0 ? le(v.value, { 1: [], 0: void 0 }) : N.value), D = null, m = null;
979
- function R(d) {
980
- return le(v.value, { 0() {
981
- return I == null ? void 0 : I(d);
966
+ } }, l.value.getVirtualItems().map((a) => Tt(o.default({ option: t.virtual.value.options[a.index], open: t.comboboxState.value === 0 })[0], { key: `${i.value}-${a.index}`, "data-index": a.index, "aria-setsize": t.virtual.value.options.length, "aria-posinset": a.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${a.start}px)`, overflowAnchor: "none" } })))];
967
+ } }), P0 = ue({ 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 }) {
968
+ let l = O(1), s = O(null), i = O(null), a = O(null), r = O(null), u = O({ static: !1, hold: !1 }), c = O([]), p = O(null), h = O(2), m = O(!1);
969
+ function b(d = (f) => f) {
970
+ let f = p.value !== null ? c.value[p.value] : null, y = d(c.value.slice()), $ = y.length > 0 && y[0].dataRef.order.value !== null ? y.sort((D, q) => D.dataRef.order.value - q.dataRef.order.value) : v0(y, (D) => F(D.dataRef.domRef)), R = f ? $.indexOf(f) : null;
971
+ return R === -1 && (R = null), { options: $, activeOptionIndex: R };
972
+ }
973
+ let S = _(() => e.multiple ? 1 : 0), I = _(() => e.nullable), [T, L] = e0(_(() => e.modelValue), (d) => n("update:modelValue", d), _(() => e.defaultValue)), P = _(() => T.value === void 0 ? le(S.value, { 1: [], 0: void 0 }) : T.value), k = null, g = null;
974
+ function M(d) {
975
+ return le(S.value, { 0() {
976
+ return L == null ? void 0 : L(d);
982
977
  }, 1: () => {
983
- let f = K(b.value.value).slice(), y = K(d), O = f.findIndex((M) => b.compare(y, K(M)));
984
- return O === -1 ? f.push(y) : f.splice(O, 1), I == null ? void 0 : I(f);
978
+ let f = Y(C.value.value).slice(), y = Y(d), $ = f.findIndex((R) => C.compare(y, Y(R)));
979
+ return $ === -1 ? f.push(y) : f.splice($, 1), L == null ? void 0 : L(f);
985
980
  } });
986
981
  }
987
- let C = S(() => {
982
+ let x = _(() => {
988
983
  });
989
- F([C], ([d], [f]) => {
990
- if (b.virtual.value && d && f && p.value !== null) {
984
+ B([x], ([d], [f]) => {
985
+ if (C.virtual.value && d && f && p.value !== null) {
991
986
  let y = d.indexOf(f[p.value]);
992
987
  y !== -1 ? p.value = y : p.value = null;
993
988
  }
994
989
  });
995
- let b = { comboboxState: l, value: k, mode: v, compare(d, f) {
990
+ let C = { comboboxState: l, value: P, mode: S, compare(d, f) {
996
991
  if (typeof e.by == "string") {
997
992
  let y = e.by;
998
993
  return (d == null ? void 0 : d[y]) === (f == null ? void 0 : f[y]);
999
994
  }
1000
- return e.by === null ? Vo(d, f) : e.by(d, f);
995
+ return e.by === null ? L0(d, f) : e.by(d, f);
1001
996
  }, calculateIndex(d) {
1002
- return b.virtual.value ? e.by === null ? b.virtual.value.options.indexOf(d) : b.virtual.value.options.findIndex((f) => b.compare(f, d)) : c.value.findIndex((f) => b.compare(f.dataRef.value, d));
1003
- }, defaultValue: S(() => e.defaultValue), nullable: $, immediate: S(() => !1), virtual: S(() => null), inputRef: i, labelRef: r, buttonRef: s, optionsRef: a, disabled: S(() => e.disabled), options: c, change(d) {
1004
- I(d);
1005
- }, activeOptionIndex: S(() => {
1006
- if (x.value && p.value === null && (b.virtual.value ? b.virtual.value.options.length > 0 : c.value.length > 0)) {
1007
- if (b.virtual.value) {
1008
- let f = b.virtual.value.options.findIndex((y) => {
1009
- var O;
1010
- return !((O = b.virtual.value) != null && O.disabled(y));
997
+ return C.virtual.value ? e.by === null ? C.virtual.value.options.indexOf(d) : C.virtual.value.options.findIndex((f) => C.compare(f, d)) : c.value.findIndex((f) => C.compare(f.dataRef.value, d));
998
+ }, defaultValue: _(() => e.defaultValue), nullable: I, immediate: _(() => !1), virtual: _(() => null), inputRef: i, labelRef: s, buttonRef: a, optionsRef: r, disabled: _(() => e.disabled), options: c, change(d) {
999
+ L(d);
1000
+ }, activeOptionIndex: _(() => {
1001
+ if (m.value && p.value === null && (C.virtual.value ? C.virtual.value.options.length > 0 : c.value.length > 0)) {
1002
+ if (C.virtual.value) {
1003
+ let f = C.virtual.value.options.findIndex((y) => {
1004
+ var $;
1005
+ return !(($ = C.virtual.value) != null && $.disabled(y));
1011
1006
  });
1012
1007
  if (f !== -1) return f;
1013
1008
  }
@@ -1015,453 +1010,453 @@ let Jt = Symbol("VirtualContext"), Do = ae({ name: "VirtualProvider", setup(e, {
1015
1010
  if (d !== -1) return d;
1016
1011
  }
1017
1012
  return p.value;
1018
- }), activationTrigger: g, optionsPropsRef: u, closeCombobox() {
1019
- x.value = !1, !e.disabled && l.value !== 1 && (l.value = 1, p.value = null);
1013
+ }), activationTrigger: h, optionsPropsRef: u, closeCombobox() {
1014
+ m.value = !1, !e.disabled && l.value !== 1 && (l.value = 1, p.value = null);
1020
1015
  }, openCombobox() {
1021
- if (x.value = !0, !e.disabled && l.value !== 0) {
1022
- if (b.value.value) {
1023
- let d = b.calculateIndex(b.value.value);
1016
+ if (m.value = !0, !e.disabled && l.value !== 0) {
1017
+ if (C.value.value) {
1018
+ let d = C.calculateIndex(C.value.value);
1024
1019
  d !== -1 && (p.value = d);
1025
1020
  }
1026
1021
  l.value = 0;
1027
1022
  }
1028
1023
  }, setActivationTrigger(d) {
1029
- g.value = d;
1024
+ h.value = d;
1030
1025
  }, goToOption(d, f, y) {
1031
- x.value = !1, D !== null && cancelAnimationFrame(D), D = requestAnimationFrame(() => {
1032
- if (e.disabled || a.value && !u.value.static && l.value === 1) return;
1033
- if (b.virtual.value) {
1034
- p.value = d === z.Specific ? f : bt({ focus: d }, { resolveItems: () => b.virtual.value.options, resolveActiveIndex: () => {
1035
- var A, G;
1036
- return (G = (A = b.activeOptionIndex.value) != null ? A : b.virtual.value.options.findIndex((q) => {
1026
+ m.value = !1, k !== null && cancelAnimationFrame(k), k = requestAnimationFrame(() => {
1027
+ if (e.disabled || r.value && !u.value.static && l.value === 1) return;
1028
+ if (C.virtual.value) {
1029
+ p.value = d === z.Specific ? f : bt({ focus: d }, { resolveItems: () => C.virtual.value.options, resolveActiveIndex: () => {
1030
+ var D, q;
1031
+ return (q = (D = C.activeOptionIndex.value) != null ? D : C.virtual.value.options.findIndex((J) => {
1037
1032
  var j;
1038
- return !((j = b.virtual.value) != null && j.disabled(q));
1039
- })) != null ? G : null;
1040
- }, resolveDisabled: (A) => b.virtual.value.disabled(A), resolveId() {
1033
+ return !((j = C.virtual.value) != null && j.disabled(J));
1034
+ })) != null ? q : null;
1035
+ }, resolveDisabled: (D) => C.virtual.value.disabled(D), resolveId() {
1041
1036
  throw new Error("Function not implemented.");
1042
- } }), g.value = y ?? 2;
1037
+ } }), h.value = y ?? 2;
1043
1038
  return;
1044
1039
  }
1045
- let O = _();
1046
- if (O.activeOptionIndex === null) {
1047
- let A = O.options.findIndex((G) => !G.dataRef.disabled);
1048
- A !== -1 && (O.activeOptionIndex = A);
1040
+ let $ = b();
1041
+ if ($.activeOptionIndex === null) {
1042
+ let D = $.options.findIndex((q) => !q.dataRef.disabled);
1043
+ D !== -1 && ($.activeOptionIndex = D);
1049
1044
  }
1050
- let M = d === z.Specific ? f : bt({ focus: d }, { resolveItems: () => O.options, resolveActiveIndex: () => O.activeOptionIndex, resolveId: (A) => A.id, resolveDisabled: (A) => A.dataRef.disabled });
1051
- p.value = M, g.value = y ?? 2, c.value = O.options;
1045
+ let R = d === z.Specific ? f : bt({ focus: d }, { resolveItems: () => $.options, resolveActiveIndex: () => $.activeOptionIndex, resolveId: (D) => D.id, resolveDisabled: (D) => D.dataRef.disabled });
1046
+ p.value = R, h.value = y ?? 2, c.value = $.options;
1052
1047
  });
1053
1048
  }, selectOption(d) {
1054
- let f = c.value.find((O) => O.id === d);
1049
+ let f = c.value.find(($) => $.id === d);
1055
1050
  if (!f) return;
1056
1051
  let { dataRef: y } = f;
1057
- R(y.value);
1052
+ M(y.value);
1058
1053
  }, selectActiveOption() {
1059
- if (b.activeOptionIndex.value !== null) {
1060
- if (b.virtual.value) R(b.virtual.value.options[b.activeOptionIndex.value]);
1054
+ if (C.activeOptionIndex.value !== null) {
1055
+ if (C.virtual.value) M(C.virtual.value.options[C.activeOptionIndex.value]);
1061
1056
  else {
1062
- let { dataRef: d } = c.value[b.activeOptionIndex.value];
1063
- R(d.value);
1057
+ let { dataRef: d } = c.value[C.activeOptionIndex.value];
1058
+ M(d.value);
1064
1059
  }
1065
- b.goToOption(z.Specific, b.activeOptionIndex.value);
1060
+ C.goToOption(z.Specific, C.activeOptionIndex.value);
1066
1061
  }
1067
1062
  }, registerOption(d, f) {
1068
- let y = Rt({ id: d, dataRef: f });
1069
- if (b.virtual.value) {
1063
+ let y = $t({ id: d, dataRef: f });
1064
+ if (C.virtual.value) {
1070
1065
  c.value.push(y);
1071
1066
  return;
1072
1067
  }
1073
- m && cancelAnimationFrame(m);
1074
- let O = _((M) => (M.push(y), M));
1075
- 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) => !P(M.dataRef.domRef)) && (m = requestAnimationFrame(() => {
1076
- let M = _();
1077
- c.value = M.options, p.value = M.activeOptionIndex;
1068
+ g && cancelAnimationFrame(g);
1069
+ let $ = b((R) => (R.push(y), R));
1070
+ p.value === null && C.isSelected(f.value.value) && ($.activeOptionIndex = $.options.indexOf(y)), c.value = $.options, p.value = $.activeOptionIndex, h.value = 2, $.options.some((R) => !F(R.dataRef.domRef)) && (g = requestAnimationFrame(() => {
1071
+ let R = b();
1072
+ c.value = R.options, p.value = R.activeOptionIndex;
1078
1073
  }));
1079
1074
  }, unregisterOption(d, f) {
1080
- if (D !== null && cancelAnimationFrame(D), f && (x.value = !0), b.virtual.value) {
1081
- c.value = c.value.filter((O) => O.id !== d);
1075
+ if (k !== null && cancelAnimationFrame(k), f && (m.value = !0), C.virtual.value) {
1076
+ c.value = c.value.filter(($) => $.id !== d);
1082
1077
  return;
1083
1078
  }
1084
- let y = _((O) => {
1085
- let M = O.findIndex((A) => A.id === d);
1086
- return M !== -1 && O.splice(M, 1), O;
1079
+ let y = b(($) => {
1080
+ let R = $.findIndex((D) => D.id === d);
1081
+ return R !== -1 && $.splice(R, 1), $;
1087
1082
  });
1088
- c.value = y.options, p.value = y.activeOptionIndex, g.value = 2;
1083
+ c.value = y.options, p.value = y.activeOptionIndex, h.value = 2;
1089
1084
  }, isSelected(d) {
1090
- return le(v.value, { 0: () => b.compare(K(b.value.value), K(d)), 1: () => K(b.value.value).some((f) => b.compare(K(f), K(d))) });
1085
+ return le(S.value, { 0: () => C.compare(Y(C.value.value), Y(d)), 1: () => Y(C.value.value).some((f) => C.compare(Y(f), Y(d))) });
1091
1086
  }, isActive(d) {
1092
- return p.value === b.calculateIndex(d);
1087
+ return p.value === C.calculateIndex(d);
1093
1088
  } };
1094
- Co([i, s, a], () => b.closeCombobox(), S(() => l.value === 0)), lt(qt, b), Lo(S(() => le(l.value, { 0: $e.Open, 1: $e.Closed })));
1095
- let L = S(() => {
1089
+ g0([i, a, r], () => C.closeCombobox(), _(() => l.value === 0)), ot(Zt, C), T0(_(() => le(l.value, { 0: Te.Open, 1: Te.Closed })));
1090
+ let A = _(() => {
1096
1091
  var d;
1097
- return (d = P(i)) == null ? void 0 : d.closest("form");
1092
+ return (d = F(i)) == null ? void 0 : d.closest("form");
1098
1093
  });
1099
- return Ce(() => {
1100
- F([L], () => {
1101
- if (!L.value || e.defaultValue === void 0) return;
1094
+ return ye(() => {
1095
+ B([A], () => {
1096
+ if (!A.value || e.defaultValue === void 0) return;
1102
1097
  function d() {
1103
- b.change(e.defaultValue);
1098
+ C.change(e.defaultValue);
1104
1099
  }
1105
- return L.value.addEventListener("reset", d), () => {
1100
+ return A.value.addEventListener("reset", d), () => {
1106
1101
  var f;
1107
- (f = L.value) == null || f.removeEventListener("reset", d);
1102
+ (f = A.value) == null || f.removeEventListener("reset", d);
1108
1103
  };
1109
1104
  }, { immediate: !0 });
1110
1105
  }), () => {
1111
1106
  var d, f, y;
1112
- let { name: O, disabled: M, form: A, ...G } = e, q = { open: l.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 };
1113
- return Ee(Z, [...O != null && k.value != null ? Zt({ [O]: k.value }).map(([j, hn]) => Ee(To, Oo({ features: Ht.Hidden, key: j, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: A, disabled: M, name: j, value: hn }))) : [], pe({ theirProps: { ...t, ...He(G, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: q, slots: o, attrs: t, name: "Combobox" })]);
1107
+ let { name: $, disabled: R, form: D, ...q } = e, J = { open: l.value === 0, disabled: R, activeIndex: C.activeOptionIndex.value, activeOption: C.activeOptionIndex.value === null ? null : C.virtual.value ? C.virtual.value.options[(d = C.activeOptionIndex.value) != null ? d : 0] : (y = (f = C.options.value[C.activeOptionIndex.value]) == null ? void 0 : f.dataRef.value) != null ? y : null, value: P.value };
1108
+ return Ee(Q, [...$ != null && P.value != null ? Ht({ [$]: P.value }).map(([j, f2]) => Ee(E0, _0({ features: Nt.Hidden, key: j, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: D, disabled: R, name: j, value: f2 }))) : [], ve({ theirProps: { ...t, ...Be(q, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: J, slots: o, attrs: t, name: "Combobox" })]);
1114
1109
  };
1115
1110
  } });
1116
- ae({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
1111
+ ue({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t }) {
1117
1112
  var n;
1118
- let l = (n = e.id) != null ? n : `headlessui-combobox-label-${Pe()}`, r = ve("ComboboxLabel");
1113
+ let l = (n = e.id) != null ? n : `headlessui-combobox-label-${Le()}`, s = he("ComboboxLabel");
1119
1114
  function i() {
1120
- var s;
1121
- (s = P(r.inputRef)) == null || s.focus({ preventScroll: !0 });
1115
+ var a;
1116
+ (a = F(s.inputRef)) == null || a.focus({ preventScroll: !0 });
1122
1117
  }
1123
1118
  return () => {
1124
- let s = { open: r.comboboxState.value === 0, disabled: r.disabled.value }, { ...a } = e, u = { id: l, ref: r.labelRef, onClick: i };
1125
- return pe({ ourProps: u, theirProps: a, slot: s, attrs: o, slots: t, name: "ComboboxLabel" });
1119
+ let a = { open: s.comboboxState.value === 0, disabled: s.disabled.value }, { ...r } = e, u = { id: l, ref: s.labelRef, onClick: i };
1120
+ return ve({ ourProps: u, theirProps: r, slot: a, attrs: o, slots: t, name: "ComboboxLabel" });
1126
1121
  };
1127
1122
  } });
1128
- let Fo = ae({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t, expose: n }) {
1123
+ let R0 = ue({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: null } }, setup(e, { attrs: o, slots: t, expose: n }) {
1129
1124
  var l;
1130
- let r = (l = e.id) != null ? l : `headlessui-combobox-button-${Pe()}`, i = ve("ComboboxButton");
1125
+ let s = (l = e.id) != null ? l : `headlessui-combobox-button-${Le()}`, i = he("ComboboxButton");
1131
1126
  n({ el: i.buttonRef, $el: i.buttonRef });
1132
- function s(c) {
1133
- i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (c.preventDefault(), i.openCombobox()), Q(() => {
1127
+ function a(c) {
1128
+ i.disabled.value || (i.comboboxState.value === 0 ? i.closeCombobox() : (c.preventDefault(), i.openCombobox()), ee(() => {
1134
1129
  var p;
1135
- return (p = P(i.inputRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
1130
+ return (p = F(i.inputRef)) == null ? void 0 : p.focus({ preventScroll: !0 });
1136
1131
  }));
1137
1132
  }
1138
- function a(c) {
1133
+ function r(c) {
1139
1134
  switch (c.key) {
1140
- case W.ArrowDown:
1141
- c.preventDefault(), c.stopPropagation(), i.comboboxState.value === 1 && i.openCombobox(), Q(() => {
1135
+ case G.ArrowDown:
1136
+ c.preventDefault(), c.stopPropagation(), i.comboboxState.value === 1 && i.openCombobox(), ee(() => {
1142
1137
  var p;
1143
1138
  return (p = i.inputRef.value) == null ? void 0 : p.focus({ preventScroll: !0 });
1144
1139
  });
1145
1140
  return;
1146
- case W.ArrowUp:
1147
- c.preventDefault(), c.stopPropagation(), i.comboboxState.value === 1 && (i.openCombobox(), Q(() => {
1141
+ case G.ArrowUp:
1142
+ c.preventDefault(), c.stopPropagation(), i.comboboxState.value === 1 && (i.openCombobox(), ee(() => {
1148
1143
  i.value.value || i.goToOption(z.Last);
1149
- })), Q(() => {
1144
+ })), ee(() => {
1150
1145
  var p;
1151
1146
  return (p = i.inputRef.value) == null ? void 0 : p.focus({ preventScroll: !0 });
1152
1147
  });
1153
1148
  return;
1154
- case W.Escape:
1149
+ case G.Escape:
1155
1150
  if (i.comboboxState.value !== 0) return;
1156
- c.preventDefault(), i.optionsRef.value && !i.optionsPropsRef.value.static && c.stopPropagation(), i.closeCombobox(), Q(() => {
1151
+ c.preventDefault(), i.optionsRef.value && !i.optionsPropsRef.value.static && c.stopPropagation(), i.closeCombobox(), ee(() => {
1157
1152
  var p;
1158
1153
  return (p = i.inputRef.value) == null ? void 0 : p.focus({ preventScroll: !0 });
1159
1154
  });
1160
1155
  return;
1161
1156
  }
1162
1157
  }
1163
- let u = yo(S(() => ({ as: e.as, type: o.type })), i.buttonRef);
1158
+ let u = C0(_(() => ({ as: e.as, type: o.type })), i.buttonRef);
1164
1159
  return () => {
1165
1160
  var c, p;
1166
- 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 = P(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(p = P(i.labelRef)) == null ? void 0 : p.id, r].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: a, onClick: s };
1167
- return pe({ ourProps: _, theirProps: x, slot: g, attrs: o, slots: t, name: "ComboboxButton" });
1161
+ let h = { open: i.comboboxState.value === 0, disabled: i.disabled.value, value: i.value.value }, { ...m } = e, b = { ref: i.buttonRef, id: s, type: u.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (c = F(i.optionsRef)) == null ? void 0 : c.id, "aria-expanded": i.comboboxState.value === 0, "aria-labelledby": i.labelRef.value ? [(p = F(i.labelRef)) == null ? void 0 : p.id, s].join(" ") : void 0, disabled: i.disabled.value === !0 ? !0 : void 0, onKeydown: r, onClick: a };
1162
+ return ve({ ourProps: b, theirProps: m, slot: h, attrs: o, slots: t, name: "ComboboxButton" });
1168
1163
  };
1169
- } }), jo = 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: l }) {
1170
- var r;
1171
- let i = (r = e.id) != null ? r : `headlessui-combobox-input-${Pe()}`, s = ve("ComboboxInput"), a = S(() => it(P(s.inputRef))), u = { value: !1 };
1172
- l({ el: s.inputRef, $el: s.inputRef });
1164
+ } }), k0 = ue({ 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: l }) {
1165
+ var s;
1166
+ let i = (s = e.id) != null ? s : `headlessui-combobox-input-${Le()}`, a = he("ComboboxInput"), r = _(() => at(F(a.inputRef))), u = { value: !1 };
1167
+ l({ el: a.inputRef, $el: a.inputRef });
1173
1168
  function c() {
1174
- s.change(null);
1175
- let m = P(s.optionsRef);
1176
- m && (m.scrollTop = 0), s.goToOption(z.Nothing);
1177
- }
1178
- let p = S(() => {
1179
- var m;
1180
- let R = s.value.value;
1181
- return P(s.inputRef) ? typeof e.displayValue < "u" && R !== void 0 ? (m = e.displayValue(R)) != null ? m : "" : typeof R == "string" ? R : "" : "";
1169
+ a.change(null);
1170
+ let g = F(a.optionsRef);
1171
+ g && (g.scrollTop = 0), a.goToOption(z.Nothing);
1172
+ }
1173
+ let p = _(() => {
1174
+ var g;
1175
+ let M = a.value.value;
1176
+ return F(a.inputRef) ? typeof e.displayValue < "u" && M !== void 0 ? (g = e.displayValue(M)) != null ? g : "" : typeof M == "string" ? M : "" : "";
1182
1177
  });
1183
- Ce(() => {
1184
- F([p, s.comboboxState, a], ([m, R], [C, b]) => {
1178
+ ye(() => {
1179
+ B([p, a.comboboxState, r], ([g, M], [x, C]) => {
1185
1180
  if (u.value) return;
1186
- let L = P(s.inputRef);
1187
- L && ((b === 0 && R === 1 || m !== C) && (L.value = m), requestAnimationFrame(() => {
1181
+ let A = F(a.inputRef);
1182
+ A && ((C === 0 && M === 1 || g !== x) && (A.value = g), requestAnimationFrame(() => {
1188
1183
  var d;
1189
- if (u.value || !L || ((d = a.value) == null ? void 0 : d.activeElement) !== L) return;
1190
- let { selectionStart: f, selectionEnd: y } = L;
1191
- Math.abs((y ?? 0) - (f ?? 0)) === 0 && f === 0 && L.setSelectionRange(L.value.length, L.value.length);
1184
+ if (u.value || !A || ((d = r.value) == null ? void 0 : d.activeElement) !== A) return;
1185
+ let { selectionStart: f, selectionEnd: y } = A;
1186
+ Math.abs((y ?? 0) - (f ?? 0)) === 0 && f === 0 && A.setSelectionRange(A.value.length, A.value.length);
1192
1187
  }));
1193
- }, { immediate: !0 }), F([s.comboboxState], ([m], [R]) => {
1194
- if (m === 0 && R === 1) {
1188
+ }, { immediate: !0 }), B([a.comboboxState], ([g], [M]) => {
1189
+ if (g === 0 && M === 1) {
1195
1190
  if (u.value) return;
1196
- let C = P(s.inputRef);
1197
- if (!C) return;
1198
- let b = C.value, { selectionStart: L, selectionEnd: d, selectionDirection: f } = C;
1199
- C.value = "", C.value = b, f !== null ? C.setSelectionRange(L, d, f) : C.setSelectionRange(L, d);
1191
+ let x = F(a.inputRef);
1192
+ if (!x) return;
1193
+ let C = x.value, { selectionStart: A, selectionEnd: d, selectionDirection: f } = x;
1194
+ x.value = "", x.value = C, f !== null ? x.setSelectionRange(A, d, f) : x.setSelectionRange(A, d);
1200
1195
  }
1201
1196
  });
1202
1197
  });
1203
- let g = E(!1);
1204
- function x() {
1205
- g.value = !0;
1198
+ let h = O(!1);
1199
+ function m() {
1200
+ h.value = !0;
1206
1201
  }
1207
- function _() {
1208
- Fe().nextFrame(() => {
1209
- g.value = !1;
1202
+ function b() {
1203
+ ke().nextFrame(() => {
1204
+ h.value = !1;
1210
1205
  });
1211
1206
  }
1212
- let v = so();
1213
- function $(m) {
1214
- switch (u.value = !0, v(() => {
1207
+ let S = o0();
1208
+ function I(g) {
1209
+ switch (u.value = !0, S(() => {
1215
1210
  u.value = !1;
1216
- }), m.key) {
1217
- case W.Enter:
1218
- if (u.value = !1, s.comboboxState.value !== 0 || g.value) return;
1219
- if (m.preventDefault(), m.stopPropagation(), s.activeOptionIndex.value === null) {
1220
- s.closeCombobox();
1211
+ }), g.key) {
1212
+ case G.Enter:
1213
+ if (u.value = !1, a.comboboxState.value !== 0 || h.value) return;
1214
+ if (g.preventDefault(), g.stopPropagation(), a.activeOptionIndex.value === null) {
1215
+ a.closeCombobox();
1221
1216
  return;
1222
1217
  }
1223
- s.selectActiveOption(), s.mode.value === 0 && s.closeCombobox();
1218
+ a.selectActiveOption(), a.mode.value === 0 && a.closeCombobox();
1224
1219
  break;
1225
- case W.ArrowDown:
1226
- return u.value = !1, m.preventDefault(), m.stopPropagation(), le(s.comboboxState.value, { 0: () => s.goToOption(z.Next), 1: () => s.openCombobox() });
1227
- case W.ArrowUp:
1228
- return u.value = !1, m.preventDefault(), m.stopPropagation(), le(s.comboboxState.value, { 0: () => s.goToOption(z.Previous), 1: () => {
1229
- s.openCombobox(), Q(() => {
1230
- s.value.value || s.goToOption(z.Last);
1220
+ case G.ArrowDown:
1221
+ return u.value = !1, g.preventDefault(), g.stopPropagation(), le(a.comboboxState.value, { 0: () => a.goToOption(z.Next), 1: () => a.openCombobox() });
1222
+ case G.ArrowUp:
1223
+ return u.value = !1, g.preventDefault(), g.stopPropagation(), le(a.comboboxState.value, { 0: () => a.goToOption(z.Previous), 1: () => {
1224
+ a.openCombobox(), ee(() => {
1225
+ a.value.value || a.goToOption(z.Last);
1231
1226
  });
1232
1227
  } });
1233
- case W.Home:
1234
- if (m.shiftKey) break;
1235
- return u.value = !1, m.preventDefault(), m.stopPropagation(), s.goToOption(z.First);
1236
- case W.PageUp:
1237
- return u.value = !1, m.preventDefault(), m.stopPropagation(), s.goToOption(z.First);
1238
- case W.End:
1239
- if (m.shiftKey) break;
1240
- return u.value = !1, m.preventDefault(), m.stopPropagation(), s.goToOption(z.Last);
1241
- case W.PageDown:
1242
- return u.value = !1, m.preventDefault(), m.stopPropagation(), s.goToOption(z.Last);
1243
- case W.Escape:
1244
- if (u.value = !1, s.comboboxState.value !== 0) return;
1245
- m.preventDefault(), s.optionsRef.value && !s.optionsPropsRef.value.static && m.stopPropagation(), s.nullable.value && s.mode.value === 0 && s.value.value === null && c(), s.closeCombobox();
1228
+ case G.Home:
1229
+ if (g.shiftKey) break;
1230
+ return u.value = !1, g.preventDefault(), g.stopPropagation(), a.goToOption(z.First);
1231
+ case G.PageUp:
1232
+ return u.value = !1, g.preventDefault(), g.stopPropagation(), a.goToOption(z.First);
1233
+ case G.End:
1234
+ if (g.shiftKey) break;
1235
+ return u.value = !1, g.preventDefault(), g.stopPropagation(), a.goToOption(z.Last);
1236
+ case G.PageDown:
1237
+ return u.value = !1, g.preventDefault(), g.stopPropagation(), a.goToOption(z.Last);
1238
+ case G.Escape:
1239
+ if (u.value = !1, a.comboboxState.value !== 0) return;
1240
+ g.preventDefault(), a.optionsRef.value && !a.optionsPropsRef.value.static && g.stopPropagation(), a.nullable.value && a.mode.value === 0 && a.value.value === null && c(), a.closeCombobox();
1246
1241
  break;
1247
- case W.Tab:
1248
- if (u.value = !1, s.comboboxState.value !== 0) return;
1249
- s.mode.value === 0 && s.activationTrigger.value !== 1 && s.selectActiveOption(), s.closeCombobox();
1242
+ case G.Tab:
1243
+ if (u.value = !1, a.comboboxState.value !== 0) return;
1244
+ a.mode.value === 0 && a.activationTrigger.value !== 1 && a.selectActiveOption(), a.closeCombobox();
1250
1245
  break;
1251
1246
  }
1252
1247
  }
1253
- function N(m) {
1254
- o("change", m), s.nullable.value && s.mode.value === 0 && m.target.value === "" && c(), s.openCombobox();
1248
+ function T(g) {
1249
+ o("change", g), a.nullable.value && a.mode.value === 0 && g.target.value === "" && c(), a.openCombobox();
1255
1250
  }
1256
- function I(m) {
1257
- var R, C, b;
1258
- let L = (R = m.relatedTarget) != null ? R : ce.find((d) => d !== m.currentTarget);
1259
- if (u.value = !1, !((C = P(s.optionsRef)) != null && C.contains(L)) && !((b = P(s.buttonRef)) != null && b.contains(L)) && s.comboboxState.value === 0) return m.preventDefault(), s.mode.value === 0 && (s.nullable.value && s.value.value === null ? c() : s.activationTrigger.value !== 1 && s.selectActiveOption()), s.closeCombobox();
1251
+ function L(g) {
1252
+ var M, x, C;
1253
+ let A = (M = g.relatedTarget) != null ? M : de.find((d) => d !== g.currentTarget);
1254
+ if (u.value = !1, !((x = F(a.optionsRef)) != null && x.contains(A)) && !((C = F(a.buttonRef)) != null && C.contains(A)) && a.comboboxState.value === 0) return g.preventDefault(), a.mode.value === 0 && (a.nullable.value && a.value.value === null ? c() : a.activationTrigger.value !== 1 && a.selectActiveOption()), a.closeCombobox();
1260
1255
  }
1261
- function k(m) {
1262
- var R, C, b;
1263
- let L = (R = m.relatedTarget) != null ? R : ce.find((d) => d !== m.currentTarget);
1264
- (C = P(s.buttonRef)) != null && C.contains(L) || (b = P(s.optionsRef)) != null && b.contains(L) || s.disabled.value || s.immediate.value && s.comboboxState.value !== 0 && (s.openCombobox(), Fe().nextFrame(() => {
1265
- s.setActivationTrigger(1);
1256
+ function P(g) {
1257
+ var M, x, C;
1258
+ let A = (M = g.relatedTarget) != null ? M : de.find((d) => d !== g.currentTarget);
1259
+ (x = F(a.buttonRef)) != null && x.contains(A) || (C = F(a.optionsRef)) != null && C.contains(A) || a.disabled.value || a.immediate.value && a.comboboxState.value !== 0 && (a.openCombobox(), ke().nextFrame(() => {
1260
+ a.setActivationTrigger(1);
1266
1261
  }));
1267
1262
  }
1268
- let D = S(() => {
1269
- var m, R, C, b;
1270
- return (b = (C = (R = e.defaultValue) != null ? R : s.defaultValue.value !== void 0 ? (m = e.displayValue) == null ? void 0 : m.call(e, s.defaultValue.value) : null) != null ? C : s.defaultValue.value) != null ? b : "";
1263
+ let k = _(() => {
1264
+ var g, M, x, C;
1265
+ return (C = (x = (M = e.defaultValue) != null ? M : a.defaultValue.value !== void 0 ? (g = e.displayValue) == null ? void 0 : g.call(e, a.defaultValue.value) : null) != null ? x : a.defaultValue.value) != null ? C : "";
1271
1266
  });
1272
1267
  return () => {
1273
- var m, R, C, b, L, d, f;
1274
- let y = { open: s.comboboxState.value === 0 }, { displayValue: O, onChange: M, ...A } = e, G = { "aria-controls": (m = s.optionsRef.value) == null ? void 0 : m.id, "aria-expanded": s.comboboxState.value === 0, "aria-activedescendant": s.activeOptionIndex.value === null ? void 0 : s.virtual.value ? (R = s.options.value.find((q) => !s.virtual.value.disabled(q.dataRef.value) && s.compare(q.dataRef.value, s.virtual.value.options[s.activeOptionIndex.value]))) == null ? void 0 : R.id : (C = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : C.id, "aria-labelledby": (d = (b = P(s.labelRef)) == null ? void 0 : b.id) != null ? d : (L = P(s.buttonRef)) == null ? void 0 : L.id, "aria-autocomplete": "list", id: i, onCompositionstart: x, onCompositionend: _, onKeydown: $, onInput: N, onFocus: k, onBlur: I, role: "combobox", type: (f = t.type) != null ? f : "text", tabIndex: 0, ref: s.inputRef, defaultValue: D.value, disabled: s.disabled.value === !0 ? !0 : void 0 };
1275
- return pe({ ourProps: G, theirProps: A, slot: y, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
1268
+ var g, M, x, C, A, d, f;
1269
+ let y = { open: a.comboboxState.value === 0 }, { displayValue: $, onChange: R, ...D } = e, q = { "aria-controls": (g = a.optionsRef.value) == null ? void 0 : g.id, "aria-expanded": a.comboboxState.value === 0, "aria-activedescendant": a.activeOptionIndex.value === null ? void 0 : a.virtual.value ? (M = a.options.value.find((J) => !a.virtual.value.disabled(J.dataRef.value) && a.compare(J.dataRef.value, a.virtual.value.options[a.activeOptionIndex.value]))) == null ? void 0 : M.id : (x = a.options.value[a.activeOptionIndex.value]) == null ? void 0 : x.id, "aria-labelledby": (d = (C = F(a.labelRef)) == null ? void 0 : C.id) != null ? d : (A = F(a.buttonRef)) == null ? void 0 : A.id, "aria-autocomplete": "list", id: i, onCompositionstart: m, onCompositionend: b, onKeydown: I, onInput: T, onFocus: P, onBlur: L, role: "combobox", type: (f = t.type) != null ? f : "text", tabIndex: 0, ref: a.inputRef, defaultValue: k.value, disabled: a.disabled.value === !0 ? !0 : void 0 };
1270
+ return ve({ ourProps: q, theirProps: D, slot: y, attrs: t, slots: n, features: Oe.RenderStrategy | Oe.Static, name: "ComboboxInput" });
1276
1271
  };
1277
- } }), Bo = 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 }) {
1278
- let l = ve("ComboboxOptions"), r = `headlessui-combobox-options-${Pe()}`;
1279
- n({ el: l.optionsRef, $el: l.optionsRef }), ie(() => {
1272
+ } }), D0 = ue({ 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 }) {
1273
+ let l = he("ComboboxOptions"), s = `headlessui-combobox-options-${Le()}`;
1274
+ n({ el: l.optionsRef, $el: l.optionsRef }), re(() => {
1280
1275
  l.optionsPropsRef.value.static = e.static;
1281
- }), ie(() => {
1276
+ }), re(() => {
1282
1277
  l.optionsPropsRef.value.hold = e.hold;
1283
1278
  });
1284
- let i = Io(), s = S(() => i !== null ? (i.value & $e.Open) === $e.Open : l.comboboxState.value === 0);
1285
- So({ container: S(() => P(l.optionsRef)), enabled: S(() => l.comboboxState.value === 0), accept(u) {
1279
+ let i = O0(), a = _(() => i !== null ? (i.value & Te.Open) === Te.Open : l.comboboxState.value === 0);
1280
+ y0({ container: _(() => F(l.optionsRef)), enabled: _(() => l.comboboxState.value === 0), accept(u) {
1286
1281
  return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1287
1282
  }, walk(u) {
1288
1283
  u.setAttribute("role", "none");
1289
1284
  } });
1290
- function a(u) {
1285
+ function r(u) {
1291
1286
  u.preventDefault();
1292
1287
  }
1293
1288
  return () => {
1294
1289
  var u, c, p;
1295
- let g = { open: l.comboboxState.value === 0 }, x = { "aria-labelledby": (p = (u = P(l.labelRef)) == null ? void 0 : u.id) != null ? p : (c = P(l.buttonRef)) == null ? void 0 : c.id, id: r, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: a }, _ = He(e, ["hold"]);
1296
- return pe({ ourProps: x, theirProps: _, slot: g, attrs: o, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ee(Do, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: s.value, name: "ComboboxOptions" });
1290
+ let h = { open: l.comboboxState.value === 0 }, m = { "aria-labelledby": (p = (u = F(l.labelRef)) == null ? void 0 : u.id) != null ? p : (c = F(l.buttonRef)) == null ? void 0 : c.id, id: s, ref: l.optionsRef, role: "listbox", "aria-multiselectable": l.mode.value === 1 ? !0 : void 0, onMousedown: r }, b = Be(e, ["hold"]);
1291
+ return ve({ ourProps: m, theirProps: b, slot: h, attrs: o, slots: l.virtual.value && l.comboboxState.value === 0 ? { ...t, default: () => [Ee(F0, {}, t.default)] } : t, features: Oe.RenderStrategy | Oe.Static, visible: a.value, name: "ComboboxOptions" });
1297
1292
  };
1298
- } }), Ho = 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 }) {
1299
- let l = ve("ComboboxOption"), r = `headlessui-combobox-option-${Pe()}`, i = E(null), s = S(() => e.disabled);
1293
+ } }), N0 = ue({ 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 }) {
1294
+ let l = he("ComboboxOption"), s = `headlessui-combobox-option-${Le()}`, i = O(null), a = _(() => e.disabled);
1300
1295
  n({ el: i, $el: i });
1301
- let a = S(() => {
1302
- var I;
1303
- return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((I = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : I.id) === r;
1304
- }), u = S(() => l.isSelected(e.value)), c = Ie(Jt, null), p = S(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: S(() => e.order) }));
1305
- Ce(() => l.registerOption(r, p)), ot(() => l.unregisterOption(r, a.value)), ie(() => {
1306
- let I = P(i);
1307
- I && (c == null || c.value.measureElement(I));
1308
- }), ie(() => {
1309
- l.comboboxState.value === 0 && a.value && (l.virtual.value || l.activationTrigger.value !== 0 && Q(() => {
1310
- var I, k;
1311
- return (k = (I = P(i)) == null ? void 0 : I.scrollIntoView) == null ? void 0 : k.call(I, { block: "nearest" });
1296
+ let r = _(() => {
1297
+ var L;
1298
+ return l.virtual.value ? l.activeOptionIndex.value === l.calculateIndex(e.value) : l.activeOptionIndex.value === null ? !1 : ((L = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : L.id) === s;
1299
+ }), u = _(() => l.isSelected(e.value)), c = Ie(Wt, null), p = _(() => ({ disabled: e.disabled, value: e.value, domRef: i, order: _(() => e.order) }));
1300
+ ye(() => l.registerOption(s, p)), nt(() => l.unregisterOption(s, r.value)), re(() => {
1301
+ let L = F(i);
1302
+ L && (c == null || c.value.measureElement(L));
1303
+ }), re(() => {
1304
+ l.comboboxState.value === 0 && r.value && (l.virtual.value || l.activationTrigger.value !== 0 && ee(() => {
1305
+ var L, P;
1306
+ return (P = (L = F(i)) == null ? void 0 : L.scrollIntoView) == null ? void 0 : P.call(L, { block: "nearest" });
1312
1307
  }));
1313
1308
  });
1314
- function g(I) {
1315
- I.preventDefault(), I.button === Ut.Left && (s.value || (l.selectOption(r), Ft() || requestAnimationFrame(() => {
1316
- var k;
1317
- return (k = P(l.inputRef)) == null ? void 0 : k.focus({ preventScroll: !0 });
1309
+ function h(L) {
1310
+ L.preventDefault(), L.button === jt.Left && (a.value || (l.selectOption(s), Rt() || requestAnimationFrame(() => {
1311
+ var P;
1312
+ return (P = F(l.inputRef)) == null ? void 0 : P.focus({ preventScroll: !0 });
1318
1313
  }), l.mode.value === 0 && l.closeCombobox()));
1319
1314
  }
1320
- function x() {
1321
- var I;
1322
- if (e.disabled || (I = l.virtual.value) != null && I.disabled(e.value)) return l.goToOption(z.Nothing);
1323
- let k = l.calculateIndex(e.value);
1324
- l.goToOption(z.Specific, k);
1315
+ function m() {
1316
+ var L;
1317
+ if (e.disabled || (L = l.virtual.value) != null && L.disabled(e.value)) return l.goToOption(z.Nothing);
1318
+ let P = l.calculateIndex(e.value);
1319
+ l.goToOption(z.Specific, P);
1325
1320
  }
1326
- let _ = wo();
1327
- function v(I) {
1328
- _.update(I);
1321
+ let b = x0();
1322
+ function S(L) {
1323
+ b.update(L);
1329
1324
  }
1330
- function $(I) {
1331
- var k;
1332
- if (!_.wasMoved(I) || e.disabled || (k = l.virtual.value) != null && k.disabled(e.value) || a.value) return;
1333
- let D = l.calculateIndex(e.value);
1334
- l.goToOption(z.Specific, D, 0);
1325
+ function I(L) {
1326
+ var P;
1327
+ if (!b.wasMoved(L) || e.disabled || (P = l.virtual.value) != null && P.disabled(e.value) || r.value) return;
1328
+ let k = l.calculateIndex(e.value);
1329
+ l.goToOption(z.Specific, k, 0);
1335
1330
  }
1336
- function N(I) {
1337
- var k;
1338
- _.wasMoved(I) && (e.disabled || (k = l.virtual.value) != null && k.disabled(e.value) || a.value && (l.optionsPropsRef.value.hold || l.goToOption(z.Nothing)));
1331
+ function T(L) {
1332
+ var P;
1333
+ b.wasMoved(L) && (e.disabled || (P = l.virtual.value) != null && P.disabled(e.value) || r.value && (l.optionsPropsRef.value.hold || l.goToOption(z.Nothing)));
1339
1334
  }
1340
1335
  return () => {
1341
- 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: $, onMousemove: $, onPointerleave: N, onMouseleave: N }, m = He(e, ["order", "value"]);
1342
- return pe({ ourProps: D, theirProps: m, slot: k, attrs: t, slots: o, name: "ComboboxOption" });
1336
+ let { disabled: L } = e, P = { active: r.value, selected: u.value, disabled: L }, k = { id: s, ref: i, role: "option", tabIndex: L === !0 ? void 0 : -1, "aria-disabled": L === !0 ? !0 : void 0, "aria-selected": u.value, disabled: void 0, onMousedown: h, onFocus: m, onPointerenter: S, onMouseenter: S, onPointermove: I, onMousemove: I, onPointerleave: T, onMouseleave: T }, g = Be(e, ["order", "value"]);
1337
+ return ve({ ourProps: k, theirProps: g, slot: P, attrs: t, slots: o, name: "ComboboxOption" });
1343
1338
  };
1344
1339
  } });
1345
- function zo(e, o) {
1346
- return w(), T("svg", {
1340
+ function B0(e, o) {
1341
+ return w(), E("svg", {
1347
1342
  xmlns: "http://www.w3.org/2000/svg",
1348
1343
  viewBox: "0 0 20 20",
1349
1344
  fill: "currentColor",
1350
1345
  "aria-hidden": "true",
1351
1346
  "data-slot": "icon"
1352
1347
  }, [
1353
- h("path", {
1348
+ v("path", {
1354
1349
  "fill-rule": "evenodd",
1355
1350
  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",
1356
1351
  "clip-rule": "evenodd"
1357
1352
  })
1358
1353
  ]);
1359
1354
  }
1360
- function Uo(e, o) {
1361
- return w(), T("svg", {
1355
+ function j0(e, o) {
1356
+ return w(), E("svg", {
1362
1357
  xmlns: "http://www.w3.org/2000/svg",
1363
1358
  viewBox: "0 0 20 20",
1364
1359
  fill: "currentColor",
1365
1360
  "aria-hidden": "true",
1366
1361
  "data-slot": "icon"
1367
1362
  }, [
1368
- h("path", {
1363
+ v("path", {
1369
1364
  "fill-rule": "evenodd",
1370
1365
  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",
1371
1366
  "clip-rule": "evenodd"
1372
1367
  })
1373
1368
  ]);
1374
1369
  }
1375
- function Zo(e, o) {
1376
- return w(), T("svg", {
1370
+ function H0(e, o) {
1371
+ return w(), E("svg", {
1377
1372
  xmlns: "http://www.w3.org/2000/svg",
1378
1373
  viewBox: "0 0 20 20",
1379
1374
  fill: "currentColor",
1380
1375
  "aria-hidden": "true",
1381
1376
  "data-slot": "icon"
1382
1377
  }, [
1383
- h("path", {
1378
+ v("path", {
1384
1379
  "fill-rule": "evenodd",
1385
1380
  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",
1386
1381
  "clip-rule": "evenodd"
1387
1382
  })
1388
1383
  ]);
1389
1384
  }
1390
- var Kt = !1;
1391
- function Me(e, o, t) {
1385
+ var Gt = !1;
1386
+ function Ae(e, o, t) {
1392
1387
  return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, t), t) : (e[o] = t, t);
1393
1388
  }
1394
- function Ye(e, o) {
1389
+ function Ke(e, o) {
1395
1390
  if (Array.isArray(e)) {
1396
1391
  e.splice(o, 1);
1397
1392
  return;
1398
1393
  }
1399
1394
  delete e[o];
1400
1395
  }
1401
- function Wo() {
1402
- return Yt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1396
+ function z0() {
1397
+ return qt().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1403
1398
  }
1404
- function Yt() {
1399
+ function qt() {
1405
1400
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1406
1401
  }
1407
- const Go = typeof Proxy == "function", qo = "devtools-plugin:setup", Jo = "plugin:settings:set";
1408
- let me, Qe;
1409
- function Ko() {
1402
+ const U0 = typeof Proxy == "function", Z0 = "devtools-plugin:setup", W0 = "plugin:settings:set";
1403
+ let be, Ye;
1404
+ function G0() {
1410
1405
  var e;
1411
- return me !== void 0 || (typeof window < "u" && window.performance ? (me = !0, Qe = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (me = !0, Qe = globalThis.perf_hooks.performance) : me = !1), me;
1406
+ return be !== void 0 || (typeof window < "u" && window.performance ? (be = !0, Ye = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (be = !0, Ye = globalThis.perf_hooks.performance) : be = !1), be;
1412
1407
  }
1413
- function Yo() {
1414
- return Ko() ? Qe.now() : Date.now();
1408
+ function q0() {
1409
+ return G0() ? Ye.now() : Date.now();
1415
1410
  }
1416
- class Qo {
1411
+ class J0 {
1417
1412
  constructor(o, t) {
1418
1413
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = o, this.hook = t;
1419
1414
  const n = {};
1420
1415
  if (o.settings)
1421
1416
  for (const i in o.settings) {
1422
- const s = o.settings[i];
1423
- n[i] = s.defaultValue;
1417
+ const a = o.settings[i];
1418
+ n[i] = a.defaultValue;
1424
1419
  }
1425
1420
  const l = `__vue-devtools-plugin-settings__${o.id}`;
1426
- let r = Object.assign({}, n);
1421
+ let s = Object.assign({}, n);
1427
1422
  try {
1428
- const i = localStorage.getItem(l), s = JSON.parse(i);
1429
- Object.assign(r, s);
1423
+ const i = localStorage.getItem(l), a = JSON.parse(i);
1424
+ Object.assign(s, a);
1430
1425
  } catch {
1431
1426
  }
1432
1427
  this.fallbacks = {
1433
1428
  getSettings() {
1434
- return r;
1429
+ return s;
1435
1430
  },
1436
1431
  setSettings(i) {
1437
1432
  try {
1438
1433
  localStorage.setItem(l, JSON.stringify(i));
1439
1434
  } catch {
1440
1435
  }
1441
- r = i;
1436
+ s = i;
1442
1437
  },
1443
1438
  now() {
1444
- return Yo();
1439
+ return q0();
1445
1440
  }
1446
- }, t && t.on(Jo, (i, s) => {
1447
- i === this.plugin.id && this.fallbacks.setSettings(s);
1441
+ }, t && t.on(W0, (i, a) => {
1442
+ i === this.plugin.id && this.fallbacks.setSettings(a);
1448
1443
  }), this.proxiedOn = new Proxy({}, {
1449
- get: (i, s) => this.target ? this.target.on[s] : (...a) => {
1444
+ get: (i, a) => this.target ? this.target.on[a] : (...r) => {
1450
1445
  this.onQueue.push({
1451
- method: s,
1452
- args: a
1446
+ method: a,
1447
+ args: r
1453
1448
  });
1454
1449
  }
1455
1450
  }), this.proxiedTarget = new Proxy({}, {
1456
- get: (i, s) => this.target ? this.target[s] : s === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(s) ? (...a) => (this.targetQueue.push({
1457
- method: s,
1458
- args: a,
1451
+ get: (i, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...r) => (this.targetQueue.push({
1452
+ method: a,
1453
+ args: r,
1459
1454
  resolve: () => {
1460
1455
  }
1461
- }), this.fallbacks[s](...a)) : (...a) => new Promise((u) => {
1456
+ }), this.fallbacks[a](...r)) : (...r) => new Promise((u) => {
1462
1457
  this.targetQueue.push({
1463
- method: s,
1464
- args: a,
1458
+ method: a,
1459
+ args: r,
1465
1460
  resolve: u
1466
1461
  });
1467
1462
  })
@@ -1475,12 +1470,12 @@ class Qo {
1475
1470
  t.resolve(await this.target[t.method](...t.args));
1476
1471
  }
1477
1472
  }
1478
- function Qt(e, o) {
1479
- const t = e, n = Yt(), l = Wo(), r = Go && t.enableEarlyProxy;
1480
- if (l && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !r))
1481
- l.emit(qo, e, o);
1473
+ function Jt(e, o) {
1474
+ const t = e, n = qt(), l = z0(), s = U0 && t.enableEarlyProxy;
1475
+ if (l && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
1476
+ l.emit(Z0, e, o);
1482
1477
  else {
1483
- const i = r ? new Qo(t, l) : null;
1478
+ const i = s ? new J0(t, l) : null;
1484
1479
  (n.__VUE_DEVTOOLS_PLUGINS__ = n.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1485
1480
  pluginDescriptor: t,
1486
1481
  setupFn: o,
@@ -1493,31 +1488,31 @@ function Qt(e, o) {
1493
1488
  * (c) 2023 Eduardo San Martin Morote
1494
1489
  * @license MIT
1495
1490
  */
1496
- let we;
1497
- const Te = (e) => we = e, Xt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
1491
+ let _e;
1492
+ const $e = (e) => _e = e, Kt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
1498
1493
  /* istanbul ignore next */
1499
1494
  Symbol()
1500
1495
  );
1501
- function fe(e) {
1496
+ function pe(e) {
1502
1497
  return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
1503
1498
  }
1504
1499
  var ne;
1505
1500
  (function(e) {
1506
1501
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
1507
1502
  })(ne || (ne = {}));
1508
- const ze = typeof window < "u", Se = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && ze, xt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
1509
- function Xo(e, { autoBom: o = !1 } = {}) {
1503
+ const je = typeof window < "u", Se = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && je, gt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
1504
+ function K0(e, { autoBom: o = !1 } = {}) {
1510
1505
  return o && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
1511
1506
  }
1512
- function at(e, o, t) {
1507
+ function it(e, o, t) {
1513
1508
  const n = new XMLHttpRequest();
1514
1509
  n.open("GET", e), n.responseType = "blob", n.onload = function() {
1515
- nn(n.response, o, t);
1510
+ Xt(n.response, o, t);
1516
1511
  }, n.onerror = function() {
1517
1512
  console.error("could not download file");
1518
1513
  }, n.send();
1519
1514
  }
1520
- function en(e) {
1515
+ function Yt(e) {
1521
1516
  const o = new XMLHttpRequest();
1522
1517
  o.open("HEAD", e, !1);
1523
1518
  try {
@@ -1526,7 +1521,7 @@ function en(e) {
1526
1521
  }
1527
1522
  return o.status >= 200 && o.status <= 299;
1528
1523
  }
1529
- function Ne(e) {
1524
+ function Fe(e) {
1530
1525
  try {
1531
1526
  e.dispatchEvent(new MouseEvent("click"));
1532
1527
  } catch {
@@ -1534,102 +1529,102 @@ function Ne(e) {
1534
1529
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
1535
1530
  }
1536
1531
  }
1537
- const De = typeof navigator == "object" ? navigator : { userAgent: "" }, tn = /Macintosh/.test(De.userAgent) && /AppleWebKit/.test(De.userAgent) && !/Safari/.test(De.userAgent), nn = ze ? (
1532
+ const Pe = typeof navigator == "object" ? navigator : { userAgent: "" }, Qt = /Macintosh/.test(Pe.userAgent) && /AppleWebKit/.test(Pe.userAgent) && !/Safari/.test(Pe.userAgent), Xt = je ? (
1538
1533
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
1539
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !tn ? e2 : (
1534
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Qt ? Y0 : (
1540
1535
  // Use msSaveOrOpenBlob as a second approach
1541
- "msSaveOrOpenBlob" in De ? t2 : (
1536
+ "msSaveOrOpenBlob" in Pe ? Q0 : (
1542
1537
  // Fallback to using FileReader and a popup
1543
- n2
1538
+ X0
1544
1539
  )
1545
1540
  )
1546
1541
  ) : () => {
1547
1542
  };
1548
- function e2(e, o = "download", t) {
1543
+ function Y0(e, o = "download", t) {
1549
1544
  const n = document.createElement("a");
1550
- n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? en(n.href) ? at(e, o, t) : (n.target = "_blank", Ne(n)) : Ne(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
1545
+ n.download = o, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin !== location.origin ? Yt(n.href) ? it(e, o, t) : (n.target = "_blank", Fe(n)) : Fe(n)) : (n.href = URL.createObjectURL(e), setTimeout(function() {
1551
1546
  URL.revokeObjectURL(n.href);
1552
1547
  }, 4e4), setTimeout(function() {
1553
- Ne(n);
1548
+ Fe(n);
1554
1549
  }, 0));
1555
1550
  }
1556
- function t2(e, o = "download", t) {
1551
+ function Q0(e, o = "download", t) {
1557
1552
  if (typeof e == "string")
1558
- if (en(e))
1559
- at(e, o, t);
1553
+ if (Yt(e))
1554
+ it(e, o, t);
1560
1555
  else {
1561
1556
  const n = document.createElement("a");
1562
1557
  n.href = e, n.target = "_blank", setTimeout(function() {
1563
- Ne(n);
1558
+ Fe(n);
1564
1559
  });
1565
1560
  }
1566
1561
  else
1567
- navigator.msSaveOrOpenBlob(Xo(e, t), o);
1562
+ navigator.msSaveOrOpenBlob(K0(e, t), o);
1568
1563
  }
1569
- function n2(e, o, t, n) {
1564
+ function X0(e, o, t, n) {
1570
1565
  if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string")
1571
- return at(e, o, t);
1572
- const l = e.type === "application/octet-stream", r = /constructor/i.test(String(xt.HTMLElement)) || "safari" in xt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
1573
- if ((i || l && r || tn) && typeof FileReader < "u") {
1574
- const s = new FileReader();
1575
- s.onloadend = function() {
1576
- let a = s.result;
1577
- if (typeof a != "string")
1566
+ return it(e, o, t);
1567
+ const l = e.type === "application/octet-stream", s = /constructor/i.test(String(gt.HTMLElement)) || "safari" in gt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
1568
+ if ((i || l && s || Qt) && typeof FileReader < "u") {
1569
+ const a = new FileReader();
1570
+ a.onloadend = function() {
1571
+ let r = a.result;
1572
+ if (typeof r != "string")
1578
1573
  throw n = null, new Error("Wrong reader.result type");
1579
- a = i ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = a : location.assign(a), n = null;
1580
- }, s.readAsDataURL(e);
1574
+ r = i ? r : r.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = r : location.assign(r), n = null;
1575
+ }, a.readAsDataURL(e);
1581
1576
  } else {
1582
- const s = URL.createObjectURL(e);
1583
- n ? n.location.assign(s) : location.href = s, n = null, setTimeout(function() {
1584
- URL.revokeObjectURL(s);
1577
+ const a = URL.createObjectURL(e);
1578
+ n ? n.location.assign(a) : location.href = a, n = null, setTimeout(function() {
1579
+ URL.revokeObjectURL(a);
1585
1580
  }, 4e4);
1586
1581
  }
1587
1582
  }
1588
- function B(e, o) {
1583
+ function H(e, o) {
1589
1584
  const t = "🍍 " + e;
1590
1585
  typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(t, o) : o === "error" ? console.error(t) : o === "warn" ? console.warn(t) : console.log(t);
1591
1586
  }
1592
- function ut(e) {
1587
+ function rt(e) {
1593
1588
  return "_a" in e && "install" in e;
1594
1589
  }
1595
- function on() {
1590
+ function e2() {
1596
1591
  if (!("clipboard" in navigator))
1597
- return B("Your browser doesn't support the Clipboard API", "error"), !0;
1592
+ return H("Your browser doesn't support the Clipboard API", "error"), !0;
1598
1593
  }
1599
- function ln(e) {
1600
- return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
1594
+ function t2(e) {
1595
+ return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (H('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
1601
1596
  }
1602
- async function o2(e) {
1603
- if (!on())
1597
+ async function en(e) {
1598
+ if (!e2())
1604
1599
  try {
1605
- await navigator.clipboard.writeText(JSON.stringify(e.state.value)), B("Global state copied to clipboard.");
1600
+ await navigator.clipboard.writeText(JSON.stringify(e.state.value)), H("Global state copied to clipboard.");
1606
1601
  } catch (o) {
1607
- if (ln(o))
1602
+ if (t2(o))
1608
1603
  return;
1609
- B("Failed to serialize the state. Check the console for more details.", "error"), console.error(o);
1604
+ H("Failed to serialize the state. Check the console for more details.", "error"), console.error(o);
1610
1605
  }
1611
1606
  }
1612
- async function l2(e) {
1613
- if (!on())
1607
+ async function tn(e) {
1608
+ if (!e2())
1614
1609
  try {
1615
- sn(e, JSON.parse(await navigator.clipboard.readText())), B("Global state pasted from clipboard.");
1610
+ n2(e, JSON.parse(await navigator.clipboard.readText())), H("Global state pasted from clipboard.");
1616
1611
  } catch (o) {
1617
- if (ln(o))
1612
+ if (t2(o))
1618
1613
  return;
1619
- B("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(o);
1614
+ H("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(o);
1620
1615
  }
1621
1616
  }
1622
- async function s2(e) {
1617
+ async function nn(e) {
1623
1618
  try {
1624
- nn(new Blob([JSON.stringify(e.state.value)], {
1619
+ Xt(new Blob([JSON.stringify(e.state.value)], {
1625
1620
  type: "text/plain;charset=utf-8"
1626
1621
  }), "pinia-state.json");
1627
1622
  } catch (o) {
1628
- B("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(o);
1623
+ H("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(o);
1629
1624
  }
1630
1625
  }
1631
1626
  let oe;
1632
- function r2() {
1627
+ function on() {
1633
1628
  oe || (oe = document.createElement("input"), oe.type = "file", oe.accept = ".json");
1634
1629
  function e() {
1635
1630
  return new Promise((o, t) => {
@@ -1644,55 +1639,55 @@ function r2() {
1644
1639
  }
1645
1640
  return e;
1646
1641
  }
1647
- async function i2(e) {
1642
+ async function ln(e) {
1648
1643
  try {
1649
- const t = await r2()();
1644
+ const t = await on()();
1650
1645
  if (!t)
1651
1646
  return;
1652
1647
  const { text: n, file: l } = t;
1653
- sn(e, JSON.parse(n)), B(`Global state imported from "${l.name}".`);
1648
+ n2(e, JSON.parse(n)), H(`Global state imported from "${l.name}".`);
1654
1649
  } catch (o) {
1655
- B("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(o);
1650
+ H("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(o);
1656
1651
  }
1657
1652
  }
1658
- function sn(e, o) {
1653
+ function n2(e, o) {
1659
1654
  for (const t in o) {
1660
1655
  const n = e.state.value[t];
1661
1656
  n ? Object.assign(n, o[t]) : e.state.value[t] = o[t];
1662
1657
  }
1663
1658
  }
1664
- function Y(e) {
1659
+ function X(e) {
1665
1660
  return {
1666
1661
  _custom: {
1667
1662
  display: e
1668
1663
  }
1669
1664
  };
1670
1665
  }
1671
- const rn = "🍍 Pinia (root)", Xe = "_root";
1672
- function a2(e) {
1673
- return ut(e) ? {
1674
- id: Xe,
1675
- label: rn
1666
+ const o2 = "🍍 Pinia (root)", Qe = "_root";
1667
+ function sn(e) {
1668
+ return rt(e) ? {
1669
+ id: Qe,
1670
+ label: o2
1676
1671
  } : {
1677
1672
  id: e.$id,
1678
1673
  label: e.$id
1679
1674
  };
1680
1675
  }
1681
- function u2(e) {
1682
- if (ut(e)) {
1676
+ function an(e) {
1677
+ if (rt(e)) {
1683
1678
  const t = Array.from(e._s.keys()), n = e._s;
1684
1679
  return {
1685
- state: t.map((r) => ({
1680
+ state: t.map((s) => ({
1686
1681
  editable: !0,
1687
- key: r,
1688
- value: e.state.value[r]
1682
+ key: s,
1683
+ value: e.state.value[s]
1689
1684
  })),
1690
- getters: t.filter((r) => n.get(r)._getters).map((r) => {
1691
- const i = n.get(r);
1685
+ getters: t.filter((s) => n.get(s)._getters).map((s) => {
1686
+ const i = n.get(s);
1692
1687
  return {
1693
1688
  editable: !1,
1694
- key: r,
1695
- value: i._getters.reduce((s, a) => (s[a] = i[a], s), {})
1689
+ key: s,
1690
+ value: i._getters.reduce((a, r) => (a[r] = i[r], a), {})
1696
1691
  };
1697
1692
  })
1698
1693
  };
@@ -1714,20 +1709,20 @@ function u2(e) {
1714
1709
  value: e[t]
1715
1710
  }))), o;
1716
1711
  }
1717
- function c2(e) {
1712
+ function rn(e) {
1718
1713
  return e ? Array.isArray(e) ? e.reduce((o, t) => (o.keys.push(t.key), o.operations.push(t.type), o.oldValue[t.key] = t.oldValue, o.newValue[t.key] = t.newValue, o), {
1719
1714
  oldValue: {},
1720
1715
  keys: [],
1721
1716
  operations: [],
1722
1717
  newValue: {}
1723
1718
  }) : {
1724
- operation: Y(e.type),
1725
- key: Y(e.key),
1719
+ operation: X(e.type),
1720
+ key: X(e.key),
1726
1721
  oldValue: e.oldValue,
1727
1722
  newValue: e.newValue
1728
1723
  } : {};
1729
1724
  }
1730
- function d2(e) {
1725
+ function un(e) {
1731
1726
  switch (e) {
1732
1727
  case ne.direct:
1733
1728
  return "mutation";
@@ -1739,24 +1734,24 @@ function d2(e) {
1739
1734
  return "unknown";
1740
1735
  }
1741
1736
  }
1742
- let be = !0;
1743
- const Ae = [], ue = "pinia:mutations", U = "pinia", { assign: f2 } = Object, je = (e) => "🍍 " + e;
1744
- function p2(e, o) {
1745
- Qt({
1737
+ let Ce = !0;
1738
+ const Re = [], ce = "pinia:mutations", Z = "pinia", { assign: cn } = Object, De = (e) => "🍍 " + e;
1739
+ function dn(e, o) {
1740
+ Jt({
1746
1741
  id: "dev.esm.pinia",
1747
1742
  label: "Pinia 🍍",
1748
1743
  logo: "https://pinia.vuejs.org/logo.svg",
1749
1744
  packageName: "pinia",
1750
1745
  homepage: "https://pinia.vuejs.org",
1751
- componentStateTypes: Ae,
1746
+ componentStateTypes: Re,
1752
1747
  app: e
1753
1748
  }, (t) => {
1754
- typeof t.now != "function" && B("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), t.addTimelineLayer({
1755
- id: ue,
1749
+ typeof t.now != "function" && H("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), t.addTimelineLayer({
1750
+ id: ce,
1756
1751
  label: "Pinia 🍍",
1757
1752
  color: 15064968
1758
1753
  }), t.addInspector({
1759
- id: U,
1754
+ id: Z,
1760
1755
  label: "Pinia 🍍",
1761
1756
  icon: "storage",
1762
1757
  treeFilterPlaceholder: "Search stores",
@@ -1764,28 +1759,28 @@ function p2(e, o) {
1764
1759
  {
1765
1760
  icon: "content_copy",
1766
1761
  action: () => {
1767
- o2(o);
1762
+ en(o);
1768
1763
  },
1769
1764
  tooltip: "Serialize and copy the state"
1770
1765
  },
1771
1766
  {
1772
1767
  icon: "content_paste",
1773
1768
  action: async () => {
1774
- await l2(o), t.sendInspectorTree(U), t.sendInspectorState(U);
1769
+ await tn(o), t.sendInspectorTree(Z), t.sendInspectorState(Z);
1775
1770
  },
1776
1771
  tooltip: "Replace the state with the content of your clipboard"
1777
1772
  },
1778
1773
  {
1779
1774
  icon: "save",
1780
1775
  action: () => {
1781
- s2(o);
1776
+ nn(o);
1782
1777
  },
1783
1778
  tooltip: "Save the state as a JSON file"
1784
1779
  },
1785
1780
  {
1786
1781
  icon: "folder_open",
1787
1782
  action: async () => {
1788
- await i2(o), t.sendInspectorTree(U), t.sendInspectorState(U);
1783
+ await ln(o), t.sendInspectorTree(Z), t.sendInspectorState(Z);
1789
1784
  },
1790
1785
  tooltip: "Import the state from a JSON file"
1791
1786
  }
@@ -1796,92 +1791,92 @@ function p2(e, o) {
1796
1791
  tooltip: 'Reset the state (with "$reset")',
1797
1792
  action: (n) => {
1798
1793
  const l = o._s.get(n);
1799
- l ? typeof l.$reset != "function" ? B(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (l.$reset(), B(`Store "${n}" reset.`)) : B(`Cannot reset "${n}" store because it wasn't found.`, "warn");
1794
+ l ? typeof l.$reset != "function" ? H(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`, "warn") : (l.$reset(), H(`Store "${n}" reset.`)) : H(`Cannot reset "${n}" store because it wasn't found.`, "warn");
1800
1795
  }
1801
1796
  }
1802
1797
  ]
1803
1798
  }), t.on.inspectComponent((n, l) => {
1804
- const r = n.componentInstance && n.componentInstance.proxy;
1805
- if (r && r._pStores) {
1799
+ const s = n.componentInstance && n.componentInstance.proxy;
1800
+ if (s && s._pStores) {
1806
1801
  const i = n.componentInstance.proxy._pStores;
1807
- Object.values(i).forEach((s) => {
1802
+ Object.values(i).forEach((a) => {
1808
1803
  n.instanceData.state.push({
1809
- type: je(s.$id),
1804
+ type: De(a.$id),
1810
1805
  key: "state",
1811
1806
  editable: !0,
1812
- value: s._isOptionsAPI ? {
1807
+ value: a._isOptionsAPI ? {
1813
1808
  _custom: {
1814
- value: K(s.$state),
1809
+ value: Y(a.$state),
1815
1810
  actions: [
1816
1811
  {
1817
1812
  icon: "restore",
1818
1813
  tooltip: "Reset the state of this store",
1819
- action: () => s.$reset()
1814
+ action: () => a.$reset()
1820
1815
  }
1821
1816
  ]
1822
1817
  }
1823
1818
  } : (
1824
1819
  // NOTE: workaround to unwrap transferred refs
1825
- Object.keys(s.$state).reduce((a, u) => (a[u] = s.$state[u], a), {})
1820
+ Object.keys(a.$state).reduce((r, u) => (r[u] = a.$state[u], r), {})
1826
1821
  )
1827
- }), s._getters && s._getters.length && n.instanceData.state.push({
1828
- type: je(s.$id),
1822
+ }), a._getters && a._getters.length && n.instanceData.state.push({
1823
+ type: De(a.$id),
1829
1824
  key: "getters",
1830
1825
  editable: !1,
1831
- value: s._getters.reduce((a, u) => {
1826
+ value: a._getters.reduce((r, u) => {
1832
1827
  try {
1833
- a[u] = s[u];
1828
+ r[u] = a[u];
1834
1829
  } catch (c) {
1835
- a[u] = c;
1830
+ r[u] = c;
1836
1831
  }
1837
- return a;
1832
+ return r;
1838
1833
  }, {})
1839
1834
  });
1840
1835
  });
1841
1836
  }
1842
1837
  }), t.on.getInspectorTree((n) => {
1843
- if (n.app === e && n.inspectorId === U) {
1838
+ if (n.app === e && n.inspectorId === Z) {
1844
1839
  let l = [o];
1845
- l = l.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? l.filter((r) => "$id" in r ? r.$id.toLowerCase().includes(n.filter.toLowerCase()) : rn.toLowerCase().includes(n.filter.toLowerCase())) : l).map(a2);
1840
+ l = l.concat(Array.from(o._s.values())), n.rootNodes = (n.filter ? l.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(n.filter.toLowerCase()) : o2.toLowerCase().includes(n.filter.toLowerCase())) : l).map(sn);
1846
1841
  }
1847
1842
  }), t.on.getInspectorState((n) => {
1848
- if (n.app === e && n.inspectorId === U) {
1849
- const l = n.nodeId === Xe ? o : o._s.get(n.nodeId);
1843
+ if (n.app === e && n.inspectorId === Z) {
1844
+ const l = n.nodeId === Qe ? o : o._s.get(n.nodeId);
1850
1845
  if (!l)
1851
1846
  return;
1852
- l && (n.state = u2(l));
1847
+ l && (n.state = an(l));
1853
1848
  }
1854
1849
  }), t.on.editInspectorState((n, l) => {
1855
- if (n.app === e && n.inspectorId === U) {
1856
- const r = n.nodeId === Xe ? o : o._s.get(n.nodeId);
1857
- if (!r)
1858
- return B(`store "${n.nodeId}" not found`, "error");
1850
+ if (n.app === e && n.inspectorId === Z) {
1851
+ const s = n.nodeId === Qe ? o : o._s.get(n.nodeId);
1852
+ if (!s)
1853
+ return H(`store "${n.nodeId}" not found`, "error");
1859
1854
  const { path: i } = n;
1860
- ut(r) ? i.unshift("state") : (i.length !== 1 || !r._customProperties.has(i[0]) || i[0] in r.$state) && i.unshift("$state"), be = !1, n.set(r, i, n.state.value), be = !0;
1855
+ rt(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), Ce = !1, n.set(s, i, n.state.value), Ce = !0;
1861
1856
  }
1862
1857
  }), t.on.editComponentState((n) => {
1863
1858
  if (n.type.startsWith("🍍")) {
1864
- const l = n.type.replace(/^🍍\s*/, ""), r = o._s.get(l);
1865
- if (!r)
1866
- return B(`store "${l}" not found`, "error");
1859
+ const l = n.type.replace(/^🍍\s*/, ""), s = o._s.get(l);
1860
+ if (!s)
1861
+ return H(`store "${l}" not found`, "error");
1867
1862
  const { path: i } = n;
1868
1863
  if (i[0] !== "state")
1869
- return B(`Invalid path for store "${l}":
1864
+ return H(`Invalid path for store "${l}":
1870
1865
  ${i}
1871
1866
  Only state can be modified.`);
1872
- i[0] = "$state", be = !1, n.set(r, i, n.state.value), be = !0;
1867
+ i[0] = "$state", Ce = !1, n.set(s, i, n.state.value), Ce = !0;
1873
1868
  }
1874
1869
  });
1875
1870
  });
1876
1871
  }
1877
- function v2(e, o) {
1878
- Ae.includes(je(o.$id)) || Ae.push(je(o.$id)), Qt({
1872
+ function fn(e, o) {
1873
+ Re.includes(De(o.$id)) || Re.push(De(o.$id)), Jt({
1879
1874
  id: "dev.esm.pinia",
1880
1875
  label: "Pinia 🍍",
1881
1876
  logo: "https://pinia.vuejs.org/logo.svg",
1882
1877
  packageName: "pinia",
1883
1878
  homepage: "https://pinia.vuejs.org",
1884
- componentStateTypes: Ae,
1879
+ componentStateTypes: Re,
1885
1880
  app: e,
1886
1881
  settings: {
1887
1882
  logStoreChanges: {
@@ -1897,48 +1892,48 @@ function v2(e, o) {
1897
1892
  }
1898
1893
  }, (t) => {
1899
1894
  const n = typeof t.now == "function" ? t.now.bind(t) : Date.now;
1900
- o.$onAction(({ after: i, onError: s, name: a, args: u }) => {
1901
- const c = an++;
1895
+ o.$onAction(({ after: i, onError: a, name: r, args: u }) => {
1896
+ const c = l2++;
1902
1897
  t.addTimelineEvent({
1903
- layerId: ue,
1898
+ layerId: ce,
1904
1899
  event: {
1905
1900
  time: n(),
1906
- title: "🛫 " + a,
1901
+ title: "🛫 " + r,
1907
1902
  subtitle: "start",
1908
1903
  data: {
1909
- store: Y(o.$id),
1910
- action: Y(a),
1904
+ store: X(o.$id),
1905
+ action: X(r),
1911
1906
  args: u
1912
1907
  },
1913
1908
  groupId: c
1914
1909
  }
1915
1910
  }), i((p) => {
1916
- re = void 0, t.addTimelineEvent({
1917
- layerId: ue,
1911
+ ie = void 0, t.addTimelineEvent({
1912
+ layerId: ce,
1918
1913
  event: {
1919
1914
  time: n(),
1920
- title: "🛬 " + a,
1915
+ title: "🛬 " + r,
1921
1916
  subtitle: "end",
1922
1917
  data: {
1923
- store: Y(o.$id),
1924
- action: Y(a),
1918
+ store: X(o.$id),
1919
+ action: X(r),
1925
1920
  args: u,
1926
1921
  result: p
1927
1922
  },
1928
1923
  groupId: c
1929
1924
  }
1930
1925
  });
1931
- }), s((p) => {
1932
- re = void 0, t.addTimelineEvent({
1933
- layerId: ue,
1926
+ }), a((p) => {
1927
+ ie = void 0, t.addTimelineEvent({
1928
+ layerId: ce,
1934
1929
  event: {
1935
1930
  time: n(),
1936
1931
  logType: "error",
1937
- title: "💥 " + a,
1932
+ title: "💥 " + r,
1938
1933
  subtitle: "end",
1939
1934
  data: {
1940
- store: Y(o.$id),
1941
- action: Y(a),
1935
+ store: X(o.$id),
1936
+ action: X(r),
1942
1937
  args: u,
1943
1938
  error: p
1944
1939
  },
@@ -1947,31 +1942,31 @@ function v2(e, o) {
1947
1942
  });
1948
1943
  });
1949
1944
  }, !0), o._customProperties.forEach((i) => {
1950
- F(() => V(o[i]), (s, a) => {
1951
- t.notifyComponentUpdate(), t.sendInspectorState(U), be && t.addTimelineEvent({
1952
- layerId: ue,
1945
+ B(() => V(o[i]), (a, r) => {
1946
+ t.notifyComponentUpdate(), t.sendInspectorState(Z), Ce && t.addTimelineEvent({
1947
+ layerId: ce,
1953
1948
  event: {
1954
1949
  time: n(),
1955
1950
  title: "Change",
1956
1951
  subtitle: i,
1957
1952
  data: {
1958
- newValue: s,
1959
- oldValue: a
1953
+ newValue: a,
1954
+ oldValue: r
1960
1955
  },
1961
- groupId: re
1956
+ groupId: ie
1962
1957
  }
1963
1958
  });
1964
1959
  }, { deep: !0 });
1965
- }), o.$subscribe(({ events: i, type: s }, a) => {
1966
- if (t.notifyComponentUpdate(), t.sendInspectorState(U), !be)
1960
+ }), o.$subscribe(({ events: i, type: a }, r) => {
1961
+ if (t.notifyComponentUpdate(), t.sendInspectorState(Z), !Ce)
1967
1962
  return;
1968
1963
  const u = {
1969
1964
  time: n(),
1970
- title: d2(s),
1971
- data: f2({ store: Y(o.$id) }, c2(i)),
1972
- groupId: re
1965
+ title: un(a),
1966
+ data: cn({ store: X(o.$id) }, rn(i)),
1967
+ groupId: ie
1973
1968
  };
1974
- s === ne.patchFunction ? u.subtitle = "⤵️" : s === ne.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
1969
+ a === ne.patchFunction ? u.subtitle = "⤵️" : a === ne.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
1975
1970
  _custom: {
1976
1971
  display: "DebuggerEvent",
1977
1972
  type: "object",
@@ -1979,71 +1974,71 @@ function v2(e, o) {
1979
1974
  value: i
1980
1975
  }
1981
1976
  }), t.addTimelineEvent({
1982
- layerId: ue,
1977
+ layerId: ce,
1983
1978
  event: u
1984
1979
  });
1985
1980
  }, { detached: !0, flush: "sync" });
1986
1981
  const l = o._hotUpdate;
1987
- o._hotUpdate = de((i) => {
1982
+ o._hotUpdate = fe((i) => {
1988
1983
  l(i), t.addTimelineEvent({
1989
- layerId: ue,
1984
+ layerId: ce,
1990
1985
  event: {
1991
1986
  time: n(),
1992
1987
  title: "🔥 " + o.$id,
1993
1988
  subtitle: "HMR update",
1994
1989
  data: {
1995
- store: Y(o.$id),
1996
- info: Y("HMR update")
1990
+ store: X(o.$id),
1991
+ info: X("HMR update")
1997
1992
  }
1998
1993
  }
1999
- }), t.notifyComponentUpdate(), t.sendInspectorTree(U), t.sendInspectorState(U);
1994
+ }), t.notifyComponentUpdate(), t.sendInspectorTree(Z), t.sendInspectorState(Z);
2000
1995
  });
2001
- const { $dispose: r } = o;
1996
+ const { $dispose: s } = o;
2002
1997
  o.$dispose = () => {
2003
- r(), t.notifyComponentUpdate(), t.sendInspectorTree(U), t.sendInspectorState(U), t.getSettings().logStoreChanges && B(`Disposed "${o.$id}" store 🗑`);
2004
- }, t.notifyComponentUpdate(), t.sendInspectorTree(U), t.sendInspectorState(U), t.getSettings().logStoreChanges && B(`"${o.$id}" store installed 🆕`);
1998
+ s(), t.notifyComponentUpdate(), t.sendInspectorTree(Z), t.sendInspectorState(Z), t.getSettings().logStoreChanges && H(`Disposed "${o.$id}" store 🗑`);
1999
+ }, t.notifyComponentUpdate(), t.sendInspectorTree(Z), t.sendInspectorState(Z), t.getSettings().logStoreChanges && H(`"${o.$id}" store installed 🆕`);
2005
2000
  });
2006
2001
  }
2007
- let an = 0, re;
2008
- function _t(e, o, t) {
2009
- const n = o.reduce((l, r) => (l[r] = K(e)[r], l), {});
2002
+ let l2 = 0, ie;
2003
+ function Ct(e, o, t) {
2004
+ const n = o.reduce((l, s) => (l[s] = Y(e)[s], l), {});
2010
2005
  for (const l in n)
2011
2006
  e[l] = function() {
2012
- const r = an, i = t ? new Proxy(e, {
2013
- get(...a) {
2014
- return re = r, Reflect.get(...a);
2007
+ const s = l2, i = t ? new Proxy(e, {
2008
+ get(...r) {
2009
+ return ie = s, Reflect.get(...r);
2015
2010
  },
2016
- set(...a) {
2017
- return re = r, Reflect.set(...a);
2011
+ set(...r) {
2012
+ return ie = s, Reflect.set(...r);
2018
2013
  }
2019
2014
  }) : e;
2020
- re = r;
2021
- const s = n[l].apply(i, arguments);
2022
- return re = void 0, s;
2015
+ ie = s;
2016
+ const a = n[l].apply(i, arguments);
2017
+ return ie = void 0, a;
2023
2018
  };
2024
2019
  }
2025
- function h2({ app: e, store: o, options: t }) {
2020
+ function pn({ app: e, store: o, options: t }) {
2026
2021
  if (o.$id.startsWith("__hot:"))
2027
2022
  return;
2028
- o._isOptionsAPI = !!t.state, _t(o, Object.keys(t.actions), o._isOptionsAPI);
2023
+ o._isOptionsAPI = !!t.state, Ct(o, Object.keys(t.actions), o._isOptionsAPI);
2029
2024
  const n = o._hotUpdate;
2030
- K(o)._hotUpdate = function(l) {
2031
- n.apply(this, arguments), _t(o, Object.keys(l._hmrPayload.actions), !!o._isOptionsAPI);
2032
- }, v2(
2025
+ Y(o)._hotUpdate = function(l) {
2026
+ n.apply(this, arguments), Ct(o, Object.keys(l._hmrPayload.actions), !!o._isOptionsAPI);
2027
+ }, fn(
2033
2028
  e,
2034
2029
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
2035
2030
  o
2036
2031
  );
2037
2032
  }
2038
- function m2() {
2039
- const e = Pt(!0), o = e.run(() => E({}));
2033
+ function vn() {
2034
+ const e = It(!0), o = e.run(() => O({}));
2040
2035
  let t = [], n = [];
2041
- const l = de({
2042
- install(r) {
2043
- Te(l), l._a = r, r.provide(Xt, l), r.config.globalProperties.$pinia = l, Se && p2(r, l), n.forEach((i) => t.push(i)), n = [];
2036
+ const l = fe({
2037
+ install(s) {
2038
+ $e(l), l._a = s, s.provide(Kt, l), s.config.globalProperties.$pinia = l, Se && dn(s, l), n.forEach((i) => t.push(i)), n = [];
2044
2039
  },
2045
- use(r) {
2046
- return !this._a && !Kt ? n.push(r) : t.push(r), this;
2040
+ use(s) {
2041
+ return !this._a && !Gt ? n.push(s) : t.push(s), this;
2047
2042
  },
2048
2043
  _p: t,
2049
2044
  // it's actually undefined here
@@ -2053,231 +2048,231 @@ function m2() {
2053
2048
  _s: /* @__PURE__ */ new Map(),
2054
2049
  state: o
2055
2050
  });
2056
- return Se && typeof Proxy < "u" && l.use(h2), l;
2051
+ return Se && typeof Proxy < "u" && l.use(pn), l;
2057
2052
  }
2058
- function un(e, o) {
2053
+ function s2(e, o) {
2059
2054
  for (const t in o) {
2060
2055
  const n = o[t];
2061
2056
  if (!(t in e))
2062
2057
  continue;
2063
2058
  const l = e[t];
2064
- fe(l) && fe(n) && !xe(n) && !st(n) ? e[t] = un(l, n) : e[t] = n;
2059
+ pe(l) && pe(n) && !xe(n) && !lt(n) ? e[t] = s2(l, n) : e[t] = n;
2065
2060
  }
2066
2061
  return e;
2067
2062
  }
2068
- const cn = () => {
2063
+ const a2 = () => {
2069
2064
  };
2070
- function Ct(e, o, t, n = cn) {
2065
+ function xt(e, o, t, n = a2) {
2071
2066
  e.push(o);
2072
2067
  const l = () => {
2073
- const r = e.indexOf(o);
2074
- r > -1 && (e.splice(r, 1), n());
2068
+ const s = e.indexOf(o);
2069
+ s > -1 && (e.splice(s, 1), n());
2075
2070
  };
2076
- return !t && kt() && nt(l), l;
2071
+ return !t && Mt() && tt(l), l;
2077
2072
  }
2078
2073
  function ge(e, ...o) {
2079
2074
  e.slice().forEach((t) => {
2080
2075
  t(...o);
2081
2076
  });
2082
2077
  }
2083
- const g2 = (e) => e();
2084
- function et(e, o) {
2078
+ const hn = (e) => e();
2079
+ function Xe(e, o) {
2085
2080
  e instanceof Map && o instanceof Map && o.forEach((t, n) => e.set(n, t)), e instanceof Set && o instanceof Set && o.forEach(e.add, e);
2086
2081
  for (const t in o) {
2087
2082
  if (!o.hasOwnProperty(t))
2088
2083
  continue;
2089
2084
  const n = o[t], l = e[t];
2090
- fe(l) && fe(n) && e.hasOwnProperty(t) && !xe(n) && !st(n) ? e[t] = et(l, n) : e[t] = n;
2085
+ pe(l) && pe(n) && e.hasOwnProperty(t) && !xe(n) && !lt(n) ? e[t] = Xe(l, n) : e[t] = n;
2091
2086
  }
2092
2087
  return e;
2093
2088
  }
2094
- const b2 = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2089
+ const mn = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2095
2090
  /* istanbul ignore next */
2096
2091
  Symbol()
2097
2092
  );
2098
- function x2(e) {
2099
- return !fe(e) || !e.hasOwnProperty(b2);
2093
+ function bn(e) {
2094
+ return !pe(e) || !e.hasOwnProperty(mn);
2100
2095
  }
2101
- const { assign: J } = Object;
2096
+ const { assign: K } = Object;
2102
2097
  function yt(e) {
2103
2098
  return !!(xe(e) && e.effect);
2104
2099
  }
2105
2100
  function wt(e, o, t, n) {
2106
- const { state: l, actions: r, getters: i } = o, s = t.state.value[e];
2107
- let a;
2101
+ const { state: l, actions: s, getters: i } = o, a = t.state.value[e];
2102
+ let r;
2108
2103
  function u() {
2109
- !s && (process.env.NODE_ENV === "production" || !n) && (t.state.value[e] = l ? l() : {});
2104
+ !a && (process.env.NODE_ENV === "production" || !n) && (t.state.value[e] = l ? l() : {});
2110
2105
  const c = process.env.NODE_ENV !== "production" && n ? (
2111
2106
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
2112
- dt(E(l ? l() : {}).value)
2113
- ) : dt(t.state.value[e]);
2114
- 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(() => {
2115
- Te(t);
2116
- const x = t._s.get(e);
2117
- return i[g].call(x, x);
2107
+ ct(O(l ? l() : {}).value)
2108
+ ) : ct(t.state.value[e]);
2109
+ return K(c, s, Object.keys(i || {}).reduce((p, h) => (process.env.NODE_ENV !== "production" && h in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${e}".`), p[h] = fe(_(() => {
2110
+ $e(t);
2111
+ const m = t._s.get(e);
2112
+ return i[h].call(m, m);
2118
2113
  })), p), {}));
2119
2114
  }
2120
- return a = tt(e, u, o, t, n, !0), a;
2115
+ return r = et(e, u, o, t, n, !0), r;
2121
2116
  }
2122
- function tt(e, o, t = {}, n, l, r) {
2117
+ function et(e, o, t = {}, n, l, s) {
2123
2118
  let i;
2124
- const s = J({ actions: {} }, t);
2119
+ const a = K({ actions: {} }, t);
2125
2120
  if (process.env.NODE_ENV !== "production" && !n._e.active)
2126
2121
  throw new Error("Pinia destroyed");
2127
- const a = {
2122
+ const r = {
2128
2123
  deep: !0
2129
2124
  // flush: 'post',
2130
2125
  };
2131
- process.env.NODE_ENV !== "production" && !Kt && (a.onTrigger = (d) => {
2132
- 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."));
2126
+ process.env.NODE_ENV !== "production" && !Gt && (r.onTrigger = (d) => {
2127
+ u ? m = d : u == !1 && !x._hotUpdating && (Array.isArray(m) ? m.push(d) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2133
2128
  });
2134
- let u, c, p = [], g = [], x;
2135
- const _ = n.state.value[e];
2136
- !r && !_ && (process.env.NODE_ENV === "production" || !l) && (n.state.value[e] = {});
2137
- const v = E({});
2138
- let $;
2139
- function N(d) {
2129
+ let u, c, p = [], h = [], m;
2130
+ const b = n.state.value[e];
2131
+ !s && !b && (process.env.NODE_ENV === "production" || !l) && (n.state.value[e] = {});
2132
+ const S = O({});
2133
+ let I;
2134
+ function T(d) {
2140
2135
  let f;
2141
- u = c = !1, process.env.NODE_ENV !== "production" && (x = []), typeof d == "function" ? (d(n.state.value[e]), f = {
2136
+ u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof d == "function" ? (d(n.state.value[e]), f = {
2142
2137
  type: ne.patchFunction,
2143
2138
  storeId: e,
2144
- events: x
2145
- }) : (et(n.state.value[e], d), f = {
2139
+ events: m
2140
+ }) : (Xe(n.state.value[e], d), f = {
2146
2141
  type: ne.patchObject,
2147
2142
  payload: d,
2148
2143
  storeId: e,
2149
- events: x
2144
+ events: m
2150
2145
  });
2151
- const y = $ = Symbol();
2152
- Q().then(() => {
2153
- $ === y && (u = !0);
2146
+ const y = I = Symbol();
2147
+ ee().then(() => {
2148
+ I === y && (u = !0);
2154
2149
  }), c = !0, ge(p, f, n.state.value[e]);
2155
2150
  }
2156
- const I = r ? function() {
2151
+ const L = s ? function() {
2157
2152
  const { state: f } = t, y = f ? f() : {};
2158
- this.$patch((O) => {
2159
- J(O, y);
2153
+ this.$patch(($) => {
2154
+ K($, y);
2160
2155
  });
2161
2156
  } : (
2162
2157
  /* istanbul ignore next */
2163
2158
  process.env.NODE_ENV !== "production" ? () => {
2164
2159
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
2165
- } : cn
2160
+ } : a2
2166
2161
  );
2167
- function k() {
2168
- i.stop(), p = [], g = [], n._s.delete(e);
2162
+ function P() {
2163
+ i.stop(), p = [], h = [], n._s.delete(e);
2169
2164
  }
2170
- function D(d, f) {
2165
+ function k(d, f) {
2171
2166
  return function() {
2172
- Te(n);
2173
- const y = Array.from(arguments), O = [], M = [];
2174
- function A(j) {
2175
- O.push(j);
2167
+ $e(n);
2168
+ const y = Array.from(arguments), $ = [], R = [];
2169
+ function D(j) {
2170
+ $.push(j);
2176
2171
  }
2177
- function G(j) {
2178
- M.push(j);
2172
+ function q(j) {
2173
+ R.push(j);
2179
2174
  }
2180
- ge(g, {
2175
+ ge(h, {
2181
2176
  args: y,
2182
2177
  name: d,
2183
- store: C,
2184
- after: A,
2185
- onError: G
2178
+ store: x,
2179
+ after: D,
2180
+ onError: q
2186
2181
  });
2187
- let q;
2182
+ let J;
2188
2183
  try {
2189
- q = f.apply(this && this.$id === e ? this : C, y);
2184
+ J = f.apply(this && this.$id === e ? this : x, y);
2190
2185
  } catch (j) {
2191
- throw ge(M, j), j;
2186
+ throw ge(R, j), j;
2192
2187
  }
2193
- return q instanceof Promise ? q.then((j) => (ge(O, j), j)).catch((j) => (ge(M, j), Promise.reject(j))) : (ge(O, q), q);
2188
+ return J instanceof Promise ? J.then((j) => (ge($, j), j)).catch((j) => (ge(R, j), Promise.reject(j))) : (ge($, J), J);
2194
2189
  };
2195
2190
  }
2196
- const m = /* @__PURE__ */ de({
2191
+ const g = /* @__PURE__ */ fe({
2197
2192
  actions: {},
2198
2193
  getters: {},
2199
2194
  state: [],
2200
- hotState: v
2201
- }), R = {
2195
+ hotState: S
2196
+ }), M = {
2202
2197
  _p: n,
2203
2198
  // _s: scope,
2204
2199
  $id: e,
2205
- $onAction: Ct.bind(null, g),
2206
- $patch: N,
2207
- $reset: I,
2200
+ $onAction: xt.bind(null, h),
2201
+ $patch: T,
2202
+ $reset: L,
2208
2203
  $subscribe(d, f = {}) {
2209
- const y = Ct(p, d, f.detached, () => O()), O = i.run(() => F(() => n.state.value[e], (M) => {
2204
+ const y = xt(p, d, f.detached, () => $()), $ = i.run(() => B(() => n.state.value[e], (R) => {
2210
2205
  (f.flush === "sync" ? c : u) && d({
2211
2206
  storeId: e,
2212
2207
  type: ne.direct,
2213
- events: x
2214
- }, M);
2215
- }, J({}, a, f)));
2208
+ events: m
2209
+ }, R);
2210
+ }, K({}, r, f)));
2216
2211
  return y;
2217
2212
  },
2218
- $dispose: k
2219
- }, C = Rt(process.env.NODE_ENV !== "production" || Se ? J(
2213
+ $dispose: P
2214
+ }, x = $t(process.env.NODE_ENV !== "production" || Se ? K(
2220
2215
  {
2221
- _hmrPayload: m,
2222
- _customProperties: de(/* @__PURE__ */ new Set())
2216
+ _hmrPayload: g,
2217
+ _customProperties: fe(/* @__PURE__ */ new Set())
2223
2218
  // devtools custom properties
2224
2219
  },
2225
- R
2220
+ M
2226
2221
  // must be added later
2227
2222
  // setupStore
2228
- ) : R);
2229
- n._s.set(e, C);
2230
- const L = (n._a && n._a.runWithContext || g2)(() => n._e.run(() => (i = Pt()).run(o)));
2231
- for (const d in L) {
2232
- const f = L[d];
2233
- if (xe(f) && !yt(f) || st(f))
2234
- process.env.NODE_ENV !== "production" && l ? Me(v.value, d, qe(L, d)) : r || (_ && x2(f) && (xe(f) ? f.value = _[d] : et(f, _[d])), n.state.value[e][d] = f), process.env.NODE_ENV !== "production" && m.state.push(d);
2223
+ ) : M);
2224
+ n._s.set(e, x);
2225
+ const A = (n._a && n._a.runWithContext || hn)(() => n._e.run(() => (i = It()).run(o)));
2226
+ for (const d in A) {
2227
+ const f = A[d];
2228
+ if (xe(f) && !yt(f) || lt(f))
2229
+ process.env.NODE_ENV !== "production" && l ? Ae(S.value, d, Ge(A, d)) : s || (b && bn(f) && (xe(f) ? f.value = b[d] : Xe(f, b[d])), n.state.value[e][d] = f), process.env.NODE_ENV !== "production" && g.state.push(d);
2235
2230
  else if (typeof f == "function") {
2236
- const y = process.env.NODE_ENV !== "production" && l ? f : D(d, f);
2237
- L[d] = y, process.env.NODE_ENV !== "production" && (m.actions[d] = f), s.actions[d] = f;
2238
- } else process.env.NODE_ENV !== "production" && yt(f) && (m.getters[d] = r ? (
2231
+ const y = process.env.NODE_ENV !== "production" && l ? f : k(d, f);
2232
+ A[d] = y, process.env.NODE_ENV !== "production" && (g.actions[d] = f), a.actions[d] = f;
2233
+ } else process.env.NODE_ENV !== "production" && yt(f) && (g.getters[d] = s ? (
2239
2234
  // @ts-expect-error
2240
2235
  t.getters[d]
2241
- ) : f, ze && (L._getters || // @ts-expect-error: same
2242
- (L._getters = de([]))).push(d));
2236
+ ) : f, je && (A._getters || // @ts-expect-error: same
2237
+ (A._getters = fe([]))).push(d));
2243
2238
  }
2244
- if (J(C, L), J(K(C), L), Object.defineProperty(C, "$state", {
2245
- get: () => process.env.NODE_ENV !== "production" && l ? v.value : n.state.value[e],
2239
+ if (K(x, A), K(Y(x), A), Object.defineProperty(x, "$state", {
2240
+ get: () => process.env.NODE_ENV !== "production" && l ? S.value : n.state.value[e],
2246
2241
  set: (d) => {
2247
2242
  if (process.env.NODE_ENV !== "production" && l)
2248
2243
  throw new Error("cannot set hotState");
2249
- N((f) => {
2250
- J(f, d);
2244
+ T((f) => {
2245
+ K(f, d);
2251
2246
  });
2252
2247
  }
2253
- }), process.env.NODE_ENV !== "production" && (C._hotUpdate = de((d) => {
2254
- C._hotUpdating = !0, d._hmrPayload.state.forEach((f) => {
2255
- if (f in C.$state) {
2256
- const y = d.$state[f], O = C.$state[f];
2257
- typeof y == "object" && fe(y) && fe(O) ? un(y, O) : d.$state[f] = O;
2248
+ }), process.env.NODE_ENV !== "production" && (x._hotUpdate = fe((d) => {
2249
+ x._hotUpdating = !0, d._hmrPayload.state.forEach((f) => {
2250
+ if (f in x.$state) {
2251
+ const y = d.$state[f], $ = x.$state[f];
2252
+ typeof y == "object" && pe(y) && pe($) ? s2(y, $) : d.$state[f] = $;
2258
2253
  }
2259
- Me(C, f, qe(d.$state, f));
2260
- }), Object.keys(C.$state).forEach((f) => {
2261
- f in d.$state || Ye(C, f);
2262
- }), u = !1, c = !1, n.state.value[e] = qe(d._hmrPayload, "hotState"), c = !0, Q().then(() => {
2254
+ Ae(x, f, Ge(d.$state, f));
2255
+ }), Object.keys(x.$state).forEach((f) => {
2256
+ f in d.$state || Ke(x, f);
2257
+ }), u = !1, c = !1, n.state.value[e] = Ge(d._hmrPayload, "hotState"), c = !0, ee().then(() => {
2263
2258
  u = !0;
2264
2259
  });
2265
2260
  for (const f in d._hmrPayload.actions) {
2266
2261
  const y = d[f];
2267
- Me(C, f, D(f, y));
2262
+ Ae(x, f, k(f, y));
2268
2263
  }
2269
2264
  for (const f in d._hmrPayload.getters) {
2270
- const y = d._hmrPayload.getters[f], O = r ? (
2265
+ const y = d._hmrPayload.getters[f], $ = s ? (
2271
2266
  // special handling of options api
2272
- S(() => (Te(n), y.call(C, C)))
2267
+ _(() => ($e(n), y.call(x, x)))
2273
2268
  ) : y;
2274
- Me(C, f, O);
2269
+ Ae(x, f, $);
2275
2270
  }
2276
- Object.keys(C._hmrPayload.getters).forEach((f) => {
2277
- f in d._hmrPayload.getters || Ye(C, f);
2278
- }), Object.keys(C._hmrPayload.actions).forEach((f) => {
2279
- f in d._hmrPayload.actions || Ye(C, f);
2280
- }), C._hmrPayload = d._hmrPayload, C._getters = d._getters, C._hotUpdating = !1;
2271
+ Object.keys(x._hmrPayload.getters).forEach((f) => {
2272
+ f in d._hmrPayload.getters || Ke(x, f);
2273
+ }), Object.keys(x._hmrPayload.actions).forEach((f) => {
2274
+ f in d._hmrPayload.actions || Ke(x, f);
2275
+ }), x._hmrPayload = d._hmrPayload, x._getters = d._getters, x._hotUpdating = !1;
2281
2276
  })), Se) {
2282
2277
  const d = {
2283
2278
  writable: !0,
@@ -2286,65 +2281,65 @@ function tt(e, o, t = {}, n, l, r) {
2286
2281
  enumerable: !1
2287
2282
  };
2288
2283
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((f) => {
2289
- Object.defineProperty(C, f, J({ value: C[f] }, d));
2284
+ Object.defineProperty(x, f, K({ value: x[f] }, d));
2290
2285
  });
2291
2286
  }
2292
2287
  return n._p.forEach((d) => {
2293
2288
  if (Se) {
2294
2289
  const f = i.run(() => d({
2295
- store: C,
2290
+ store: x,
2296
2291
  app: n._a,
2297
2292
  pinia: n,
2298
- options: s
2293
+ options: a
2299
2294
  }));
2300
- Object.keys(f || {}).forEach((y) => C._customProperties.add(y)), J(C, f);
2295
+ Object.keys(f || {}).forEach((y) => x._customProperties.add(y)), K(x, f);
2301
2296
  } else
2302
- J(C, i.run(() => d({
2303
- store: C,
2297
+ K(x, i.run(() => d({
2298
+ store: x,
2304
2299
  app: n._a,
2305
2300
  pinia: n,
2306
- options: s
2301
+ options: a
2307
2302
  })));
2308
- }), 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
2303
+ }), 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
2309
2304
  state: () => new MyClass()
2310
- Found in store "${C.$id}".`), _ && r && t.hydrate && t.hydrate(C.$state, _), u = !0, c = !0, C;
2305
+ Found in store "${x.$id}".`), b && s && t.hydrate && t.hydrate(x.$state, b), u = !0, c = !0, x;
2311
2306
  }
2312
- function Ue(e, o, t) {
2307
+ function He(e, o, t) {
2313
2308
  let n, l;
2314
- const r = typeof o == "function";
2309
+ const s = typeof o == "function";
2315
2310
  if (typeof e == "string")
2316
- n = e, l = r ? t : o;
2311
+ n = e, l = s ? t : o;
2317
2312
  else if (l = e, n = e.id, process.env.NODE_ENV !== "production" && typeof n != "string")
2318
2313
  throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
2319
- function i(s, a) {
2320
- const u = gn();
2321
- if (s = // in test mode, ignore the argument provided as we can always retrieve a
2314
+ function i(a, r) {
2315
+ const u = v2();
2316
+ if (a = // in test mode, ignore the argument provided as we can always retrieve a
2322
2317
  // pinia instance with getActivePinia()
2323
- (process.env.NODE_ENV === "test" && we && we._testing ? null : s) || (u ? Ie(Xt, null) : null), s && Te(s), process.env.NODE_ENV !== "production" && !we)
2318
+ (process.env.NODE_ENV === "test" && _e && _e._testing ? null : a) || (u ? Ie(Kt, null) : null), a && $e(a), process.env.NODE_ENV !== "production" && !_e)
2324
2319
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
2325
2320
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
2326
2321
  This will fail in production.`);
2327
- s = we, s._s.has(n) || (r ? tt(n, o, l, s) : wt(n, l, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
2328
- const c = s._s.get(n);
2329
- if (process.env.NODE_ENV !== "production" && a) {
2330
- const p = "__hot:" + n, g = r ? tt(p, o, l, s, !0) : wt(p, J({}, l), s, !0);
2331
- a._hotUpdate(g), delete s.state.value[p], s._s.delete(p);
2322
+ a = _e, a._s.has(n) || (s ? et(n, o, l, a) : wt(n, l, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
2323
+ const c = a._s.get(n);
2324
+ if (process.env.NODE_ENV !== "production" && r) {
2325
+ const p = "__hot:" + n, h = s ? et(p, o, l, a, !0) : wt(p, K({}, l), a, !0);
2326
+ r._hotUpdate(h), delete a.state.value[p], a._s.delete(p);
2332
2327
  }
2333
- if (process.env.NODE_ENV !== "production" && ze) {
2334
- const p = Vt();
2328
+ if (process.env.NODE_ENV !== "production" && je) {
2329
+ const p = Lt();
2335
2330
  if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
2336
- !a) {
2337
- const g = p.proxy, x = "_pStores" in g ? g._pStores : g._pStores = {};
2338
- x[n] = c;
2331
+ !r) {
2332
+ const h = p.proxy, m = "_pStores" in h ? h._pStores : h._pStores = {};
2333
+ m[n] = c;
2339
2334
  }
2340
2335
  }
2341
2336
  return c;
2342
2337
  }
2343
2338
  return i.$id = n, i;
2344
2339
  }
2345
- const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
2340
+ const ze = He("loader", () => ({ loading: O(!1) })), _t = {
2346
2341
  __name: "Select",
2347
- props: /* @__PURE__ */ bn({
2342
+ props: /* @__PURE__ */ h2({
2348
2343
  languages: {
2349
2344
  type: Object,
2350
2345
  required: !0
@@ -2355,54 +2350,54 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
2355
2350
  }),
2356
2351
  emits: ["update:modelValue"],
2357
2352
  setup(e) {
2358
- const o = Ze(), t = e, n = xn(e, "modelValue"), l = E(""), r = E(null), i = S(() => Object.entries(t.languages).filter(
2359
- ([, a]) => a.toLowerCase().includes(l.value.toLowerCase())
2360
- )), s = (a) => {
2361
- a.target.value = "", l.value = "", r.value && r.value.$el.click();
2353
+ const o = ze(), t = e, n = m2(e, "modelValue"), l = O(""), s = O(null), i = _(() => Object.entries(t.languages).filter(
2354
+ ([, r]) => r.toLowerCase().includes(l.value.toLowerCase())
2355
+ )), a = (r) => {
2356
+ r.target.value = "", l.value = "", s.value && s.value.$el.click();
2362
2357
  };
2363
- return (a, u) => (w(), ee(V(Ao), {
2358
+ return (r, u) => (w(), se(V(P0), {
2364
2359
  modelValue: n.value,
2365
2360
  "onUpdate:modelValue": u[3] || (u[3] = (c) => n.value = c),
2366
2361
  disabled: V(o).loading,
2367
2362
  as: "div",
2368
2363
  class: "relative mt-1"
2369
2364
  }, {
2370
- default: Ve(() => [
2371
- H(V(jo), {
2365
+ default: Me(() => [
2366
+ N(V(k0), {
2372
2367
  class: "w-full bg-white border border-gray-300 rounded py-2.5 pl-3 pr-10 text-sm text-gray-800 font-medium focus:outline-none focus:ring-0.5 focus:ring-gray-400 focus:border-gray-400",
2373
2368
  onChange: u[0] || (u[0] = (c) => l.value = c.target.value),
2374
2369
  displayValue: (c) => e.languages[c],
2375
- onFocus: u[1] || (u[1] = (c) => s(c))
2370
+ onFocus: u[1] || (u[1] = (c) => a(c))
2376
2371
  }, null, 8, ["displayValue"]),
2377
- H(V(Fo), {
2372
+ N(V(R0), {
2378
2373
  ref_key: "btnSelect",
2379
- ref: r,
2374
+ ref: s,
2380
2375
  class: "absolute inset-y-0 right-0 flex items-center pr-2"
2381
2376
  }, {
2382
- default: Ve(() => [
2383
- H(V(Uo), {
2377
+ default: Me(() => [
2378
+ N(V(j0), {
2384
2379
  class: "h-5 w-5 text-gray-400",
2385
2380
  "aria-hidden": "true",
2386
- onClick: u[2] || (u[2] = (c) => s(c))
2381
+ onClick: u[2] || (u[2] = (c) => a(c))
2387
2382
  })
2388
2383
  ]),
2389
2384
  _: 1
2390
2385
  }, 512),
2391
- H(V(Bo), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50" }, {
2392
- default: Ve(() => [
2393
- (w(!0), T(Z, null, se(i.value, ([c, p]) => (w(), ee(V(Ho), {
2386
+ N(V(D0), { class: "absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50" }, {
2387
+ default: Me(() => [
2388
+ (w(!0), E(Q, null, ae(i.value, ([c, p]) => (w(), se(V(N0), {
2394
2389
  key: c,
2395
2390
  value: c
2396
2391
  }, {
2397
- default: Ve(({ active: g, selected: x }) => [
2398
- h("li", {
2399
- class: _e([
2392
+ default: Me(({ active: h, selected: m }) => [
2393
+ v("li", {
2394
+ class: U([
2400
2395
  "relative cursor-default select-none py-2 pl-3 pr-9",
2401
- g ? "bg-[#3B5695] text-white" : "text-textCustom"
2396
+ h ? "bg-[#3B5695] text-white" : "text-textCustom"
2402
2397
  ])
2403
2398
  }, [
2404
- h("span", {
2405
- class: _e(["block truncate", x && "font-semibold"])
2399
+ v("span", {
2400
+ class: U(["block truncate", m && "font-semibold"])
2406
2401
  }, te(p), 3)
2407
2402
  ], 2)
2408
2403
  ]),
@@ -2415,19 +2410,19 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
2415
2410
  _: 1
2416
2411
  }, 8, ["modelValue", "disabled"]));
2417
2412
  }
2418
- }, dn = "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", _2 = ["disabled"], C2 = /* @__PURE__ */ h("img", {
2419
- src: dn,
2413
+ }, i2 = "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", gn = ["disabled"], Cn = /* @__PURE__ */ v("img", {
2414
+ src: i2,
2420
2415
  alt: "swap",
2421
2416
  class: "w-4"
2422
- }, null, -1), y2 = [
2423
- C2
2424
- ], w2 = ["disabled"], S2 = /* @__PURE__ */ h("img", {
2425
- src: dn,
2417
+ }, null, -1), xn = [
2418
+ Cn
2419
+ ], yn = ["disabled"], wn = /* @__PURE__ */ v("img", {
2420
+ src: i2,
2426
2421
  alt: "swap",
2427
2422
  class: "w-4"
2428
- }, null, -1), E2 = [
2429
- S2
2430
- ], O2 = {
2423
+ }, null, -1), _n = [
2424
+ wn
2425
+ ], Sn = {
2431
2426
  __name: "SwapBtn",
2432
2427
  props: {
2433
2428
  isBidirect: {
@@ -2437,72 +2432,77 @@ const Ze = Ue("loader", () => ({ loading: E(!1) })), St = {
2437
2432
  },
2438
2433
  emits: ["swap"],
2439
2434
  setup(e, { emit: o }) {
2440
- const t = Ze(), n = o;
2441
- return (l, r) => e.isBidirect ? (w(), T("button", {
2435
+ const t = ze(), n = o;
2436
+ return (l, s) => e.isBidirect ? (w(), E("button", {
2442
2437
  key: 1,
2443
- onClick: r[0] || (r[0] = (i) => n("swap")),
2438
+ onClick: s[0] || (s[0] = (i) => n("swap")),
2444
2439
  disabled: V(t).loading
2445
- }, E2, 8, w2)) : (w(), T("button", {
2440
+ }, _n, 8, yn)) : (w(), E("button", {
2446
2441
  key: 0,
2447
2442
  disabled: V(t).loading
2448
- }, y2, 8, _2));
2443
+ }, xn, 8, gn));
2449
2444
  }
2450
- }, We = Ue("language", () => {
2451
- const e = E("auto"), o = E("en"), t = E({
2445
+ }, Ue = He("language", () => {
2446
+ const e = O("auto"), o = O("en"), t = O({
2452
2447
  src: [],
2453
2448
  target: []
2454
- }), n = S(() => t.value.src[e.value]), l = S(() => t.value.target[o.value]);
2455
- function r(a, u) {
2456
- e.value = a == null ? void 0 : a.src, o.value = a == null ? void 0 : a.target, t.value = u;
2449
+ }), n = _(() => t.value.src[e.value]), l = _(() => t.value.target[o.value]);
2450
+ function s(r, u) {
2451
+ e.value = r == null ? void 0 : r.src, o.value = r == null ? void 0 : r.target, t.value = u;
2457
2452
  }
2458
2453
  function i() {
2459
2454
  if (!t.value.src[o.value] || !t.value.target[e.value]) return;
2460
- const a = e.value;
2461
- e.value = o.value, o.value = a;
2455
+ const r = e.value;
2456
+ e.value = o.value, o.value = r;
2462
2457
  }
2463
- function s(a) {
2464
- return t.value.src[a] || t.value.target[a];
2458
+ function a(r) {
2459
+ return t.value.src[r] || t.value.target[r];
2465
2460
  }
2466
- return { languages: t, src: e, target: o, srcLabel: n, targetLabel: l, init: r, swap: i, getLabel: s };
2467
- }), $2 = {
2461
+ return { languages: t, src: e, target: o, srcLabel: n, targetLabel: l, init: s, swap: i, getLabel: a };
2462
+ }), En = {
2468
2463
  key: 0,
2469
2464
  class: "flex"
2470
- }, T2 = {
2465
+ }, On = {
2471
2466
  __name: "Selects",
2472
2467
  setup(e) {
2473
- const o = We();
2468
+ const o = Ue();
2474
2469
  function t() {
2475
2470
  o.swap();
2476
2471
  }
2477
- return (n, l) => V(o).languages ? (w(), T("div", $2, [
2478
- H(St, {
2472
+ return (n, l) => V(o).languages ? (w(), E("div", En, [
2473
+ N(_t, {
2479
2474
  modelValue: V(o).src,
2480
- "onUpdate:modelValue": l[0] || (l[0] = (r) => V(o).src = r),
2475
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => V(o).src = s),
2481
2476
  languages: V(o).languages.src,
2482
2477
  class: "grow"
2483
2478
  }, null, 8, ["modelValue", "languages"]),
2484
- H(O2, {
2479
+ N(Sn, {
2485
2480
  isBidirect: V(o).src !== "auto",
2486
2481
  class: "grow-0 mx-3",
2487
2482
  onSwap: t
2488
2483
  }, null, 8, ["isBidirect"]),
2489
- H(St, {
2484
+ N(_t, {
2490
2485
  modelValue: V(o).target,
2491
- "onUpdate:modelValue": l[1] || (l[1] = (r) => V(o).target = r),
2486
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => V(o).target = s),
2492
2487
  languages: V(o).languages.target,
2493
2488
  class: "grow"
2494
2489
  }, null, 8, ["modelValue", "languages"])
2495
- ])) : X("", !0);
2490
+ ])) : W("", !0);
2496
2491
  }
2497
- }, I2 = {
2492
+ }, Tn = {
2498
2493
  INPUT_MAX_LENGTH: 5e3,
2499
2494
  INPUT_DEBOUNCE: 500
2500
- }, L2 = {}, R2 = { class: "mr-2 loading loading-dots loading-xs" };
2501
- function P2(e, o) {
2502
- return w(), T("span", R2);
2495
+ }, Ze = (e, o) => {
2496
+ const t = e.__vccOpts || e;
2497
+ for (const [n, l] of o)
2498
+ t[n] = l;
2499
+ return t;
2500
+ }, $n = {}, In = { class: "mr-2 loading loading-dots loading-xs" };
2501
+ function Ln(e, o) {
2502
+ return w(), E("span", In);
2503
2503
  }
2504
- const V2 = /* @__PURE__ */ Le(L2, [["render", P2]]), k2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e", M2 = "data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e", fn = Ue("tts", () => {
2505
- const e = E({
2504
+ const Mn = /* @__PURE__ */ Ze($n, [["render", Ln]]), r2 = He("tts", () => {
2505
+ const e = O({
2506
2506
  src: null,
2507
2507
  target: null
2508
2508
  });
@@ -2525,102 +2525,176 @@ const V2 = /* @__PURE__ */ Le(L2, [["render", P2]]), k2 = "data:image/svg+xml,%3
2525
2525
  get: t,
2526
2526
  reset: n
2527
2527
  };
2528
- }), N2 = /* @__PURE__ */ h("img", {
2529
- src: k2,
2530
- alt: "Play"
2531
- }, null, -1), D2 = [
2532
- N2
2533
- ], A2 = /* @__PURE__ */ h("img", {
2534
- src: M2,
2535
- alt: "Stop"
2536
- }, null, -1), F2 = [
2537
- A2
2538
- ], j2 = {
2528
+ }), Vn = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.33325%204.66667H3.51125C3.82693%204.6667%204.13239%204.55473%204.37325%204.35067L6.83392%202.26667C6.99592%202.12953%207.19374%202.04156%207.40407%202.01312C7.61441%201.98468%207.82849%202.01696%208.02109%202.10615C8.21369%202.19534%208.37678%202.33772%208.49114%202.51652C8.60551%202.69532%208.66638%202.90309%208.66659%203.11534V12.8847C8.66649%2013.097%208.60565%2013.305%208.49125%2013.4839C8.37685%2013.6628%208.21367%2013.8053%208.02094%2013.8945C7.82822%2013.9837%207.614%2014.0159%207.40356%2013.9874C7.19312%2013.9588%206.99523%2013.8707%206.83325%2013.7333L4.37325%2011.6487C4.13229%2011.4449%203.82685%2011.3331%203.51125%2011.3333H2.33325C2.06804%2011.3333%201.81368%2011.228%201.62615%2011.0404C1.43861%2010.8529%201.33325%2010.5986%201.33325%2010.3333V5.66667C1.33325%205.40145%201.43861%205.1471%201.62615%204.95956C1.81368%204.77203%202.06804%204.66667%202.33325%204.66667ZM11.1779%2011.18C11.5969%2010.763%2011.9294%2010.2674%2012.1562%209.72156C12.3831%209.17572%2012.4999%208.59044%2012.4999%207.99934C12.4999%207.40823%2012.3831%206.82295%2012.1562%206.27711C11.9294%205.73127%2011.5969%205.23564%2011.1779%204.81867C11.1317%204.77098%2011.0765%204.73297%2011.0155%204.70686C10.9544%204.68075%2010.8888%204.66705%2010.8224%204.66657C10.756%204.66609%2010.6902%204.67883%2010.6288%204.70406C10.5674%204.72929%2010.5116%204.76649%2010.4647%204.8135C10.4179%204.86051%2010.3808%204.91639%2010.3558%204.97787C10.3307%205.03935%2010.3181%205.10521%2010.3188%205.17159C10.3195%205.23798%2010.3334%205.30357%2010.3597%205.36453C10.3859%205.42549%2010.4241%205.48061%2010.4719%205.52667C10.7977%205.85079%2011.0562%206.23609%2011.2326%206.66043C11.409%207.08477%2011.4998%207.53979%2011.4998%207.99934C11.4998%208.45888%2011.409%208.9139%2011.2326%209.33824C11.0562%209.76258%2010.7977%2010.1479%2010.4719%2010.472C10.4241%2010.5181%2010.3859%2010.5732%2010.3597%2010.6341C10.3334%2010.6951%2010.3195%2010.7607%2010.3188%2010.8271C10.3181%2010.8935%2010.3307%2010.9593%2010.3558%2011.0208C10.3808%2011.0823%2010.4179%2011.1382%2010.4647%2011.1852C10.5116%2011.2322%2010.5674%2011.2694%2010.6288%2011.2946C10.6902%2011.3198%2010.756%2011.3326%2010.8224%2011.3321C10.8888%2011.3316%2010.9544%2011.3179%2011.0155%2011.2918C11.0765%2011.2657%2011.1317%2011.2277%2011.1779%2011.18ZM12.7113%2013.2127C12.6123%2013.2126%2012.5157%2013.1832%2012.4335%2013.1281C12.3513%2013.0731%2012.2873%2012.9949%2012.2495%2012.9035C12.2118%2012.8121%2012.202%2012.7115%2012.2214%2012.6146C12.2408%2012.5176%2012.2886%2012.4285%2012.3586%2012.3587C12.9317%2011.7866%2013.3865%2011.1071%2013.6967%2010.359C14.0069%209.61101%2014.1666%208.80915%2014.1666%207.99934C14.1666%207.18952%2014.0069%206.38766%2013.6967%205.63963C13.3865%204.8916%2012.9317%204.2121%2012.3586%203.64C12.3122%203.59351%2012.2754%203.53834%2012.2503%203.47764C12.2252%203.41693%2012.2124%203.35188%2012.2124%203.2862C12.2125%203.22052%2012.2255%203.15549%2012.2507%203.09483C12.2759%203.03417%2012.3128%202.97907%2012.3593%202.93267C12.4057%202.88627%2012.4609%202.84948%2012.5216%202.8244C12.5823%202.79932%2012.6474%202.78645%2012.7131%202.78651C12.7787%202.78657%2012.8438%202.79957%2012.9044%202.82476C12.9651%202.84995%2013.0202%202.88685%2013.0666%202.93334C13.7327%203.59825%2014.2612%204.38801%2014.6218%205.25741C14.9824%206.12681%2015.168%207.05879%2015.168%208C15.168%208.94122%2014.9824%209.87319%2014.6218%2010.7426C14.2612%2011.612%2013.7327%2012.4018%2013.0666%2013.0667C13.02%2013.1134%2012.9646%2013.1504%2012.9036%2013.1756C12.8426%2013.2007%2012.7772%2013.2129%2012.7113%2013.2127Z'%20fill='%233B5695'/%3e%3c/svg%3e", An = "data:image/svg+xml,%3csvg%20class='swap-on%20fill-current%20h-4%20w-4'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M4.5%207.5a3%203%200%200%201%203-3h9a3%203%200%200%201%203%203v9a3%203%200%200%201-3%203h-9a3%203%200%200%201-3-3v-9Z'%20clip-rule='evenodd'%20fill='%238595BE'/%3e%3c/svg%3e", Fn = ["disabled"], Pn = ["src"], Rn = ["src"], kn = {
2539
2529
  __name: "SpeakBtn",
2540
2530
  props: {
2541
2531
  type: {
2542
2532
  type: String,
2543
2533
  default: ""
2544
- }
2534
+ },
2535
+ disabled: Boolean
2545
2536
  },
2546
2537
  emits: ["loadTTS"],
2547
2538
  setup(e, { emit: o }) {
2548
- const t = fn(), n = e, l = o, r = S(() => t.tts[n.type]), i = E(!1), s = new Audio();
2549
- F(
2550
- r,
2539
+ const t = r2(), n = e, l = o, s = _(() => t.tts[n.type]), i = O(!1), a = new Audio();
2540
+ B(
2541
+ s,
2551
2542
  () => {
2552
- if (!r.value) {
2543
+ if (!s.value) {
2553
2544
  i.value = !1;
2554
2545
  return;
2555
2546
  }
2556
2547
  u();
2557
2548
  },
2558
2549
  { immediate: !0 }
2559
- ), ot(() => {
2560
- c(), s.src = "";
2550
+ ), nt(() => {
2551
+ c(), a.src = "";
2561
2552
  });
2562
- function a() {
2563
- if (r.value) {
2553
+ function r() {
2554
+ if (s.value) {
2564
2555
  u();
2565
2556
  return;
2566
2557
  }
2567
2558
  i.value = !0, l("loadTTS");
2568
2559
  }
2569
2560
  function u() {
2570
- r.value && (s.src = r.value, i.value = !0, s.play().catch(() => {
2561
+ s.value && (a.src = s.value, i.value = !0, a.play().catch(() => {
2571
2562
  i.value = !1;
2572
2563
  }));
2573
2564
  }
2574
2565
  function c() {
2575
- s.pause(), s.currentTime = 0, i.value = !1;
2566
+ a.pause(), a.currentTime = 0, i.value = !1;
2576
2567
  }
2577
- return s.onended = () => {
2568
+ return a.onended = () => {
2578
2569
  i.value = !1;
2579
- }, (p, g) => i.value ? (w(), T("button", {
2570
+ }, (p, h) => i.value ? (w(), E("button", {
2580
2571
  key: 1,
2581
- class: "btn btn-xs btn-ghost btn-circle",
2582
- onClick: ft(c, ["prevent"])
2583
- }, F2)) : (w(), T("button", {
2572
+ class: "btn btn-xs btn-circle",
2573
+ onClick: dt(c, ["prevent"])
2574
+ }, [
2575
+ v("img", {
2576
+ src: V(An),
2577
+ alt: "Stop",
2578
+ class: "w-4 transition-all duration-200"
2579
+ }, null, 8, Rn)
2580
+ ])) : (w(), E("button", {
2584
2581
  key: 0,
2585
- class: "btn btn-xs btn-ghost btn-circle",
2586
- onClick: ft(a, ["prevent"])
2587
- }, D2));
2588
- }
2589
- }, B2 = "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", H2 = {}, z2 = { class: "btn btn-xs btn-circle btn-ghost" }, U2 = /* @__PURE__ */ h("img", {
2590
- src: B2,
2591
- alt: "Clear",
2592
- class: "w-4"
2593
- }, null, -1), Z2 = [
2594
- U2
2595
- ];
2596
- function W2(e, o) {
2597
- return w(), T("button", z2, Z2);
2598
- }
2599
- const G2 = /* @__PURE__ */ Le(H2, [["render", W2]]), q2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e", J2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%23FFC857'/%3e%3c/svg%3e", K2 = { class: "btn btn-xs btn-circle btn-ghost" }, Y2 = {
2600
- key: 0,
2601
- src: q2,
2602
- alt: "Clear",
2603
- class: "w-4"
2604
- }, Q2 = {
2605
- key: 1,
2606
- src: J2,
2607
- alt: "Clear",
2608
- class: "w-4"
2609
- }, X2 = {
2582
+ class: U(["btn btn-xs btn-circle", [
2583
+ { "btn-ghost": !e.disabled },
2584
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2585
+ ]]),
2586
+ disabled: e.disabled,
2587
+ onClick: dt(r, ["prevent"])
2588
+ }, [
2589
+ v("img", {
2590
+ src: V(Vn),
2591
+ alt: "Play",
2592
+ class: U(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2593
+ }, null, 10, Pn)
2594
+ ], 10, Fn));
2595
+ }
2596
+ }, Dn = "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", Nn = ["disabled"], Bn = ["src"], jn = {
2597
+ __name: "ClearBtn",
2598
+ props: {
2599
+ disabled: Boolean
2600
+ },
2601
+ setup(e) {
2602
+ return (o, t) => (w(), E("button", {
2603
+ class: U(["btn btn-xs btn-circle", [
2604
+ { "btn-ghost": !e.disabled },
2605
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2606
+ ]]),
2607
+ disabled: e.disabled
2608
+ }, [
2609
+ v("img", {
2610
+ src: V(Dn),
2611
+ alt: "Clear",
2612
+ class: U(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2613
+ }, null, 10, Bn)
2614
+ ], 10, Nn));
2615
+ }
2616
+ }, Hn = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.47207%201.31905C7.57125%201.12371%207.77589%201%208.00001%201C8.22413%201%208.42877%201.12367%208.52795%201.31905L10.3721%204.95175L14.4959%205.53427C14.7177%205.5656%2014.9019%205.7166%2014.9712%205.9238C15.0404%206.13101%2014.9827%206.35843%2014.8222%206.51049L11.8382%209.33816L12.5427%2013.3309C12.5806%2013.5456%2012.4897%2013.7626%2012.3084%2013.8906C12.1272%2014.0187%2011.8868%2014.0356%2011.6884%2013.9342L8.00004%2012.0491L4.31158%2013.9343C4.11323%2014.0356%203.87286%2014.0187%203.69157%2013.8907C3.51028%2013.7627%203.4195%2013.5457%203.45736%2013.3309L4.1618%209.33819L1.17781%206.51052C1.01735%206.35846%200.959571%206.13101%201.02884%205.92383C1.09807%205.71663%201.28232%205.56563%201.50409%205.53431L5.62787%204.95178L7.47207%201.31905Z'%20fill='%23FFC857'/%3e%3c/svg%3e", zn = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.9491%205.89315C14.8278%205.53128%2014.5111%205.27252%2014.1226%205.21783L10.5264%204.7114L8.91813%201.55315C8.74435%201.21195%208.39257%201%207.99998%201C7.60739%201%207.25557%201.21195%207.08183%201.55315L5.47358%204.7114L1.8774%205.21783C1.48888%205.27252%201.17219%205.53128%201.05086%205.89315C0.929554%206.25501%201.02881%206.64477%201.30993%206.91038L3.91217%209.36871L3.29786%2012.8399C3.2315%2013.215%203.38755%2013.5868%203.7052%2013.8105C3.88128%2013.9344%204.08938%2014%204.30704%2014C4.47232%2014%204.63705%2013.9606%204.78341%2013.886L7.99995%2012.2471L11.2165%2013.886C11.3628%2013.9606%2011.5276%2014%2011.6929%2014C11.9106%2014%2012.1187%2013.9345%2012.2948%2013.8105C12.6124%2013.5868%2012.7685%2013.215%2012.7021%2012.84L12.0878%209.36871L14.6901%206.91035C14.9712%206.64477%2015.0704%206.25498%2014.9491%205.89315ZM14.0266%206.25082L11.2455%208.87813C11.1335%208.98392%2011.0824%209.13637%2011.1089%209.28575L11.7654%2012.9956C11.7701%2013.0226%2011.759%2013.0493%2011.7362%2013.0653C11.7202%2013.0766%2011.7038%2013.079%2011.6929%2013.079C11.6809%2013.079%2011.6694%2013.0762%2011.6587%2013.0708L8.22108%2011.3192C8.15189%2011.284%208.07593%2011.2663%207.99998%2011.2663C7.92402%2011.2663%207.84807%2011.284%207.77882%2011.3193L4.34118%2013.0708C4.33052%2013.0763%204.31904%2013.079%204.30701%2013.079C4.29611%2013.079%204.27969%2013.0767%204.26373%2013.0654C4.24092%2013.0494%204.22975%2013.0226%204.2345%2012.9957L4.89104%209.28584C4.91747%209.13646%204.86637%208.98401%204.75439%208.87822L1.97327%206.25091C1.95308%206.23184%201.94595%206.20383%201.95466%206.17786C1.9634%206.15185%201.98612%206.13326%202.01405%206.12933L5.85743%205.58807C6.0122%205.56626%206.14599%205.47208%206.21521%205.33616L7.93404%201.9608C7.94653%201.9363%207.97178%201.92107%207.99998%201.92107C8.02818%201.92107%208.05343%201.9363%208.06591%201.9608L9.78468%205.33607C9.85391%205.47199%209.9877%205.5662%2010.1425%205.58799L13.9859%206.12924C14.0138%206.1332%2014.0365%206.15176%2014.0452%206.17777C14.0539%206.20374%2014.0468%206.23175%2014.0266%206.25082Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Un = ["disabled"], Zn = ["src"], Wn = {
2610
2617
  __name: "FavoriteBtn",
2611
2618
  props: {
2619
+ disabled: Boolean,
2612
2620
  isFilled: Boolean
2613
2621
  },
2614
2622
  setup(e) {
2615
- const o = e;
2616
- return (t, n) => (w(), T("button", K2, [
2617
- o.isFilled ? (w(), T("img", Y2)) : (w(), T("img", Q2))
2618
- ]));
2619
- }
2620
- }, el = { class: "flex flex-row rounded-t-lg bg-white border border-b-0 px-1 pr-1 pt-1 gap-1 items-center" }, tl = { class: "text-sm text-gray-600" }, nl = {
2623
+ return (o, t) => (w(), E("button", {
2624
+ class: U(["btn btn-xs btn-circle", [
2625
+ { "btn-ghost": !e.disabled },
2626
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2627
+ ]]),
2628
+ disabled: e.disabled
2629
+ }, [
2630
+ v("img", {
2631
+ src: e.isFilled ? V(Hn) : V(zn),
2632
+ alt: "Favorite",
2633
+ class: U(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2634
+ }, null, 10, Zn)
2635
+ ], 10, Un));
2636
+ }
2637
+ }, Gn = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='%23FFC857'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='%23FFC857'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='%23FFC857'/%3e%3ccircle%20cx='3.5'%20cy='3.5'%20r='1.5'%20fill='%23FFC857'/%3e%3cellipse%20cx='4.5'%20cy='10'%20rx='0.5'%20ry='1'%20fill='%23FFC857'/%3e%3cpath%20d='M3.5%201L4.79904%202.5H2.20096L3.5%201Z'%20fill='%23FFC857'/%3e%3cpath%20d='M6%203.5L4.5%204.79904L4.5%202.20096L6%203.5Z'%20fill='%23FFC857'/%3e%3cpath%20d='M10.3697%206.67832L8.22108%207.01422L9.5776%204.65296L10.3697%206.67832Z'%20fill='%23FFC857'/%3e%3cpath%20d='M8.27756%205.34149L10.768%206.00067L9.11199%207.77878L8.27756%205.34149Z'%20fill='%23FFC857'/%3e%3cpath%20d='M1%203.5L2.5%202.20096L2.5%204.79904L1%203.5Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.5%206L2.20096%204.5L4.79904%204.5L3.5%206Z'%20fill='%23FFC857'/%3e%3ccircle%20cx='9'%20cy='6'%20r='1'%20fill='%23FFC857'/%3e%3cpath%20d='M5.49718%209.92495L4.03391%2010.4693L3.96891%209.60573L5.49718%209.92495Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.54089%209.71696L5.10212%209.72621L4.857%2010.5568L3.54089%209.71696Z'%20fill='%23FFC857'/%3e%3cpath%20d='M3.50071%209.96247L5.0159%209.58606L4.9834%2010.4515L3.50071%209.96247Z'%20fill='%23FFC857'/%3e%3c/svg%3e", qn = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.8544%203.20309C5.39975%202.89815%204.26277%201.76117%203.95787%200.30649C3.92042%200.12792%203.76292%200%203.58041%200C3.3979%200%203.2404%200.12792%203.20297%200.30652C2.89805%201.76117%201.76107%202.89812%200.306418%203.20302C0.127818%203.24045%20-0.00012207%203.39798%20-0.00012207%203.58046C-0.00012207%203.76295%200.127798%203.92047%200.306418%203.9579C1.76105%204.26285%202.89798%205.3998%203.2029%206.85448C3.24033%207.03307%203.39783%207.16102%203.58034%207.16102C3.76282%207.16102%203.92035%207.0331%203.95778%206.85448C4.26272%205.39983%205.39973%204.26287%206.85438%203.95799C7.03297%203.92056%207.16092%203.76306%207.16092%203.58056C7.1609%203.39805%207.03297%203.24052%206.8544%203.20309ZM3.58036%205.60938C3.14292%204.73132%202.42956%204.01792%201.55151%203.58049C2.42958%203.14305%203.14297%202.42968%203.58041%201.55161C4.01785%202.4297%204.73122%203.14307%205.60926%203.58053C4.73119%204.01797%204.0178%204.73132%203.58036%205.60938Z'%20fill='%231A1F2A'/%3e%3cpath%20d='M6.21683%209.574C5.53147%209.4303%204.99578%208.8947%204.85209%208.2093C4.81466%208.0307%204.65716%207.90271%204.47465%207.90271C4.29217%207.90271%204.13464%208.0306%204.09721%208.2092C3.95352%208.8946%203.4178%209.4303%202.73244%209.574C2.55385%209.6114%202.4259%209.7689%202.4259%209.9514C2.4259%2010.1339%202.55383%2010.2914%202.73244%2010.3288C3.41778%2010.4725%203.95349%2011.0082%204.09716%2011.6936C4.13459%2011.8722%204.2921%2012.0002%204.4746%2012.0002C4.65709%2012.0002%204.81461%2011.8723%204.85204%2011.6936C4.99574%2011.0082%205.53145%2010.4725%206.21683%2010.3289C6.39543%2010.2914%206.52337%2010.1339%206.52337%209.9514C6.52337%209.7689%206.39545%209.6114%206.21683%209.574ZM4.47463%2010.6408C4.29163%2010.3688%204.05725%2010.1345%203.78526%209.9515C4.0573%209.7684%204.29163%209.5341%204.47463%209.2621C4.65765%209.5341%204.892%209.7685%205.164%209.9515C4.892%2010.1345%204.65763%2010.3688%204.47463%2010.6408Z'%20fill='%231A1F2A'/%3e%3cpath%20d='M11.4271%206.00324C10.5007%205.80904%209.7766%205.08496%209.5825%204.15859C9.545%203.98%209.3875%203.85205%209.205%203.85205C9.0225%203.85205%208.865%203.97995%208.8276%204.15857C8.6334%205.08496%207.90932%205.80902%206.98293%206.0032C6.80434%206.04063%206.67639%206.19815%206.67639%206.38064C6.67639%206.56312%206.80431%206.72062%206.98293%206.75807C7.9093%206.95228%208.6334%207.67633%208.8275%208.6027C8.865%208.7813%209.0225%208.9093%209.205%208.9093C9.3875%208.9093%209.545%208.7814%209.5824%208.6027C9.7766%207.67633%2010.5007%206.95228%2011.4271%206.75812C11.6057%206.72067%2011.7336%206.56317%2011.7336%206.38068C11.7336%206.1982%2011.6057%206.04067%2011.4271%206.00324ZM9.205%207.47681C8.9365%207.02634%208.5593%206.64914%208.1089%206.38066C8.5593%206.11218%208.9365%205.73502%209.205%205.28453C9.4735%205.73502%209.8507%206.11221%2010.3012%206.38068C9.8507%206.64916%209.4735%207.02636%209.205%207.47681Z'%20fill='%231A1F2A'/%3e%3c/svg%3e", Jn = ["disabled"], Kn = ["src"], u2 = {
2638
+ __name: "AIBtn",
2639
+ props: {
2640
+ disabled: Boolean,
2641
+ isFilled: Boolean
2642
+ },
2643
+ setup(e) {
2644
+ return (o, t) => (w(), E("button", {
2645
+ class: U(["btn btn-xs btn-circle", [
2646
+ { "btn-ghost": !e.disabled },
2647
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2648
+ ]]),
2649
+ disabled: e.disabled
2650
+ }, [
2651
+ v("img", {
2652
+ src: e.isFilled ? V(Gn) : V(qn),
2653
+ alt: "AI",
2654
+ class: U(["w-4 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2655
+ }, null, 10, Kn)
2656
+ ], 10, Jn));
2657
+ }
2658
+ }, Yn = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.9023%203.26667L10.8093%200.1C10.7767%200.0666667%2010.7116%200%2010.5814%200H3.74419C3.12558%200%202.60465%200.533333%202.60465%201.16667V2.66667H1.13953C0.52093%202.66667%200%203.2%200%203.83333V14.8667C0%2015.4667%200.52093%2016%201.13953%2016H10.2558C10.8744%2016%2011.3953%2015.4667%2011.3953%2014.8333V13.3333H12.8605C13.4791%2013.3333%2014%2012.8%2014%2012.1667V3.5C14%203.4%2013.9674%203.3%2013.9023%203.26667ZM12.893%203.16667H11.3954C11.1349%203.16667%2010.907%202.93333%2010.907%202.66667V1.13333L12.893%203.16667ZM10.2558%2015.3333H1.13953C0.87907%2015.3333%200.651163%2015.1%200.651163%2014.8333V3.83333C0.651163%203.53333%200.87907%203.33333%201.13953%203.33333H7.68372V5.33333C7.68372%205.96667%208.20465%206.5%208.82326%206.5H10.7767V14.8667C10.7442%2015.1%2010.5488%2015.3333%2010.2558%2015.3333ZM9.31163%204.8L10.2884%205.8H8.7907C8.53023%205.8%208.30233%205.56667%208.30233%205.3V3.76667L9.31163%204.8ZM12.8605%2012.6667H11.3953V6.13333C11.3953%206.06667%2011.3628%205.96667%2011.2977%205.9L8.20465%202.73333C8.17209%202.7%208.07442%202.66667%208.0093%202.66667H3.25581V1.16667C3.25581%200.9%203.45116%200.666666%203.74419%200.666666H10.2558V2.66667C10.2558%203.3%2010.7767%203.83333%2011.3954%203.83333H13.3488V12.2C13.3488%2012.4667%2013.1209%2012.6667%2012.8605%2012.6667Z'%20fill='%233B5695'/%3e%3c/svg%3e", Qn = ["disabled"], Xn = ["src"], eo = {
2659
+ __name: "CopyBtn",
2660
+ props: {
2661
+ disabled: Boolean
2662
+ },
2663
+ setup(e) {
2664
+ return (o, t) => (w(), E("button", {
2665
+ class: U(["btn btn-xs btn-circle", [
2666
+ { "btn-ghost": !e.disabled },
2667
+ { "!bg-transparent !border-none !shadow-none !ring-0": e.disabled }
2668
+ ]]),
2669
+ disabled: e.disabled
2670
+ }, [
2671
+ v("img", {
2672
+ src: V(Yn),
2673
+ alt: "Copy",
2674
+ class: U(["w-3 transition-all duration-200", [{ "opacity-100": !e.disabled }, { "opacity-50 transform ": e.disabled }]])
2675
+ }, null, 10, Xn)
2676
+ ], 10, Qn));
2677
+ }
2678
+ }, to = { class: "flex flex-row px-2 pr-10 pt-1 items-center bg-transparent relative" }, no = { class: "ml-1 text-sm text-gray-600" }, oo = {
2621
2679
  key: 0,
2622
2680
  class: "italic"
2623
- }, ol = /* @__PURE__ */ h("div", { class: "flex-grow" }, null, -1), pn = {
2681
+ }, lo = { class: "absolute right-1 top-1 flex flex-col items-center gap-0" }, so = {
2682
+ key: 0,
2683
+ class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2684
+ "data-tip": "Clear"
2685
+ }, ao = {
2686
+ key: 1,
2687
+ class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2688
+ "data-tip": "AI Translate"
2689
+ }, io = {
2690
+ key: 2,
2691
+ class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2692
+ "data-tip": "Favorite"
2693
+ }, ro = {
2694
+ key: 3,
2695
+ class: "tooltip tooltip-bottom tooltip-small before:!bg-baseColor before:!border before:!border-solid before:!border-gray-200 before:![box-shadow:0px_1px_8px_0px_#3D44514D] before:!rounded-md before:!text-textSecondary before:!top-[90%] before:!text-xs before:!py-1 before:!px-2",
2696
+ "data-tip": "Copy"
2697
+ }, uo = {
2624
2698
  __name: "TranslationBtnGroup",
2625
2699
  props: {
2626
2700
  loading: {
@@ -2643,11 +2717,23 @@ const G2 = /* @__PURE__ */ Le(H2, [["render", W2]]), q2 = "data:image/svg+xml,%3
2643
2717
  type: String,
2644
2718
  default: ""
2645
2719
  },
2646
- isClearBtn: {
2720
+ hasClearBtn: {
2721
+ type: Boolean,
2722
+ default: !1
2723
+ },
2724
+ hasFavoriteBtn: {
2725
+ type: Boolean,
2726
+ default: !1
2727
+ },
2728
+ hasAIBtn: {
2729
+ type: Boolean,
2730
+ default: !1
2731
+ },
2732
+ hasCopyBtn: {
2647
2733
  type: Boolean,
2648
2734
  default: !1
2649
2735
  },
2650
- isFavoriteBtn: {
2736
+ hasDictionary: {
2651
2737
  type: Boolean,
2652
2738
  default: !1
2653
2739
  },
@@ -2655,54 +2741,79 @@ const G2 = /* @__PURE__ */ Le(H2, [["render", W2]]), q2 = "data:image/svg+xml,%3
2655
2741
  type: Boolean,
2656
2742
  default: !1
2657
2743
  },
2744
+ isAITranslate: {
2745
+ type: Boolean,
2746
+ default: !1
2747
+ },
2658
2748
  onFavorite: {
2659
2749
  type: Function,
2660
2750
  default: () => {
2661
2751
  }
2662
2752
  }
2663
2753
  },
2664
- emits: ["clear", "favorite", "loadTTS"],
2754
+ emits: ["clear", "favorite", "loadTTS", "aiTranslate", "copy"],
2665
2755
  setup(e, { emit: o }) {
2666
2756
  const t = e, n = o;
2667
- return (l, r) => (w(), T("div", el, [
2668
- t.src ? (w(), ee(j2, {
2757
+ return (l, s) => (w(), E("div", to, [
2758
+ t.src ? (w(), se(kn, {
2669
2759
  key: 0,
2670
2760
  type: t.type,
2671
- onLoadTTS: r[0] || (r[0] = (i) => n("loadTTS"))
2672
- }, null, 8, ["type"])) : X("", !0),
2673
- h("div", tl, [
2674
- _n(te(e.srcLabel) + " ", 1),
2675
- e.phonetic ? (w(), T("span", nl, "- [" + te(t.phonetic) + "]", 1)) : X("", !0)
2761
+ onLoadTTS: s[0] || (s[0] = (i) => n("loadTTS"))
2762
+ }, null, 8, ["type"])) : W("", !0),
2763
+ v("div", no, [
2764
+ b2(te(e.srcLabel) + " ", 1),
2765
+ e.phonetic ? (w(), E("span", oo, "- [" + te(t.phonetic) + "]", 1)) : W("", !0)
2676
2766
  ]),
2677
- ol,
2678
- t.loading ? (w(), ee(V2, { key: 1 })) : X("", !0),
2679
- t.src && t.isClearBtn ? (w(), ee(G2, {
2680
- key: 2,
2681
- onClick: r[1] || (r[1] = (i) => n("clear"))
2682
- })) : X("", !0),
2683
- t.src && t.isFavoriteBtn ? (w(), ee(X2, {
2684
- key: 3,
2685
- isFilled: t.isFavorite,
2686
- onClick: r[2] || (r[2] = (i) => n("favorite"))
2687
- }, null, 8, ["isFilled"])) : X("", !0)
2767
+ t.loading ? (w(), se(Mn, {
2768
+ key: 1,
2769
+ class: "absolute right-6 top-2"
2770
+ })) : W("", !0),
2771
+ v("div", lo, [
2772
+ e.hasClearBtn && e.src ? (w(), E("div", so, [
2773
+ N(jn, {
2774
+ onClick: s[1] || (s[1] = (i) => n("clear")),
2775
+ disabled: e.loading
2776
+ }, null, 8, ["disabled"])
2777
+ ])) : W("", !0),
2778
+ e.src && !e.hasDictionary && e.hasAIBtn ? (w(), E("div", ao, [
2779
+ N(u2, {
2780
+ isFilled: e.isAITranslate,
2781
+ onClick: s[2] || (s[2] = (i) => n("aiTranslate")),
2782
+ disabled: e.loading
2783
+ }, null, 8, ["isFilled", "disabled"])
2784
+ ])) : W("", !0),
2785
+ e.src && e.hasFavoriteBtn ? (w(), E("div", io, [
2786
+ N(Wn, {
2787
+ isFilled: e.isFavorite,
2788
+ onClick: s[3] || (s[3] = (i) => n("favorite")),
2789
+ disabled: e.loading
2790
+ }, null, 8, ["isFilled", "disabled"])
2791
+ ])) : W("", !0),
2792
+ e.src && e.hasCopyBtn ? (w(), E("div", ro, [
2793
+ N(eo, {
2794
+ onClick: s[4] || (s[4] = (i) => n("copy")),
2795
+ disabled: e.loading
2796
+ }, null, 8, ["disabled"])
2797
+ ])) : W("", !0)
2798
+ ])
2688
2799
  ]));
2689
2800
  }
2690
- }, he = Ue("translation", () => {
2691
- const e = E(null), o = E(null), t = E(null), n = E({
2801
+ }, c2 = /* @__PURE__ */ Ze(uo, [["__scopeId", "data-v-e5f77070"]]), me = He("translation", () => {
2802
+ const e = O(null), o = O(null), t = O(null), n = O({
2692
2803
  src: null,
2693
2804
  target: null
2694
- }), l = E(null), r = E([]), i = E([]), s = E([]), a = E([]), u = E({
2805
+ }), l = O(null), s = O([]), i = O([]), a = O([]), r = O([]), u = O({
2695
2806
  src: null,
2696
2807
  target: null
2697
- }), c = We(), p = S(() => c.getLabel(e.value)), g = S(() => c.getLabel(o.value));
2698
- function x(v) {
2699
- e.value = v.src, o.value = v.target, t.value = v.text, n.value = v.phonetic, l.value = v.result, r.value = v.dictionary, i.value = v.definitions, s.value = v.synonyms, a.value = v.examples, u.value = v.tts;
2808
+ }), c = Ue(), p = _(() => c.getLabel(e.value)), h = _(() => c.getLabel(o.value));
2809
+ function m(S) {
2810
+ e.value = S.src, o.value = S.target, t.value = S.text, n.value = S.phonetic, l.value = S.result, s.value = S.dictionary, i.value = S.definitions, a.value = S.synonyms, r.value = S.examples, u.value = S.tts;
2700
2811
  }
2701
- function _() {
2812
+ function b() {
2702
2813
  e.value = null, o.value = null, t.value = null, n.value = {
2703
2814
  src: null,
2704
2815
  target: null
2705
- }, l.value = null, r.value = [], i.value = [], s.value = [], a.value = [], u.value = {
2816
+ }, l.value = null, s.value = [], i.value = [], a.value = [], r.value = [], u.value = {
2706
2817
  src: null,
2707
2818
  target: null
2708
2819
  };
@@ -2711,118 +2822,118 @@ const G2 = /* @__PURE__ */ Le(H2, [["render", W2]]), q2 = "data:image/svg+xml,%3
2711
2822
  src: e,
2712
2823
  srcLabel: p,
2713
2824
  target: o,
2714
- targetLabel: g,
2825
+ targetLabel: h,
2715
2826
  phonetic: n,
2716
2827
  text: t,
2717
2828
  result: l,
2718
- dictionary: r,
2829
+ dictionary: s,
2719
2830
  definitions: i,
2720
- synonyms: s,
2721
- examples: a,
2831
+ synonyms: a,
2832
+ examples: r,
2722
2833
  tts: u,
2723
- init: x,
2724
- reset: _
2834
+ init: m,
2835
+ reset: b
2725
2836
  };
2726
2837
  });
2727
- function ll(e) {
2728
- return kt() ? (nt(e), !0) : !1;
2838
+ function co(e) {
2839
+ return Mt() ? (tt(e), !0) : !1;
2729
2840
  }
2730
- function Be(e) {
2841
+ function Ne(e) {
2731
2842
  return typeof e == "function" ? e() : V(e);
2732
2843
  }
2733
- const sl = typeof window < "u" && typeof document < "u";
2844
+ const fo = typeof window < "u" && typeof document < "u";
2734
2845
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2735
- const Et = () => {
2846
+ const St = () => {
2736
2847
  };
2737
- function rl(e, o) {
2848
+ function po(e, o) {
2738
2849
  function t(...n) {
2739
- return new Promise((l, r) => {
2740
- Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(l).catch(r);
2850
+ return new Promise((l, s) => {
2851
+ Promise.resolve(e(() => o.apply(this, n), { fn: o, thisArg: this, args: n })).then(l).catch(s);
2741
2852
  });
2742
2853
  }
2743
2854
  return t;
2744
2855
  }
2745
- function il(e, o = {}) {
2746
- let t, n, l = Et;
2747
- const r = (s) => {
2748
- clearTimeout(s), l(), l = Et;
2856
+ function vo(e, o = {}) {
2857
+ let t, n, l = St;
2858
+ const s = (a) => {
2859
+ clearTimeout(a), l(), l = St;
2749
2860
  };
2750
- return (s) => {
2751
- const a = Be(e), u = Be(o.maxWait);
2752
- return t && r(t), a <= 0 || u !== void 0 && u <= 0 ? (n && (r(n), n = null), Promise.resolve(s())) : new Promise((c, p) => {
2861
+ return (a) => {
2862
+ const r = Ne(e), u = Ne(o.maxWait);
2863
+ return t && s(t), r <= 0 || u !== void 0 && u <= 0 ? (n && (s(n), n = null), Promise.resolve(a())) : new Promise((c, p) => {
2753
2864
  l = o.rejectOnCancel ? p : c, u && !n && (n = setTimeout(() => {
2754
- t && r(t), n = null, c(s());
2865
+ t && s(t), n = null, c(a());
2755
2866
  }, u)), t = setTimeout(() => {
2756
- n && r(n), n = null, c(s());
2757
- }, a);
2867
+ n && s(n), n = null, c(a());
2868
+ }, r);
2758
2869
  });
2759
2870
  };
2760
2871
  }
2761
- function al(e, o = 200, t = {}) {
2762
- return rl(
2763
- il(o, t),
2872
+ function ho(e, o = 200, t = {}) {
2873
+ return po(
2874
+ vo(o, t),
2764
2875
  e
2765
2876
  );
2766
2877
  }
2767
- function Ot(e) {
2878
+ function Et(e) {
2768
2879
  var o;
2769
- const t = Be(e);
2880
+ const t = Ne(e);
2770
2881
  return (o = t == null ? void 0 : t.$el) != null ? o : t;
2771
2882
  }
2772
- const ul = sl ? window : void 0;
2773
- function cl() {
2774
- const e = E(!1), o = Vt();
2775
- return o && Ce(() => {
2883
+ const mo = fo ? window : void 0;
2884
+ function bo() {
2885
+ const e = O(!1), o = Lt();
2886
+ return o && ye(() => {
2776
2887
  e.value = !0;
2777
2888
  }, o), e;
2778
2889
  }
2779
- function dl(e) {
2780
- const o = cl();
2781
- return S(() => (o.value, !!e()));
2782
- }
2783
- function fl(e, o, t = {}) {
2784
- const { window: n = ul, ...l } = t;
2785
- let r;
2786
- const i = dl(() => n && "ResizeObserver" in n), s = () => {
2787
- r && (r.disconnect(), r = void 0);
2788
- }, a = S(() => Array.isArray(e) ? e.map((p) => Ot(p)) : [Ot(e)]), u = F(
2789
- a,
2890
+ function go(e) {
2891
+ const o = bo();
2892
+ return _(() => (o.value, !!e()));
2893
+ }
2894
+ function Co(e, o, t = {}) {
2895
+ const { window: n = mo, ...l } = t;
2896
+ let s;
2897
+ const i = go(() => n && "ResizeObserver" in n), a = () => {
2898
+ s && (s.disconnect(), s = void 0);
2899
+ }, r = _(() => Array.isArray(e) ? e.map((p) => Et(p)) : [Et(e)]), u = B(
2900
+ r,
2790
2901
  (p) => {
2791
- if (s(), i.value && n) {
2792
- r = new ResizeObserver(o);
2793
- for (const g of p)
2794
- g && r.observe(g, l);
2902
+ if (a(), i.value && n) {
2903
+ s = new ResizeObserver(o);
2904
+ for (const h of p)
2905
+ h && s.observe(h, l);
2795
2906
  }
2796
2907
  },
2797
2908
  { immediate: !0, flush: "post" }
2798
2909
  ), c = () => {
2799
- s(), u();
2910
+ a(), u();
2800
2911
  };
2801
- return ll(c), {
2912
+ return co(c), {
2802
2913
  isSupported: i,
2803
2914
  stop: c
2804
2915
  };
2805
2916
  }
2806
- function vn(e) {
2917
+ function d2(e) {
2807
2918
  var o;
2808
- const t = E(e == null ? void 0 : e.element), n = E(e == null ? void 0 : e.input), l = (o = e == null ? void 0 : e.styleProp) != null ? o : "height", r = E(1);
2919
+ const t = O(e == null ? void 0 : e.element), n = O(e == null ? void 0 : e.input), l = (o = e == null ? void 0 : e.styleProp) != null ? o : "height", s = O(1);
2809
2920
  function i() {
2810
- var s;
2921
+ var a;
2811
2922
  if (!t.value)
2812
2923
  return;
2813
- let a = "";
2814
- t.value.style[l] = "1px", r.value = (s = t.value) == null ? void 0 : s.scrollHeight, e != null && e.styleTarget ? Be(e.styleTarget).style[l] = `${r.value}px` : a = `${r.value}px`, t.value.style[l] = a;
2924
+ let r = "";
2925
+ t.value.style[l] = "1px", s.value = (a = t.value) == null ? void 0 : a.scrollHeight, e != null && e.styleTarget ? Ne(e.styleTarget).style[l] = `${s.value}px` : r = `${s.value}px`, t.value.style[l] = r;
2815
2926
  }
2816
- return F([n, t], () => Q(i), { immediate: !0 }), F(r, () => {
2817
- var s;
2818
- return (s = e == null ? void 0 : e.onResize) == null ? void 0 : s.call(e);
2819
- }), fl(t, () => i()), e != null && e.watch && F(e.watch, i, { immediate: !0, deep: !0 }), {
2927
+ return B([n, t], () => ee(i), { immediate: !0 }), B(s, () => {
2928
+ var a;
2929
+ return (a = e == null ? void 0 : e.onResize) == null ? void 0 : a.call(e);
2930
+ }), Co(t, () => i()), e != null && e.watch && B(e.watch, i, { immediate: !0, deep: !0 }), {
2820
2931
  textarea: t,
2821
2932
  input: n,
2822
2933
  triggerResize: i
2823
2934
  };
2824
2935
  }
2825
- const pl = {
2936
+ const xo = { class: "bg-white relative z-10 border rounded-md" }, yo = {
2826
2937
  __name: "TranslationInput",
2827
2938
  props: {
2828
2939
  text: {
@@ -2832,152 +2943,180 @@ const pl = {
2832
2943
  },
2833
2944
  emits: ["change", "clear", "loadTTS"],
2834
2945
  setup(e, { emit: o }) {
2835
- const t = he(), n = e, l = E(""), r = S(() => t.src), i = S(() => t.srcLabel), s = S(() => {
2836
- var _;
2837
- return (_ = t.phonetic) == null ? void 0 : _.src;
2838
- }), { textarea: a } = vn({ input: l, styleProp: "minHeight" }), u = o, c = al(() => {
2946
+ const t = me(), n = e, l = O(""), s = _(() => t.src), i = _(() => t.srcLabel), a = _(() => {
2947
+ var b;
2948
+ return (b = t.phonetic) == null ? void 0 : b.src;
2949
+ }), { textarea: r } = d2({ input: l, styleProp: "minHeight" }), u = o, c = ho(() => {
2839
2950
  u("change", l.value);
2840
- }, I2.INPUT_DEBOUNCE);
2951
+ }, Tn.INPUT_DEBOUNCE);
2841
2952
  function p() {
2842
2953
  if (!l.value) {
2843
- g();
2954
+ h();
2844
2955
  return;
2845
2956
  }
2846
2957
  c();
2847
2958
  }
2848
- function g() {
2849
- u("clear"), l.value = "", a.value.focus();
2959
+ function h() {
2960
+ u("clear"), l.value = "", r.value.focus();
2850
2961
  }
2851
- async function x() {
2852
- await Q(), a.value.select();
2962
+ async function m() {
2963
+ await ee(), r.value.select();
2853
2964
  }
2854
- return F(
2965
+ return B(
2855
2966
  () => n.text,
2856
- (_) => {
2857
- l.value !== _ && x(), l.value = _;
2967
+ (b) => {
2968
+ l.value !== b && m(), l.value = b;
2858
2969
  }
2859
- ), (_, v) => (w(), T(Z, null, [
2860
- H(pn, {
2861
- src: r.value,
2970
+ ), (b, S) => (w(), E("div", xo, [
2971
+ N(c2, {
2972
+ src: s.value,
2862
2973
  srcLabel: i.value,
2863
2974
  type: "src",
2864
- phonetic: s.value,
2865
- isClearBtn: !0,
2866
- onClear: g,
2867
- onLoadTTS: v[0] || (v[0] = ($) => u("loadTTS"))
2975
+ phonetic: a.value,
2976
+ hasClearBtn: !0,
2977
+ onClear: h,
2978
+ onLoadTTS: S[0] || (S[0] = (I) => u("loadTTS")),
2979
+ class: "mb-2"
2868
2980
  }, null, 8, ["src", "srcLabel", "phonetic"]),
2869
- Mt(h("textarea", {
2981
+ Vt(v("textarea", {
2870
2982
  ref_key: "textarea",
2871
- ref: a,
2872
- "onUpdate:modelValue": v[1] || (v[1] = ($) => l.value = $),
2873
- 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",
2983
+ ref: r,
2984
+ "onUpdate:modelValue": S[1] || (S[1] = (I) => l.value = I),
2985
+ class: "w-full outline-none px-5 pr-8 bg-transparent text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
2874
2986
  autofocus: "",
2875
2987
  rows: "2",
2876
2988
  onInput: p,
2877
- onFocus: x
2989
+ onFocus: m
2878
2990
  }, null, 544), [
2879
2991
  [
2880
- Nt,
2992
+ At,
2881
2993
  l.value,
2882
2994
  void 0,
2883
2995
  { trim: !0 }
2884
2996
  ]
2885
2997
  ])
2886
- ], 64));
2998
+ ]));
2887
2999
  }
2888
- }, vl = /* @__PURE__ */ Le(pl, [["__scopeId", "data-v-90bf3e0d"]]), hl = (e) => (Tt("data-v-f47b8efe"), e = e(), It(), e), ml = { class: "flex flex-col" }, gl = /* @__PURE__ */ hl(() => /* @__PURE__ */ h("div", { class: "w-full flex align-item-center justify-end mt-2" }, null, -1)), bl = {
3000
+ }, wo = /* @__PURE__ */ Ze(yo, [["__scopeId", "data-v-2b6ec948"]]), _o = (e) => (g2("data-v-7445f954"), e = e(), C2(), e), So = { class: "bg-white relative z-10 rounded-md" }, Eo = { class: "bg-transparent" }, Oo = {
3001
+ key: 0,
3002
+ class: "w-full flex items-center justify-end absolute -bottom-6 left-2 right-0 px-2 z-20"
3003
+ }, To = /* @__PURE__ */ _o(() => /* @__PURE__ */ v("span", { class: "text-sm text-gray-600" }, " Powered by Ddict AI ", -1)), $o = {
2889
3004
  __name: "TranslationResult",
2890
3005
  props: {
2891
3006
  isFavoriteFeatureEnabled: Boolean,
3007
+ isAITranslateFeatureEnabled: Boolean,
3008
+ isAITranslate: Boolean,
2892
3009
  isFavorite: Boolean
2893
3010
  },
2894
- emits: ["loadTTS", "favorite"],
3011
+ emits: ["loadTTS", "favorite", "aiTranslate", "copy"],
2895
3012
  setup(e, { emit: o }) {
2896
- const t = he(), n = S(() => t.result), l = S(() => t.target), r = S(() => t.targetLabel), i = S(() => {
2897
- var g;
2898
- return (g = t.phonetic) == null ? void 0 : g.target;
2899
- }), s = e, a = Ze(), { textarea: u, input: c } = vn({ input: n, styleProp: "minHeight" }), p = o;
2900
- return (g, x) => (w(), T(Z, null, [
2901
- H(pn, {
2902
- loading: V(a).loading,
2903
- src: l.value,
2904
- srcLabel: r.value,
2905
- type: "target",
2906
- isFavoriteBtn: s.isFavoriteFeatureEnabled,
2907
- isFavorite: e.isFavorite,
2908
- phonetic: i.value,
2909
- onFavorite: x[0] || (x[0] = (_) => p("favorite")),
2910
- onLoadTTS: x[1] || (x[1] = (_) => p("loadTTS"))
2911
- }, null, 8, ["loading", "src", "srcLabel", "isFavoriteBtn", "isFavorite", "phonetic"]),
2912
- h("div", ml, [
2913
- Mt(h("textarea", {
2914
- ref_key: "textarea",
2915
- ref: u,
2916
- "onUpdate:modelValue": x[2] || (x[2] = (_) => xe(c) ? c.value = _ : null),
2917
- 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",
2918
- readonly: "",
2919
- rows: "2",
2920
- spellcheck: "false"
2921
- }, null, 512), [
2922
- [Nt, V(c)]
2923
- ]),
2924
- gl
3013
+ const t = me(), n = _(() => t.result), l = _(() => t.target), s = _(() => t.targetLabel), i = _(() => {
3014
+ var h;
3015
+ return (h = t.phonetic) == null ? void 0 : h.target;
3016
+ }), a = _(() => {
3017
+ var h;
3018
+ return (h = t.dictionary) == null ? void 0 : h.length;
3019
+ }), r = ze(), { textarea: u, input: c } = d2({ input: n, styleProp: "minHeight" }), p = o;
3020
+ return (h, m) => (w(), E("div", {
3021
+ class: U([
3022
+ "relative p-0.5 transition-all duration-300 ease-in-out bg-[length:300%_300%] bg-[position:0%_50%] border rounded-lg",
3023
+ {
3024
+ "bg-gradient-to-br from-[#8556f0] via-[#d6b379] via-[#6bedd1] to-[#439beb] animate-moveGradient border border-white": e.isAITranslate && !V(r).loading
3025
+ }
2925
3026
  ])
2926
- ], 64));
3027
+ }, [
3028
+ v("div", So, [
3029
+ N(c2, {
3030
+ loading: V(r).loading,
3031
+ src: l.value,
3032
+ srcLabel: s.value,
3033
+ type: "target",
3034
+ hasFavoriteBtn: e.isFavoriteFeatureEnabled,
3035
+ hasAIBtn: e.isAITranslateFeatureEnabled,
3036
+ hasCopyBtn: !0,
3037
+ isFavorite: e.isFavorite,
3038
+ isAITranslate: e.isAITranslate,
3039
+ hasDictionary: a.value,
3040
+ phonetic: i.value,
3041
+ onFavorite: m[0] || (m[0] = (b) => p("favorite")),
3042
+ onLoadTTS: m[1] || (m[1] = (b) => p("loadTTS")),
3043
+ onAiTranslate: m[2] || (m[2] = (b) => p("aiTranslate")),
3044
+ onCopy: m[3] || (m[3] = (b) => p("copy")),
3045
+ class: "mb-2"
3046
+ }, null, 8, ["loading", "src", "srcLabel", "hasFavoriteBtn", "hasAIBtn", "isFavorite", "isAITranslate", "hasDictionary", "phonetic"]),
3047
+ v("div", Eo, [
3048
+ Vt(v("textarea", {
3049
+ ref_key: "textarea",
3050
+ ref: u,
3051
+ "onUpdate:modelValue": m[4] || (m[4] = (b) => xe(c) ? c.value = b : null),
3052
+ class: "w-full outline-none px-5 pr-8 bg-transparent text-gray-800 font-semibold resize-none pb-3 overflow-x-hidden overflow-y-hidden",
3053
+ readonly: "",
3054
+ rows: "2",
3055
+ spellcheck: "false"
3056
+ }, null, 512), [
3057
+ [At, V(c)]
3058
+ ])
3059
+ ])
3060
+ ]),
3061
+ e.isAITranslate ? (w(), E("div", Oo, [
3062
+ To,
3063
+ N(u2, { disabled: "" })
3064
+ ])) : W("", !0)
3065
+ ], 2));
2927
3066
  }
2928
- }, xl = /* @__PURE__ */ Le(bl, [["__scopeId", "data-v-f47b8efe"]]), _l = { class: "btn btn-sm btn-circle btn-ghost" }, Ge = {
3067
+ }, Io = /* @__PURE__ */ Ze($o, [["__scopeId", "data-v-7445f954"]]), Lo = { class: "btn btn-sm btn-circle btn-ghost" }, We = {
2929
3068
  __name: "ToggleBtn",
2930
3069
  props: {
2931
3070
  isExpanded: Boolean
2932
3071
  },
2933
3072
  setup(e) {
2934
3073
  const o = e;
2935
- return (t, n) => (w(), T("button", _l, [
2936
- o.isExpanded ? (w(), ee(V(Zo), {
3074
+ return (t, n) => (w(), E("button", Lo, [
3075
+ o.isExpanded ? (w(), se(V(H0), {
2937
3076
  key: 0,
2938
3077
  class: "w-7 text-gray-400"
2939
- })) : (w(), ee(V(zo), {
3078
+ })) : (w(), se(V(B0), {
2940
3079
  key: 1,
2941
3080
  class: "w-7 text-gray-400"
2942
3081
  }))
2943
3082
  ]));
2944
3083
  }
2945
- }, Cl = { class: "card border bg-white rounded-lg" }, yl = { class: "card-body px-4 py-2 gap-0" }, wl = { class: "flex justify-between items-center" }, Sl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Translations", -1), El = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Ol = { class: "list-none list-inside" }, $l = ["onClick"], Tl = { class: "text-base font-normal text-gray-800 leading-4" }, Il = {
3084
+ }, Mo = { class: "card border bg-white rounded-lg" }, Vo = { class: "card-body px-4 py-2 gap-0" }, Ao = { class: "flex justify-between items-center" }, Fo = /* @__PURE__ */ v("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Translations", -1), Po = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Ro = { class: "list-none list-inside" }, ko = ["onClick"], Do = { class: "text-base font-normal text-gray-800 leading-4" }, No = {
2946
3085
  __name: "Dictionary",
2947
3086
  emits: ["translate"],
2948
3087
  setup(e, { emit: o }) {
2949
- const t = E(!0), n = he(), l = We(), r = S(() => n.dictionary), i = o, s = () => {
3088
+ const t = O(!0), n = me(), l = Ue(), s = _(() => n.dictionary), i = o, a = () => {
2950
3089
  t.value = !t.value;
2951
- }, a = (u) => {
3090
+ }, r = (u) => {
2952
3091
  i("translate", u, n.target, n.src), l.src = n.target, l.target = n.src, window.scrollTo(0, 0);
2953
3092
  };
2954
- return (u, c) => (w(), T("div", Cl, [
2955
- h("div", yl, [
2956
- h("div", wl, [
2957
- Sl,
2958
- H(Ge, {
3093
+ return (u, c) => (w(), E("div", Mo, [
3094
+ v("div", Vo, [
3095
+ v("div", Ao, [
3096
+ Fo,
3097
+ N(We, {
2959
3098
  isExpanded: t.value,
2960
- onClick: s
3099
+ onClick: a
2961
3100
  }, null, 8, ["isExpanded"])
2962
3101
  ]),
2963
- h("div", {
2964
- class: _e(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3102
+ v("div", {
3103
+ class: U(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
2965
3104
  }, [
2966
- h("ul", null, [
2967
- (w(!0), T(Z, null, se(r.value, (p, g) => (w(), T("li", {
2968
- key: `${p.pos}-${g}`,
3105
+ v("ul", null, [
3106
+ (w(!0), E(Q, null, ae(s.value, (p, h) => (w(), E("li", {
3107
+ key: `${p.pos}-${h}`,
2969
3108
  class: "mb-2"
2970
3109
  }, [
2971
- h("h5", El, te(p.pos), 1),
2972
- h("ul", Ol, [
2973
- (w(!0), T(Z, null, se(p.items, (x, _) => (w(), T("li", {
2974
- key: `${x.word}-${_}`
3110
+ v("h5", Po, te(p.pos), 1),
3111
+ v("ul", Ro, [
3112
+ (w(!0), E(Q, null, ae(p.items, (m, b) => (w(), E("li", {
3113
+ key: `${m.word}-${b}`
2975
3114
  }, [
2976
- h("span", {
3115
+ v("span", {
2977
3116
  class: "p-3 m-0.5 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
2978
- onClick: (v) => a(x.word)
2979
- }, te(x.word), 9, $l),
2980
- h("small", Tl, " - " + te(x.reverse_translation.join(", ")), 1)
3117
+ onClick: (S) => r(m.word)
3118
+ }, te(m.word), 9, ko),
3119
+ v("small", Do, " - " + te(m.reverse_translation.join(", ")), 1)
2981
3120
  ]))), 128))
2982
3121
  ])
2983
3122
  ]))), 128))
@@ -2986,41 +3125,41 @@ const pl = {
2986
3125
  ])
2987
3126
  ]));
2988
3127
  }
2989
- }, Ll = { class: "card border bg-white rounded-lg" }, Rl = { class: "card-body px-4 py-2 gap-0" }, Pl = { class: "flex justify-between items-center" }, Vl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Definitions", -1), kl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Ml = { class: "text-base text-textCustom list-decimal list-outside ml-5" }, Nl = /* @__PURE__ */ h("br", null, null, -1), Dl = {
3128
+ }, Bo = { class: "card border bg-white rounded-lg" }, jo = { class: "card-body px-4 py-2 gap-0" }, Ho = { class: "flex justify-between items-center" }, zo = /* @__PURE__ */ v("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Definitions", -1), Uo = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Zo = { class: "text-base text-textCustom list-decimal list-outside ml-5" }, Wo = /* @__PURE__ */ v("br", null, null, -1), Go = {
2990
3129
  key: 0,
2991
3130
  class: "italic"
2992
- }, Al = {
3131
+ }, qo = {
2993
3132
  __name: "Definition",
2994
3133
  setup(e) {
2995
- const o = E(!0), t = he(), n = S(() => t.definitions), l = () => {
3134
+ const o = O(!0), t = me(), n = _(() => t.definitions), l = () => {
2996
3135
  o.value = !o.value;
2997
3136
  };
2998
- return (r, i) => (w(), T("div", Ll, [
2999
- h("div", Rl, [
3000
- h("div", Pl, [
3001
- Vl,
3002
- H(Ge, {
3137
+ return (s, i) => (w(), E("div", Bo, [
3138
+ v("div", jo, [
3139
+ v("div", Ho, [
3140
+ zo,
3141
+ N(We, {
3003
3142
  isExpanded: o.value,
3004
3143
  onClick: l
3005
3144
  }, null, 8, ["isExpanded"])
3006
3145
  ]),
3007
- h("div", {
3008
- class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3146
+ v("div", {
3147
+ class: U(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3009
3148
  }, [
3010
- h("ul", null, [
3011
- (w(!0), T(Z, null, se(n.value, (s, a) => (w(), T("li", {
3012
- key: `${s.pos}-${a}`,
3149
+ v("ul", null, [
3150
+ (w(!0), E(Q, null, ae(n.value, (a, r) => (w(), E("li", {
3151
+ key: `${a.pos}-${r}`,
3013
3152
  class: "mb-2"
3014
3153
  }, [
3015
- h("h5", kl, te(s.pos), 1),
3016
- h("ul", Ml, [
3017
- (w(!0), T(Z, null, se(s.items, (u, c) => (w(), T("li", {
3154
+ v("h5", Uo, te(a.pos), 1),
3155
+ v("ul", Zo, [
3156
+ (w(!0), E(Q, null, ae(a.items, (u, c) => (w(), E("li", {
3018
3157
  key: `${u.gloss}-${c}`,
3019
3158
  class: "mb-1"
3020
3159
  }, [
3021
- h("span", null, te(u.gloss), 1),
3022
- Nl,
3023
- u.example ? (w(), T("small", Dl, '"' + te(u.example) + '"', 1)) : X("", !0)
3160
+ v("span", null, te(u.gloss), 1),
3161
+ Wo,
3162
+ u.example ? (w(), E("small", Go, '"' + te(u.example) + '"', 1)) : W("", !0)
3024
3163
  ]))), 128))
3025
3164
  ])
3026
3165
  ]))), 128))
@@ -3029,72 +3168,72 @@ const pl = {
3029
3168
  ])
3030
3169
  ]));
3031
3170
  }
3032
- }, Fl = { class: "card border bg-white rounded-lg" }, jl = { class: "card-body px-4 py-2 gap-0" }, Bl = { class: "flex justify-between items-center" }, Hl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), zl = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, Ul = ["innerHTML"], Zl = {
3171
+ }, Jo = { class: "card border bg-white rounded-lg" }, Ko = { class: "card-body px-4 py-2 gap-0" }, Yo = { class: "flex justify-between items-center" }, Qo = /* @__PURE__ */ v("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Examples", -1), Xo = { class: "text-textCustom list-decimal list-outside ml-7 mt-2" }, el = ["innerHTML"], tl = {
3033
3172
  __name: "Example",
3034
3173
  setup(e) {
3035
- const o = E(!0), t = he(), n = S(() => t.examples), l = () => {
3174
+ const o = O(!0), t = me(), n = _(() => t.examples), l = () => {
3036
3175
  o.value = !o.value;
3037
3176
  };
3038
- return (r, i) => (w(), T("div", Fl, [
3039
- h("div", jl, [
3040
- h("div", Bl, [
3041
- Hl,
3042
- H(Ge, {
3177
+ return (s, i) => (w(), E("div", Jo, [
3178
+ v("div", Ko, [
3179
+ v("div", Yo, [
3180
+ Qo,
3181
+ N(We, {
3043
3182
  isExpanded: o.value,
3044
3183
  onClick: l
3045
3184
  }, null, 8, ["isExpanded"])
3046
3185
  ]),
3047
- h("div", {
3048
- class: _e(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3186
+ v("div", {
3187
+ class: U(["overflow-hidden transition-all duration-300 ease-in-out", o.value ? "max-h-[1000px] opacity-100" : "max-h-0 opacity-0"])
3049
3188
  }, [
3050
- h("ul", zl, [
3051
- (w(!0), T(Z, null, se(n.value, (s, a) => (w(), T("li", {
3052
- key: `${s.definition_id}-${a}`,
3053
- innerHTML: s
3054
- }, null, 8, Ul))), 128))
3189
+ v("ul", Xo, [
3190
+ (w(!0), E(Q, null, ae(n.value, (a, r) => (w(), E("li", {
3191
+ key: `${a.definition_id}-${r}`,
3192
+ innerHTML: a
3193
+ }, null, 8, el))), 128))
3055
3194
  ])
3056
3195
  ], 2)
3057
3196
  ])
3058
3197
  ]));
3059
3198
  }
3060
- }, Wl = { class: "card border bg-white rounded-lg" }, Gl = { class: "card-body px-4 py-2 gap-0" }, ql = { class: "flex justify-between items-center" }, Jl = /* @__PURE__ */ h("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Synonyms", -1), Kl = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, Yl = { class: "list-none list-inside" }, Ql = { class: "flex flex-wrap" }, Xl = ["onClick"], es = {
3199
+ }, nl = { class: "card border bg-white rounded-lg" }, ol = { class: "card-body px-4 py-2 gap-0" }, ll = { class: "flex justify-between items-center" }, sl = /* @__PURE__ */ v("h2", { class: "card-title text-base font-bold leading-6 text-textCustom" }, "Synonyms", -1), al = { class: "capitalize text-base font-normal text-textSecondary mb-1" }, il = { class: "list-none list-inside" }, rl = { class: "flex flex-wrap" }, ul = ["onClick"], cl = {
3061
3200
  __name: "Synonyms",
3062
3201
  emits: ["translate"],
3063
3202
  setup(e, { emit: o }) {
3064
- const t = E(!0), n = he(), l = S(() => n.synonyms), r = o, i = () => {
3203
+ const t = O(!0), n = me(), l = _(() => n.synonyms), s = o, i = () => {
3065
3204
  t.value = !t.value;
3066
- }, s = (a) => {
3067
- r("translate", a), window.scrollTo(0, 0);
3205
+ }, a = (r) => {
3206
+ s("translate", r), window.scrollTo(0, 0);
3068
3207
  };
3069
- return (a, u) => (w(), T("div", Wl, [
3070
- h("div", Gl, [
3071
- h("div", ql, [
3072
- Jl,
3073
- H(Ge, {
3208
+ return (r, u) => (w(), E("div", nl, [
3209
+ v("div", ol, [
3210
+ v("div", ll, [
3211
+ sl,
3212
+ N(We, {
3074
3213
  isExpanded: t.value,
3075
3214
  onClick: i
3076
3215
  }, null, 8, ["isExpanded"])
3077
3216
  ]),
3078
- h("div", {
3079
- class: _e(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3217
+ v("div", {
3218
+ class: U(["overflow-hidden transition-all duration-300 ease-in-out", t.value ? "max-h-[2000px] opacity-100" : "max-h-0 opacity-0"])
3080
3219
  }, [
3081
- h("ul", null, [
3082
- (w(!0), T(Z, null, se(l.value, (c, p) => (w(), T("li", {
3220
+ v("ul", null, [
3221
+ (w(!0), E(Q, null, ae(l.value, (c, p) => (w(), E("li", {
3083
3222
  key: `${c.pos}-${p}`,
3084
3223
  class: "mb-2"
3085
3224
  }, [
3086
- h("h5", Kl, te(c.pos), 1),
3087
- h("ul", Yl, [
3088
- (w(!0), T(Z, null, se(c.items, (g, x) => (w(), T("li", {
3089
- key: `${g.word}-${x}`,
3225
+ v("h5", al, te(c.pos), 1),
3226
+ v("ul", il, [
3227
+ (w(!0), E(Q, null, ae(c.items, (h, m) => (w(), E("li", {
3228
+ key: `${h.word}-${m}`,
3090
3229
  class: "mb-2"
3091
3230
  }, [
3092
- h("div", Ql, [
3093
- (w(!0), T(Z, null, se(g.synonym, (_, v) => (w(), T("span", {
3094
- key: `${_}-${v}`,
3231
+ v("div", rl, [
3232
+ (w(!0), E(Q, null, ae(h.synonym, (b, S) => (w(), E("span", {
3233
+ key: `${b}-${S}`,
3095
3234
  class: "p-3 m-0.5 ml-0 font-normal badge badge-ghost bg-primaryColor text-white cursor-pointer border-0 rounded-lg",
3096
- onClick: ($) => s(_)
3097
- }, te(_), 9, Xl))), 128))
3235
+ onClick: (I) => a(b)
3236
+ }, te(b), 9, ul))), 128))
3098
3237
  ])
3099
3238
  ]))), 128))
3100
3239
  ])
@@ -3105,22 +3244,22 @@ const pl = {
3105
3244
  ]));
3106
3245
  }
3107
3246
  };
3108
- function ts() {
3247
+ function dl() {
3109
3248
  document.documentElement.setAttribute("dir", "rtl");
3110
3249
  }
3111
- function ns() {
3250
+ function fl() {
3112
3251
  document.documentElement.removeAttribute("dir");
3113
3252
  }
3114
- const $t = {
3115
- supportRTL: ts,
3116
- removeRTL: ns
3117
- }, os = ["ar", "fa", "iw", "yi", "ur", "pa"], ls = { class: "bg-white min-h-screen flex flex-col" }, ss = { class: "py-2 px-5 shadow-lg" }, rs = { class: "px-5 flex-grow" }, is = { class: "flex flex-col lg:flex-row lg:gap-2" }, as = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, us = /* @__PURE__ */ h("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), cs = { class: "w-full lg:w-[calc(50%-1rem)] my-2" }, ds = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, fs = {
3253
+ const Ot = {
3254
+ supportRTL: dl,
3255
+ removeRTL: fl
3256
+ }, pl = ["ar", "fa", "iw", "yi", "ur", "pa"], vl = { class: "bg-white min-h-screen flex flex-col" }, hl = { class: "py-2 px-5 shadow-lg" }, ml = { class: "px-5 flex-grow" }, bl = { class: "flex flex-col lg:flex-row lg:gap-2 mb-6" }, gl = { class: "w-full lg:w-[calc(50%-1rem)] my-2 flex" }, Cl = /* @__PURE__ */ v("div", { class: "w-6 h-4 mx-auto hidden lg:block" }, null, -1), xl = { class: "w-full lg:w-[calc(50%-1rem)] my-2 flex" }, yl = { class: "grid grid-cols-1 lg:grid-cols-3 gap-4" }, wl = {
3118
3257
  key: 0,
3119
3258
  class: "w-full my-4"
3120
- }, ps = {
3259
+ }, _l = {
3121
3260
  key: 1,
3122
3261
  class: "text-textCustom italic font-medium"
3123
- }, ms = {
3262
+ }, Ol = {
3124
3263
  __name: "Popup",
3125
3264
  props: {
3126
3265
  opt: {
@@ -3143,9 +3282,17 @@ const $t = {
3143
3282
  type: Boolean,
3144
3283
  default: !1
3145
3284
  },
3285
+ isAITranslateFeatureEnabled: {
3286
+ type: Boolean,
3287
+ default: !1
3288
+ },
3146
3289
  isFavorite: {
3147
3290
  type: Boolean,
3148
3291
  default: !1
3292
+ },
3293
+ isAITranslate: {
3294
+ type: Boolean,
3295
+ default: !1
3149
3296
  }
3150
3297
  },
3151
3298
  emits: [
@@ -3156,106 +3303,117 @@ const $t = {
3156
3303
  "fullscreen",
3157
3304
  "starList",
3158
3305
  "loadTTS",
3159
- "favorite"
3306
+ "favorite",
3307
+ "aiTranslate",
3308
+ "copy"
3160
3309
  ],
3161
3310
  setup(e, { emit: o }) {
3162
- const t = m2(), n = he(t), l = fn(t), r = We(t), i = Ze(t), s = e, a = o, u = E(""), c = () => {
3163
- const v = s.opt.target;
3164
- os.includes(v) ? $t.supportRTL() : $t.removeRTL();
3311
+ const t = vn(), n = me(t), l = r2(t), s = Ue(t), i = ze(t), a = e, r = o, u = O(""), c = () => {
3312
+ const I = a.opt.target;
3313
+ pl.includes(I) ? Ot.supportRTL() : Ot.removeRTL();
3165
3314
  };
3166
- F(
3167
- () => s.translation,
3168
- (v) => {
3169
- v && (i.loading = !1, u.value = v.text, n.init(v), l.reset());
3315
+ B(
3316
+ () => a.translation,
3317
+ (I) => {
3318
+ I && (i.loading = !1, u.value = I.text, n.init(I), l.reset());
3170
3319
  },
3171
3320
  { immediate: !0 }
3172
- ), F(
3173
- () => s.tts,
3174
- (v) => {
3175
- if (!v) {
3321
+ ), B(
3322
+ () => a.tts,
3323
+ (I) => {
3324
+ if (!I) {
3176
3325
  l.reset();
3177
3326
  return;
3178
3327
  }
3179
- l.set(v);
3328
+ l.set(I);
3180
3329
  },
3181
3330
  { immediate: !0 }
3182
- ), F([() => s.opt, () => s.languages], ([v, $]) => {
3183
- r.init(v, $), c();
3184
- }), F([() => r.src, () => r.target], ([v, $]) => {
3185
- a("opt", { src: v, target: $ }), _(u.value);
3186
- }), Ce(() => {
3187
- r.init(s.opt, s.languages), c();
3331
+ ), B([() => a.opt, () => a.languages], ([I, T]) => {
3332
+ s.init(I, T), c();
3333
+ }), B([() => s.src, () => s.target], ([I, T]) => {
3334
+ r("opt", { src: I, target: T }), b(u.value);
3335
+ }), ye(() => {
3336
+ s.init(a.opt, a.languages), c();
3188
3337
  });
3189
3338
  function p() {
3190
- u.value = "", n.reset();
3339
+ u.value = "", a.isAITranslate && S(), n.reset();
3191
3340
  }
3192
- function g(v) {
3193
- _(v);
3341
+ function h(I) {
3342
+ b(I);
3194
3343
  }
3195
- function x(v) {
3196
- const $ = v === "src" ? n.text : n.result;
3197
- a("loadTTS", { type: v, data: $ });
3344
+ function m(I) {
3345
+ const T = I === "src" ? n.text : n.result;
3346
+ r("loadTTS", { type: I, data: T });
3198
3347
  }
3199
- function _(v, $ = r.src, N = r.target) {
3200
- v && (u.value = v, i.loading = !0, a("translate", {
3201
- src: $,
3202
- target: N,
3203
- text: v
3348
+ function b(I, T = s.src, L = s.target) {
3349
+ I && (u.value = I, i.loading = !0, r("translate", {
3350
+ src: T,
3351
+ target: L,
3352
+ text: I
3204
3353
  }));
3205
3354
  }
3206
- return (v, $) => {
3207
- var N, I, k, D;
3208
- return w(), T("div", ls, [
3209
- h("div", ss, [
3210
- H(Hn, {
3211
- onReader: $[0] || ($[0] = (m) => a("reader")),
3212
- onSettings: $[1] || ($[1] = (m) => a("settings")),
3213
- onFullScreen: $[2] || ($[2] = (m) => a("fullscreen")),
3214
- onStarList: $[3] || ($[3] = (m) => a("starList"))
3355
+ function S() {
3356
+ a.isAITranslate || (i.loading = !0), r("aiTranslate");
3357
+ }
3358
+ return (I, T) => {
3359
+ var L, P, k, g;
3360
+ return w(), E("div", vl, [
3361
+ v("div", hl, [
3362
+ N(B2, {
3363
+ onReader: T[0] || (T[0] = (M) => r("reader")),
3364
+ onSettings: T[1] || (T[1] = (M) => r("settings")),
3365
+ onFullScreen: T[2] || (T[2] = (M) => r("fullscreen")),
3366
+ onStarList: T[3] || (T[3] = (M) => r("starList"))
3215
3367
  })
3216
3368
  ]),
3217
- h("div", rs, [
3218
- H(T2, { class: "my-4" }),
3219
- h("div", is, [
3220
- h("div", as, [
3221
- H(vl, {
3369
+ v("div", ml, [
3370
+ N(On, { class: "my-4" }),
3371
+ v("div", bl, [
3372
+ v("div", gl, [
3373
+ N(wo, {
3222
3374
  text: u.value,
3223
- onChange: g,
3375
+ onChange: h,
3224
3376
  onClear: p,
3225
- onLoadTTS: $[4] || ($[4] = (m) => x("src"))
3377
+ onLoadTTS: T[4] || (T[4] = (M) => m("src")),
3378
+ class: "flex-grow flex flex-col"
3226
3379
  }, null, 8, ["text"])
3227
3380
  ]),
3228
- us,
3229
- h("div", cs, [
3230
- H(xl, {
3381
+ Cl,
3382
+ v("div", xl, [
3383
+ N(Io, {
3231
3384
  isFavoriteFeatureEnabled: e.isFavoriteFeatureEnabled,
3385
+ isAITranslateFeatureEnabled: e.isAITranslateFeatureEnabled,
3386
+ isAITranslate: e.isAITranslate,
3232
3387
  isFavorite: e.isFavorite,
3233
- onFavorite: $[5] || ($[5] = (m) => a("favorite")),
3234
- onLoadTTS: $[6] || ($[6] = (m) => x("target"))
3235
- }, null, 8, ["isFavoriteFeatureEnabled", "isFavorite"])
3388
+ onCopy: T[5] || (T[5] = (M) => r("copy")),
3389
+ onAiTranslate: S,
3390
+ onFavorite: T[6] || (T[6] = (M) => r("favorite")),
3391
+ onLoadTTS: T[7] || (T[7] = (M) => m("target")),
3392
+ class: "flex-grow flex flex-col"
3393
+ }, null, 8, ["isFavoriteFeatureEnabled", "isAITranslateFeatureEnabled", "isAITranslate", "isFavorite"])
3236
3394
  ])
3237
3395
  ]),
3238
- s.translation ? (w(), T(Z, { key: 0 }, [
3239
- h("div", ds, [
3240
- (N = V(n).dictionary) != null && N.length ? (w(), ee(Il, {
3396
+ a.translation ? (w(), E(Q, { key: 0 }, [
3397
+ v("div", yl, [
3398
+ (L = V(n).dictionary) != null && L.length ? (w(), se(No, {
3241
3399
  key: 0,
3242
- onTranslate: _
3243
- })) : X("", !0),
3244
- (I = V(n).definitions) != null && I.length ? (w(), ee(Al, { key: 1 })) : X("", !0),
3245
- (k = V(n).synonyms) != null && k.length ? (w(), ee(es, {
3400
+ onTranslate: b
3401
+ })) : W("", !0),
3402
+ (P = V(n).definitions) != null && P.length ? (w(), se(qo, { key: 1 })) : W("", !0),
3403
+ (k = V(n).synonyms) != null && k.length ? (w(), se(cl, {
3246
3404
  key: 2,
3247
- onTranslate: _
3248
- })) : X("", !0)
3405
+ onTranslate: b
3406
+ })) : W("", !0)
3249
3407
  ]),
3250
- (D = V(n).examples) != null && D.length ? (w(), T("div", fs, [
3251
- H(Zl)
3252
- ])) : X("", !0)
3253
- ], 64)) : (w(), T("span", ps, "Service unavailable"))
3408
+ (g = V(n).examples) != null && g.length ? (w(), E("div", wl, [
3409
+ N(tl)
3410
+ ])) : W("", !0)
3411
+ ], 64)) : (w(), E("span", _l, "Service unavailable"))
3254
3412
  ])
3255
3413
  ]);
3256
3414
  };
3257
3415
  }
3258
3416
  };
3259
3417
  export {
3260
- ms as default
3418
+ Ol as default
3261
3419
  };