scrum-skills 0.1.2 → 0.2.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/.agents/skills/scrum-planning/SKILL.md +10 -4
- package/.agents/skills/scrum-planning/references/schema.md +141 -60
- package/.agents/skills/scrum-report/SKILL.md +8 -4
- package/.agents/skills/scrum-sprint/SKILL.md +8 -3
- package/.agents/skills/scrum-tdd/SKILL.md +3 -3
- package/README.md +132 -0
- package/assets/board/200.html +1 -0
- package/assets/board/404.html +1 -0
- package/assets/board/_nuxt/BNG0e--z.js +6 -0
- package/assets/board/_nuxt/BWaQPvUU.js +8 -0
- package/assets/board/_nuxt/BcDeF-Nj.js +1 -0
- package/assets/board/_nuxt/BeTHElHy.js +1 -0
- package/assets/board/_nuxt/BrhpXuqy.js +1 -0
- package/assets/board/_nuxt/Brv_Bdja.js +3 -0
- package/assets/board/_nuxt/C218H_dA.js +1 -0
- package/assets/board/_nuxt/C37hh6-M.js +1 -0
- package/assets/board/_nuxt/C6_z9Ljo.js +1 -0
- package/assets/board/_nuxt/CNsYxQaQ.js +1 -0
- package/assets/board/_nuxt/Cg4fvkkC.js +4 -0
- package/assets/board/_nuxt/Ci-XR_iv.js +1 -0
- package/assets/board/_nuxt/Cxemkb8I.js +3 -0
- package/assets/board/_nuxt/D1zk137d.js +1 -0
- package/assets/board/_nuxt/D8i1JTd1.js +1 -0
- package/assets/board/_nuxt/DK3Fl9T5.js +1 -0
- package/assets/board/_nuxt/DVUil5cj.js +1 -0
- package/assets/board/_nuxt/DW7rSQ02.js +1 -0
- package/assets/board/_nuxt/DbghXjRj.js +1 -0
- package/assets/board/_nuxt/DcGinDT7.js +6 -0
- package/assets/board/_nuxt/DhgUnnc1.js +16 -0
- package/assets/board/_nuxt/DqkHw_T9.js +1 -0
- package/assets/board/_nuxt/DuWpPgcw.js +3 -0
- package/assets/board/_nuxt/OHMTu69O.js +1 -0
- package/assets/board/_nuxt/W_UkaXSY.js +1 -0
- package/assets/board/_nuxt/_id_.IxcmgCc3.css +1 -0
- package/assets/board/_nuxt/builds/latest.json +1 -0
- package/assets/board/_nuxt/builds/meta/cf3421e0-2439-4091-aeea-10c06027154f.json +1 -0
- package/assets/board/_nuxt/burndown.DSciF97B.css +1 -0
- package/assets/board/_nuxt/entry.DEq3ipbJ.css +2 -0
- package/assets/board/_nuxt/epics.jbQSHA_o.css +1 -0
- package/assets/board/_nuxt/error-404.BFmXOnCT.css +1 -0
- package/assets/board/_nuxt/error-500.BZ-DdjQ6.css +1 -0
- package/assets/board/_nuxt/gantt.BZpeqgtE.css +1 -0
- package/assets/board/_nuxt/milestones.DqyGYjt4.css +1 -0
- package/assets/board/_nuxt/pages.D1M7qr1l.css +1 -0
- package/assets/board/burndown/index.html +1 -0
- package/assets/board/epics/index.html +1 -0
- package/assets/board/gantt/index.html +1 -0
- package/assets/board/index.html +1 -0
- package/assets/board/milestones/index.html +1 -0
- package/bin/scrum-skills.mjs +17 -5
- package/docs/board.png +0 -0
- package/package.json +24 -3
- package/templates/AGENTS.md +25 -11
- package/tools/serve.mjs +88 -143
- package/tools/validate.mjs +319 -109
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{t as e}from"./DK3Fl9T5.js";import{$n as t,At as n,Bn as r,C as i,Ft as a,Gn as o,Gt as s,H as c,Jn as l,Ln as u,Mn as d,Mr as f,Nr as p,Ot as m,Pr as h,U as g,Un as _,Ut as v,Xn as y,Zn as b,h as x,hn as S,nt as C,pt as w,q as ee,tr as T,ut as te,v as E,xt as ne,zt as re}from"./DuWpPgcw.js";import{_t as D,bt as ie,u as ae}from"./Brv_Bdja.js";var oe=x({ui:{colors:{primary:`indigo`,secondary:`violet`,success:`emerald`,info:`sky`,warning:`amber`,error:`rose`,neutral:`slate`}}}),se=ie(oe,{nuxt:{},ui:{colors:{primary:`green`,secondary:`blue`,success:`green`,info:`blue`,warning:`yellow`,error:`red`,neutral:`slate`},icons:{arrowDown:`i-lucide-arrow-down`,arrowLeft:`i-lucide-arrow-left`,arrowRight:`i-lucide-arrow-right`,arrowUp:`i-lucide-arrow-up`,caution:`i-lucide-circle-alert`,check:`i-lucide-check`,chevronDoubleLeft:`i-lucide-chevrons-left`,chevronDoubleRight:`i-lucide-chevrons-right`,chevronDown:`i-lucide-chevron-down`,chevronLeft:`i-lucide-chevron-left`,chevronRight:`i-lucide-chevron-right`,chevronUp:`i-lucide-chevron-up`,close:`i-lucide-x`,copy:`i-lucide-copy`,copyCheck:`i-lucide-copy-check`,dark:`i-lucide-moon`,drag:`i-lucide-grip-vertical`,ellipsis:`i-lucide-ellipsis`,error:`i-lucide-circle-x`,external:`i-lucide-arrow-up-right`,eye:`i-lucide-eye`,eyeOff:`i-lucide-eye-off`,file:`i-lucide-file`,folder:`i-lucide-folder`,folderOpen:`i-lucide-folder-open`,hash:`i-lucide-hash`,info:`i-lucide-info`,light:`i-lucide-sun`,loading:`i-lucide-loader-circle`,menu:`i-lucide-menu`,minus:`i-lucide-minus`,panelClose:`i-lucide-panel-left-close`,panelOpen:`i-lucide-panel-left-open`,plus:`i-lucide-plus`,reload:`i-lucide-rotate-ccw`,search:`i-lucide-search`,stop:`i-lucide-square`,star:`i-lucide-star`,success:`i-lucide-circle-check`,system:`i-lucide-monitor`,tip:`i-lucide-lightbulb`,upload:`i-lucide-upload`,warning:`i-lucide-triangle-alert`},tv:{twMergeConfig:{}}},icon:{provider:`iconify`,class:``,aliases:{},iconifyApiEndpoint:`https://api.iconify.design`,localApiEndpoint:`/api/_nuxt_icon`,fallbackToApi:!0,cssSelectorPrefix:`i-`,cssWherePseudo:!0,cssLayer:`base`,mode:`css`,attrs:{"aria-hidden":!0},collections:`academicons.akar-icons.ant-design.arcticons.basil.bi.bitcoin-icons.bpmn.brandico.bx.bxl.bxs.bytesize.carbon.catppuccin.cbi.charm.ci.cib.cif.cil.circle-flags.circum.clarity.codex.codicon.covid.cryptocurrency.cryptocurrency-color.cuida.dashicons.devicon.devicon-plain.dinkie-icons.duo-icons.ei.el.emojione.emojione-monotone.emojione-v1.entypo.entypo-social.eos-icons.ep.et.eva.f7.fa.fa-brands.fa-regular.fa-solid.fa6-brands.fa6-regular.fa6-solid.fa7-brands.fa7-regular.fa7-solid.fad.famicons.fe.feather.file-icons.flag.flagpack.flat-color-icons.flat-ui.flowbite.fluent.fluent-color.fluent-emoji.fluent-emoji-flat.fluent-emoji-high-contrast.fluent-mdl2.fontelico.fontisto.formkit.foundation.fxemoji.gala.game-icons.garden.geo.gg.gis.gravity-ui.gridicons.grommet-icons.guidance.healthicons.heroicons.heroicons-outline.heroicons-solid.hugeicons.humbleicons.ic.icomoon-free.icon-park.icon-park-outline.icon-park-solid.icon-park-twotone.iconamoon.iconoir.icons8.il.ion.iwwa.ix.jam.la.lets-icons.line-md.lineicons.logos.ls.lsicon.lucide.lucide-lab.mage.majesticons.maki.map.marketeq.material-icon-theme.material-symbols.material-symbols-light.mdi.mdi-light.medical-icon.memory.meteocons.meteor-icons.mi.mingcute.mono-icons.mynaui.nimbus.nonicons.noto.noto-v1.nrk.octicon.oi.ooui.openmoji.oui.pajamas.pepicons.pepicons-pencil.pepicons-pop.pepicons-print.ph.picon.pixel.pixelarticons.prime.proicons.ps.qlementine-icons.quill.radix-icons.raphael.ri.rivet-icons.roentgen.si.si-glyph.sidekickicons.simple-icons.simple-line-icons.skill-icons.solar.stash.streamline.streamline-block.streamline-color.streamline-cyber.streamline-cyber-color.streamline-emojis.streamline-flex.streamline-flex-color.streamline-freehand.streamline-freehand-color.streamline-kameleon-color.streamline-logos.streamline-pixel.streamline-plump.streamline-plump-color.streamline-sharp.streamline-sharp-color.streamline-stickies-color.streamline-ultimate.streamline-ultimate-color.subway.svg-spinners.system-uicons.tabler.tdesign.teenyicons.temaki.token.token-branded.topcoat.twemoji.typcn.uil.uim.uis.uit.uiw.unjs.vaadin.vs.vscode-icons.websymbol.weui.whh.wi.wpf.zmdi.zondicons`.split(`.`),fetchTimeout:1500}});function O(){let e=E();return e._appConfig||=_(se),e._appConfig}var ce=/^[a-z0-9]+(-[a-z0-9]+)*$/,k=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!A(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!A(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!A(e,n)?null:e}return null},A=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function le(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var ue=Object.freeze({left:0,top:0,width:16,height:16}),j=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),M=Object.freeze({...ue,...j}),N=Object.freeze({...M,body:``,hidden:!1});function de(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function fe(e,t){let n=de(e,t);for(let r in N)r in j?r in e&&!(r in n)&&(n[r]=j[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function pe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=fe(r[e]||i[e],a)}return o(t),n.forEach(o),fe(e,a)}function me(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=le(e);for(let i in r){let a=r[i];a&&(t(i,pe(e,i,a)),n.push(i))}return n}var he={provider:``,aliases:{},not_found:{},...ue};function ge(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _e(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!ge(e,he))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!ge(t,N))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!ge(t,N))return null}return t}var ve=Object.create(null);function ye(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function P(e,t){let n=ve[e]||(ve[e]=Object.create(null));return n[t]||(n[t]=ye(e,t))}function be(e,t){return _e(t)?me(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function xe(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var F=!1;function Se(e){return typeof e==`boolean`&&(F=e),F}function Ce(e){let t=typeof e==`string`?k(e,!0,F):e;if(t){let e=P(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function I(e,t){let n=k(e,!0,F);if(!n)return!1;let r=P(n.provider,n.prefix);return t?xe(r,n.name,t):(r.missing.add(n.name),!0)}function we(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),F&&!t&&!e.prefix){let t=!1;return _e(e)&&(e.prefix=``,me(e,(e,n)=>{I(e,n)&&(t=!0)})),t}let n=e.prefix;return A({prefix:n,name:`a`})?!!be(P(t,n),e):!1}function L(e){let t=Ce(e);return t&&{...M,...t}}var Te=Object.freeze({width:null,height:null}),Ee=Object.freeze({...Te,...j}),De=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Oe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ke(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(De);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Oe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Ae(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function je(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Me(e,t,n){let r=Ae(e);return je(r.defs,t+r.content+n)}var Ne=e=>e===`unset`||e===`undefined`||e===`none`;function Pe(e,t){let n={...M,...e},r={...Ee,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Me(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=ke(d,c/l)):(u=o===`auto`?c:o,d=s===null?ke(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{Ne(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Fe=/\sid="(\S+)"/g,Ie=new Map;function Le(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=Ie.get(e)||0;return Ie.set(e,t+1),t?`${e}${t}`:e}function Re(e){let t=[],n;for(;n=Fe.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=Le(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var R=Object.create(null);function ze(e,t){R[e]=t}function z(e){return R[e]||R[``]}function B(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}var V=Object.create(null);V[``]=B({resources:[`https://api.iconify.design`]});function Be(e,t){let n=B(t);return n!==null&&(V[e]=n,!0)}function H(e){return V[e]}function Ve(){return Object.keys(V)}var U=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function He(e){U=e}function Ue(){return U}function We(e,t){let n=H(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function Ge(e){return e===404}var Ke=(e,t,n)=>{let r=[],i=We(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function qe(e){if(typeof e==`string`){let t=H(e);if(t)return t.path}return`/`}var Je={prepare:Ke,send:(e,t,n)=>{if(!U){n(`abort`,424);return}let r=qe(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;U(e+r).then(e=>{let t=e.status;if(t!==200)setTimeout(()=>{n(Ge(t)?`abort`:`next`,t)});else return i=501,e.json()}).then(e=>{setTimeout(typeof e!=`object`||!e?()=>{e===404?n(`abort`,e):n(`next`,i)}:()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function Ye(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function Xe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||Ye([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var Ze=0;function Qe(e,t,n){let r=Ze++,i=Ye.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function $e(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=P(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function et(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?k(e,t,n):e;i&&r.push(i)}),r}var tt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nt(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`)u=r,v();else if(i)u=r,f.length||(o.length?x():v());else{if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function rt(e){let t={...tt,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=nt(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function it(){}var at=Object.create(null);function ot(e){if(!at[e]){let t=H(e);if(!t)return;at[e]={config:t,redundancy:rt(t)}}return at[e]}function st(e,t,n){let r,i;if(typeof e==`string`){let t=z(e);if(!t)return n(void 0,424),it;i=t.send;let a=ot(e);a&&(r=a.redundancy)}else{let t=B(e);if(t){r=rt(t);let n=z(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),it):r.query(t,i,n)().abort}function ct(){}function lt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Xe(e)}))}function ut(e){let t=[],n=[];return e.forEach(e=>{(e.match(ce)?t:n).push(e)}),{valid:t,invalid:n}}function W(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!be(e,n).length){r();return}}catch(e){console.error(e)}r(),lt(e)}function dt(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function ft(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){dt(e.loadIcons(r,n,t),t=>{W(e,r,t)});return}if(i){r.forEach(r=>{dt(i(r,n,t),t=>{W(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=ut(r);if(o.length&&W(e,o,null),!a.length)return;let s=n.match(ce)?z(t):null;s?s.prepare(t,n,a).forEach(n=>{st(t,n,t=>{W(e,n.icons,t)})}):W(e,a,null)}))}var pt=(e,t)=>{let n=$e(et(e,!0,Se()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,ct)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(P(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=P(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&ft(e,t)}),t?Qe(t,n,i):ct},mt=e=>new Promise((t,n)=>{let r=typeof e==`string`?k(e,!0):e;r?pt([r||e],i=>{if(i.length&&r){let e=Ce(r);if(e){t({...M,...e});return}}n(e)}):n(e)});function ht(e,t,n){P(n||``,t).loadIcons=e}function gt(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in Te?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var _t=/[\s,]+/;function vt(e,t){t.split(_t).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function yt(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function bt(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function xt(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `).replace(/:/g,`%3A`).replace(/\//g,`%2F`)}function St(e){return`data:image/svg+xml,`+xt(e)}function Ct(e){return`url("`+St(e)+`")`}var wt={...Ee,inline:!1},Tt={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Et={display:`inline-block`},Dt={backgroundColor:`currentColor`},Ot={backgroundColor:`transparent`},kt={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},At={webkitMask:Dt,mask:Dt,background:Ot};for(let e in At){let t=At[e];for(let n in kt)t[e+n]=kt[n]}var G={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;G[e+`-flip`]=t,G[e.slice(0,1)+`-flip`]=t,G[e+`Flip`]=t});function jt(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Mt=(e,t)=>{let n=gt(wt,t),r={...Tt},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=yt(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=G[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):wt[e]===void 0&&(r[e]=i)}}}typeof t.flip==`string`&&vt(n,t.flip);let c=Pe(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=Re(c.body),w(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||i!==`bg`&&u.indexOf(`currentColor`)!==-1,m=bt(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":Ct(m),width:jt(l.width),height:jt(l.height),...Et,...p?Dt:Ot,...s},w(`span`,r)};if(Se(!0),ze(``,Je),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!we(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;Be(e,r)||console.error(n)}catch{console.error(n)}}}}var Nt={...M,body:``},Pt=C((e,{emit:t})=>{let n=o(null);function r(){n.value&&=(n.value.abort?.(),null)}let i=o(!!e.ssr),s=o(``),c=l(null);function u(){let i=e.icon;if(typeof i==`object`&&i&&typeof i.body==`string`)return s.value=``,{data:i};let a;if(typeof i!=`string`||(a=k(i,!1,!0))===null)return null;let o=Ce(a);if(!o){let e=n.value;return e&&e.name===i||(o===null?n.value={name:i}:n.value={name:i,abort:pt([a],d)}),null}r(),s.value!==i&&(s.value=i,m(()=>{t(`load`,i)}));let c=e.customise;if(c){o=Object.assign({},o);let e=c(o.body,a.name,a.prefix,a.provider);typeof e==`string`&&(o.body=e)}let l=[`iconify`];return a.prefix!==``&&l.push(`iconify--`+a.prefix),a.provider!==``&&l.push(`iconify--`+a.provider),{data:o,classes:l}}function d(){let e=u();e?e.data!==c.value?.data&&(c.value=e):c.value=null}return i.value?d():a(()=>{i.value=!0,d()}),S(()=>e.icon,d),re(r),()=>{let t=c.value;if(!t)return Mt(Nt,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),Mt({...M,...t.data},n)}},{props:{icon:{type:[String,Object],required:!0},mode:{type:String},ssr:{type:Boolean},width:{type:[String,Number]},height:{type:[String,Number]},style:{type:[String,Object]},color:{type:String},inline:{type:Boolean},rotate:{type:[Number,String]},hFlip:{type:Boolean},horizontalFlip:{type:Boolean},vFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{type:String},id:{type:String},ariaHidden:{type:[Boolean,String],default:void 0},customise:{type:Function},title:{type:String}},emits:[`load`]}),Ft={getAPIConfig:H,setAPIModule:ze,sendAPIQuery:st,setFetch:He,getFetch:Ue,listAPIProviders:Ve};function K(e=te()){let t=e;t&&!t.sp&&(t.sp=[])}function q(e){return typeof e==`string`?`'${e}'`:new Rt().serialize(e)}var It=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,J=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[It.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Lt(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&J[n]?J[n]:n+128,s=a<128&&J[a]?J[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Rt=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Lt(e,t):n===`number`&&r===`number`?e-t:Lt(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Lt),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function zt(e,t){return e===t||q(e)===q(t)}var Bt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Vt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Ht=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Y=[],Ut=class{_data=new X;_hash=new X([...Bt]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)Y[n]=e[t+n]|0;else{let e=Y[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Y[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Y[n]=t+Y[n-7]+i+Y[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+Vt[n]+Y[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=X.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new X(t,i)}},X=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(Ht.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Wt(e){return new Ut().finalize(e).toBase64()}function Gt(e){return Wt(q(e))}var Kt=Object.freeze({left:0,top:0,width:16,height:16}),qt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Jt=Object.freeze({...Kt,...qt});Object.freeze({...Jt,body:``,hidden:!1});function Yt(e){let[t,n,r,i]=e;if(r!==i){let e=Math.max(r,i);return[t-(e-r)/2,n-(e-i)/2,e,e]}return e}var Xt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Qt(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(Xt);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Zt.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var $t=Object.freeze({width:null,height:null}),en=Object.freeze({...$t,...qt});function tn(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function nn(e,t){return e?`<defs>`+e+`</defs>`+t:t}function rn(e,t,n){let r=tn(e);return nn(r.defs,t+r.content+n)}var an=e=>e===`unset`||e===`undefined`||e===`none`;function on(e,t){let n={...Jt,...e},r={...en,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=rn(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Qt(d,c/l)):(u=o===`auto`?c:o,d=s===null?Qt(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{an(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}function sn(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function cn(e){return`data:image/svg+xml,`+sn(e)}function ln(e){return`url("`+cn(e)+`")`}function un(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function dn(e){let t=Object.create(null);Object.assign(t,{display:`inline-block`,width:`1em`,height:`1em`});let n=e.varName;switch(e.pseudoSelector&&(t.content=`''`),e.mode){case`background`:n&&(t[`background-image`]=`var(--`+n+`)`),t[`background-repeat`]=`no-repeat`,t[`background-size`]=`100% 100%`;break;case`mask`:t[`background-color`]=`currentColor`,n&&(t[`mask-image`]=t[`-webkit-mask-image`]=`var(--`+n+`)`),t[`mask-repeat`]=t[`-webkit-mask-repeat`]=`no-repeat`,t[`mask-size`]=t[`-webkit-mask-size`]=`100% 100%`}return t}function fn(e,t){let n=Object.create(null),r=t.varName,i=on(e),a=i.viewBox;a[2]!==a[3]&&(t.forceSquare?a=Yt(a):n.width=Qt(`1em`,a[2]/a[3]));let o=ln(un(i.body.replace(/currentColor/g,t.color||`black`),{viewBox:`${a[0]} ${a[1]} ${a[2]} ${a[3]}`,width:`${a[2]}`,height:`${a[3]}`}));if(r)n[`--`+r]=o;else switch(t.mode){case`background`:n[`background-image`]=o;break;case`mask`:n[`mask-image`]=n[`-webkit-mask-image`]=o}return n}var pn={selectorStart:{compressed:`{`,compact:` {`,expanded:` {`},selectorEnd:{compressed:`}`,compact:`; }
|
|
2
|
+
`,expanded:`;
|
|
3
|
+
}
|
|
4
|
+
`},rule:{compressed:`{key}:`,compact:` {key}: `,expanded:`
|
|
5
|
+
{key}: `}};function mn(e,t=`expanded`){let n=[];for(let r=0;r<e.length;r++){let{selector:i,rules:a}=e[r],o=(i instanceof Array?i.join(t===`compressed`?`,`:`, `):i)+pn.selectorStart[t],s=!0;for(let e in a)s||(o+=`;`),o+=pn.rule[t].replace(`{key}`,e)+a[e],s=!1;o+=pn.selectorEnd[t],n.push(o)}return n.join(t===`compressed`?``:`
|
|
6
|
+
`)}function hn(e,t={}){let n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes(`currentColor`)?`background`:`mask`),i=t.varName;i===void 0&&r===`mask`&&(i=`svg`);let a={...t,mode:r,varName:i};r===`background`&&delete a.varName;let o=Object.create(null);return Object.assign(o,t.rules,dn(a),fn({...Jt,...e,body:n},a)),mn([{selector:t.iconSelector||`.icon`,rules:o}],a.format)}var gn=1e3,Z=new Map;function _n(e,t){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&e[n]===t[n])}function vn(e,t,n){if(n)return hn(e,{iconSelector:t,format:`compressed`,customise:n});let r=Z.get(t);if(r&&_n(r.icon,e))return r.css;let i=hn(e,{iconSelector:t,format:`compressed`});return!r&&Z.size>=gn&&Z.clear(),Z.set(t,{icon:{...e},css:i}),i}var yn=!1;function bn(e){if(yn)return;let t=JSON.parse(`[{"prefix":"lucide","icons":{"alert-circle":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"arrow-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v14m7-7l-7 7l-7-7\\"/>"},"arrow-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 19l-7-7l7-7m7 7H5\\"/>"},"arrow-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7l7 7l-7 7\\"/>"},"arrow-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m5 12l7-7l7 7m-7 7V5\\"/>"},"arrow-up-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21 16l-4 4l-4-4m4 4V4M3 8l4-4l4 4M7 4v16\\"/>"},"arrow-up-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M7 7h10v10M7 17L17 7\\"/>"},"book-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v16m8.001-2A2 2 0 0 0 22 17V5a2 2 0 0 0-1.999-2L16 3.002A5 5 0 0 0 12 5a5 5 0 0 0-4-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 1.999 2H8a5 5 0 0 1 4 2a5 5 0 0 1 4-2z\\"/>"},"bug":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 20v-9m2-4a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4zm.12-3.12L16 2\\"/><path d=\\"M21 21a4 4 0 0 0-3.81-4M21 5a4 4 0 0 1-3.55 3.97M22 13h-4M3 21a4 4 0 0 1 3.81-4M3 5a4 4 0 0 0 3.55 3.97M6 13H2M8 2l1.88 1.88M9 7.13V6a3 3 0 1 1 6 0v1.13\\"/></g>"},"calendar":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M8 2v3m8-3v3\\"/><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M3 9h18\\"/></g>"},"calendar-range":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M16 2v3M3 9h18M8 2v3m9 8h-6m2 4H7m0-4h.01M17 17h.01\\"/></g>"},"chart-gantt":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M10 6h8m-6 10h6M3 3v16a2 2 0 0 0 2 2h16M8 11h7\\"/>"},"check":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 6L9 17l-5-5\\"/>"},"chevron-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 9l6 6l6-6\\"/>"},"chevron-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m15 18l-6-6l6-6\\"/>"},"chevron-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m9 18l6-6l-6-6\\"/>"},"chevron-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m18 15l-6-6l-6 6\\"/>"},"chevrons-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m11 17l-5-5l5-5m7 10l-5-5l5-5\\"/>"},"chevrons-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 17l5-5l-5-5m7 10l5-5l-5-5\\"/>"},"circle-alert":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"circle-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"circle-dot":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/></g>"},"circle-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m15 9l-6 6m0-6l6 6\\"/></g>"},"copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"copy-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m12 15l2 2l4-4\\"/><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"ellipsis":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"19\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"5\\" cy=\\"12\\" r=\\"1\\"/></g>"},"eye":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/></g>"},"eye-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242\\"/><path d=\\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20\\"/></g>"},"file":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\"/><path d=\\"M14 2v5a1 1 0 0 0 1 1h5\\"/></g>"},"flag":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528\\"/>"},"folder":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\"/>"},"folder-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\\"/>"},"gauge":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 14l4-4M3.34 19a10 10 0 1 1 17.32 0\\"/>"},"git-branch":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M15 6a9 9 0 0 0-9 9V3\\"/><circle cx=\\"18\\" cy=\\"6\\" r=\\"3\\"/><circle cx=\\"6\\" cy=\\"18\\" r=\\"3\\"/></g>"},"grip-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"9\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"19\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"19\\" r=\\"1\\"/></g>"},"hash":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\\"/>"},"info":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 16v-4m0-4h.01\\"/></g>"},"layers":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z\\"/><path d=\\"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12\\"/><path d=\\"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17\\"/></g>"},"layout-grid":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"7\\" height=\\"7\\" x=\\"3\\" y=\\"3\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"14\\" y=\\"3\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"14\\" y=\\"14\\" rx=\\"1\\"/><rect width=\\"7\\" height=\\"7\\" x=\\"3\\" y=\\"14\\" rx=\\"1\\"/></g>"},"lightbulb":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\\"/>"},"list-checks":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4M3 7l2 2l4-4\\"/>"},"list-ordered":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02\\"/>"},"loader-circle":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M21 12a9 9 0 1 1-6.219-8.56\\"/>"},"map-pin":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\\"/><circle cx=\\"12\\" cy=\\"10\\" r=\\"3\\"/></g>"},"menu":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 5h16M4 12h16M4 19h16\\"/>"},"minus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14\\"/>"},"monitor":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"20\\" height=\\"14\\" x=\\"2\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M8 21h8m-4-4v4\\"/></g>"},"moon":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\\"/>"},"octagon-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 16h.01M12 8v4m3.312-10a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z\\"/>"},"panel-left-close":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m7-6l-3-3l3-3\\"/></g>"},"panel-left-open":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m5-12l3 3l-3 3\\"/></g>"},"plug-zap":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6l-2.3 2.3a2.4 2.4 0 0 0 0 3.4ZM2 22l3-3m2.5-5.5L10 11m.5 5.5L13 14m5-11l-4 4h6l-4 4\\"/>"},"plus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7v14\\"/>"},"rocket":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09\\"/><path d=\\"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z\\"/><path d=\\"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05\\"/></g>"},"rotate-ccw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5\\"/></g>"},"scale":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M12 3v18m7-13l3 8a5 5 0 0 1-6 0zV7\\"/><path d=\\"M3 7h1a17 17 0 0 0 8-2a17 17 0 0 0 8 2h1M5 8l3 8a5 5 0 0 1-6 0zV7m2 14h10\\"/></g>"},"search":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m21 21l-4.34-4.34\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/></g>"},"search-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m13.5 8.5l-5 5m0-5l5 5\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/><path d=\\"m21 21l-4.3-4.3\\"/></g>"},"signal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M2 20h.01M7 20v-4m5 4v-8m5 8V8m5-4v16\\"/>"},"square":{"width":24,"height":24,"body":"<rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" rx=\\"2\\"/>"},"star":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\\"/>"},"sun":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"4\\"/><path d=\\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\\"/></g>"},"target":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"6\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"2\\"/></g>"},"terminal":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 19h8M4 17l6-6l-6-6\\"/>"},"trending-down":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M16 17h6v-6\\"/><path d=\\"m22 17l-8.5-8.5l-5 5L2 7\\"/></g>"},"triangle-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\\"/>"},"upload":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\\"/>"},"wrench":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z\\"/>"},"x":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M18 6L6 18M6 6l12 12\\"/>"}}}]`);for(let n of t)for(let[t,r]of Object.entries(n.icons))e(n.prefix?n.prefix+`:`+t:t,r);yn=!0}var xn=45,Sn=new WeakMap;function Cn(e){if(!e)return[];let t=y(e),n=Sn.get(t);if(!n){let e=e=>[...e].sort((e,t)=>t.length-e.length);n=g(()=>e(_(t))),Sn.set(t,n)}return n.value}function wn(e,t){let n=e.startsWith(t.cssSelectorPrefix)?e.slice(t.cssSelectorPrefix.length):e,r=t.aliases?.[n]||n;if(!r.includes(`:`)){let e=Cn(t.collections).find(e=>r.charCodeAt(e.length)===xn&&r.startsWith(e));return e?e+`:`+r.slice(e.length+1):r}return r}async function Tn(e,t){if(!e)return null;bn(I);let n=L(e);if(n)return n;let r,i=mt(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null));return t>0?await Promise.race([i,new Promise(n=>{r=setTimeout(()=>{console.warn(`[Icon] loading icon \`${e}\` timed out after ${t}ms`),n()},t)})]).finally(()=>clearTimeout(r)):await i,L(e)}function En(e){let t=O().icon;return g(()=>wn(e(),t))}function Dn(e,t){if(e!==!1)return e===!0||e===null?t:e}function On(e,t,n){if(n){t.appendChild(e);return}let r=t.querySelector(`style, link[rel="stylesheet"]`);r?t.insertBefore(e,r):t.appendChild(e)}var Q;function kn(e){return e.replace(/([^\w-])/g,`\\$1`)}function An(){if(Q)return Q;Q=new Set;let e=e=>{if(e=e.replace(/^:where\((.*)\)$/,`$1`).trim(),e.startsWith(`.`))return e},t=n=>{if(n?.length)for(let r of n){r?.cssRules&&t(r.cssRules);let n=r?.selectorText;if(typeof n==`string`){let t=e(n);t&&Q.add(t)}}};if(typeof document<`u`)for(let e of document.styleSheets)try{t(e.cssRules||e.rules)}catch{}return Q}var jn=C({name:`NuxtIconCss`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){let t=E(),n=O().icon,r=g(()=>{if(!e.name)return``;let t=n.cssSelectorPrefix+e.name;return typeof e.customize==`function`?t+`--customized-`+Gt(e.customize.toString()):t});function i(e){if(!e)return;let n=L(e);if(n)return n;let r=t.payload?.data?.[e];if(r)return I(e,r),r}let a=g(()=>`.`+kn(r.value));function o(t,r=!0,i=a.value){n.cssWherePseudo&&(i=`:where(${i})`);let o=vn(t,i,Dn(e.customize,n.customize));return n.cssLayer&&r?`@layer ${n.cssLayer} { ${o} }`:o}{let t=An();async function r(e,r,i){if(t.has(i)||typeof document>`u`)return;let a=document.createElement(`style`);a.textContent=o(e,!0,i),On(a,document.head,n.cssLayer),t.add(i)}S(()=>e.name,e=>{let n=a.value;if(t.has(n))return;let o=i(e);o?r(o,e,n):Tn(e,-1).then(t=>{t&&r(t,e,n)}).catch(()=>null)},{immediate:!0})}return K(),()=>w(`span`,{class:[`iconify`,r.value]})}});function Mn(e,t={}){let n,r=!1,i=[],a,o,c=(t,n)=>{let i=Nn(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,c(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let l=t.leading&&!r;r||(r=!0,s(()=>{r=!1;let a=o??e;o=void 0;let s=t.leading?n:c(this,a);for(let e of i)e(s);i=[]})),l?(n=c(this,e),a(n)):i.push(a)})}}async function Nn(e,t,n){return await e.apply(t,n)}C({name:`ServerPlaceholder`,render(){return ee(`div`)}});var Pn=Symbol.for(`nuxt:client-only`);C({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=l(!1);a(()=>{r.value=!0});let i=te();return i&&(i._nuxtClientOnly=!0),v(Pn,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[c(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return w(i);let a=e.fallback||e.placeholder||``,o=ae(e.fallbackTag||e.placeholderTag,`span`);return ee(o,n,a)}}});var Fn=h({docsBase:f,reporters:p});function In(e={}){{function a(...a){let o=typeof a[a.length-1]==`string`?a.pop():void 0;Rn(a[0],a[1])&&a.unshift(o);let[c,l,f={}]=a,p=!1,m=u(c)||typeof c==`function`,h=m?g(()=>t(c)):{value:c};if(!h.value||typeof h.value!=`string`)throw Fn.NUXT_E3008();if(typeof l!=`function`)throw Fn.NUXT_E3009();let _=typeof e==`function`,v=E(),y=_?e(f):e;if(!_)for(let e in y)y[e]!==void 0&&f[e]===void 0&&(f[e]=y[e]);if(f.server??=!0,f.default??=Hn,f.getCachedData??=Un,f.lazy??=!1,f.immediate??=!0,f.deep??=i.deep,f.dedupe??=`cancel`,f.enabled??=!0,_)for(let e in y)y[e]!==void 0&&(f[e]=y[e]);v._asyncData[h.value];function b(){let e={cause:`initial`,dedupe:f.dedupe},t=v._asyncData[h.value];return t?._init?v._asyncDataPromises[h.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=f.getCachedData(h.value,v,{cause:`initial`}),v._asyncData[h.value]=Vn(v,h.value,l,f,e.cachedData),v._asyncData[h.value]._initialCachedData=e.cachedData),()=>v._asyncData[h.value].execute(e)}let x=b(),C=v._asyncData[h.value];C._deps++;let w=f.server!==!1&&v.payload.serverRendered,ee=()=>!1;{let e=te(),i=!!e||ee();if(w&&f.immediate&&K(),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;n(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),re(()=>t.splice(0,t.length))}let a=i&&(e?._nuxtClientOnly||ne(Pn,!1)),o=h.value in v.payload.data;w&&v.isHydrating&&(C.error.value||C.data.value!==void 0&&(o||C._initialCachedData!==void 0))?C.status.value=C.error.value?`error`:`success`:i&&(!a&&v.payload.serverRendered&&v.isHydrating&&(!w||o)||f.lazy)&&f.immediate?e?e._nuxtOnBeforeMountCbs.push(x):n(()=>{x()}):f.immediate&&C.status.value!==`success`&&x();function c(e){let t=v._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let g=d(),_=()=>{},y=m?S(h,(e,t)=>{if((e||t)&&e!==t){p=!0;let n=v._asyncData[t]?.data.value!==void 0,r=v._asyncDataPromises[t]!==void 0,i={cause:`initial`,dedupe:f.dedupe};if(!v._asyncData[e]?._init){let r=f.getCachedData(e,v,{cause:`initial`});i.cachedData=r;let a=t&&n&&r===void 0?v._asyncData[t].data.value:r;v._asyncData[e]=Vn(v,e,l,f,a),v._asyncData[e]._initialCachedData=r}v._asyncData[e]._deps++,t&&c(t),f._keyTriggersExecute!==!1&&(f.immediate||n||r)&&v._asyncData[e].execute(i),s(()=>{p=!1})}},{flush:`sync`}):_,b=f.watch?S(f.watch,()=>{p||v._asyncData[h.value]?._execute({cause:`watch`,dedupe:f.dedupe})}):_,T=u(f.enabled)||typeof f.enabled==`function`?S(()=>t(f.enabled),e=>{let t=v._asyncData[h.value];!e&&t&&v._asyncDataPromises[h.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete v._asyncDataPromises[h.value],t.status.value=`idle`)}):_;g&&r(()=>{y(),b(),T(),c(h.value)})}let T={data:$(()=>v._asyncData[h.value]?.data,!f.deep),pending:$(()=>v._asyncData[h.value]?.pending),status:$(()=>v._asyncData[h.value]?.status),error:$(()=>v._asyncData[h.value]?.error),refresh:(...e)=>v._asyncData[h.value]?._init?v._asyncData[h.value].execute(...e):b()(),execute:(...e)=>T.refresh(...e),clear:()=>{let e=v._asyncData[h.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}zn(v,h.value)}},D=Promise.resolve(f.lazy?void 0:v._asyncDataPromises[h.value]).then(()=>T);return Object.assign(D,T),Object.defineProperties(D,{then:{enumerable:!0,value:D.then.bind(D)},catch:{enumerable:!0,value:D.catch.bind(D)},finally:{enumerable:!0,value:D.finally.bind(D)}}),D}return a}}var Ln=In();function $(e,t=!1){let n=g({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}});return t&&(n.__v_isShallow=!0),n}function Rn(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function zn(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=T(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function Bn(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Vn(e,n,r,i,a){e.payload._errors[n]??=void 0;let s=i.getCachedData!==Un,c=r,u=i.deep?o:l,d=a!==void 0,f=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(n))&&await p.execute({cause:`refresh:hook`})}),p={data:u(d?a:i.default()),pending:g(()=>p.status.value===`pending`),error:b(e.payload._errors,n),status:l(`idle`),execute:(...r)=>{let[a,o=void 0]=r,s=a&&o===void 0&&typeof a==`object`?a:{};if(e._asyncDataPromises[n]&&(s.dedupe??i.dedupe)===`defer`)return e._asyncDataPromises[n];{let t=`cachedData`in s?s.cachedData:i.getCachedData(n,e,{cause:s.cause??`refresh:manual`});if(t!==void 0)return i.serialize!==!1&&(e.payload.data[n]=t),p.data.value=t,p.error.value=void 0,p.status.value=`success`,Promise.resolve(t)}if(t(i.enabled)===!1)return Promise.resolve(p.data.value);p._abortController&&p._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),p._abortController=new AbortController,p.status.value=`pending`;let l=new AbortController,u=new Promise((t,n)=>{try{let r=s.timeout??i.timeout,a=Wn([p._abortController?.signal,s?.signal],l.signal,r);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:l.signal});let o={signal:a},u=()=>Promise.resolve(c(e,o));if(i.middleware?.length)for(let e=i.middleware.length-1;e>=0;e--){let t=i.middleware[e],n=u;u=()=>Promise.resolve(t(n,o))}return u().then(t,n)}catch(e){n(e)}}).then(async t=>{if(e._asyncDataPromises[n]!==u)return;let r=t;i.transform&&(r=await i.transform(t)),i.pick&&(r=Bn(r,i.pick)),i.serialize!==!1&&(e.payload.data[n]=r),p.data.value=r,p.error.value=void 0,p.status.value=`success`}).catch(t=>{if(e._asyncDataPromises[n]!==u||p._abortController?.signal.aborted)return e._asyncDataPromises[n];if(typeof DOMException<`u`&&t instanceof DOMException&&t.name===`AbortError`)return p.status.value=`idle`,e._asyncDataPromises[n];p.error.value=D(t),p.data.value=T(i.default()),p.status.value=`error`}).finally(()=>{l.abort(),e._asyncDataPromises[n]===u&&delete e._asyncDataPromises[n]});return e._asyncDataPromises[n]=u,e._asyncDataPromises[n]},_execute:Mn((...e)=>p.execute(...e)),_default:i.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{f(),e._asyncData[n]===p&&(e._asyncData[n]?._init&&(e._asyncData[n]._init=!1),e._asyncDataPromises[n]&&(p._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[n],p.status.value===`pending`&&(p.status.value=`idle`)),s||m(()=>{e._asyncData[n]?._init||(zn(e,n),p.execute=()=>Promise.resolve())}))}};return p}var Hn=()=>void 0,Un=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function Wn(e,t,n){let r=e.filter(e=>!!e);if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var Gn=C({name:`NuxtIconSvg`,props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=E(),r=O().icon,i=En(()=>e.name),a=`i-`+i.value;if(i.value){K();{let e=n.payload.data[a];e?I(i.value,e):bn(I)}}return()=>w(Pt,{icon:i.value,ssr:!0,customise:Dn(e.customize,r.customize)},t)}}),Kn=e({default:()=>qn}),qn=C({name:`NuxtIcon`,props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){let n=E(),r=O().icon,i=En(()=>e.name),a=g(()=>n.vueApp?.component(i.value)||((e.mode||r.mode)===`svg`?Gn:jn)),o=g(()=>{let t=e.size||r.size;return t?{fontSize:Number.isNaN(+t)?t:t+`px`}:null});return()=>w(a.value,{...r.attrs,name:i.value,class:r.class,style:o.value,customize:e.customize},t)}});export{zt as a,Ft as c,O as d,se as f,Fn as i,Be as l,Kn as n,q as o,Ln as r,K as s,qn as t,ht as u};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{$ as e,Bn as t,Dt as n,Er as r,Ft as i,G as a,Gn as o,Jn as s,Jt as c,K as l,L as u,N as d,Or as f,U as p,Un as m,Vt as h,W as g,Zn as _,Zt as v,bn as y,dn as ee,et as b,gn as x,hn as S,nt as C,q as w,qt as T,tr as E,un as D,wr as O,zt as k}from"./DuWpPgcw.js";import{tn as A}from"./Brv_Bdja.js";import{d as j}from"./BNG0e--z.js";import{E as M,J as N,K as P,M as te,N as F,R as I,V as L,_ as R,c as z,j as ne,r as B,s as V,t as H,v as U,x as W}from"./OHMTu69O.js";import{r as re,t as ie}from"./D1zk137d.js";import{t as G}from"./DcGinDT7.js";import{t as K}from"./Cxemkb8I.js";import{t as q}from"./BeTHElHy.js";import{n as J}from"./C218H_dA.js";import{_ as Y,d as ae,f as oe,g as X,h as se,m as Z,p as ce}from"#entry";var Q=C({__name:`ToastAnnounceExclude`,props:{altText:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){return(t,n)=>(h(),a(E(U),{as:e.as,"as-child":e.asChild,"data-reka-toast-announce-exclude":``,"data-reka-toast-announce-alt":e.altText||void 0},{default:y(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-reka-toast-announce-alt`]))}}),le=C({__name:`ToastAnnounce`,setup(n){let r=X(),i=P(1e3),s=o(!1),u=0,d=0;return I&&(u=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{s.value=!0})}),t(()=>{cancelAnimationFrame(u),cancelAnimationFrame(d)})),(t,n)=>E(i)||s.value?(h(),a(E(Y),{key:0,feature:`fully-hidden`},{default:y(()=>[e(f(E(r).label.value)+` `,1),c(t.$slots,`default`)]),_:3})):l(`v-if`,!0)}}),[ue,de]=N(`ToastPositioner`),[$,fe]=N(`ToastRoot`),pe=C({inheritAttrs:!1,__name:`ToastRootImpl`,props:{type:{type:String,required:!1},open:{type:Boolean,required:!1,default:!1},duration:{type:Number,required:!1},toast:{type:Object,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`close`,`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`],setup(t,{emit:r}){let g=t,v=r,{forwardRef:ee,currentElement:C}=W(),{CollectionItem:D}=ie(),O=X(),j=o(null),N=o(null),P=p(()=>typeof g.duration==`number`?g.duration:O.duration.value),F=o(0),L=o(P.value),R=o(0),z=o(P.value),B=ne(()=>{let e=Date.now()-F.value;z.value=Math.max(L.value-e,0)},{fpsLimit:60});function V(e){e<=0||e===1/0||I&&(window.clearTimeout(R.value),F.value=Date.now(),R.value=window.setTimeout(H,e))}function H(e){let t=e?.pointerType===``;C.value?.contains(re())&&t&&O.viewport.value?.focus(),t&&(O.isClosePausedRef.value=!1),v(`close`)}let G=ue(null),K=s(null);S([C,()=>g.toast?.updateKey],([e])=>{K.value=e?ce(e):null},{flush:`post`,immediate:!0});let q=m({seq:0,height:0,open:g.open}),J=p(()=>O.getToastStack(q));function Y(){let e=C.value;if(!e)return;let t=e.style.height;e.style.height=`auto`,q.height=e.offsetHeight,e.style.height=t}if(te(C,Y),S(()=>g.toast?.updateKey,Y,{flush:`post`}),S(()=>g.open,(e,t)=>{q.open=e,e&&!t&&O.reopenToast(q)}),g.type&&![`foreground`,`background`].includes(g.type))throw Error("Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.");x(e=>{let t=O.viewport.value;if(t){let n=()=>{V(L.value),B.resume(),v(`resume`)},r=()=>{let e=Date.now()-F.value;L.value-=e,window.clearTimeout(R.value),B.pause(),v(`pause`)};t.addEventListener(ae,r),t.addEventListener(oe,n),e(()=>{t.removeEventListener(ae,r),t.removeEventListener(oe,n)})}});let Q=p(()=>g.toast?O.toastStore.getRestartKey(g.toast.id):0);S([()=>g.open,P,Q],()=>{L.value=P.value,g.open&&!O.isClosePausedRef.value&&V(P.value)},{immediate:!0}),M(`Escape`,e=>{v(`escapeKeyDown`,e),e.defaultPrevented||(O.isFocusedToastEscapeKeyDownRef.value=!0,H())});let de;return i(()=>{O.onToastAdd(),de=O.registerToast(q),Y()}),k(()=>{O.onToastRemove(),de?.()}),fe({onClose:H,toast:_(g,`toast`)}),(r,i)=>(h(),w(d,null,[K.value?(h(),a(le,{key:t.toast?.updateKey??0,role:`alert`,"aria-live":t.type===`foreground`?`assertive`:`polite`},{default:y(()=>[l(`
|
|
2
|
+
Render each chunk as its own text node so screen readers get the
|
|
3
|
+
natural pause break between nodes (see comment in utils.ts).
|
|
4
|
+
Interpolating the array directly with \`{{ announceTextContent }}\`
|
|
5
|
+
would route through Vue's \`toDisplayString\`, which JSON-stringifies
|
|
6
|
+
arrays — the live region would then announce literal \`[\`, quotes
|
|
7
|
+
and commas instead of the toast title and description.
|
|
8
|
+
`),(h(!0),w(d,null,T(K.value,(t,n)=>(h(),w(d,{key:n},[e(f(t),1)],64))),128))]),_:1},8,[`aria-live`])):l(`v-if`,!0),E(O).viewport.value||E(G)?(h(),a(u,{key:1,to:E(O).viewport.value??`body`,disabled:!!E(G)},[b(E(D),null,{default:y(()=>[b(E(U),n({ref:E(ee),tabindex:`0`},r.$attrs,{as:t.as,"as-child":t.asChild,"data-state":t.open?`open`:`closed`,"data-swipe-direction":E(O).swipeDirection.value,"data-status":t.toast?.status,"data-expanded":E(O).expanded.value?``:void 0,"data-limited":J.value.limited?``:void 0,inert:J.value.limited||void 0,style:{...E(O).disableSwipe.value?void 0:{userSelect:`none`,touchAction:`none`},"--reka-toast-index":J.value.index,"--reka-toast-offset-y":`${J.value.offsetY}px`,"--reka-toast-height":q.height?`${q.height}px`:void 0},onPointerdown:i[0]||=A(e=>{E(O).disableSwipe.value||(j.value={x:e.clientX,y:e.clientY})},[`left`]),onPointermove:i[1]||=e=>{if(E(O).disableSwipe.value||!j.value)return;let t=e.clientX-j.value.x,n=e.clientY-j.value.y,r=!!N.value,i=[`left`,`right`].includes(E(O).swipeDirection.value),a=[`left`,`up`].includes(E(O).swipeDirection.value)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},u={originalEvent:e,delta:l};r?(N.value=l,E(Z)(E(`toast.swipeMove`),e=>v(`swipeMove`,e),u)):E(se)(l,E(O).swipeDirection.value,c)?(N.value=l,E(Z)(E(`toast.swipeStart`),e=>v(`swipeStart`,e),u),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(j.value=null)},onPointerup:i[2]||=e=>{if(E(O).disableSwipe.value)return;let t=N.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),N.value=null,j.value=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};E(se)(t,E(O).swipeDirection.value,E(O).swipeThreshold.value)?E(Z)(E(`toast.swipeEnd`),e=>v(`swipeEnd`,e),r):E(Z)(E(`toast.swipeCancel`),e=>v(`swipeCancel`,e),r),n?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}}}),{default:y(()=>[c(r.$slots,`default`,{remaining:z.value,duration:P.value})]),_:3},16,[`as`,`as-child`,`data-state`,`data-swipe-direction`,`data-status`,`data-expanded`,`data-limited`,`inert`,`style`])]),_:3})],8,[`to`,`disabled`])):l(`v-if`,!0)],64))}}),me=C({__name:`ToastAction`,props:{altText:{type:String,required:!1},closeOnClick:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(t){let n=t,r=$(),{forwardRef:i}=W(),o=D(),s=p(()=>r.toast.value?.actionProps),u=p(()=>!!o.default||!r.toast.value||!!s.value),d=p(()=>n.altText??s.value?.altText);if(u.value&&!d.value)throw Error("Missing prop `altText` expected on `ToastAction`");function m(e){s.value?.onClick?.(e),(s.value?.closeOnClick??n.closeOnClick)&&r.onClose(e)}return(n,r)=>u.value&&d.value?(h(),a(Q,{key:0,"alt-text":d.value,"as-child":``},{default:y(()=>[b(E(U),{ref:E(i),as:t.as,"as-child":t.asChild,type:t.as===`button`?`button`:void 0,onClick:m},{default:y(()=>[c(n.$slots,`default`,{},()=>[e(f(s.value?.label),1)])]),_:3},8,[`as`,`as-child`,`type`])]),_:3},8,[`alt-text`])):l(`v-if`,!0)}}),he=C({__name:`ToastClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,r=$(),{forwardRef:i}=W();return(o,s)=>(h(),a(Q,{"as-child":``},{default:y(()=>[b(E(U),n(t,{ref:E(i),type:e.as===`button`?`button`:void 0,onClick:E(r).onClose}),{default:y(()=>[c(o.$slots,`default`)]),_:3},16,[`type`,`onClick`])]),_:3}))}}),ge=C({__name:`ToastDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let i=t;W();let o=$(null);return(t,s)=>t.$slots.default||!E(o)?.toast.value||E(o).toast.value.description?(h(),a(E(U),r(n({key:0},i)),{default:y(()=>[c(t.$slots,`default`,{},()=>[e(f(E(o)?.toast.value?.description),1)])]),_:3},16)):l(`v-if`,!0)}}),_e=C({__name:`ToastRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:`foreground`},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},toast:{type:Object,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(e,{emit:t}){let r=e,i=t,{forwardRef:s}=W(),l=F(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0}),u=X(),d=p(()=>r.toast?r.toast.open:l.value),f=p(()=>r.toast?.type??r.type),m=p(()=>r.toast?.status===`loading`?1/0:r.toast?.duration??r.duration);function g(){r.toast?(u.toastStore.close(r.toast.id),i(`update:open`,!1)):l.value=!1}let _=o(!1);return S([()=>r.toast,_],([e,t])=>{e&&!e.open&&!t&&u.toastStore.remove(e.id)},{immediate:!0}),(t,r)=>(h(),a(E(K),{present:e.forceMount||d.value},{default:y(()=>[b(pe,n({ref:E(s),open:d.value,type:f.value,as:e.as,"as-child":e.asChild,duration:m.value,toast:e.toast},t.$attrs,{onVnodeMounted:r[0]||=e=>_.value=!0,onVnodeUnmounted:r[1]||=e=>_.value=!1,onClose:g,onPause:r[2]||=e=>i(`pause`),onResume:r[3]||=e=>i(`resume`),onEscapeKeyDown:r[4]||=e=>i(`escapeKeyDown`,e),onSwipeStart:r[5]||=e=>{i(`swipeStart`,e),e.defaultPrevented||e.currentTarget.setAttribute(`data-swipe`,`start`)},onSwipeMove:r[6]||=e=>{if(i(`swipeMove`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`move`),r.style.setProperty(`--reka-toast-swipe-move-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-move-y`,`${n}px`)}},onSwipeCancel:r[7]||=e=>{if(i(`swipeCancel`,e),!e.defaultPrevented){let t=e.currentTarget;t.setAttribute(`data-swipe`,`cancel`),t.style.removeProperty(`--reka-toast-swipe-move-x`),t.style.removeProperty(`--reka-toast-swipe-move-y`),t.style.removeProperty(`--reka-toast-swipe-end-x`),t.style.removeProperty(`--reka-toast-swipe-end-y`)}},onSwipeEnd:r[8]||=e=>{if(i(`swipeEnd`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`end`),r.style.removeProperty(`--reka-toast-swipe-move-x`),r.style.removeProperty(`--reka-toast-swipe-move-y`),r.style.setProperty(`--reka-toast-swipe-end-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-end-y`,`${n}px`),g()}}}),{default:y(({remaining:e,duration:n})=>[c(t.$slots,`default`,{remaining:e,duration:n,open:d.value})]),_:3},16,[`open`,`type`,`as`,`as-child`,`duration`,`toast`])]),_:3},8,[`present`]))}}),ve=C({__name:`ToastTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let i=t;W();let o=$(null);return(t,s)=>t.$slots.default||!E(o)?.toast.value||E(o).toast.value.title?(h(),a(E(U),r(n({key:0},i)),{default:y(()=>[c(t.$slots,`default`,{},()=>[e(f(E(o)?.toast.value?.title),1)])]),_:3},16)):l(`v-if`,!0)}}),ye={slots:{root:`relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5`,wrapper:`w-0 flex-1 flex flex-col`,title:`text-sm font-medium text-highlighted`,description:`text-sm text-muted`,icon:`shrink-0 size-5`,avatar:`shrink-0`,avatarSize:`2xl`,actions:`flex gap-1.5 shrink-0`,progress:`absolute inset-x-0 bottom-0`,close:`p-0`},variants:{color:{primary:{root:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`,icon:`text-primary`},secondary:{root:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`,icon:`text-secondary`},success:{root:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`,icon:`text-success`},info:{root:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`,icon:`text-info`},warning:{root:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`,icon:`text-warning`},error:{root:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`,icon:`text-error`},neutral:{root:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`,icon:`text-highlighted`}},orientation:{horizontal:{root:`items-center`,actions:`items-center`},vertical:{root:`items-start`,actions:`items-start mt-2.5`}},title:{true:{description:`mt-1`}}},defaultVariants:{color:`primary`}},be={__name:`UToast`,props:{as:{type:null,required:!1},title:{type:[String,Object,Function],required:!1},description:{type:[String,Object,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`vertical`},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},actions:{type:Array,required:!1},duration:{type:Number,required:!1},progress:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},type:{type:String,required:!1}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(t,{expose:r,emit:s}){let u=t,m=s,_=D(),x=z(`toast`,u),{t:S}=J(),C=j(),k=V(L(x,`as`,`defaultOpen`,`open`,`duration`,`type`),m),M=p(()=>B({extend:ye,...C.ui?.toast||{}})({color:x.color,orientation:x.orientation,title:!!x.title||!!_.title})),N=ee(`rootRef`),P=o(0);return i(()=>{N.value?.$el?.getBoundingClientRect&&(P.value=N.value.$el.getBoundingClientRect().height)}),r({height:P}),(t,r)=>(h(),a(E(_e),n({ref_key:`rootRef`,ref:N},E(k),{"data-orientation":E(x).orientation,"data-slot":`root`,class:M.value.root({class:[E(x).ui?.root,E(x).class]}),style:{"--height":P.value}}),{default:y(({remaining:i,duration:o,open:s})=>[c(t.$slots,`leading`,{ui:M.value},()=>[E(x).avatar?(h(),a(H,n({key:0,size:E(x).ui?.avatarSize||M.value.avatarSize()},E(x).avatar,{"data-slot":`avatar`,class:M.value.avatar({class:E(x).ui?.avatar})}),null,16,[`size`,`class`])):E(x).icon?(h(),a(R,{key:1,name:E(x).icon,"data-slot":`icon`,class:O(M.value.icon({class:E(x).ui?.icon}))},null,8,[`name`,`class`])):l(``,!0)]),g(`div`,{"data-slot":`wrapper`,class:O(M.value.wrapper({class:E(x).ui?.wrapper}))},[E(x).title||_.title?(h(),a(E(ve),{key:0,"data-slot":`title`,class:O(M.value.title({class:E(x).ui?.title}))},{default:y(()=>[c(t.$slots,`title`,{},()=>[typeof E(x).title==`function`?(h(),a(v(E(x).title()),{key:0})):typeof E(x).title==`object`?(h(),a(v(E(x).title),{key:1})):(h(),w(d,{key:2},[e(f(E(x).title),1)],64))])]),_:3},8,[`class`])):l(``,!0),E(x).description||_.description?(h(),a(E(ge),{key:1,"data-slot":`description`,class:O(M.value.description({class:E(x).ui?.description}))},{default:y(()=>[c(t.$slots,`description`,{},()=>[typeof E(x).description==`function`?(h(),a(v(E(x).description()),{key:0})):typeof E(x).description==`object`?(h(),a(v(E(x).description),{key:1})):(h(),w(d,{key:2},[e(f(E(x).description),1)],64))])]),_:3},8,[`class`])):l(``,!0),E(x).orientation===`vertical`&&(E(x).actions?.length||_.actions)?(h(),w(`div`,{key:2,"data-slot":`actions`,class:O(M.value.actions({class:E(x).ui?.actions}))},[c(t.$slots,`actions`,{},()=>[(h(!0),w(d,null,T(E(x).actions,({closeOnClick:e,...t},i)=>(h(),a(E(me),{key:i,"alt-text":t.label||`Action`,"close-on-click":e,"as-child":``,onClick:r[0]||=A(()=>{},[`stop`])},{default:y(()=>[b(q,n({size:`xs`,color:E(x).color},{ref_for:!0},t),null,16,[`color`])]),_:2},1032,[`alt-text`,`close-on-click`]))),128))])],2)):l(``,!0)],2),E(x).orientation===`horizontal`&&(E(x).actions?.length||_.actions)||E(x).close?(h(),w(`div`,{key:0,"data-slot":`actions`,class:O(M.value.actions({class:E(x).ui?.actions,orientation:`horizontal`}))},[E(x).orientation===`horizontal`&&(E(x).actions?.length||_.actions)?c(t.$slots,`actions`,{},()=>[(h(!0),w(d,null,T(E(x).actions,({closeOnClick:e,...t},i)=>(h(),a(E(me),{key:i,"alt-text":t.label||`Action`,"close-on-click":e,"as-child":``,onClick:r[1]||=A(()=>{},[`stop`])},{default:y(()=>[b(q,n({size:`xs`,color:E(x).color},{ref_for:!0},t),null,16,[`color`])]),_:2},1032,[`alt-text`,`close-on-click`]))),128))],void 0,0):l(``,!0),E(x).close||_.close?(h(),a(E(he),{key:1,"as-child":``},{default:y(()=>[c(t.$slots,`close`,{ui:M.value},()=>[E(x).close?(h(),a(q,n({key:0,icon:E(x).closeIcon||E(C).ui.icons.close,color:`neutral`,variant:`link`,"aria-label":E(S)(`toast.close`)},typeof E(x).close==`object`?E(x).close:{},{"data-slot":`close`,class:M.value.close({class:E(x).ui?.close}),onClick:r[2]||=A(()=>{},[`stop`])}),null,16,[`icon`,`aria-label`,`class`])):l(``,!0)])]),_:3})):l(``,!0)],2)):l(``,!0),E(x).progress&&s&&i>0&&o?(h(),a(G,n({key:1,"model-value":i/o*100,color:E(x).color},typeof E(x).progress==`object`?E(x).progress:{},{size:`sm`,"data-slot":`progress`,class:M.value.progress({class:E(x).ui?.progress})}),null,16,[`model-value`,`color`,`class`])):l(``,!0)]),_:3},16,[`data-orientation`,`class`,`style`]))}};export{be as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,G as t,Gn as n,K as r,Ln as i,N as a,Or as o,U as s,Vt as c,W as l,bn as u,et as d,nt as f,q as p,qt as m,tr as h}from"./DuWpPgcw.js";import{t as g}from"./DbghXjRj.js";import{t as ee}from"./BrhpXuqy.js";import{t as _}from"./DcGinDT7.js";import{t as v}from"./DVUil5cj.js";import{a as y,n as b,t as x}from"#entry";import{t as S}from"./C6_z9Ljo.js";var te={class:`head`},ne={class:`sub`},re={class:`stats`},ie={class:`filters`},C={class:`overall`},w={class:`lanes`},T={class:`lane-head`},E={class:`count`},D={class:`pts`},ae={class:`row`},oe={class:`story-title`},O={class:`row meta`},k={class:`row tags`},A={key:0,class:`lane-empty`},j=x(f({__name:`index`,setup(f){let{stories:x,epics:j,states:M,progress:N,milestoneOfStory:P,pointsOf:F,milestones:I,STATE_LABEL:L,STATE_COLOR:R,TYPE_LABEL:z,TYPE_COLOR:B,TYPE_ICON:V,PRIORITY_COLOR:H,SCOPE_LABEL:U,wsjf:W,blockedStories:G}=b(),K=n(`all`),q=n(`all`),J=n(`rank`),se=s(()=>[{label:`全部史诗`,value:`all`,icon:`i-lucide-layers`},...j.value.map(e=>({label:`${e.id} ${e.title}`,value:e.id,icon:`i-lucide-layer-group`}))]),ce=s(()=>[{label:`全部里程碑`,value:`all`,icon:`i-lucide-flag`},...I.value.map(e=>({label:`${e.id} ${e.title}`,value:e.id,icon:e.kind===`mvp`?`i-lucide-star`:`i-lucide-map-pin`}))]),le=[{label:`默认(backlog 顺序)`,value:`rank`,icon:`i-lucide-list-ordered`},{label:`按优先级 P0 → P3`,value:`priority`,icon:`i-lucide-alert-circle`},{label:`按 WSJF(价值/点数)`,value:`wsjf`,icon:`i-lucide-scale`},{label:`按点数`,value:`points`,icon:`i-lucide-signal`}],Y={P0:0,P1:1,P2:2,P3:3},X=s(()=>{let e=x.value.filter(e=>!(K.value!==`all`&&e.epicId!==K.value||q.value!==`all`&&!P(e.id).some(e=>e.id===q.value)));return J.value===`priority`?[...e].sort((e,t)=>(Y[e.priority]??9)-(Y[t.priority]??9)||W(t)-W(e)):J.value===`wsjf`?[...e].sort((e,t)=>W(t)-W(e)):J.value===`points`?[...e].sort((e,t)=>t.points-e.points):e}),Z=e=>X.value.filter(t=>t.status===e),ue=e=>F(Z(e).map(e=>e.id)),Q=s(()=>{let e=X.value,t=e.filter(e=>e.status===`done`);return{count:e.length,points:e.reduce((e,t)=>e+t.points,0),donePoints:t.reduce((e,t)=>e+t.points,0),tasks:e.reduce((e,t)=>e+(t.tasks?.length??0),0),tasksDone:e.reduce((e,t)=>e+(t.tasks??[]).filter(e=>e.status===`done`).length,0),bugs:e.filter(e=>e.type===`bug`).length,debt:e.filter(e=>e.type===`debt`).length,scope:e.filter(e=>e.scopeChange).length}}),$=s(()=>Q.value.points?Math.round(Q.value.donePoints/Q.value.points*100):0);return(n,s)=>{let f=y,b=ee,x=_,j=v,F=S,I=g;return c(),p(a,null,[l(`div`,te,[l(`div`,null,[s[3]||=l(`h1`,{class:`title`},`看板`,-1),l(`p`,ne,o(h(Q).count)+` 个故事 · `+o(h(Q).points)+` 点 · 任务 `+o(h(Q).tasksDone)+`/`+o(h(Q).tasks)+` 完成 · 已完成 `+o(h(Q).donePoints)+` 点 `,1),l(`div`,re,[d(f,{color:`error`,variant:`subtle`,size:`sm`,icon:`i-lucide-bug`},{default:u(()=>[e(`缺陷 `+o(h(Q).bugs),1)]),_:1}),d(f,{color:`neutral`,variant:`subtle`,size:`sm`,icon:`i-lucide-wrench`},{default:u(()=>[e(`技术债 `+o(h(Q).debt),1)]),_:1}),d(f,{color:`warning`,variant:`subtle`,size:`sm`,icon:`i-lucide-octagon-alert`},{default:u(()=>[e(` 阻塞 `+o(h(G).length),1)]),_:1}),d(f,{color:`info`,variant:`subtle`,size:`sm`,icon:`i-lucide-git-branch`},{default:u(()=>[e(` 范围变更 `+o(h(Q).scope),1)]),_:1})])]),l(`div`,ie,[d(b,{modelValue:h(K),"onUpdate:modelValue":s[0]||=e=>i(K)?K.value=e:null,items:h(se),"value-key":`value`,icon:`i-lucide-layers`,size:`sm`,class:`w-52`,"search-input":!1},null,8,[`modelValue`,`items`]),d(b,{modelValue:h(q),"onUpdate:modelValue":s[1]||=e=>i(q)?q.value=e:null,items:h(ce),"value-key":`value`,icon:`i-lucide-flag`,size:`sm`,class:`w-52`,"search-input":!1},null,8,[`modelValue`,`items`]),d(b,{modelValue:h(J),"onUpdate:modelValue":s[2]||=e=>i(J)?J.value=e:null,items:le,"value-key":`value`,icon:`i-lucide-arrow-up-down`,size:`sm`,class:`w-56`,"search-input":!1},null,8,[`modelValue`])])]),l(`div`,C,[s[4]||=l(`span`,{class:`overall-label`},`完成度`,-1),d(x,{"model-value":h($),max:100,color:`primary`,size:`sm`,class:`overall-bar`},null,8,[`model-value`]),d(f,{color:`primary`,variant:`soft`,size:`sm`},{default:u(()=>[e(o(h($))+`%`,1)]),_:1})]),l(`div`,w,[(c(!0),p(a,null,m(h(M),n=>(c(),p(`section`,{key:n,class:`lane`},[l(`header`,T,[d(f,{color:h(R)[n],variant:`soft`,size:`sm`},{default:u(()=>[e(o(h(L)[n]),1)]),_:2},1032,[`color`]),l(`span`,E,o(Z(n).length),1),l(`span`,D,o(ue(n))+` 点`,1)]),(c(!0),p(a,null,m(Z(n),n=>(c(),t(I,{key:n.id,to:`/story/${n.id}`,class:`card-link`},{default:u(()=>[d(F,{class:`story`,ui:{body:`p-3 sm:p-3`}},{default:u(()=>[l(`div`,ae,[d(f,{color:`neutral`,variant:`outline`,size:`sm`,class:`mono`},{default:u(()=>[e(o(n.id),1)]),_:2},1024),d(f,{color:h(B)[n.type],variant:`subtle`,size:`sm`,icon:h(V)[n.type]},{default:u(()=>[e(o(h(z)[n.type]),1)]),_:2},1032,[`color`,`icon`]),d(f,{color:h(H)[n.priority],variant:`soft`,size:`sm`},{default:u(()=>[e(o(n.priority),1)]),_:2},1032,[`color`]),n.blocked?(c(),t(j,{key:0,text:`阻塞中:${n.blocked.reason}(自 ${n.blocked.since})`},{default:u(()=>[d(f,{color:`error`,variant:`solid`,size:`sm`,icon:`i-lucide-octagon-alert`},{default:u(()=>[...s[5]||=[e(`阻塞`,-1)]]),_:1})]),_:1},8,[`text`])):r(``,!0)]),l(`b`,oe,o(n.title),1),l(`div`,O,[l(`span`,null,o(n.points)+` 点`,1),s[6]||=l(`span`,{class:`dot`},`·`,-1),l(`span`,null,`WSJF `+o(h(W)(n)),1),s[7]||=l(`span`,{class:`dot`},`·`,-1),l(`span`,null,`任务 `+o(h(N)(n).done)+`/`+o(h(N)(n).total),1)]),l(`div`,k,[d(f,{color:`neutral`,variant:`subtle`,size:`sm`},{default:u(()=>[e(o(n.epicId),1)]),_:2},1024),n.sprintId?(c(),t(f,{key:0,color:`info`,variant:`subtle`,size:`sm`,class:`mono`},{default:u(()=>[e(o(n.sprintId),1)]),_:2},1024)):r(``,!0),(c(!0),p(a,null,m(h(P)(n.id).filter(e=>e.kind===`mvp`),n=>(c(),t(j,{key:n.id,text:`${n.id} ${n.title} · ${n.criteria}`},{default:u(()=>[d(f,{color:`warning`,variant:`solid`,size:`sm`,icon:`i-lucide-star`},{default:u(()=>[...s[8]||=[e(`MVP`,-1)]]),_:1})]),_:1},8,[`text`]))),128)),n.scopeChange?(c(),t(j,{key:1,text:`${h(U)[n.scopeChange.kind]}(${n.scopeChange.at}):${n.scopeChange.reason}`},{default:u(()=>[d(f,{color:`info`,variant:`soft`,size:`sm`,icon:`i-lucide-git-branch`},{default:u(()=>[e(o(h(U)[n.scopeChange.kind]),1)]),_:2},1024)]),_:2},1032,[`text`])):r(``,!0)]),d(x,{"model-value":h(N)(n).pct,max:100,size:`sm`,color:`primary`,class:`mt-2 story-bar`},null,8,[`model-value`])]),_:2},1024)]),_:2},1032,[`to`]))),128)),Z(n).length?r(``,!0):(c(),p(`p`,A,`空`))]))),128))])],64)}}}),[[`__scopeId`,`data-v-3b427525`]]);export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bn as e,Dt as t,Er as n,Ft as r,G as i,Gn as a,Jt as o,K as s,Mn as c,Or as l,U as u,Ut as d,Vt as f,bn as p,et as m,ft as h,jt as g,q as _,tr as v,un as y,ut as ee,v as b,wr as x,xt as S}from"./DuWpPgcw.js";import{ct as C,t as w,xt as T,yt as E}from"./Brv_Bdja.js";import{t as D}from"./DbghXjRj.js";import{a as O,d as te,o as k}from"./BNG0e--z.js";import{B as A,G as j,_ as M,a as N,b as P,c as F,g as I,h as L,o as R,r as z,s as B,t as V,v as ne,y as re}from"./OHMTu69O.js";var H=`__proto__`;function ie(e,t){let n=[];return U(e,t,``,n),n}function U(e,t,n,r){if(e===t)return;let i=typeof e!=`object`||!e,a=typeof t!=`object`||!t;if(!i&&!a){let i=W(e),a=W(t);for(let[e,t]of i){let i=n?`${n}.${e}`:e;a.has(e)?U(t,a.get(e),i,r):r.push(new Y(i,`removed`,void 0,q(t,i)))}for(let[e,t]of a){if(i.has(e))continue;let a=n?`${n}.${e}`:e;r.push(new Y(a,`added`,q(t,a)))}return}if(G(e,i)||G(t,a))return;let o=K(e,n,i),s=K(t,n,a);o.hash!==s.hash&&r.push(new Y(n,`changed`,s,o))}function W(e){let t=new Map;for(let n in e)n!==H&&t.set(n,e[n]);return t}function G(e,t){if(t)return!1;for(let t in e)if(t!==H)return!0;return!1}function K(e,t,n){return n?new X(t,e,J(e)):new X(t,e,`{}`,Object.create(null))}function q(e,t=``){if(typeof e!=`object`||!e)return new X(t,e,J(e));let n=Object.create(null),r=[];for(let i in e){if(i===H)continue;let a=q(e[i],t?`${t}.${i}`:i);n[i]=a,r.push(a.hash)}return new X(t,e,`{${r.join(`:`)}}`,n)}function J(e){switch(typeof e){case`string`:return`'${e}'`;case`number`:case`boolean`:return``+e;case`bigint`:return`${e}n`;default:return k(e)}}var Y=class{key;type;newValue;oldValue;constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue?.toString()}\``}}},X=class{key;value;hash;props;constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}},ae=Symbol(`nuxt-ui.form-options`),oe=Symbol(`nuxt-ui.form-events`),se=Symbol(`nuxt-ui.form-field`),ce=Symbol(`nuxt-ui.input-id`),le=Symbol(`nuxt-ui.form-loading`);function ue(t,n){let r=S(ae,void 0),i=S(oe,void 0),a=S(se,void 0),o=S(ce,void 0);d(se,void 0),a&&o&&(n?.bind===!1?o.value=void 0:t?.id&&(o.value=t?.id));function s(e,t,n){i&&a&&t&&i.emit({type:e,name:t,...n})}function l(){s(`blur`,a?.value.name)}function f(){s(`focus`,a?.value.name)}function p(){s(`change`,a?.value.name)}let m=!1;c()&&e(()=>{m=!0});let h=j(()=>{m||s(`input`,a?.value.name,{eager:!n?.deferInputValidation||a?.value.eagerValidation,track:!1})},a?.value.validateOnInputDelay??r?.value.validateOnInputDelay??0);function g(){return s(`input`,a?.value.name,{validate:!1}),h()}return{id:u(()=>t?.id??o?.value),labelId:u(()=>a?.value.labelId),name:u(()=>t?.name??a?.value.name),size:u(()=>t?.size??a?.value.size),color:u(()=>a?.value.error?`error`:t?.color),highlight:u(()=>a?.value.error?!0:t?.highlight||void 0),disabled:u(()=>r?.value.disabled||t?.disabled||void 0),emitFormBlur:l,emitFormInput:g,emitFormChange:p,emitFormFocus:f,ariaAttrs:u(()=>{if(!a?.value)return;let e=[`error`,`hint`,`description`,`help`].filter(e=>a?.value?.[e]).map(e=>`${a?.value.ariaId}-${e}`)||[],t={"aria-invalid":!!a?.value.error};return e.length>0&&(t[`aria-describedby`]=e.join(` `)),t})}}var de=new Set(`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.locale.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`));function fe(e){let t={};for(let n of Object.keys(e))(de.has(n)||n.startsWith(`aria-`)||n.startsWith(`data-`))&&(t[n]=e[n]);return t}function pe(e,t){let n=ie(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set),r=Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),i=Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e)));return O(r,i)}function me(e){if(typeof window<`u`)return typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e):setTimeout(e,1)}function he(e){typeof window<`u`&&e!==void 0&&(typeof window.cancelIdleCallback==`function`?window.cancelIdleCallback(e):clearTimeout(e))}var Z=null,Q=new Map;function ge(e,t){return typeof IntersectionObserver>`u`?()=>{}:(Z||=new IntersectionObserver(e=>{for(let t of e){let e=Q.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),Q.set(e,t),Z.observe(e),()=>{Q.delete(e),Z?.unobserve(e),Q.size===0&&(Z?.disconnect(),Z=null)})}var $={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:[String,null],required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let n=e;function r(e){if(n.disabled){e.stopPropagation(),e.preventDefault();return}let t=[];if(n.onClick)for(let r of Array.isArray(n.onClick)?n.onClick:[n.onClick])t.push(r(e));return n.href&&n.navigate&&!n.isExternal&&n.navigate(e),Promise.all(t)}return(n,a)=>(f(),i(v(ne),t(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:r}),{default:p(()=>[o(n.$slots,`default`)]),_:3},16,[`rel`,`target`]))}},_e={base:`outline-primary/25 focus-visible:outline-3 rounded-md`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]},ve=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},locale:{type:[Boolean,String],required:!1,default:void 0},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){let a=e,s=C(),c=te(),l=b(),d=P(A(a,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`locale`,`class`)),m=u(()=>z({extend:_e,...E({variants:{active:{true:L(c.ui?.link?.variants?.active?.true,a.activeClass),false:L(c.ui?.link?.variants?.active?.false,a.inactiveClass)}}},c.ui?.link||{})})),_=u(()=>{let e=a.to??a.href;if(!e||typeof e!=`string`||a.external||T(e,{acceptRelative:!0})||a.locale===!1)return e;let t=l.$localePath;if(!t)return e;let n=l.$i18n?.localeCodes?.value;return n?.length&&RegExp(`^/(${n.join(`|`)})($|[/?#])`).test(e)?e:t(e,typeof a.locale==`string`?a.locale:void 0)||e}),y=u(()=>!_.value||a.external?!1:typeof _.value!=`string`||!(T(_.value,{acceptRelative:!0})||a.target&&a.target!==`_self`)),x=u(()=>a.noRel?null:a.rel===void 0?!y.value||a.target&&a.target!==`_self`?`noopener noreferrer`:null:a.rel||null);function S({route:e,isActive:t,isExactActive:n}={}){if(a.active!==void 0)return a.active;if(!_.value)return!1;if(a.exactQuery===`partial`){if(!pe(e.query,s.query))return!1}else if(a.exactQuery===!0&&!O(e.query,s.query))return!1;return a.exactHash&&e.hash!==s.hash?!1:!!(a.exact&&n||!a.exact&&t)}function k({route:e,isActive:t,isExactActive:n,prefetched:r}={}){let i=S({route:e,isActive:t,isExactActive:n}),o=r?a.prefetchedClass:void 0;return a.raw?[a.class,i?a.activeClass:a.inactiveClass,o]:m.value({class:o?[a.class,o]:a.class,active:i,disabled:a.disabled})}let j=ee(),M;function N(){M?.prefetch?.(l)}function F(){if(!M?.prefetched){M?.shouldPrefetch?.(`interaction`)&&N();return}if(M.fullPath===void 0)return;let{pathname:e,search:t}=new URL(M.fullPath,window.location.href);l._prefetch?.promote?.(e+t)}function I({prefetch:e,shouldPrefetch:n,prefetched:r,isExternal:i},a,o){if(e&&n&&(M={prefetch:e,shouldPrefetch:n,prefetched:r,fullPath:i?void 0:o?.fullPath},r||n(`interaction`)))return t({onPointerenter:a.onPointerenter,onFocus:a.onFocus,onPointerdown:a.onPointerdown},{onPointerenter:F,onFocus:F,onPointerdown:F})}let R,B=null,V=!1;return r(()=>{if(!M?.shouldPrefetch?.(`visibility`))return;let e=j?.proxy?.$el,t=e instanceof Element?e:e?.nextElementSibling;t&&w(()=>{V||(R=me(()=>{B=ge(t,()=>{B?.(),B=null,N()})}))})}),g(()=>{V=!0,he(R),B?.(),B=null}),(r,s)=>{let c=D;return y.value?(f(),i(c,t({key:0},v(d),{to:_.value,custom:``}),{default:p(({href:s,navigate:c,route:l,isActive:u,isExactActive:d,...m})=>[e.custom?(f(),i(v(re),{key:0},{default:p(()=>[o(r.$slots,`default`,n(h({...r.$attrs,...e.exact&&d?{"aria-current":a.ariaCurrentValue}:{},...m.prefetched&&e.prefetchedClass?{class:e.prefetchedClass}:{},...I(m,r.$attrs,l),as:e.as,type:e.type,disabled:e.disabled,href:s,navigate:c,rel:x.value,target:m.target,isExternal:m.isExternal,active:S({route:l,isActive:u,isExactActive:d})})))]),_:2},1024)):(f(),i($,t({key:1},{...r.$attrs,...e.exact&&d?{"aria-current":a.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:s,navigate:c,rel:x.value,target:m.target,isExternal:m.isExternal,...I(m,r.$attrs,l)},{class:k({route:l,isActive:u,isExactActive:d,prefetched:m.prefetched})}),{default:p(()=>[o(r.$slots,`default`,{active:S({route:l,isActive:u,isExactActive:d})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])):e.custom?(f(),i(v(re),{key:1},{default:p(()=>[o(r.$slots,`default`,n(h({...r.$attrs,as:e.as,type:e.type,disabled:e.disabled,..._.value?{href:String(_.value),target:a.target,rel:x.value,isExternal:!0}:{},active:e.active??!1})))]),_:3})):(f(),i($,t({key:2},{...r.$attrs,as:e.as,type:e.type,disabled:e.disabled,..._.value?{href:String(_.value),target:a.target,rel:x.value,isExternal:!0}:{}},{class:k()}),{default:p(()=>[o(r.$slots,`default`,{active:e.active??!1})]),_:3},16,[`class`]))}}}),ye={slots:{base:[`rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75`,`transition-colors`],label:`truncate`,leadingIcon:`shrink-0`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailingIcon:`shrink-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},variant:{solid:``,outline:``,soft:``,subtle:``,ghost:``,link:``},size:{xs:{base:`px-2 py-1 text-xs gap-1`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-xs gap-1.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-sm gap-1.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-sm gap-2`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},block:{true:{base:`w-full justify-center`,trailingIcon:`ms-auto`}},square:{true:``},leading:{true:``},trailing:{true:``},loading:{true:``},active:{true:{base:``},false:{base:``}}},compoundVariants:[{color:`primary`,variant:`solid`,class:`text-inverted bg-primary hover:bg-primary/75 active:bg-primary/75 disabled:bg-primary aria-disabled:bg-primary outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:`solid`,class:`text-inverted bg-secondary hover:bg-secondary/75 active:bg-secondary/75 disabled:bg-secondary aria-disabled:bg-secondary outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:`solid`,class:`text-inverted bg-success hover:bg-success/75 active:bg-success/75 disabled:bg-success aria-disabled:bg-success outline-success/25 focus-visible:outline-3`},{color:`info`,variant:`solid`,class:`text-inverted bg-info hover:bg-info/75 active:bg-info/75 disabled:bg-info aria-disabled:bg-info outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:`solid`,class:`text-inverted bg-warning hover:bg-warning/75 active:bg-warning/75 disabled:bg-warning aria-disabled:bg-warning outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:`solid`,class:`text-inverted bg-error hover:bg-error/75 active:bg-error/75 disabled:bg-error aria-disabled:bg-error outline-error/25 focus-visible:outline-3`},{color:`primary`,variant:`outline`,class:`ring ring-inset ring-primary/50 text-primary hover:bg-primary/10 active:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:`outline`,class:`ring ring-inset ring-secondary/50 text-secondary hover:bg-secondary/10 active:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:`outline`,class:`ring ring-inset ring-success/50 text-success hover:bg-success/10 active:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:`outline`,class:`ring ring-inset ring-info/50 text-info hover:bg-info/10 active:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:`outline`,class:`ring ring-inset ring-warning/50 text-warning hover:bg-warning/10 active:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:`outline`,class:`ring ring-inset ring-error/50 text-error hover:bg-error/10 active:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:`soft`,class:`text-primary bg-primary/10 hover:bg-primary/15 active:bg-primary/15 outline-primary/25 focus-visible:outline-3 disabled:bg-primary/10 aria-disabled:bg-primary/10`},{color:`secondary`,variant:`soft`,class:`text-secondary bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 outline-secondary/25 focus-visible:outline-3 disabled:bg-secondary/10 aria-disabled:bg-secondary/10`},{color:`success`,variant:`soft`,class:`text-success bg-success/10 hover:bg-success/15 active:bg-success/15 outline-success/25 focus-visible:outline-3 disabled:bg-success/10 aria-disabled:bg-success/10`},{color:`info`,variant:`soft`,class:`text-info bg-info/10 hover:bg-info/15 active:bg-info/15 outline-info/25 focus-visible:outline-3 disabled:bg-info/10 aria-disabled:bg-info/10`},{color:`warning`,variant:`soft`,class:`text-warning bg-warning/10 hover:bg-warning/15 active:bg-warning/15 outline-warning/25 focus-visible:outline-3 disabled:bg-warning/10 aria-disabled:bg-warning/10`},{color:`error`,variant:`soft`,class:`text-error bg-error/10 hover:bg-error/15 active:bg-error/15 outline-error/25 focus-visible:outline-3 disabled:bg-error/10 aria-disabled:bg-error/10`},{color:`primary`,variant:`subtle`,class:`text-primary ring ring-inset ring-primary/25 bg-primary/10 hover:bg-primary/15 active:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10 outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:`subtle`,class:`text-secondary ring ring-inset ring-secondary/25 bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10 outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:`subtle`,class:`text-success ring ring-inset ring-success/25 bg-success/10 hover:bg-success/15 active:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10 outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:`subtle`,class:`text-info ring ring-inset ring-info/25 bg-info/10 hover:bg-info/15 active:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10 outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:`subtle`,class:`text-warning ring ring-inset ring-warning/25 bg-warning/10 hover:bg-warning/15 active:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10 outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:`subtle`,class:`text-error ring ring-inset ring-error/25 bg-error/10 hover:bg-error/15 active:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10 outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:`ghost`,class:`text-primary hover:bg-primary/10 active:bg-primary/10 outline-primary/25 focus-visible:outline-3 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`secondary`,variant:`ghost`,class:`text-secondary hover:bg-secondary/10 active:bg-secondary/10 outline-secondary/25 focus-visible:outline-3 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`success`,variant:`ghost`,class:`text-success hover:bg-success/10 active:bg-success/10 outline-success/25 focus-visible:outline-3 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`info`,variant:`ghost`,class:`text-info hover:bg-info/10 active:bg-info/10 outline-info/25 focus-visible:outline-3 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`warning`,variant:`ghost`,class:`text-warning hover:bg-warning/10 active:bg-warning/10 outline-warning/25 focus-visible:outline-3 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`error`,variant:`ghost`,class:`text-error hover:bg-error/10 active:bg-error/10 outline-error/25 focus-visible:outline-3 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent`},{color:`primary`,variant:`link`,class:`text-primary hover:text-primary/75 active:text-primary/75 disabled:text-primary aria-disabled:text-primary outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:`link`,class:`text-secondary hover:text-secondary/75 active:text-secondary/75 disabled:text-secondary aria-disabled:text-secondary outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:`link`,class:`text-success hover:text-success/75 active:text-success/75 disabled:text-success aria-disabled:text-success outline-success/25 focus-visible:outline-3`},{color:`info`,variant:`link`,class:`text-info hover:text-info/75 active:text-info/75 disabled:text-info aria-disabled:text-info outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:`link`,class:`text-warning hover:text-warning/75 active:text-warning/75 disabled:text-warning aria-disabled:text-warning outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:`link`,class:`text-error hover:text-error/75 active:text-error/75 disabled:text-error aria-disabled:text-error outline-error/25 focus-visible:outline-3`},{color:`neutral`,variant:`solid`,class:`text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,variant:`outline`,class:`ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:`soft`,class:`text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 outline-inverted/25 focus-visible:outline-3 disabled:bg-elevated aria-disabled:bg-elevated`},{color:`neutral`,variant:`subtle`,class:`ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:`ghost`,class:`text-default hover:bg-elevated active:bg-elevated outline-inverted/25 focus-visible:outline-3 hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent`},{color:`neutral`,variant:`link`,class:`text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted outline-inverted/25 focus-visible:outline-3`},{size:`xs`,square:!0,class:`p-1`},{size:`sm`,square:!0,class:`p-1.5`},{size:`md`,square:!0,class:`p-1.5`},{size:`lg`,square:!0,class:`p-2`},{size:`xl`,square:!0,class:`p-2`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`}},be={__name:`UButton`,props:{label:{type:String,required:!1},color:{type:null,required:!1},activeColor:{type:null,required:!1},variant:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},locale:{type:[Boolean,String],required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){let n=e,r=y(),c=F(`button`,n),d=te(),{orientation:h,size:g}=N(n),ee=B(u(()=>fe(c))),b=u(()=>I(ee.value,[`type`,`disabled`,`onClick`])),C=a(!1),w=S(le,void 0);async function T(e){C.value=!0;let t=Array.isArray(c.onClick)?c.onClick:[c.onClick];try{await Promise.all(t.map(t=>t?.(e)))}finally{C.value=!1}}let D=u(()=>c.loading||c.loadingAuto&&(C.value||w?.value&&c.type===`submit`)),{isLeading:O,isTrailing:k,leadingIconName:A,trailingIconName:j}=R(u(()=>({icon:c.icon,leading:c.leading,leadingIcon:c.leadingIcon,trailing:c.trailing,trailingIcon:c.trailingIcon,loading:D.value,loadingIcon:c.loadingIcon}))),P=u(()=>z({extend:ye,...E({variants:{active:{true:{base:L(d.ui?.button?.variants?.active?.true?.base,c.activeClass)},false:{base:L(d.ui?.button?.variants?.active?.false?.base,c.inactiveClass)}}}},d.ui?.button||{})})({color:c.color,variant:c.variant,size:g.value??c.size,loading:D.value,block:c.block,square:c.square||!r.default&&!c.label,leading:O.value,trailing:k.value,fieldGroup:h.value}));return(e,n)=>(f(),i(ve,t({type:v(c).type,disabled:v(c).disabled||D.value},b.value,{custom:``}),{default:p(({active:n,...r})=>[m($,t({"data-slot":`base`},r,{class:P.value.base({class:[v(c).ui?.base,v(c).class],active:n,...n&&v(c).activeVariant?{variant:v(c).activeVariant}:{},...n&&v(c).activeColor?{color:v(c).activeColor}:{}}),onClick:T}),{default:p(()=>[o(e.$slots,`leading`,{ui:P.value},()=>[v(O)&&v(A)?(f(),i(M,{key:0,name:v(A),"data-slot":`leadingIcon`,class:x(P.value.leadingIcon({class:v(c).ui?.leadingIcon,active:n}))},null,8,[`name`,`class`])):v(c).avatar?(f(),i(V,t({key:1,size:v(c).ui?.leadingAvatarSize||P.value.leadingAvatarSize()},v(c).avatar,{"data-slot":`leadingAvatar`,class:P.value.leadingAvatar({class:v(c).ui?.leadingAvatar,active:n})}),null,16,[`size`,`class`])):s(``,!0)]),o(e.$slots,`default`,{ui:P.value},()=>[v(c).label!==void 0&&v(c).label!==null?(f(),_(`span`,{key:0,"data-slot":`label`,class:x(P.value.label({class:v(c).ui?.label,active:n}))},l(v(c).label),3)):s(``,!0)]),o(e.$slots,`trailing`,{ui:P.value},()=>[v(k)&&v(j)?(f(),i(M,{key:0,name:v(j),"data-slot":`trailingIcon`,class:x(P.value.trailingIcon({class:v(c).ui?.trailingIcon,active:n}))},null,8,[`name`,`class`])):s(``,!0)])]),_:2},1040,[`class`])]),_:3},16,[`type`,`disabled`]))}};export{ue as i,he as n,me as r,be as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,$n as t,Bn as n,Cn as r,Dr as i,Dt as a,Er as o,Et as s,Ft as c,G as l,Gn as u,H as d,Jn as f,Jt as p,K as m,Ln as h,N as g,Or as _,Ot as v,Qn as y,Sn as b,U as x,Un as S,Vt as C,W as w,Xn as ee,Zn as T,Zt as te,bn as E,cn as ne,dn as D,er as O,et as k,ft as A,gn as j,hn as M,in as N,nt as P,q as F,qt as I,sn as re,tr as L,un as R,ut as ie,vn as z,wr as B,zt as V}from"./DuWpPgcw.js";import{$t as ae,en as H,tn as oe,yt as se}from"./Brv_Bdja.js";import{a as ce,c as le,d as ue,i as de,l as fe,n as pe,o as U,r as me,s as he,t as ge,u as _e}from"./W_UkaXSY.js";import{a as ve,d as ye}from"./BNG0e--z.js";import{A as be,D as xe,F as Se,H as Ce,J as W,L as we,N as G,O as Te,P as Ee,R as K,U as De,V as Oe,_ as ke,a as Ae,b as je,c as Me,d as Ne,f as Pe,i as Fe,l as Ie,m as Le,n as Re,o as ze,p as q,r as Be,s as Ve,t as He,u as Ue,v as J,w as We,x as Y,z as Ge}from"./OHMTu69O.js";import{n as Ke,r as X,t as qe}from"./D1zk137d.js";import{t as Je}from"./Cxemkb8I.js";import{i as Ye,t as Xe}from"./BeTHElHy.js";import{n as Ze}from"./C218H_dA.js";import{C as Z,E as Qe,O as $e,S as et,T as tt,_ as nt,b as rt,r as it,v as at,w as ot,x as st,y as Q}from"#entry";function ct(e,t,n){let r=e.findIndex(e=>ve(e,t)),i=e.findIndex(e=>ve(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}var lt=Symbol(`useBodyScrollLock`),ut=we(()=>{let e=u(new Map),t=u(),n=x(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=$e({scrollBody:u(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,_e(document,lt),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,Ge&&i?.(),t.value=void 0};return M(n,(e,o)=>{if(!K)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?se({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),Ge&&(i=Te(document,`touchmove`,e=>pt(e),{passive:!1})),v(()=>{n.value&&(fe(document,lt),document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function dt(e){let t=Math.random().toString(36).substring(2,7),n=ut();n.value.set(t,e??!1);let r=x({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return De(()=>{n.value.delete(t)}),r}function ft(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:ft(t)}}function pt(e){let t=e||window.event,n=t.target;return n instanceof Element&&ft(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var mt=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Bopomofo}]/u,ht=/android/i;function gt(){return typeof navigator<`u`&&ht.test(navigator.userAgent)}function _t(e){let t=u(!1),n=u(!0),r=u(!1),i=x(()=>t.value&&n.value);function a(){t.value=!0,n.value=!0,r.value=!1}function o(e){e.data&&(mt.test(e.data)?(n.value=!0,r.value=!0):gt()&&!r.value&&(n.value=!1))}function s(n){v(()=>{t.value=!1,e?.(n)})}return{isComposing:t,shouldDeferInput:i,handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:s}}function vt(e){let t=x(()=>L(e)),n=x(()=>new Intl.Collator(`en`,{usage:`search`,...t.value}));return{startsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(0,t.length),t)===0),endsWith:(e,t)=>t.length===0||(e=e.normalize(`NFC`),t=t.normalize(`NFC`),n.value.compare(e.slice(-t.length),t)===0),contains:(e,t)=>{if(t.length===0)return!0;if(e=e.normalize(`NFC`),t=t.normalize(`NFC`),t.length>e.length)return!1;let r=n.value.compare;if(e.includes(t))return!0;let i=t.length;for(let n=0;n+i<=e.length;n++)if(r(t,e.slice(n,n+i))===0)return!0;return!1}}}var yt=0;function bt(){j(e=>{if(!K)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??xt()),document.body.insertAdjacentElement(`beforeend`,t[1]??xt()),yt++,e(()=>{yt===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),yt--})})}function xt(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function St(e){return x(()=>!t(e)||!!xe(e)?.closest(`form`))}var Ct=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},wt=new WeakMap,Tt=new WeakMap,Et={},Dt=0,Ot=function(e){return e&&(e.host||Ot(e.parentNode))},kt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ot(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},At=function(e,t,n,r){var i=kt(t,Array.isArray(e)?e:[e]);Et[n]||(Et[n]=new WeakMap);var a=Et[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(wt.get(e)||0)+1,l=(a.get(e)||0)+1;wt.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Tt.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Dt++,function(){o.forEach(function(e){var t=wt.get(e)-1,i=a.get(e)-1;wt.set(e,t),a.set(e,i),t||(Tt.has(e)||e.removeAttribute(r),Tt.delete(e)),i||e.removeAttribute(n)}),Dt--,Dt||(wt=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et={})}},jt=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ct(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),At(r,i,n,`aria-hidden`)):function(){return null}};function Mt(e){let t;M(()=>xe(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=jt(e):t&&t()}),V(()=>{t&&t()})}function Nt(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}function Pt(e){let t=Ce(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e)e(n);else{let e=X(),n=r.map(e=>({...e,textValue:e.value?.textValue??e.ref.textContent?.trim()??``})),i=n.find(t=>t.ref===e),a=It(n.map(e=>e.textValue),t.value,i?.textValue),o=n.find(e=>e.textValue===a);return o&&o.ref.focus(),o?.ref}},resetTypeahead:()=>{t.value=``}}}function Ft(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function It(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ft(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}var Lt=Se(()=>u([]));function Rt(){let e=Lt();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=zt(e.value,t),e.value.unshift(t)},remove(t){e.value=zt(e.value,t),e.value[0]?.resume()}}}function zt(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var Bt=P({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=Y(),o=u(null),s=Rt(),c=S({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});j(e=>{if(!K)return;let t=a.value;if(!n.trapped)return;let r=t?.ownerDocument??document,i=t?t.getRootNode():r;function s(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:Z(o.value,{select:!0})}function l(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||Z(o.value,{select:!0}))}function u(e){let n=o.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=X();r&&t.contains(r)||t.contains(n)||Z(t)}function d(e){if(c.paused||!t)return;let n=e.composedPath()[0];et(t,n)||Z(o.value,{select:!0})}i.addEventListener(`focusin`,s),i.addEventListener(`focusout`,l),i!==r&&r.addEventListener(`focusin`,d);let f=new MutationObserver(u);t&&f.observe(t,{childList:!0,subtree:!0}),e(()=>{i.removeEventListener(`focusin`,s),i.removeEventListener(`focusout`,l),i!==r&&r.removeEventListener(`focusin`,d),f.disconnect()})});function d(e,t){let n=new CustomEvent(Q,st),i=e=>r(`mountAutoFocus`,e);e.addEventListener(Q,i),e.dispatchEvent(n),e.removeEventListener(Q,i),n.defaultPrevented||(ot(tt(e),{select:!0}),X()===t&&Z(e))}j(async e=>{let t=a.value;if(await v(),!t)return;n.present!==!1&&s.add(c);let i=X();!t.contains(i)&&n.present!==!1&&d(t,i),e(()=>{let e=new CustomEvent(rt,st),n=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(rt,n),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||Z(i??document.body,{select:!0}),t.removeEventListener(rt,n),s.remove(c),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),M(()=>n.present,async(e,t)=>{if(!K)return;if(e===!1&&t===!0){s.remove(c);return}if(e!==!0||t!==!1)return;s.add(c),await v();let n=a.value;if(!n)return;let r=X();n.contains(r)||d(n,r)});function f(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=X();if(t&&r){let t=e.currentTarget,[i,a]=Qe(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&Z(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&Z(a,{select:!0})):r===t&&e.preventDefault()}}return(t,n)=>(C(),l(L(J),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:f},{default:E(()=>[p(t.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),Vt=P({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:r}=Ke(),i=x(()=>t.checked??t.value);return M(i,(e,t)=>{if(!r.value)return;let n=r.value,i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`).set;if(a&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});a.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,r)=>(C(),l(nt,a({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),Ht=P({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=x(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),r=x(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(i,o)=>(C(),F(g,null,[m(` We render single input if it's required `),n.value?(C(),l(Vt,a({key:e.name},{...t,...i.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(C(!0),F(g,{key:1},I(r.value,e=>(C(),l(Vt,a({key:e.name},{ref_for:!0},{...t,...i.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`]))),128))],2112))}});function Ut(e){return e?.querySelector(`[data-state=checked]`)}function Wt(e,t,n){return e===void 0?!1:Array.isArray(e)?e.some(e=>Gt(e,t,n)):Gt(e,t,n)}function Gt(e,t,n){return e===void 0||t===void 0?!1:typeof e==`string`?e===t:typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]===t?.[n]:ve(e,t)}var Kt={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function qt(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Jt(e,t,n){let r=qt(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Kt[r]}var[Yt,Xt]=W(`ListboxRoot`),[Zt,Qt]=W(`ListboxHighlightScroll`),$t=P({__name:`ListboxRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},orientation:{type:String,required:!1,default:`vertical`},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},selectionBehavior:{type:String,required:!1,default:`toggle`},highlightOnHover:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(e,{expose:t,emit:n}){let r=e,i=n,{multiple:a,highlightOnHover:o,loop:s,orientation:c,disabled:d,selectionBehavior:f,dir:h}=y(r),{getItems:g,getItem:_}=qe({isProvider:!0}),{handleTypeaheadSearch:b}=Pt(),{primitiveElement:x,currentElement:S}=Ke(),w=Nt(),ee=le(h),T=Zt(null);Qt({suppressHighlightScroll:u(!1),onHighlightScrollRequest:()=>{}});let te=St(S),ne=u(),D=u(!1),O=u(!0),k=G(r,`modelValue`,i,{defaultValue:r.defaultValue??(a.value?[]:void 0),passive:r.modelValue===void 0,deep:!0});function A(e){if(D.value=!0,r.multiple){let t=Array.isArray(k.value)?[...k.value]:[],n=t.findIndex(t=>Gt(t,e,r.by));r.selectionBehavior===`toggle`?(n===-1?t.push(e):t.splice(n,1),k.value=t):(k.value=[e],ne.value=e)}else r.selectionBehavior===`toggle`&&Gt(k.value,e,r.by)?k.value=void 0:k.value=e;setTimeout(()=>{D.value=!1},1)}let j=u(null),N=u(null),P=u(!1),F=u(!1),I=Ee(),re=Ee(),R=Ee();function ie(){return g().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)}function z(e,t=!0,n){if(!e)return;j.value=e;let r=T?.suppressHighlightScroll.value??!1;(n??O.value)&&(r?j.value.focus({preventScroll:!0}):j.value.focus()),r?T?.onHighlightScrollRequest(t?()=>{let e=j.value;e?.isConnected&&e.scrollIntoView({block:`nearest`})}:void 0):t&&j.value.scrollIntoView({block:`nearest`});let a=_(e);i(`highlight`,a)}function B(e){if(P.value)R.trigger(e);else{let t=g().find(t=>Gt(t.value,e,r.by));t&&(j.value=t.ref,z(t.ref))}}function V(e){if(j.value&&j.value.isConnected){if(e.ctrlKey||e.metaKey||e.altKey)return;e.preventDefault(),e.stopPropagation(),F.value||j.value.click()}}function ae(e){if(O.value){if(D.value=!0,P.value)re.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey;if(t&&e.key===`a`&&a.value){let t=g(),n=t.map(e=>e.value);k.value=[...n],e.preventDefault();let r=t.at(-1);r&&z(r.ref)}else if(!t){let t=b(e.key,g());t&&z(t)}}setTimeout(()=>{D.value=!1},1)}}function H(){F.value=!0}function oe(){v(()=>{F.value=!1})}function se(){v(()=>{fe(new KeyboardEvent(`keydown`,{key:`PageUp`}))})}function ce(e){let t=j.value;t?.isConnected&&(N.value=t),j.value=null,i(`leave`,e)}function ue(e){let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),i(`entryFocus`,t),!t.defaultPrevented){if(N.value)z(N.value);else{let e=ie()?.[0];z(e)}}}function de(e){let t=g(!0).map(e=>e.ref),n=e===`next`?t.at(-1):t[0];if(!n)return!1;let r=Number(n.getAttribute(`aria-posinset`)),i=Number(n.getAttribute(`aria-setsize`));return e===`next`?r===i:r===1}function fe(e){let t=Jt(e,c.value,ee.value);if(!t)return;let n=ie();if(j.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(j.value),i=s.value&&r===n.length-1;if(i&&P.value){if(de(t)){let n=t===`next`?w.HOME:w.END;return re.trigger(new KeyboardEvent(`keydown`,{key:n,shiftKey:e.shiftKey}))}n=[]}else n=i?n.slice(0,1):n.slice(r+1)}pe(e,n[0])}if(n.length){let e=!j.value&&t===`prev`?n.length-1:0;z(n[e])}if(P.value)return re.trigger(e)}function pe(e,t){if(!P.value&&r.selectionBehavior===`replace`&&a.value&&Array.isArray(k.value)&&(!e.altKey&&!e.ctrlKey&&!e.metaKey||e.shiftKey)&&e.shiftKey){let n=g().filter(e=>e.ref.dataset.disabled!==``),r=n.find(e=>e.ref===t)?.value;if(e.key===w.END?r=n.at(-1)?.value:e.key===w.HOME&&(r=n[0]?.value),!r||!ne.value)return;let i=ct(n.map(e=>e.value),ne.value,r);k.value=i}}async function U(e,t=!0){if(K){if(await v(),P.value)I.trigger({event:e,scroll:t});else{let e=ie(),n=e.find(e=>e.dataset.state===`checked`),r=t?void 0:!1;n?z(n,t,r):e.length&&z(e[0],t,r)}}}let me=!1;return M(k,()=>{if(!D.value){let e=me;me=!0,v(()=>{U(void 0,e)})}},{immediate:!0,deep:!0}),t({highlightedElement:j,highlightItem:B,highlightFirstItem:se,highlightSelected:U,getItems:g}),Xt({modelValue:k,onValueChange:A,multiple:a,orientation:c,dir:ee,disabled:d,highlightOnHover:o,loop:s,highlightedElement:j,isVirtual:P,virtualFocusHook:I,virtualKeydownHook:re,virtualHighlightHook:R,by:r.by,firstValue:ne,selectionBehavior:f,focusable:O,onLeave:ce,onEnter:ue,changeHighlight:z,onKeydownEnter:V,onKeydownNavigation:fe,onKeydownTypeAhead:ae,onCompositionStart:H,onCompositionEnd:oe,highlightFirstItem:se}),(t,n)=>(C(),l(L(J),{ref_key:`primitiveElement`,ref:x,as:e.as,"as-child":e.asChild,dir:L(ee),"data-disabled":L(d)?``:void 0,onPointerleave:ce,onFocusout:n[0]||=async e=>{let t=e.relatedTarget||e.target;await v(),j.value&&L(S)&&!L(S).contains(t)&&ce(e)}},{default:E(()=>[p(t.$slots,`default`,{modelValue:L(k)}),L(te)&&e.name?(C(),l(L(Ht),{key:0,name:e.name,value:L(k),disabled:L(d),required:e.required},null,8,[`name`,`value`,`disabled`,`required`])):m(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`]))}}),en=P({__name:`ListboxContent`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{CollectionSlot:t}=qe(),n=Yt(),r=Ce(!1,10);return(i,a)=>(C(),l(L(t),null,{default:E(()=>[k(L(J),{role:`listbox`,as:e.as,"as-child":e.asChild,tabindex:L(n).focusable.value?L(n).highlightedElement.value?`-1`:`0`:`-1`,"aria-orientation":L(n).orientation.value,"aria-multiselectable":!!L(n).multiple.value,"data-orientation":L(n).orientation.value,onMousedown:a[0]||=oe(e=>r.value=!0,[`left`]),onFocus:a[1]||=e=>{L(r)||L(n).onEnter(e)},onKeydown:[a[2]||=H(e=>{(L(n).orientation.value!==`vertical`||e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)&&(L(n).orientation.value!==`horizontal`||e.key!==`ArrowUp`&&e.key!==`ArrowDown`)&&(e.preventDefault(),L(n).focusable.value&&L(n).onKeydownNavigation(e))},[`down`,`up`,`left`,`right`,`home`,`end`]),H(L(n).onKeydownEnter,[`enter`]),L(n).onKeydownTypeAhead]},{default:E(()=>[p(i.$slots,`default`)]),_:3},8,[`as`,`as-child`,`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`])]),_:3}))}}),tn=P({__name:`ListboxFilter`,props:{modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=G(n,`modelValue`,t,{defaultValue:``,passive:n.modelValue===void 0}),i=Yt(),{primitiveElement:a,currentElement:o}=Ke(),s=x(()=>n.disabled||i.disabled.value||!1),d=u();z(()=>d.value=i.highlightedElement.value?.id),c(()=>{i.focusable.value=!1,setTimeout(()=>{n.autoFocus&&o.value?.focus()},1)}),V(()=>{i.focusable.value=!0});let{isComposing:f,shouldDeferInput:m,handleCompositionStart:h,handleCompositionUpdate:g,handleCompositionEnd:_}=_t(e=>{r.value=e.target.value,i.onCompositionEnd(),i.highlightFirstItem()});function v(){i.onCompositionStart(),h()}function y(e){m.value||(r.value=e.target.value,i.highlightFirstItem())}function b(e){f.value||(e.preventDefault(),i.onKeydownNavigation(e))}function S(e){f.value||i.onKeydownEnter(e)}return(t,n)=>(C(),l(L(J),{ref_key:`primitiveElement`,ref:a,as:e.as,"as-child":e.asChild,value:L(r),disabled:s.value?``:void 0,"data-disabled":s.value?``:void 0,"aria-disabled":s.value??void 0,"aria-activedescendant":d.value,type:`text`,onKeydown:[H(b,[`down`,`up`,`home`,`end`]),H(S,[`enter`])],onInput:y,onCompositionstart:v,onCompositionupdate:L(g),onCompositionend:L(_)},{default:E(()=>[p(t.$slots,`default`,{modelValue:L(r)})]),_:3},8,[`as`,`as-child`,`value`,`disabled`,`data-disabled`,`aria-disabled`,`aria-activedescendant`,`onCompositionupdate`,`onCompositionend`]))}}),[nn,rn]=W(`ListboxGroup`),an=P({__name:`ListboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=U(void 0,`reka-listbox-group`);return rn({id:n}),(e,r)=>(C(),l(L(J),a({role:`group`},t,{"aria-labelledby":L(n)}),{default:E(()=>[p(e.$slots,`default`)]),_:3},16,[`aria-labelledby`]))}}),on=`listbox.select`,[sn,cn]=W(`ListboxItem`),ln=P({__name:`ListboxItem`,props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},emits:[`select`],setup(e,{emit:t}){let n=e,i=t,o=U(void 0,`reka-listbox-item`),{CollectionItem:s}=qe(),{forwardRef:c,currentElement:u}=Y(),d=Yt(),f=x(()=>u.value!=null&&u.value===d.highlightedElement.value),m=x(()=>Wt(d.modelValue.value,n.value,d.by)),h=x(()=>d.disabled.value||n.disabled);async function g(e){i(`select`,e),!e?.defaultPrevented&&!h.value&&e&&(d.onValueChange(n.value),d.changeHighlight(u.value))}function _(e){let t={originalEvent:e,value:n.value};ue(on,g,t)}return cn({isSelected:m}),(t,n)=>(C(),l(L(s),{value:e.value},{default:E(()=>[r([f.value,m.value,h.value,L(d).focusable.value,...Object.entries(t.$attrs).flat()],()=>k(L(J),a({id:L(o)},t.$attrs,{ref:L(c),role:`option`,tabindex:L(d).focusable.value?f.value?`0`:`-1`:-1,"aria-selected":m.value,as:e.as,"as-child":e.asChild,disabled:h.value?``:void 0,"data-disabled":h.value?``:void 0,"data-highlighted":f.value?``:void 0,"data-state":m.value?`checked`:`unchecked`,onClick:_,onKeydown:H(oe(_,[`prevent`]),[`space`]),onPointermove:n[0]||=()=>{L(d).highlightedElement.value!==L(u)&&L(d).highlightOnHover.value&&L(d).changeHighlight(L(u),!1,!1)}}),{default:E(()=>[p(t.$slots,`default`,{selected:m.value})]),_:3},16,[`id`,`tabindex`,`aria-selected`,`as`,`as-child`,`disabled`,`data-disabled`,`data-highlighted`,`data-state`,`onKeydown`]),n,1)]),_:3},8,[`value`]))}}),un=P({__name:`ListboxItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=Y(),n=sn();return(r,i)=>(C(),l(L(Je),{present:e.forceMount||L(n).isSelected.value},{default:E(()=>[k(L(J),{ref:L(t),"aria-hidden":`true`,"data-state":L(n).isSelected.value?`checked`:`unchecked`,as:e.as,"as-child":e.asChild},{default:E(()=>[p(r.$slots,`default`)]),_:3},8,[`data-state`,`as`,`as-child`])]),_:3},8,[`present`]))}});function dn(e){return typeof e==`object`?e.key:e}function fn(e,t){let n=e.length;return new Proxy(e,{get(e,r,i){if(typeof r==`string`){let i=r.charCodeAt(0);if(i>=48&&i<=57){let i=+r;if(Number.isInteger(i)&&i>=0&&i<n){let n=e[i];if(typeof n!=`object`){let r=t[i*2];n=e[i]={index:i,key:n,start:r,size:t[i*2+1],end:r+t[i*2+1],lane:0}}return n}}if(r===`length`)return n}return Reflect.get(e,r,i)}})}function pn(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return(o.length!==r.length||o.some((e,t)=>r[t]!==e))&&(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1),i}return o.updateDeps=e=>{r=e},o}function mn(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var hn=(e,t)=>Math.abs(e-t)<1.01,gn=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})};function _n({offset:e,isScrolling:t,elementMax:n,holdOffset:r,scrollOffset:i,pendingWrite:a,clampedMaxAtWrite:o}){return t&&a===null&&e===i?`spurious`:a!==null&&Math.abs(e-a.target)<1.5?`readBack`:a!==null&&!a.smooth&&n!==null&&a.target>n+r+.5&&Math.abs(e-(n+r))<1.5||a!==null&&!a.smooth&&a.lowMaxes?.some(t=>Math.abs(e-t)<1.5)?`clampedReadBack`:o!==null&&Math.abs(e-o)<1.5?`clampedEcho`:`external`}var vn=e=>e===`smooth`||e===`smoothFinishing`;function yn({kind:e,offset:t,command:n,target:r}){return e!==`spurious`&&e!==`readBack`&&e!==`clampedReadBack`&&n?.index!=null&&n.phase!==`queued`&&!vn(n.phase)&&!hn(t,n.lastTargetOffset)&&!hn(t,r())&&e!==`clampedEcho`}var bn=40;function xn(e){let t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<bn;)n--;if(n<0)return!1;let r=e[n],i=n-1;for(;i>=0&&r.t-e[i].t<bn;)i--;if(i<0)return!1;let a=e[i],o=(t.offset-r.offset)/(t.t-r.t),s=(r.offset-a.offset)/(r.t-a.t);return o*s>=0&&Math.abs(o)>=2*Math.abs(s)&&Math.abs(o)-Math.abs(s)>=.8}function Sn(e){let t=e[e.length-1];if(t===void 0)return!1;let n=e.length-2;for(;n>=0&&t.t-e[n].t<bn;)n--;if(n<0)return!1;let r=e[n];return Math.abs(t.offset-r.offset)/(t.t-r.t)>=.05}var Cn,wn=()=>{if(Cn!==void 0)return Cn;if(typeof navigator>`u`)return Cn=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Cn=!0;let e=navigator.maxTouchPoints;return Cn=navigator.platform===`MacIntel`&&e!==void 0&&e>0},Tn,En=()=>Tn===void 0?Tn=wn()&&typeof CSS<`u`&&typeof CSS.supports==`function`&&CSS.supports(`overflow-anchor: auto`):Tn,Dn={capture:!0,passive:!0},On=class{constructor(e){this.host=e,this._touch=null,this.inMotion=()=>this._touch!==null&&this._touch.phase!==`lateFling`,this.dragging=()=>this._touch?.phase===`down`&&this._touch.moved,this.tail=()=>this._touch?.phase===`tail`?this._touch.moved?`fling`:`tap`:null,this.onScroll=({isScrolling:e,ownReadBack:t,moved:n,external:r})=>(e&&this._touch?.phase===`tail`?this._openTail(this._touch.moved||!t,!1):this._touch?.phase===`lateFling`&&(this.host.now()>this._touch.until?this._touch=null:r&&e&&n&&this._openTail(!0,!1)),!t&&e&&n&&this._touch?.phase===`down`?(this._touch.moved=!0,!0):!1),this.touchStart=()=>{this.end(),this._touch={phase:`down`,moved:!1}},this.touchEnd=()=>{let e=this._touch?.phase===`down`&&this._touch.moved;this.end(),this._openTail(e,e)},this.end=()=>{let e=this.host.getWindow();this._touch?.phase===`tail`&&e!=null&&e.clearTimeout(this._touch.timerId),this._touch=null},this.listen=e=>{let t=()=>this.touchStart(),n=()=>this.touchEnd();return e.addEventListener(`touchstart`,t,Dn),e.addEventListener(`touchend`,n,Dn),e.addEventListener(`touchcancel`,n,Dn),()=>{e.removeEventListener(`touchstart`,t,Dn),e.removeEventListener(`touchend`,n,Dn),e.removeEventListener(`touchcancel`,n,Dn),this.end()}},this._openTail=(e,t)=>{let n=this.host.getWindow();if(!wn()||n==null)return;this.end();let r={phase:`tail`,moved:e,awaitingFling:t,timerId:n.setTimeout(()=>{this.host.tailStillMoving()?this._openTail(r.moved,r.awaitingFling):(this._touch=r.awaitingFling?{phase:`lateFling`,until:this.host.now()+1e3}:null,this.host.onTailClosed())},150)};this._touch=r}}get touch(){return this._touch}},kn=e=>{let{clientWidth:t,clientHeight:n}=e;return{width:t,height:n}},An=e=>{let t=new Set;return{schedule:n=>{let r=e.requestAnimationFrame(()=>{t.delete(r),n()});t.add(r)},cancel:()=>{t.forEach(t=>e.cancelAnimationFrame(t)),t.clear()}}},jn=e=>e,Mn=e=>{let t=e.overscan*Math.max(e.lanes??1,1),n=Math.max(e.startIndex-t,0),r=Math.min(e.endIndex+t,e.count-1)-n+1,i=Array(r);for(let e=0;e<r;e++)i[e]=n+e;return i},Nn=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(kn(n)),!r.ResizeObserver)return()=>{};let a=An(r),o=new r.ResizeObserver(()=>{let t=()=>{i(kn(n))};e.options.useAnimationFrameWithResizeObserver?a.schedule(t):t()});return o.observe(n,{box:`content-box`}),()=>{o.unobserve(n),a.cancel()}},Pn={passive:!0},Fn=typeof window>`u`||`onscrollend`in window,In=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Fn,o=0,s=a?null:gn(i,()=>t(n(r),!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,Pn),a&&r.addEventListener(`scrollend`,u,Pn),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u),s?.cancel()}},Ln=(e,t)=>In(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),Rn=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},zn=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},Bn=(e,t)=>e===`smooth`?t?`smoothLanded`:`smooth`:`instant`,Vn=e=>e?.phase===`smooth`||e?.phase===`smoothLanded`;function Hn(e,t,n,r){if(t===0)return!1;let i=r(0),a=new Set,o=0;for(;o<e;){let e=n(o);if(e===i)break;a.add(e),o++}let s=e-o;if(s===0||s>=t)return!1;for(let e=0;e<s;e++)if(r(e)!==n(o+e))return!1;for(let e=s;e<t;e++)if(a.has(r(e)))return!1;return!0}var Un=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._iosGesture=new On({getWindow:()=>this.targetWindow,now:()=>this.now(),tailStillMoving:()=>{let e=this.scrollState;if(e?.phase!==`queued`||this.pendingWrite!==null)return!1;let t=this._readElementOffset();return t===null||this._lastElementOffset===null||Math.abs(t-this._lastElementOffset)<1?!1:(this._lastElementOffset=t,e.samples=[...e.samples??[],{t:this.now(),offset:t}],!0)},onTailClosed:()=>{let e=this.scrollState;e?.phase===`queued`&&Sn(e.samples??[])&&(this.scrollState=null),this._flushHoldIfReady(!0),this._writeAwaitingCommand(),this._retryClampedAdjustment()}}),this._lastElementOffset=null,this.pendingWrite=null,this._clampedAdjustment=null,this.elementsCache=new Map,this._resizeBatch=null,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=null,n=()=>{if(e)return e;let n=this.targetWindow;if(!n||!n.ResizeObserver)return null;let i=t=An(n);return e=new n.ResizeObserver(e=>{let t=()=>{let t={sync:!1};this._resizeBatch=t;try{e.forEach(r)}finally{this._resizeBatch=null,t.notify&&(this.notify(t.sync),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment())}};this.options.useAnimationFrameWithResizeObserver?i.schedule(t):t()})},r=e=>{let t=e.target,n=this.indexFromElement(t);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};return{disconnect:()=>{var r;(r=n())==null||r.disconnect(),t?.cancel(),e=null,t=null},observe:e=>n()?.observe(e,{box:`border-box`}),unobserve:e=>n()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:jn,rangeExtractor:Mn,onChange:()=>{},measureElement:Rn,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=this._singleLaneMeasurements?.items??s,l=e=>dn(c[e]),u=e>0?l(0):null,d=e>0?l(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==u||t.getItemKey(o-1)!==d)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>0&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==d)&&(o>e||Hn(e,o,l,t.getItemKey))&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=null;if(r&&this.scrollOffset!==null&&!this._awaitingCommandReadBack()){let[e,t]=r,n=this.getMeasurements(),{count:a,getItemKey:s}=this.options,c=0;for(;c<a&&s(c)!==e;)c++;if(c<a){let e=n[c];if(e){let n=Math.max(0,e.start+t);!i&&n!==this.scrollOffset&&(o=n-this.scrollOffset,this.scrollOffset=n)}}}i?this.pendingScrollAnchor={kind:`follow`,behavior:i}:o!==null&&(this._canWriteScroll()?this.pendingScrollAnchor={kind:`anchor`,delta:o}:(this._holdOffset+=o,this._followOffsetTarget(o)))},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=pn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{var e;this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,(e=this._momentumStop)==null||e.restore(),this._momentumStop=null,this.isScrolling=!1,this.scrollDirection=null,this._holdOffset=0,this._reportedOverscroll=!1,this._clampedAdjustment=null,this.pendingWrite=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{let n=t?this._elementMaxScrollOffset():null,r=this._reportedOverscroll;this._reportedOverscroll=e<0||n!==null&&e>n+1;let i=e;this._lastElementOffset=i,e=this._toLayoutOffset(e);let a=this._classifyScrollEvent(e,t,n);if(a===`spurious`)return;a===`readBack`?e=this.pendingWrite.target:a===`clampedReadBack`&&this.scrollState?.index!=null&&e<this.getMaxScrollOffset()-1.5?this.scrollState.lastTargetOffset=e:yn({kind:a,offset:e,command:this.scrollState,target:()=>this.getScrollStateTarget(this.scrollState)})&&(this.scrollState=null),this.pendingWrite=null,this._clampedAdjustment!==null&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null);let o=this.getScrollOffset(),s=this.scrollDirection;this.scrollDirection=t?o===e?this.scrollDirection:o<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t;let c=this.scrollState;if(c?.phase===`queued`&&a===`external`&&t){if(r||this._reportedOverscroll)c.samples=[];else{let e=this.now();c.samples=[...(c.samples??[]).filter(t=>e-t.t<=200),{t:e,offset:i}],(s!==null&&this.scrollDirection!==s||xn(c.samples))&&(this.scrollState=null)}}this._iosGesture.onScroll({isScrolling:t,ownReadBack:a===`readBack`,moved:e!==o,external:a===`external`&&this.scrollState?.phase!==`smooth`&&this.scrollState?.phase!==`smoothFinishing`})&&this.scrollState?.phase===`queued`&&(this.scrollState=null),this._flushHoldIfReady(!0),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement&&this.unsubs.push(this._iosGesture.listen(this.scrollElement)),this._scrollToOffset(this.getScrollOffset())}this._noteClampMax();let t=this.pendingScrollAnchor;this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled&&(t.kind===`anchor`?this._canWriteScroll()?Vn(this.scrollState)&&!hn(this.getScrollOffset()-t.delta,this.scrollState.lastTargetOffset)||(this._followOffsetTarget(t.delta),this._scrollToOffset(this.getScrollOffset())):(this._holdOffset+=t.delta,this._followOffsetTarget(t.delta),this.notify(!1)):this.scrollToEnd({behavior:t.behavior})),this._flushHoldIfReady(!1),this._retryClampedAdjustment()},this._classifyScrollEvent=(e,t,n)=>_n({offset:e,isScrolling:t,elementMax:n,holdOffset:this._holdOffset,scrollOffset:this.scrollOffset,pendingWrite:this.pendingWrite,clampedMaxAtWrite:this._clampedAdjustment?.maxAtWrite??null}),this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled||!this._canWriteScroll())return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e))},this._writeAwaitingCommand=()=>{let e=this.scrollState;if(e===null||e.phase!==`queued`)return;let{behavior:t}=e;this.getMeasurements();let n=this.getScrollStateTarget(e);e.lastTargetOffset=n,this._clampedAdjustment=null,e.phase=Bn(t,e.index!=null&&hn(n,this.getScrollOffset())),this._scrollToOffset(n,{behavior:t}),this.scheduleScrollReconcile()},this._readElementOffset=()=>{let e=this.scrollElement;if(e==null)return null;let{horizontal:t,isRtl:n}=this.options;return typeof e.scrollTop==`number`?t?e.scrollLeft*(n&&-1||1):e.scrollTop:typeof e.scrollY==`number`?t?e.scrollX:e.scrollY:null},this._canWriteScroll=()=>!(wn()&&this._iosGesture.inMotion())&&!this._reportedOverscroll,this._flushHoldIfReady=e=>{if(this._holdOffset===0||!this.scrollElement||!this.options.enabled||!this._canWriteScroll()||this.scrollState?.phase===`smooth`)return;this._holdOffset=0,this.scrollOffset!==null&&this.scrollOffset<0&&(this.scrollOffset=0),this.notify(e);let t=this.getCommandWrittenOffset()??this.getScrollOffset();this._clampedAdjustment=this._clampedBy(t),this._scrollToOffset(t)},this.rafId=null,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.getMeasurementOptions=pn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=pn(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._singleLaneMeasurements?.flat;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e}let o=u===0?Array(e):this._singleLaneMeasurements.items.slice(),c;if(u===0)c=t+n;else{let e=u-1;c=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t);o[t]=e;let n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=c,a[t*2+1]=i,c+=i+s}this._singleLaneMeasurements={flat:a,items:o};let d=fn(o,a);return this.measurementsCache=d,d}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=pn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=Kn(e,t,n,r,r===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=pn(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t,this.options.lanes]},(e,t,n,r,i,a)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n,lanes:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!Vn(this.scrollState))return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;if(!this.isIndexInRange(e))return;this._resizeBatch?.sync&&this.getMeasurements();let r,i,a,o=this._singleLaneMeasurements?.flat;if(this.options.lanes===1&&o!=null)a=this.options.getItemKey(e),i=o[e*2],r=o[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;a=t.key,i=t.start,r=t.size}let s=this.itemSizeCache.get(a)??r,c=t-s;if(c!==0){let o=this.options.anchorTo===`end`&&!Vn(this.scrollState)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,l=o?this._getLayoutTotalSize():0,u=this.getScrollOffset(),d=this.itemSizeCache.has(a)?i+s<=u&&this.scrollDirection!==`backward`:i<u,f=!Vn(this.scrollState)&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?d:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:i,size:r,end:i+r,lane:0},c,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++;let p=!1;if(this._awaitingCommandReadBack()||(o?p=this.applyScrollAdjustment(this._getLayoutTotalSize()-l):f&&(p=this.applyScrollAdjustment(c))),this._resizeBatch){this._resizeBatch.notify=!0,(n=this._resizeBatch).sync||(n.sync=p);return}this.notify(p),this._noteClampMax(),this._flushHoldIfReady(!0),this._retryClampedAdjustment()}},this.getVirtualItems=pn(()=>[this.getVirtualIndexes(),this.getMeasurements(),this._holdOffset],(e,t,n)=>{let r=[];for(let i=0,a=e.length;i<a;i++){let a=t[e[i]];r.push(n===0?a:{...a,start:a.start-n,end:a.end-n})}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._singleLaneMeasurements?.flat,r=this.options.lanes===1&&n!=null;return mn(t[Wn(0,t.length-1,r?e=>n[e*2]:e=>mn(t[e]).start,e)])},this._noteClampMax=()=>{if(!this._awaitingCommandReadBack())return;let e=this._elementMaxScrollOffset();if(e===null)return;let t=this.pendingWrite,n=Math.max(e,0)+this._holdOffset;if(n>=t.target)return;let r=t.lowMaxes??=[];r[r.length-1]!==n&&r.push(n)},this.getMaxScrollOffset=()=>(this._elementMaxScrollOffset()??0)+this._holdOffset,this._toLayoutOffset=e=>{let t=e+this._holdOffset;return this.pendingScrollAnchor?.kind===`anchor`&&(t+=this.pendingScrollAnchor.delta),t},this._elementMaxScrollOffset=()=>{let e=this.scrollElement;if(e===null)return null;if(`scrollHeight`in e)return this.options.horizontal?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight;if(`document`in e){let t=e.document.documentElement;return this.options.horizontal?t.scrollWidth-e.innerWidth:t.scrollHeight-e.innerHeight}return null},this._momentumStop=null,this._stopMomentum=e=>{let t=this.scrollElement,n=this.targetWindow;if(t===null||n===null)return;let r=`document`in t?t.document.scrollingElement:t;if(!r?.style)return;if(this._momentumStop){this._momentumStop.done=e;return}let{style:i}=r,a=this.options.horizontal?`overflow-x`:`overflow-y`,o=i.getPropertyValue(a),s=i.getPropertyPriority(a);i.setProperty(a,`hidden`,`important`);let c={restore:()=>i.getPropertyValue(a)!==`hidden`||i.getPropertyPriority(a)!==`important`?!1:(i.setProperty(a,o,s),!0),done:e};this._momentumStop=c,n.requestAnimationFrame(()=>n.requestAnimationFrame(()=>{this._momentumStop===c&&(this._momentumStop=null,c.restore()&&c.done())}))},this._clampedBy=e=>{let t=this._elementMaxScrollOffset();if(t===null)return null;let n=t+this._holdOffset;return e>n+.5?{target:e,maxAtWrite:n}:null},this.getVirtualDistanceFromEnd=()=>Math.max(this._getLayoutTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1){let e=this.getMaxScrollOffset(),n=e-this.options.paddingEnd+this.options.scrollPaddingEnd;return[Math.max(Math.min(n,e),0),t]}let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._startScroll({index:null,align:t},this.getOffsetForAlignment(e,t),n,`absolute`)},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r;this._startScroll({index:e,align:a},i,n,`absolute`)},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getOffsetForAlignment((this.getCommandWrittenOffset()??this.getScrollOffset())+e,`start`);this._startScroll({index:null,align:`start`},n,t,`relative`)},this.scrollToEnd=({behavior:e=`auto`}={})=>{this.options.count>0?this._startScroll({index:this.options.count-1,align:`end`,toEnd:!0},Math.max(this.getMaxScrollOffset(),0),e,`absolute`):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.cancelScroll=()=>{this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null},this.getTotalSize=()=>Math.max(this._getLayoutTotalSize()-this._holdOffset,0),this._getLayoutTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._singleLaneMeasurements?.flat;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n}={})=>{let r={target:e+(t??0),smooth:n===`smooth`};return this.pendingWrite=r,this.options.scrollToFn(e-this._holdOffset,{behavior:n,adjustments:t},this),r},this.getCommandWrittenOffset=()=>this.scrollState!==null&&this.pendingWrite!==null&&!this.pendingWrite.smooth?this.pendingWrite.target:null,this._awaitingCommandReadBack=()=>{let e=this.getCommandWrittenOffset();return!(wn()&&this._iosGesture.dragging())&&e!==null&&!hn(e,this.getScrollOffset())},this._followOffsetTarget=e=>{this.scrollState!==null&&this.scrollState.index==null&&(this.scrollState.lastTargetOffset+=e)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}get scrollAdjustments(){return 0}applyScrollAdjustment(e,t){if(e===0)return!1;if(this._followOffsetTarget(e),this._canWriteScroll()){let n=this.getScrollOffset();this._clampedAdjustment=this._clampedBy(n+e);let r=this._scrollToOffset(n,{adjustments:e,behavior:t});return this.scrollOffset!==null&&(this.pendingWrite===r&&(this.scrollOffset+=e),this.scrollOffset<0&&(this.scrollOffset=0)),!0}return this._holdOffset+=e,this.scrollOffset!==null&&(this.scrollOffset+=e),!0}scheduleScrollReconcile(){this.targetWindow?this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}):this.scrollState=null}getScrollStateTarget(e){let t=e.toEnd?[Math.max(this.getMaxScrollOffset(),0)]:e.index==null?void 0:this.getOffsetForIndex(e.index,e.align);return t?t[0]:e.lastTargetOffset}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}if(this.scrollState.phase===`queued`){this.scheduleScrollReconcile();return}this.getMeasurements();let e=this.getScrollStateTarget(this.scrollState),t=this.scrollState.index==null?1:this.options.useAnimationFrameWithResizeObserver?3:2,n=e!==this.scrollState.lastTargetOffset;if(!n&&hn(e,this.getScrollOffset())){if(this.scrollState.phase===`smooth`?this.scrollState.phase=`smoothLanded`:this.scrollState.phase===`smoothFinishing`&&(this.scrollState.phase=`instant`),this.scrollState.stableFrames++,this.scrollState.stableFrames>=t){this.getScrollOffset()!==e&&this._scrollToOffset(e,{behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let t=this.getSize()||600,n=Math.abs(e-this.getScrollOffset()),r=Vn(this.scrollState)&&n>t;this.scrollState.lastTargetOffset=e,r?this.scrollState.phase=`smooth`:this.scrollState.phase===`smooth`?this.scrollState.phase=`smoothFinishing`:this.scrollState.phase===`smoothLanded`&&(this.scrollState.phase=`instant`),this._scrollToOffset(e,{behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}_startScroll(e,t,n,r){this.pendingScrollAnchor=null,this._clampedAdjustment=null;let i=this._iosGesture.tail();if(r===`absolute`&&i!==null){if(i===`fling`&&En()){this._stopMomentum(()=>{this.scrollState?.phase!==`queued`||this._iosGesture.tail()!==`fling`||this._reportedOverscroll||(this._iosGesture.end(),this._flushHoldIfReady(!0),this._writeAwaitingCommand())}),this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,phase:`queued`,behavior:n,samples:[]},this.scheduleScrollReconcile();return}this._iosGesture.end()}this.scrollState={...e,startedAt:this.now(),lastTargetOffset:t,stableFrames:0,behavior:n,phase:Bn(n,e.index!=null&&hn(t,this.getScrollOffset()))},this._scrollToOffset(t,{behavior:n}),this.scheduleScrollReconcile()}},Wn=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function Gn(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function Kn(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=Gn(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=Wn(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function qn(e){let t=new Un(L(e)),r=f(t),i=t._didMount();return M(()=>L(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),M(()=>L(e),e=>{t.setOptions({...e,onChange:(t,n)=>{var i;O(r),(i=e.onChange)==null||i.call(e,t,n)}}),t._willUpdate(),O(r)},{immediate:!0}),n(i),r}function Jn(e){return qn(x(()=>({observeElementRect:Nn,observeElementOffset:Ln,scrollToFn:zn,...L(e)})))}var Yn=P({__name:`ListboxVirtualizer`,props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){let t=e,n=R(),r=Yt(),a=be(),{getItems:o}=qe();r.isVirtual.value=!0;let s=x(()=>{let e=a.value;if(e){let t=window.getComputedStyle(e);return{start:Number.parseFloat(t.paddingBlockStart||t.paddingTop),end:Number.parseFloat(t.paddingBlockEnd||t.paddingBottom)}}return{start:0,end:0}}),c=Jn({get scrollPaddingStart(){return s.value.start},get scrollPaddingEnd(){return s.value.end},get count(){return t.options.length},get horizontal(){return r.orientation.value===`horizontal`},estimateSize(e){return typeof t.estimateSize==`function`?t.estimateSize(e):t.estimateSize??28},getScrollElement(){return a.value},overscan:t.overscan??12}),u=x(()=>c.value.getVirtualItems().map(e=>{let r=n.default({option:t.options[e.index],virtualizer:c.value,virtualItem:e})[0],i=r.type===g&&Array.isArray(r.children)?r.children.find(e=>typeof e.type!=`symbol`):r;return{item:e,is:d(i,{key:`${e.key}`,"data-index":e.index,"aria-setsize":t.options.length,"aria-posinset":e.index+1,style:{position:`absolute`,top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:`none`}})}}));r.virtualFocusHook.on(({event:e,scroll:n})=>{let i=t.options.findIndex(e=>Array.isArray(r.modelValue.value)?Gt(e,r.modelValue.value[0],r.by):Gt(e,r.modelValue.value,r.by));i===-1?n?r.highlightFirstItem():requestAnimationFrame(()=>{let e=o().find(e=>e.ref.dataset.disabled!==``)?.ref;e&&r.changeHighlight(e,!1,!1)}):(e?.preventDefault(),c.value.scrollToIndex(i,{align:`start`}),requestAnimationFrame(()=>{let t=Ut(a.value);if(t){let i=e?!0:n?void 0:!1;r.changeHighlight(t,n,i)}}))}),r.virtualHighlightHook.on(e=>{let n=t.options.findIndex(t=>Gt(t,e,r.by));c.value.scrollToIndex(n,{align:`start`}),requestAnimationFrame(()=>{let e=Ut(a.value);e&&r.changeHighlight(e)})});let f=Ce(``,1e3),p=x(()=>{let e=e=>t.textContent?t.textContent(e):e?.toString().toLowerCase();return t.options.map((t,n)=>({index:n,textContent:e(t)}))});function m(e,n){if(!r.firstValue?.value||!r.multiple.value||!Array.isArray(r.modelValue.value))return;let i=o().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===r.highlightedElement.value)?.value;if(!i)return;let a=null;switch(n){case`prev`:case`next`:a=ct(t.options,r.firstValue.value,i);break;case`first`:a=ct(t.options,r.firstValue.value,t.options?.[0]);break;case`last`:a=ct(t.options,r.firstValue.value,t.options.at(-1))}r.modelValue.value=a}return r.virtualKeydownHook.on(e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n)return;let i=Kt[e.key];if(n&&e.key===`a`&&r.multiple.value?(e.preventDefault(),r.modelValue.value=[...t.options],i=`last`):e.shiftKey&&i&&m(e,i),[`first`,`last`].includes(i)){e.preventDefault();let n=i===`first`?0:t.options.length-1;c.value.scrollToIndex(n),requestAnimationFrame(()=>{let e=o(),t=i===`first`?e[0]:e.at(-1);t&&r.changeHighlight(t.ref)})}else if(!i&&!n){f.value+=e.key;let t=Number(X()?.getAttribute(`data-index`)),n=p.value[t].textContent,i=It(p.value.map(e=>e.textContent??``),f.value,n),o=p.value.find(e=>e.textContent===i);o&&(c.value.scrollToIndex(o.index,{align:`start`}),requestAnimationFrame(()=>{let e=a.value.querySelector(`[data-index="${o.index}"]`);e instanceof HTMLElement&&r.changeHighlight(e)}))}}),(e,t)=>(C(),F(`div`,{"data-reka-virtualizer":``,style:i({position:`relative`,width:`100%`,height:`${L(c).getTotalSize()}px`})},[(C(!0),F(g,null,I(u.value,({is:e,item:t})=>(C(),l(te(e),{key:t.index}))),128))],4))}});function Xn(e){let t=u(`inline`),n=u(!1),r=u(),i=x(()=>t.value===`popper`&&!n.value),a;Qt({suppressHighlightScroll:i,onHighlightScrollRequest(e){a=e}});function o(e,i){(r.value!==e||t.value!==i)&&(n.value=!1,a=void 0),r.value=e,t.value=i}function s(i){if(r.value!==i||t.value!==`popper`||n.value)return;n.value=!0;let o=a;a=void 0,e.value&&o?.()}function c(e){r.value===e&&(r.value=void 0,t.value=`inline`,n.value=!1,a=void 0)}return{onContentPositionChange:o,onContentPlaced:s,onContentUnmount:c}}var[$,Zn]=W(`ComboboxRoot`),Qn=P({__name:`ComboboxRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},openOnFocus:{type:Boolean,required:!1,default:!1},openOnClick:{type:Boolean,required:!1,default:!1},ignoreFilter:{type:Boolean,required:!1},resetModelValueOnClear:{type:Boolean,required:!1,default:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},multiple:{type:Boolean,required:!1},dir:{type:String,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`highlight`,`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,{primitiveElement:o,currentElement:s}=Ke(),{multiple:d,disabled:f,ignoreFilter:m,resetSearchTermOnSelect:g,openOnFocus:_,openOnClick:b,dir:S,resetModelValueOnClear:w,highlightOnHover:ee,loop:T,unmountOnHide:te}=y(r),ne=le(S),D=G(r,`modelValue`,i,{defaultValue:r.defaultValue??(d.value?[]:void 0),passive:r.modelValue===void 0,deep:!0}),O=G(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});async function A(e){O.value=e,V.value=``,e?(await v(),o.value?.highlightSelected(),M.value=!0,P.value?.focus()):(M.value=!1,setTimeout(()=>{!e&&r.resetSearchTermOnBlur&&j.trigger()},1))}let j=Ee(),M=u(!1),N=u(!1),P=u(),F=u(),I=x(()=>o.value?.highlightedElement??void 0),re=Xn(O),R=u(new Map),z=u(new Map),{contains:B}=vt({sensitivity:`base`}),V=u(``),ae=x(e=>{if(!V.value||r.ignoreFilter||N.value)return{count:R.value.size,items:e?.items??new Map,groups:e?.groups??new Set(z.value.keys())};let t=0,n=new Map,i=new Set;for(let[e,r]of R.value){let i=B(r,V.value);n.set(e,+!!i),i&&t++}for(let[e,t]of z.value)for(let r of t)if(n.get(r)>0){i.add(e);break}return{count:t,items:n,groups:i}}),H=ie();return c(()=>{H?.exposed&&(H.exposed.highlightItem=o.value?.highlightItem,H.exposed.highlightFirstItem=o.value?.highlightFirstItem,H.exposed.highlightSelected=o.value?.highlightSelected)}),t({filtered:ae,highlightedElement:I,highlightItem:o.value?.highlightItem,highlightFirstItem:o.value?.highlightFirstItem,highlightSelected:o.value?.highlightSelected}),Zn({modelValue:D,multiple:d,disabled:f,open:O,onOpenChange:A,...re,contentId:``,isUserInputted:M,isVirtual:N,inputElement:P,highlightedElement:I,onInputElementChange:e=>P.value=e,triggerElement:F,onTriggerElementChange:e=>F.value=e,parentElement:s,resetSearchTermOnSelect:g,onResetSearchTerm:j.on,allItems:R,allGroups:z,filterSearch:V,filterState:ae,ignoreFilter:m,openOnFocus:_,openOnClick:b,resetModelValueOnClear:w,unmountOnHide:te}),(t,n)=>(C(),l(L(de),null,{default:E(()=>[k(L($t),a({ref_key:`primitiveElement`,ref:o},t.$attrs,{modelValue:L(D),"onUpdate:modelValue":n[0]||=e=>h(D)?D.value=e:null,style:{pointerEvents:L(O)?`auto`:void 0},as:e.as,"as-child":e.asChild,dir:L(ne),multiple:L(d),name:e.name,required:e.required,disabled:L(f),"highlight-on-hover":L(ee),loop:L(T),by:r.by,onHighlight:n[1]||=e=>i(`highlight`,e)}),{default:E(()=>[p(t.$slots,`default`,{open:L(O),modelValue:L(D)})]),_:3},16,[`modelValue`,`style`,`as`,`as-child`,`dir`,`multiple`,`name`,`required`,`disabled`,`highlight-on-hover`,`loop`,`by`])]),_:3}))}}),$n=P({__name:`ComboboxAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let{forwardRef:t}=Y();return(n,r)=>(C(),l(L(me),{"as-child":``,reference:e.reference},{default:E(()=>[k(L(J),a({ref:L(t),"as-child":e.asChild,as:e.as},n.$attrs),{default:E(()=>[p(n.$slots,`default`)]),_:3},16,[`as-child`,`as`])]),_:3},8,[`reference`]))}}),[er,tr]=W(`ComboboxContent`),nr=P({__name:`ComboboxContentImpl`,props:{position:{type:String,required:!1,default:`inline`},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=e,r=t,{position:i}=y(n),o=$(),s=Symbol(`ComboboxContent`);M(i,e=>o.onContentPositionChange(s,e),{immediate:!0});let d=x(()=>o.ignoreFilter.value?o.allItems.value.size===0:o.filterState.value.count===0),{forwardRef:f,currentElement:m}=Y(),h=dt(n.present&&n.bodyLock);M([()=>n.present,()=>n.bodyLock],([e,t])=>h.value=e&&t),bt(),Mt(x(()=>n.present?o.parentElement.value:void 0));let g=x(()=>{if(n.position===`popper`){let{present:e,...t}=n;return t}return{}}),_=je(g),b={boxSizing:`border-box`,"--reka-combobox-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-combobox-content-available-width":`var(--reka-popper-available-width)`,"--reka-combobox-content-available-height":`var(--reka-popper-available-height)`,"--reka-combobox-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-combobox-trigger-height":`var(--reka-popper-anchor-height)`};tr({position:i});let S=u(!1);c(()=>{o.inputElement.value&&(S.value=m.value.contains(o.inputElement.value),n.present&&S.value&&o.inputElement.value.focus())}),M(()=>n.present,async(e,t)=>{if(e||!t)return;let n=X();n&&m.value.contains(n)&&(await v(),o.triggerElement.value?.focus())}),V(()=>{o.onContentUnmount(s);let e=X();S.value&&(!e||e===document.body)&&o.triggerElement.value?.focus()});function w(e){if(o.parentElement.value?.contains(e))return!0;let t=(e instanceof Element?e.closest(`label`):null)?.control;return!!t&&!!o.parentElement.value?.contains(t)}let ee={placed:()=>o.onContentPlaced(s)};return(t,s)=>(C(),l(L(en),{"as-child":``},{default:E(()=>[k(L(Bt),{"as-child":``,present:n.present,onMountAutoFocus:s[5]||=oe(()=>{},[`prevent`]),onUnmountAutoFocus:s[6]||=oe(()=>{},[`prevent`])},{default:E(()=>[k(L(ce),{"as-child":``,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onDismiss:s[0]||=e=>L(o).onOpenChange(!1),onFocusOutside:s[1]||=e=>{w(e.target)&&e.preventDefault(),r(`focusOutside`,e)},onInteractOutside:s[2]||=e=>r(`interactOutside`,e),onEscapeKeyDown:s[3]||=e=>r(`escapeKeyDown`,e),onPointerDownOutside:s[4]||=e=>{w(e.target)&&e.preventDefault(),r(`pointerDownOutside`,e)}},{default:E(()=>[(C(),l(te(L(i)===`popper`?L(pe):L(J)),a({...t.$attrs,...L(_)},{id:L(o).contentId,ref:L(f),"memo-dependencies":L(i)===`popper`?[L(o).filterSearch.value,L(o).filterState.value]:void 0,"data-state":L(o).open.value?`open`:`closed`,"data-empty":d.value?``:void 0,style:{display:n.hideWhenEmpty&&d.value?`none`:`flex`,flexDirection:`column`,outline:`none`,...L(i)===`popper`?b:{}}},N(L(i)===`popper`?ee:{})),{default:E(()=>[p(t.$slots,`default`)]),_:3},16,[`id`,`memo-dependencies`,`data-state`,`data-empty`,`style`]))]),_:3},8,[`present`,`disable-outside-pointer-events`])]),_:3},8,[`present`])]),_:3}))}}),rr=P({__name:`ComboboxArrow`,props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`svg`}},setup(e){let t=e,n=$(),r=er();return Y(),(e,i)=>L(n).open.value&&L(r).position.value===`popper`?(C(),l(L(ge),o(a({key:0},t)),{default:E(()=>[p(e.$slots,`default`)]),_:3},16)):m(`v-if`,!0)}}),ir=P({__name:`ComboboxCancel`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;Y();let n=$();function r(){n.inputElement.value&&(n.inputElement.value.value=``,n.inputElement.value.focus()),n.resetModelValueOnClear?.value&&(n.modelValue.value=n.multiple.value?[]:null),n.filterSearch.value=``}return(n,i)=>(C(),l(L(J),a({type:e.as===`button`?`button`:void 0},t,{tabindex:`-1`,onClick:r}),{default:E(()=>[p(n.$slots,`default`)]),_:3},16,[`type`]))}}),ar=P({__name:`ComboboxContent`,props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},hideWhenEmpty:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`],setup(e,{emit:t}){let n=he(e,t),{forwardRef:r}=Y(),i=$();return i.contentId||=U(void 0,`reka-combobox-content`),(t,o)=>(C(),l(L(Je),{present:e.forceMount||L(i).open.value,"force-mount":e.forceMount||!L(i).unmountOnHide.value},{default:E(({present:e})=>[b(k(nr,a({...L(n),...t.$attrs},{ref:L(r),present:L(i).unmountOnHide.value||e}),{default:E(()=>[p(t.$slots,`default`)]),_:3},16,[`present`]),[[ae,L(i).unmountOnHide.value||e]])]),_:3},8,[`present`,`force-mount`]))}}),or=P({__name:`ComboboxEmpty`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let n=t,r=$(),i=x(()=>r.ignoreFilter.value?r.allItems.value.size===0:r.filterState.value.count===0);return(t,r)=>i.value?(C(),l(L(J),o(a({key:0},n)),{default:E(()=>[p(t.$slots,`default`,{},()=>[r[0]||=e(`No options`,-1)])]),_:3},16)):m(`v-if`,!0)}}),[sr,cr]=W(`ComboboxGroup`),lr=P({__name:`ComboboxGroup`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=U(void 0,`reka-combobox-group`),r=$(),i=x(()=>r.ignoreFilter.value?!0:!r.filterSearch.value||r.filterState.value.groups.has(n)),o=cr({id:n,labelId:``});return c(()=>{r.allGroups.value.has(n)||r.allGroups.value.set(n,new Set)}),V(()=>{r.allGroups.value.delete(n)}),(e,r)=>(C(),l(L(an),a({id:L(n),"aria-labelledby":L(o).labelId},t,{hidden:!i.value||void 0}),{default:E(()=>[p(e.$slots,`default`)]),_:3},16,[`id`,`aria-labelledby`,`hidden`]))}}),ur=P({__name:`ComboboxInput`,props:{displayValue:{type:Function,required:!1},modelValue:{type:String,required:!1},autoFocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`input`}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=$(),a=Yt(),{primitiveElement:o,currentElement:s}=Ke(),u=G(n,`modelValue`,r,{passive:n.modelValue===void 0});c(()=>{s.value&&i.onInputElementChange(s.value)});let{isComposing:d,shouldDeferInput:f,handleCompositionStart:m,handleCompositionUpdate:g,handleCompositionEnd:_}=_t(e=>{let t=e.target;t&&b(t.value)});function y(e){d.value||(e.preventDefault(),i.open.value||i.onOpenChange(!0))}function b(e){i.open.value?i.filterSearch.value=e:(i.onOpenChange(!0),v(()=>{e&&(i.filterSearch.value=e,a.highlightFirstItem())}))}function x(e){f.value||b(e.target.value)}function S(){i.openOnFocus.value&&!i.open.value&&i.onOpenChange(!0)}function w(e){if(!i.open.value)return;let t=e.relatedTarget;if(!t)return;let n=i.parentElement.value?.contains(t),r=document.getElementById(i.contentId)?.contains(t);!n&&!r&&requestAnimationFrame(()=>{if(!i.open.value)return;let e=document.activeElement;!i.parentElement.value?.contains(e)&&!document.getElementById(i.contentId)?.contains(e)&&i.onOpenChange(!1)})}function ee(){i.openOnClick.value&&!i.open.value&&i.onOpenChange(!0)}function T(){let e=i.modelValue.value;n.displayValue?u.value=n.displayValue(e):!i.multiple.value&&e&&!Array.isArray(e)?typeof e==`object`?u.value=``:u.value=e.toString():u.value=``,v(()=>{u.value=u.value})}return i.onResetSearchTerm(()=>{T()}),M(i.modelValue,async()=>{!i.isUserInputted.value&&i.resetSearchTermOnSelect.value&&T()},{immediate:!0,deep:!0}),M(i.filterState,(e,t)=>{!i.isVirtual.value&&t.count===0&&a.highlightFirstItem()}),(t,n)=>(C(),l(L(tn),{ref_key:`primitiveElement`,ref:o,modelValue:L(u),"onUpdate:modelValue":n[0]||=e=>h(u)?u.value=e:null,as:e.as,"as-child":e.asChild,"auto-focus":e.autoFocus,disabled:e.disabled,"aria-expanded":L(i).open.value,"aria-controls":L(i).contentId,"aria-autocomplete":`list`,role:`combobox`,autocomplete:`off`,onClick:ee,onInput:x,onKeydown:H(y,[`down`,`up`]),onFocus:S,onBlur:w,onCompositionstart:L(m),onCompositionupdate:L(g),onCompositionend:L(_)},{default:E(()=>[p(t.$slots,`default`)]),_:3},8,[`modelValue`,`as`,`as-child`,`auto-focus`,`disabled`,`aria-expanded`,`aria-controls`,`onCompositionstart`,`onCompositionupdate`,`onCompositionend`]))}}),dr=P({__name:`ComboboxItem`,props:{textValue:{type:String,required:!1},value:{type:null,required:!0},disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`select`],setup(t,{emit:n}){let i=t,s=n,u=U(void 0,`reka-combobox-item`),d=$(),f=sr(null),{primitiveElement:h,currentElement:g}=Ke();if(i.value===``)throw Error(`A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.`);let v=x(()=>{if(d.isVirtual.value||d.ignoreFilter.value||!d.filterSearch.value)return!0;{let e=d.filterState.value.items.get(u);return e===void 0||e>0}});return c(()=>{d.allItems.value.set(u,i.textValue||g.value.textContent||g.value.innerText);let e=f?.id;e&&(d.allGroups.value.has(e)?d.allGroups.value.get(e)?.add(u):d.allGroups.value.set(e,new Set([u])))}),V(()=>{d.allItems.value.delete(u)}),(n,c)=>v.value?r([v.value,L(d).filterSearch.value,L(d).disabled.value,t.disabled,i.value,i.as,i.asChild,...Object.values(n.$attrs)],()=>(C(),l(L(ln),a({key:0},i,{id:L(u),ref_key:`primitiveElement`,ref:h,disabled:L(d).disabled.value||t.disabled,onSelect:c[0]||=e=>{s(`select`,e),!e.defaultPrevented&&(!L(d).multiple.value&&!t.disabled&&!L(d).disabled.value?(e.preventDefault(),L(d).onOpenChange(!1),L(d).modelValue.value=i.value):L(d).multiple.value&&L(d).inputElement.value?.focus())}}),{default:E(r=>[p(n.$slots,`default`,o(A(r)),()=>[e(_(t.value),1)])]),_:3},16,[`id`,`disabled`])),c,1):m(`v-if`,!0)}}),fr=P({__name:`ComboboxItemIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let t=e;return(e,n)=>(C(),l(L(un),o(A(t)),{default:E(()=>[p(e.$slots,`default`)]),_:3},16))}}),pr=P({__name:`ComboboxLabel`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`div`}},setup(e){let t=e;Y();let n=sr({id:``,labelId:``});return n.labelId||=U(void 0,`reka-combobox-group-label`),(e,r)=>(C(),l(L(J),a(t,{id:L(n).labelId}),{default:E(()=>[p(e.$slots,`default`)]),_:3},16,[`id`]))}}),mr=P({__name:`ComboboxPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(C(),l(L(at),o(A(t)),{default:E(()=>[p(e.$slots,`default`)]),_:3},16))}}),hr=P({__name:`ComboboxSeparator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return Y(),(e,n)=>(C(),l(L(J),a(t,{"aria-hidden":`true`}),{default:E(()=>[p(e.$slots,`default`)]),_:3},16))}}),gr=P({__name:`ComboboxTrigger`,props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,{forwardRef:n,currentElement:r}=Y(),i=$(),o=x(()=>t.disabled||i.disabled.value||!1);return c(()=>{r.value&&i.onTriggerElementChange(r.value)}),(r,s)=>(C(),l(L(J),a(t,{ref:L(n),type:e.as===`button`?`button`:void 0,tabindex:`-1`,"aria-label":`Show popup`,"aria-haspopup":`listbox`,"aria-expanded":L(i).open.value,"aria-controls":L(i).contentId,"data-state":L(i).open.value?`open`:`closed`,disabled:o.value,"data-disabled":o.value?``:void 0,"aria-disabled":o.value??void 0,onClick:s[0]||=e=>L(i).onOpenChange(!L(i).open.value)}),{default:E(()=>[p(r.$slots,`default`)]),_:3},16,[`type`,`aria-expanded`,`aria-controls`,`data-state`,`disabled`,`data-disabled`,`aria-disabled`]))}}),_r=P({__name:`ComboboxVirtualizer`,props:{options:{type:Array,required:!0},overscan:{type:Number,required:!1},estimateSize:{type:[Number,Function],required:!1},textContent:{type:Function,required:!1}},setup(e){let t=e,n=$();return n.isVirtual.value=!0,(e,n)=>(C(),l(Yn,o(A(t)),{default:E(t=>[p(e.$slots,`default`,o(A(t)))]),_:3},16))}});function vr(){let{contains:e,startsWith:t}=vt({sensitivity:`base`});function n(n,r){return e(n,r)?e(r,n)?0:t(n,r)?1:2:null}function r(e,t,r){if(typeof e!=`object`||!e)return n(String(e),t);let i=null;for(let a of r){let r=Ue(e,a);if(r==null)continue;let o=Array.isArray(r)?r.map(String):[String(r)];for(let e of o){let r=n(e,t);if(r!==null&&(i===null||r<i)&&(i=r),i===0)return 0}}return i}function i(e,t,n){if(!t)return e;let i=[];for(let a of e){let e=r(a,t,n);e!==null&&i.push({item:a,score:e})}return i.sort((e,t)=>e.score-t.score),i.map(({item:e})=>e)}function a(e,t,n){return t?e.map(e=>{let i=[];for(let a of e){if(a==null)continue;if(n.isStructural?.(a)){i.push({item:a,score:-1});continue}let e=r(a,t,n.fields);e!==null&&i.push({item:a,score:e})}let a=0;for(let e=0;e<=i.length;e++)(e===i.length||i[e].score===-1)&&(i.splice(a,e-a,...i.slice(a,e).sort((e,t)=>e.score-t.score)),a=e+1);return i.map(({item:e})=>e)}).filter(e=>e.some(e=>!n.isStructural?.(e))):e}return{score:n,scoreItem:r,filter:i,filterGroups:a}}function yr(e,t){if(typeof e!=`object`||!e)return!1;let n=Ue(e,t);return n!=null&&n!==``}function br(e,t){let n=t?{xs:44,sm:48,md:52,lg:56,xl:60}:{xs:24,sm:28,md:32,lg:36,xl:40};return n[e]??n.md}function xr(e,t,n,r){let i=br(t,!0),a=br(t,!1);return r?()=>i:n?t=>yr(e[t],n)?i:a:()=>a}var Sr={slots:{root:`relative inline-flex items-center`,base:[`w-full rounded-md border-0 appearance-none placeholder:text-dimmed disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`},variants:{fieldGroup:{horizontal:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none`},vertical:{root:`group has-focus-visible:z-[1]`,base:`group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none`}},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`}},Cr=[`id`,`type`,`value`,`name`,`placeholder`,`disabled`,`required`,`autocomplete`],wr=Object.assign({inheritAttrs:!1},{__name:`UInput`,props:{as:{type:null,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},type:{type:null,required:!1,default:`text`},placeholder:{type:String,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},autocomplete:{type:[String,Object],required:!1,default:`off`},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},disabled:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},emits:[`update:modelValue`,`blur`,`change`],setup(e,{expose:t,emit:r}){let i=e,o=r,s=R(),u=Me(`input`,i),d=G(u,`modelValue`,o,{defaultValue:u.defaultValue}),f=ye(),{emitFormBlur:h,emitFormInput:g,emitFormChange:_,size:v,color:y,id:b,name:S,highlight:ee,disabled:T,emitFormFocus:te,ariaAttrs:ne}=Ye(i,{deferInputValidation:!0}),{orientation:O,size:k}=Ae(i),{isLeading:A,isTrailing:j,leadingIconName:M,trailingIconName:N}=ze(u),P=x(()=>y.value??u.color),I=x(()=>ee.value??u.highlight),re=x(()=>k.value??v.value??u.size),ie=x(()=>T.value??u.disabled),z=x(()=>Be({extend:Sr,...f.ui?.input||{}})({type:u.type,color:P.value,variant:u.variant,size:re.value,loading:u.loading,highlight:I.value,fixed:u.fixed,leading:A.value||!!u.avatar||!!s.leading,trailing:j.value||!!s.trailing,fieldGroup:O.value})),V=D(`inputRef`);function ae(e){u.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),(u.modelModifiers?.number||u.type===`number`)&&(e=Le(e)),u.modelModifiers?.nullable&&q(e)&&(e=null),u.modelModifiers?.optional&&!u.modelModifiers?.nullable&&e!==null&&q(e)&&(e=void 0),d.value=e,g()}function H(e){u.modelModifiers?.lazy||ae(e.target.value)}function oe(e){let t=e.target.value;u.modelModifiers?.lazy&&ae(t),u.modelModifiers?.trim&&(e.target.value=t.trim()),_(),o(`change`,e)}function se(e){h(),o(`blur`,e)}function ce(){u.autofocus&&V.value?.focus()}let le;return c(()=>{le=setTimeout(()=>{ce()},u.autofocusDelay)}),n(()=>clearTimeout(le)),t({inputRef:V}),(e,t)=>(C(),l(L(J),{as:L(u).as,"data-slot":e.$attrs[`data-slot`]??`root`,class:B(z.value.root({class:[L(u).ui?.root,L(u).class]}))},{default:E(()=>[w(`input`,a({id:L(b),ref_key:`inputRef`,ref:V,type:L(u).type,value:L(d),name:L(S),placeholder:L(u).placeholder,class:z.value.base({class:L(u).ui?.base}),disabled:ie.value,required:L(u).required,autocomplete:L(u).autocomplete},{...e.$attrs,...L(ne)},{"data-slot":`base`,onInput:H,onBlur:se,onChange:oe,onFocus:t[0]||=(...e)=>L(te)&&L(te)(...e)}),null,16,Cr),p(e.$slots,`default`,{ui:z.value}),L(A)||L(u).avatar||s.leading?(C(),F(`span`,{key:0,"data-slot":`leading`,class:B(z.value.leading({class:L(u).ui?.leading}))},[p(e.$slots,`leading`,{ui:z.value},()=>[L(A)&&L(M)?(C(),l(ke,{key:0,name:L(M),"data-slot":`leadingIcon`,class:B(z.value.leadingIcon({class:L(u).ui?.leadingIcon}))},null,8,[`name`,`class`])):L(u).avatar?(C(),l(He,a({key:1,size:L(u).ui?.leadingAvatarSize||z.value.leadingAvatarSize()},L(u).avatar,{"data-slot":`leadingAvatar`,class:z.value.leadingAvatar({class:L(u).ui?.leadingAvatar})}),null,16,[`size`,`class`])):m(``,!0)])],2)):m(``,!0),L(j)||s.trailing?(C(),F(`span`,{key:1,"data-slot":`trailing`,class:B(z.value.trailing({class:L(u).ui?.trailing}))},[p(e.$slots,`trailing`,{ui:z.value},()=>[L(N)?(C(),l(ke,{key:0,name:L(N),"data-slot":`trailingIcon`,class:B(z.value.trailingIcon({class:L(u).ui?.trailingIcon,leading:L(A)}))},null,8,[`name`,`class`])):m(``,!0)])],2)):m(``,!0)]),_:3},8,[`as`,`data-slot`,`class`]))}}),Tr={slots:{base:[`relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75`,`transition-colors`],leading:`absolute inset-y-0 start-0 flex items-center`,leadingIcon:`shrink-0 text-dimmed`,leadingAvatar:`shrink-0`,leadingAvatarSize:``,trailing:`absolute inset-y-0 end-0 flex items-center`,trailingIcon:`shrink-0 text-dimmed`,value:`truncate pointer-events-none`,placeholder:`truncate text-dimmed`,arrow:`fill-bg stroke-default`,content:[`max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col`,`max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)`],viewport:`relative scroll-py-1 overflow-y-auto flex-1`,group:`p-1 isolate`,empty:`text-center text-muted`,label:`font-semibold text-highlighted`,separator:`-mx-1 my-1 h-px bg-border`,item:[`group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50`,`transition-colors before:transition-colors`],itemLeadingIcon:[`shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default`,`transition-colors`],itemLeadingAvatar:`shrink-0`,itemLeadingAvatarSize:``,itemLeadingChip:`shrink-0`,itemLeadingChipSize:``,itemTrailing:`ms-auto inline-flex gap-1.5 items-center`,itemTrailingIcon:`shrink-0`,itemWrapper:`flex-1 flex flex-col min-w-0`,itemLabel:`truncate`,itemDescription:`truncate text-muted`,input:`border-b border-default`,focusScope:`flex flex-col min-h-0`,trailingClear:`p-0`},variants:{fieldGroup:{horizontal:`not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]`,vertical:`not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]`},size:{xs:{base:`px-2 py-1 text-sm/4 gap-1`,leading:`ps-2`,trailing:`pe-2`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1 text-[10px]/3 gap-1`,item:`p-1 text-xs gap-1`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2 text-xs`},sm:{base:`px-2.5 py-1.5 text-sm/4 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-4`,leadingAvatarSize:`3xs`,trailingIcon:`size-4`,label:`p-1.5 text-[10px]/3 gap-1.5`,item:`p-1.5 text-xs gap-1.5`,itemLeadingIcon:`size-4`,itemLeadingAvatarSize:`3xs`,itemLeadingChip:`size-4`,itemLeadingChipSize:`sm`,itemTrailingIcon:`size-4`,empty:`p-2.5 text-xs`},md:{base:`px-2.5 py-1.5 text-base/5 gap-1.5`,leading:`ps-2.5`,trailing:`pe-2.5`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-1.5 text-xs gap-1.5`,item:`p-1.5 text-sm gap-1.5`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-2.5 text-sm`},lg:{base:`px-3 py-2 text-base/5 gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-5`,leadingAvatarSize:`2xs`,trailingIcon:`size-5`,label:`p-2 text-xs gap-2`,item:`p-2 text-sm gap-2`,itemLeadingIcon:`size-5`,itemLeadingAvatarSize:`2xs`,itemLeadingChip:`size-5`,itemLeadingChipSize:`md`,itemTrailingIcon:`size-5`,empty:`p-3 text-sm`},xl:{base:`px-3 py-2 text-base gap-2`,leading:`ps-3`,trailing:`pe-3`,leadingIcon:`size-6`,leadingAvatarSize:`xs`,trailingIcon:`size-6`,label:`p-2 text-sm gap-2`,item:`p-2 text-base gap-2`,itemLeadingIcon:`size-6`,itemLeadingAvatarSize:`xs`,itemLeadingChip:`size-6`,itemLeadingChipSize:`lg`,itemTrailingIcon:`size-6`,empty:`p-3 text-base`}},variant:{outline:`text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default`,soft:`text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50`,subtle:`text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated`,ghost:`text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent`,none:`text-highlighted bg-transparent focus:outline-none`},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},leading:{true:``},trailing:{true:``},loading:{true:``},highlight:{true:``},fixed:{false:``},type:{file:`file:me-1.5 file:font-medium file:text-muted file:outline-none`},position:{popper:{content:`data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]`},"item-aligned":{content:``}},multiple:{true:``},virtualize:{true:{viewport:`p-1 isolate`},false:{viewport:`divide-y divide-default`}}},compoundVariants:[{color:`primary`,variant:[`outline`,`subtle`],class:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`},{color:`secondary`,variant:[`outline`,`subtle`],class:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`},{color:`success`,variant:[`outline`,`subtle`],class:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`},{color:`info`,variant:[`outline`,`subtle`],class:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`},{color:`warning`,variant:[`outline`,`subtle`],class:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`},{color:`error`,variant:[`outline`,`subtle`],class:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`},{color:`primary`,variant:[`soft`,`ghost`],class:`outline-primary/25 focus-visible:outline-3`},{color:`secondary`,variant:[`soft`,`ghost`],class:`outline-secondary/25 focus-visible:outline-3`},{color:`success`,variant:[`soft`,`ghost`],class:`outline-success/25 focus-visible:outline-3`},{color:`info`,variant:[`soft`,`ghost`],class:`outline-info/25 focus-visible:outline-3`},{color:`warning`,variant:[`soft`,`ghost`],class:`outline-warning/25 focus-visible:outline-3`},{color:`error`,variant:[`soft`,`ghost`],class:`outline-error/25 focus-visible:outline-3`},{color:`primary`,highlight:!0,class:`ring ring-inset ring-primary`},{color:`secondary`,highlight:!0,class:`ring ring-inset ring-secondary`},{color:`success`,highlight:!0,class:`ring ring-inset ring-success`},{color:`info`,highlight:!0,class:`ring ring-inset ring-info`},{color:`warning`,highlight:!0,class:`ring ring-inset ring-warning`},{color:`error`,highlight:!0,class:`ring ring-inset ring-error`},{color:`neutral`,variant:[`outline`,`subtle`],class:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`},{color:`neutral`,variant:[`soft`,`ghost`],class:`outline-inverted/25 focus-visible:outline-3`},{color:`neutral`,highlight:!0,class:`ring ring-inset ring-inverted`},{leading:!0,size:`xs`,class:`ps-7`},{leading:!0,size:`sm`,class:`ps-8`},{leading:!0,size:`md`,class:`ps-9`},{leading:!0,size:`lg`,class:`ps-10`},{leading:!0,size:`xl`,class:`ps-11`},{trailing:!0,size:`xs`,class:`pe-7`},{trailing:!0,size:`sm`,class:`pe-8`},{trailing:!0,size:`md`,class:`pe-9`},{trailing:!0,size:`lg`,class:`pe-10`},{trailing:!0,size:`xl`,class:`pe-11`},{loading:!0,leading:!0,class:{leadingIcon:`animate-spin`}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:`animate-spin`}},{fixed:!1,size:`xs`,class:`md:text-xs`},{fixed:!1,size:`sm`,class:`md:text-xs`},{fixed:!1,size:`md`,class:`md:text-sm`},{fixed:!1,size:`lg`,class:`md:text-sm`}],defaultVariants:{size:`md`,color:`primary`,variant:`outline`,position:`popper`}},Er=[`aria-labelledby`,`aria-multiselectable`],Dr=Object.assign({inheritAttrs:!1},{__name:`USelectMenu`,props:s({id:{type:String,required:!1},placeholder:{type:String,required:!1},searchInput:{type:[Boolean,Object],required:!1,default:!0},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},required:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},clear:{type:[Boolean,Object],required:!1},clearIcon:{type:null,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},virtualize:{type:[Boolean,Object],required:!1,default:!1},valueKey:{type:null,required:!1},labelKey:{type:null,required:!1,default:`label`},descriptionKey:{type:null,required:!1,default:`description`},items:{type:null,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1},modelModifiers:{type:null,required:!1},multiple:{type:Boolean,required:!1},highlight:{type:Boolean,required:!1},fixed:{type:Boolean,required:!1},createItem:{type:[Boolean,String,Object],required:!1},filterFields:{type:Array,required:!1},ignoreFilter:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autofocusDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},resetSearchTermOnBlur:{type:Boolean,required:!1,default:!0},resetSearchTermOnSelect:{type:Boolean,required:!1,default:!0},resetModelValueOnClear:{type:Boolean,required:!1,default:!0},highlightOnHover:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},by:{type:[String,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:``},searchTermModifiers:{}}),emits:s([`change`,`blur`,`focus`,`create`,`clear`,`highlight`,`update:modelValue`,`update:open`],[`update:searchTerm`]),setup(t,{expose:r,emit:i}){let s=t,d=i,f=R(),h=Me(`selectMenu`,s),y=ne(t,`searchTerm`,{type:String,default:``}),{t:b}=Ze(),S=ye(),{filterGroups:te}=vr(),O=Ve(Oe(h,`modelValue`,`defaultValue`,`open`,`defaultOpen`,`required`,`multiple`,`resetSearchTermOnBlur`,`resetSearchTermOnSelect`,`resetModelValueOnClear`,`highlightOnHover`,`loop`,`by`),d),j=it(T(()=>h.portal)),N=T(()=>se(h.content,{side:`bottom`,sideOffset:8,collisionPadding:8,position:`popper`})),P=T(()=>se(h.arrow,{rounded:!0})),ie=x(()=>typeof h.clear==`object`?h.clear:{}),z=T(()=>h.virtualize?se(typeof h.virtualize==`boolean`?{}:h.virtualize,{estimateSize:xr(X.value,G.value??`md`,h.descriptionKey,!!f[`item-description`])}):!1),V=T(()=>se(h.searchInput,{placeholder:b(`selectMenu.search`),variant:`none`,fixed:h.fixed})),{emitFormBlur:ae,emitFormFocus:ce,emitFormInput:le,emitFormChange:ue,size:de,color:fe,id:pe,name:U,highlight:me,disabled:he,ariaAttrs:ge}=Ye(s),{orientation:_e,size:ve}=Ae(s),{isLeading:be,isTrailing:xe,leadingIconName:Se,trailingIconName:Ce}=ze(x(()=>({icon:h.icon,leading:h.leading,leadingIcon:h.leadingIcon,trailing:h.trailing,trailingIcon:h.trailingIcon??S.ui.icons.chevronDown,loading:h.loading,loadingIcon:h.loadingIcon}))),W=x(()=>fe.value??h.color),we=x(()=>me.value??h.highlight),G=x(()=>ve.value??de.value??h.size),Te=x(()=>he.value??h.disabled),[Ee,K]=We(),[De,je]=We({props:{item:{type:[Object,String,Number,Boolean],required:!0},index:{type:Number,required:!1}}}),q=x(()=>Be({extend:Tr,...S.ui?.selectMenu||{}})({color:W.value,variant:h.variant,size:G.value,loading:h.loading,highlight:we.value,fixed:h.fixed,leading:be.value||!!h.avatar||!!f.leading,trailing:xe.value||!!f.trailing,fieldGroup:_e.value,virtualize:!!h.virtualize,multiple:h.multiple}));function J(e){if(h.multiple&&Array.isArray(e)){let t=e.map(e=>Ne(Ge.value,e,{labelKey:h.labelKey,valueKey:h.valueKey,by:h.by})).filter(e=>e!=null&&e!==``);return t.length>0?t.join(`, `):void 0}return Ne(Ge.value,e,{labelKey:h.labelKey,valueKey:h.valueKey,by:h.by})}let Y=x(()=>h.items?.length?Pe(h.items)?h.items:[h.items]:[]),Ge=x(()=>Y.value.flatMap(e=>e)),Ke=x(()=>{if(h.ignoreFilter||!y.value)return Y.value;let e=Array.isArray(h.filterFields)?h.filterFields:[h.labelKey];return te(Y.value,y.value,{fields:e,isStructural:e=>Q(e)&&!!e.type&&[`label`,`separator`].includes(e.type)})}),X=x(()=>Ke.value.flatMap(e=>e)),qe=x(()=>{if(!h.createItem||!y.value)return!1;let e=h.valueKey?{[h.valueKey]:y.value}:y.value;return typeof h.createItem==`object`&&h.createItem.when===`always`||h.createItem===`always`?!X.value.find(t=>Ie(t,e,h.by??h.valueKey)):!X.value.length}),Je=x(()=>typeof h.createItem==`object`?h.createItem.position:`bottom`),Z=D(`triggerRef`);function Qe(){h.autofocus&&Z.value?.$el?.focus({focusVisible:!0})}let $e;c(()=>{$e=setTimeout(()=>{Qe()},h.autofocusDelay)}),n(()=>clearTimeout($e));function et(e){if(ee(h.modelValue)===e)return;h.modelModifiers?.trim&&(typeof e==`string`||e==null)&&(e=e?.trim()??null),h.modelModifiers?.number&&(e=Le(e)),h.modelModifiers?.nullable&&(e??=null),h.modelModifiers?.optional&&!h.modelModifiers?.nullable&&e!==null&&(e??=void 0);let t=new Event(`change`,{target:{value:e}});d(`change`,t),ue(),le(),h.resetSearchTermOnSelect&&(y.value=``)}let tt=u(!1),nt;n(()=>clearTimeout(nt));function rt(e){if(tt.value=e,e){let e=new FocusEvent(`focus`);d(`focus`,e),ce(),clearTimeout(nt)}else{let e=new FocusEvent(`blur`);d(`blur`,e),ae(),h.resetSearchTermOnBlur&&(nt=setTimeout(()=>{y.value=``},100))}}function at(e){if(tt.value)return;let t=e.currentTarget;e.preventDefault(),t.click()}function ot(e){e.preventDefault(),e.stopPropagation(),d(`create`,y.value)}function st(e,t){Q(t)&&(t.disabled?e.preventDefault():t.onSelect?.(e))}function Q(e){return typeof e==`object`&&!!e}function ct(e){return h.multiple&&Array.isArray(e)?e.length===0:e==null||e===``}function lt(){Te.value||d(`clear`)}function ut(e){V.value.autofocus===!1&&e.preventDefault()}let dt=D(`focusScopeRef`);function ft(e){let t=dt.value?.$el;e.defaultPrevented||t?.parentElement?.dataset.state!==`open`||(e.preventDefault(),((V.value.autofocus===!1?null:t.querySelector(`[data-slot="input"] input`))??t).focus({preventScroll:!0}))}function pt(e){let t=document.activeElement;t&&t!==document.body&&!e.target.contains(t)&&e.preventDefault()}let mt=D(`viewportRef`),ht=re(),gt=x(()=>pe.value??`select-menu-${ht}`),_t=`select-menu-listbox-${ht}`,vt=D(`comboboxRootRef`);return M(()=>h.items,async()=>{tt.value&&h.createItem&&(await v(),vt.value?.highlightFirstItem?.())},{flush:`post`}),r({triggerRef:T(()=>Z.value?.$el),viewportRef:T(()=>mt.value)}),(t,n)=>(C(),F(g,null,[k(L(Ee),null,{default:E(()=>[k(L(dr),{"data-slot":`item`,class:B(q.value.item({class:L(h).ui?.item})),value:y.value,onSelect:ot},{default:E(()=>[w(`span`,{"data-slot":`itemLabel`,class:B(q.value.itemLabel({class:L(h).ui?.itemLabel}))},[p(t.$slots,`create-item-label`,{item:y.value},()=>[e(_(L(b)(`selectMenu.create`,{label:y.value})),1)])],2)]),_:3},8,[`class`,`value`])]),_:3}),k(L(De),null,{default:E(({item:n,index:r})=>[Q(n)&&n.type===`label`?(C(),l(L(pr),{key:0,"data-slot":`label`,class:B(q.value.label({class:[L(h).ui?.label,n.ui?.label,n.class]}))},{default:E(()=>[e(_(L(Ue)(n,L(h).labelKey)),1)]),_:2},1032,[`class`])):Q(n)&&n.type===`separator`?(C(),l(L(hr),{key:1,"data-slot":`separator`,class:B(q.value.separator({class:[L(h).ui?.separator,n.ui?.separator,n.class]}))},null,8,[`class`])):(C(),l(L(dr),{key:2,"data-slot":`item`,class:B(q.value.item({class:[L(h).ui?.item,Q(n)&&n.ui?.item,Q(n)&&n.class]})),disabled:Q(n)&&n.disabled,value:L(h).valueKey&&Q(n)?L(Ue)(n,L(h).valueKey):n,onSelect:e=>st(e,n)},{default:E(()=>[p(t.$slots,`item`,{item:n,index:r,ui:q.value},()=>[p(t.$slots,`item-leading`,{item:n,index:r,ui:q.value},()=>[Q(n)&&n.icon?(C(),l(ke,{key:0,name:n.icon,"data-slot":`itemLeadingIcon`,class:B(q.value.itemLeadingIcon({class:[L(h).ui?.itemLeadingIcon,n.ui?.itemLeadingIcon]}))},null,8,[`name`,`class`])):Q(n)&&n.avatar?(C(),l(He,a({key:1,size:n.ui?.itemLeadingAvatarSize||L(h).ui?.itemLeadingAvatarSize||q.value.itemLeadingAvatarSize()},n.avatar,{"data-slot":`itemLeadingAvatar`,class:q.value.itemLeadingAvatar({class:[L(h).ui?.itemLeadingAvatar,n.ui?.itemLeadingAvatar]})}),null,16,[`size`,`class`])):Q(n)&&n.chip?(C(),l(Re,a({key:2,size:n.ui?.itemLeadingChipSize||L(h).ui?.itemLeadingChipSize||q.value.itemLeadingChipSize(),inset:``,standalone:``},n.chip,{"data-slot":`itemLeadingChip`,class:q.value.itemLeadingChip({class:[L(h).ui?.itemLeadingChip,n.ui?.itemLeadingChip]})}),null,16,[`size`,`class`])):m(``,!0)]),w(`span`,{"data-slot":`itemWrapper`,class:B(q.value.itemWrapper({class:[L(h).ui?.itemWrapper,Q(n)&&n.ui?.itemWrapper]}))},[w(`span`,{"data-slot":`itemLabel`,class:B(q.value.itemLabel({class:[L(h).ui?.itemLabel,Q(n)&&n.ui?.itemLabel]}))},[p(t.$slots,`item-label`,{item:n,index:r},()=>[e(_(Q(n)?L(Ue)(n,L(h).labelKey):n),1)])],2),Q(n)&&(L(Ue)(n,L(h).descriptionKey)||f[`item-description`])?(C(),F(`span`,{key:0,"data-slot":`itemDescription`,class:B(q.value.itemDescription({class:[L(h).ui?.itemDescription,Q(n)&&n.ui?.itemDescription]}))},[p(t.$slots,`item-description`,{item:n,index:r},()=>[e(_(L(Ue)(n,L(h).descriptionKey)),1)])],2)):m(``,!0)],2),w(`span`,{"data-slot":`itemTrailing`,class:B(q.value.itemTrailing({class:[L(h).ui?.itemTrailing,Q(n)&&n.ui?.itemTrailing]}))},[p(t.$slots,`item-trailing`,{item:n,index:r,ui:q.value}),k(L(fr),{"as-child":``},{default:E(()=>[k(ke,{name:L(h).selectedIcon||L(S).ui.icons.check,"data-slot":`itemTrailingIcon`,class:B(q.value.itemTrailingIcon({class:[L(h).ui?.itemTrailingIcon,Q(n)&&n.ui?.itemTrailingIcon]}))},null,8,[`name`,`class`])]),_:2},1024)],2)])]),_:2},1032,[`class`,`disabled`,`value`,`onSelect`]))]),_:3}),k(L(Qn),a({ref_key:`comboboxRootRef`,ref:vt},L(O),{"ignore-filter":``,"as-child":``,name:L(U),disabled:Te.value,"onUpdate:modelValue":et,"onUpdate:open":rt}),{default:E(({modelValue:r,open:i})=>[k(L($n),{"as-child":``},{default:E(()=>[k(L(gr),a({id:gt.value,ref_key:`triggerRef`,ref:Z,"data-slot":`base`,class:q.value.base({class:[L(h).ui?.base,L(h).class]}),tabindex:`0`},{"aria-label":void 0,...t.$attrs,...L(ge)},{"aria-controls":_t,onKeydown:[H(at,[`down`]),H(at,[`up`])]}),{default:E(()=>[L(be)||L(h).avatar||f.leading?(C(),F(`span`,{key:0,"data-slot":`leading`,class:B(q.value.leading({class:L(h).ui?.leading}))},[p(t.$slots,`leading`,{modelValue:r,open:i,ui:q.value},()=>[L(be)&&L(Se)?(C(),l(ke,{key:0,name:L(Se),"data-slot":`leadingIcon`,class:B(q.value.leadingIcon({class:L(h).ui?.leadingIcon}))},null,8,[`name`,`class`])):L(h).avatar?(C(),l(He,a({key:1,size:L(h).ui?.itemLeadingAvatarSize||q.value.itemLeadingAvatarSize()},L(h).avatar,{"data-slot":`itemLeadingAvatar`,class:q.value.itemLeadingAvatar({class:L(h).ui?.itemLeadingAvatar})}),null,16,[`size`,`class`])):m(``,!0)])],2)):m(``,!0),p(t.$slots,`default`,{modelValue:r,open:i,ui:q.value},()=>[(C(!0),F(g,null,I([J(r)],e=>(C(),F(g,{key:e},[e==null?(C(),F(`span`,{key:1,"data-slot":`placeholder`,class:B(q.value.placeholder({class:L(h).ui?.placeholder}))},_(L(h).placeholder??`\xA0`),3)):(C(),F(`span`,{key:0,"data-slot":`value`,class:B(q.value.value({class:L(h).ui?.value}))},_(e),3))],64))),128))]),L(xe)||f.trailing||L(h).clear?(C(),F(`span`,{key:1,"data-slot":`trailing`,class:B(q.value.trailing({class:L(h).ui?.trailing}))},[p(t.$slots,`trailing`,{modelValue:r,open:i,ui:q.value},()=>[L(h).clear&&!Te.value&&!ct(r)?(C(),l(L(ir),{key:0,"as-child":``},{default:E(()=>[k(Xe,a({as:`span`,icon:L(h).clearIcon||L(S).ui.icons.close,size:G.value,variant:`link`,color:`neutral`,tabindex:`-1`},ie.value,{"data-slot":`trailingClear`,class:q.value.trailingClear({class:L(h).ui?.trailingClear}),onClick:oe(lt,[`stop`])}),null,16,[`icon`,`size`,`class`])]),_:1})):L(Ce)?(C(),l(ke,{key:1,name:L(Ce),"data-slot":`trailingIcon`,class:B(q.value.trailingIcon({class:L(h).ui?.trailingIcon,leading:L(be)}))},null,8,[`name`,`class`])):m(``,!0)])],2)):m(``,!0)]),_:2},1040,[`id`,`class`])]),_:2},1024),k(L(mr),o(A(L(j))),{default:E(()=>[k(L(Fe),null,{default:E(()=>[k(L(ar),a({"data-slot":`content`,class:q.value.content({class:L(h).ui?.content})},N.value,{role:void 0,"aria-orientation":void 0,"aria-multiselectable":void 0,onFocusOutside:ft}),{default:E(()=>[k(L(Bt),{ref_key:`focusScopeRef`,ref:dt,loop:``,"data-slot":`focusScope`,class:B(q.value.focusScope({class:L(h).ui?.focusScope})),onMountAutoFocus:ut,onUnmountAutoFocus:pt},{default:E(()=>[p(t.$slots,`content-top`),L(h).searchInput?(C(),l(L(ur),{key:0,modelValue:y.value,"onUpdate:modelValue":n[1]||=e=>y.value=e,"display-value":()=>y.value,"aria-controls":_t,"as-child":``},{default:E(()=>[k(wr,a({autofocus:``,autocomplete:`off`,size:G.value},V.value,{"model-modifiers":{trim:L(h).modelModifiers?.trim},"data-slot":`input`,class:q.value.input({class:L(h).ui?.input}),onChange:n[0]||=oe(()=>{},[`stop`])}),null,16,[`size`,`model-modifiers`,`class`])]),_:1},8,[`modelValue`,`display-value`])):m(``,!0),k(L(or),{"data-slot":`empty`,class:B(q.value.empty({class:L(h).ui?.empty}))},{default:E(()=>[p(t.$slots,`empty`,{searchTerm:y.value},()=>[e(_(y.value?L(b)(`selectMenu.noMatch`,{searchTerm:y.value}):L(b)(`selectMenu.noData`)),1)])]),_:3},8,[`class`]),w(`div`,{id:_t,ref_key:`viewportRef`,ref:mt,role:`listbox`,"aria-labelledby":gt.value,"aria-multiselectable":!!L(h).multiple,"aria-orientation":`vertical`,"data-slot":`viewport`,class:B(q.value.viewport({class:L(h).ui?.viewport}))},[L(h).virtualize?(C(),F(g,{key:0},[qe.value&&Je.value===`top`?(C(),l(L(K),{key:0})):m(``,!0),k(L(_r),a({options:X.value,"text-content":e=>Q(e)?L(Ue)(e,L(h).labelKey):String(e)},z.value),{default:E(({option:e,virtualItem:t})=>[k(L(je),{item:e,index:t.index},null,8,[`item`,`index`])]),_:1},16,[`options`,`text-content`]),qe.value&&Je.value===`bottom`?(C(),l(L(K),{key:1})):m(``,!0)],64)):(C(),F(g,{key:1},[qe.value&&Je.value===`top`?(C(),l(L(lr),{key:0,"data-slot":`group`,class:B(q.value.group({class:L(h).ui?.group}))},{default:E(()=>[k(L(K))]),_:1},8,[`class`])):m(``,!0),(C(!0),F(g,null,I(Ke.value,(e,t)=>(C(),l(L(lr),{key:`group-${t}`,"data-slot":`group`,class:B(q.value.group({class:L(h).ui?.group}))},{default:E(()=>[(C(!0),F(g,null,I(e,(e,n)=>(C(),l(L(je),{key:`group-${t}-${n}`,item:e,index:n},null,8,[`item`,`index`]))),128))]),_:2},1032,[`class`]))),128)),qe.value&&Je.value===`bottom`?(C(),l(L(lr),{key:1,"data-slot":`group`,class:B(q.value.group({class:L(h).ui?.group}))},{default:E(()=>[k(L(K))]),_:1},8,[`class`])):m(``,!0)],64))],10,Er),p(t.$slots,`content-bottom`)]),_:3},8,[`class`]),L(h).arrow?(C(),l(L(rr),a({key:0},P.value,{"data-slot":`arrow`,class:q.value.arrow({class:L(h).ui?.arrow})}),null,16,[`class`])):m(``,!0)]),_:3},16,[`class`])]),_:3})]),_:3},16)]),_:3},16,[`name`,`disabled`])],64))}});export{Jn as n,Dr as t};
|