"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("@internationalized/date"),U=require("./calendar-DTAAFwBa.cjs"),be=require("@floating-ui/vue"),ga=require("@internationalized/number");function Gl(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}return n.default=o,Object.freeze(n)}const Zo=Gl(e);function K(o,n){const t=typeof o=="string"&&!n?`${o}Context`:n,a=Symbol(t);return[i=>{const s=e.inject(a,i);if(s||s===null)return s;throw new Error(`Injection \`${a.toString()}\` not found. Component must be used within ${Array.isArray(o)?`one of the following components: ${o.join(", ")}`:`\`${o}\``}`)},i=>(e.provide(a,i),i)]}function dt(o,n,t){const a=t.originalEvent.target,r=new CustomEvent(o,{bubbles:!1,cancelable:!0,detail:t});n&&a.addEventListener(o,n,{once:!0}),a.dispatchEvent(r)}function ct(o,n=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY){return Math.min(Math.max(o,n),t)}function Lt(o,n){let t=o;const a=n.toString(),r=a.indexOf("."),l=r>=0?a.length-r:0;if(l>0){const i=10**l;t=Math.round(t*i)/i}return t}function ql(o,n,t,a){n=Number(n),t=Number(t);const r=(o-(Number.isNaN(n)?0:n))%a;let l=Lt(Math.abs(r)*2>=a?o+Math.sign(r)*(a-Math.abs(r)):o-r,a);return Number.isNaN(n)?!Number.isNaN(t)&&l>t&&(l=Math.floor(Lt(t/a,a))*a):lt&&(l=n+Math.floor(Lt((t-n)/a,a))*a),l=Lt(l,a),l}function Yl(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Xl=function o(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){if(n.constructor!==t.constructor)return!1;var a,r,l;if(Array.isArray(n)){if(a=n.length,a!=t.length)return!1;for(r=a;r--!==0;)if(!o(n[r],t[r]))return!1;return!0}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===t.toString();if(l=Object.keys(n),a=l.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[r]))return!1;for(r=a;r--!==0;){var i=l[r];if(!o(n[i],t[i]))return!1}return!0}return n!==n&&t!==t};const we=Yl(Xl);function Zl(o,n){if(o.length!==n.length)return!1;for(let t=0;twe(s,n)),r=o.findIndex(s=>we(s,t));if(a===-1||r===-1)return[];const[l,i]=[a,r].sort((s,u)=>s-u);return o.slice(l,i+1)}const It=typeof document<"u";function ut(o){return o==null}function pt(o){const{defaultValue:n,defaultPlaceholder:t,granularity:a="day"}=o;if(Array.isArray(n)&&n.length)return n.at(-1).copy();if(n&&!Array.isArray(n))return n.copy();if(t)return t.copy();const r=new Date,l=r.getFullYear(),i=r.getMonth()+1,s=r.getDate();return["hour","minute","second"].includes(a??"day")?new j.CalendarDateTime(l,i,s,0,0,0):new j.CalendarDate(l,i,s)}const Jl=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],Ql=["year","month","day"],Rn={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}};function ei(o){if(Jo(o))return Rn[o];{const n=ai(o);return Jo(n)?Rn[n]:Rn.en}}function Tn(o,n,t){return ti(o)?ei(t)[o]:oi(o)?n:ni(o)?"––":""}function Jo(o){return Jl.includes(o)}function ti(o){return Ql.includes(o)}function ni(o){return o==="hour"||o==="minute"||o==="second"}function oi(o){return o==="era"||o==="dayPeriod"}function ai(o){return Intl.Locale?new Intl.Locale(o).language:o.split("-")[0]}const Xn=["day","month","year"],ya=["hour","minute","second","dayPeriod"],Ca=[...Xn,...ya];function ri(o){return Xn.includes(o)}function ba(o){return Ca.includes(o)}function li(o,n){const t={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short",hourCycle:n===24?"h24":void 0,hour12:n===24?!1:void 0};return o==="day"&&(delete t.second,delete t.hour,delete t.minute,delete t.timeZoneName),o==="hour"&&(delete t.minute,delete t.second),o==="minute"&&delete t.second,t}function wa(o){const n=o.querySelector("[data-selected]");if(n)return n.focus();const t=o.querySelector("[data-today]");if(t)return t.focus();const a=o.querySelector("[data-radix-vue-calendar-day]");if(a)return a.focus()}function ii(o,n){var t;const a=e.shallowRef();return e.watchEffect(()=>{a.value=o()},{...n,flush:(t=void 0)!=null?t:"sync"}),e.readonly(a)}function si(o,n){let t,a,r;const l=e.ref(!0),i=()=>{l.value=!0,r()};e.watch(o,i,{flush:"sync"});const s=typeof n=="function"?n:n.get,u=typeof n=="function"?void 0:n.set,d=e.customRef((c,f)=>(a=c,r=f,{get(){return l.value&&(t=s(),l.value=!1),a(),t},set(p){u==null||u(p)}}));return Object.isExtensible(d)&&(d.trigger=i),d}function Ne(o){return e.getCurrentScope()?(e.onScopeDispose(o),!0):!1}function Pt(){const o=new Set,n=r=>{o.delete(r)};return{on:r=>{o.add(r);const l=()=>n(r);return Ne(l),{off:l}},off:n,trigger:(...r)=>Promise.all(Array.from(o).map(l=>l(...r)))}}function ui(o){let n=!1,t;const a=e.effectScope(!0);return(...r)=>(n||(t=a.run(()=>o(...r)),n=!0),t)}function xa(o){let n=0,t,a;const r=()=>{n-=1,a&&n<=0&&(a.stop(),t=void 0,a=void 0)};return(...l)=>(n+=1,t||(a=e.effectScope(!0),t=a.run(()=>o(...l))),Ne(r),t)}function ve(o){return typeof o=="function"?o():e.unref(o)}function di(o){if(!e.isRef(o))return e.reactive(o);const n=new Proxy({},{get(t,a,r){return e.unref(Reflect.get(o.value,a,r))},set(t,a,r){return e.isRef(o.value[a])&&!e.isRef(r)?o.value[a].value=r:o.value[a]=r,!0},deleteProperty(t,a){return Reflect.deleteProperty(o.value,a)},has(t,a){return Reflect.has(o.value,a)},ownKeys(){return Object.keys(o.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return e.reactive(n)}function Ba(o){return di(e.computed(o))}const Ce=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ci=o=>typeof o<"u",fi=o=>o!=null,pi=Object.prototype.toString,mi=o=>pi.call(o)==="[object Object]",Jt=()=>{},Qo=vi();function vi(){var o,n;return Ce&&((o=window==null?void 0:window.navigator)==null?void 0:o.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ka(o,n){function t(...a){return new Promise((r,l)=>{Promise.resolve(o(()=>n.apply(this,a),{fn:n,thisArg:this,args:a})).then(r).catch(l)})}return t}const _a=o=>o();function hi(o,n={}){let t,a,r=Jt;const l=s=>{clearTimeout(s),r(),r=Jt};return s=>{const u=ve(o),d=ve(n.maxWait);return t&&l(t),u<=0||d!==void 0&&d<=0?(a&&(l(a),a=null),Promise.resolve(s())):new Promise((c,f)=>{r=n.rejectOnCancel?f:c,d&&!a&&(a=setTimeout(()=>{t&&l(t),a=null,c(s())},d)),t=setTimeout(()=>{a&&l(a),a=null,c(s())},u)})}}function gi(o=_a){const n=e.ref(!0);function t(){n.value=!1}function a(){n.value=!0}const r=(...l)=>{n.value&&o(...l)};return{isActive:e.readonly(n),pause:t,resume:a,eventFilter:r}}function Sa(o){return e.getCurrentInstance()}function Ye(o,n=1e4){return e.customRef((t,a)=>{let r=ve(o),l;const i=()=>setTimeout(()=>{r=ve(o),a()},ve(n));return Ne(()=>{clearTimeout(l)}),{get(){return t(),r},set(s){r=s,a(),clearTimeout(l),l=i()}}})}function Zn(o,n=200,t={}){return ka(hi(n,t),o)}function yi(o,n,t={}){const{eventFilter:a=_a,...r}=t;return e.watch(o,ka(a,n),r)}function ea(o,n,t={}){const{eventFilter:a,...r}=t,{eventFilter:l,pause:i,resume:s,isActive:u}=gi(a);return{stop:yi(o,n,{...r,eventFilter:l}),pause:i,resume:s,isActive:u}}function Ci(o,n,...[t]){const{flush:a="sync",deep:r=!1,immediate:l=!0,direction:i="both",transform:s={}}=t||{},u=[],d="ltr"in s&&s.ltr||(p=>p),c="rtl"in s&&s.rtl||(p=>p);return(i==="both"||i==="ltr")&&u.push(ea(o,p=>{u.forEach(m=>m.pause()),n.value=d(p),u.forEach(m=>m.resume())},{flush:a,deep:r,immediate:l})),(i==="both"||i==="rtl")&&u.push(ea(n,p=>{u.forEach(m=>m.pause()),o.value=c(p),u.forEach(m=>m.resume())},{flush:a,deep:r,immediate:l})),()=>{u.forEach(p=>p.stop())}}function bi(o,n){Sa()&&e.onBeforeUnmount(o,n)}function wi(o,n=!0,t){Sa()?e.onMounted(o,t):n?o():e.nextTick(o)}function Jn(o,n,t={}){const{immediate:a=!0}=t,r=e.ref(!1);let l=null;function i(){l&&(clearTimeout(l),l=null)}function s(){r.value=!1,i()}function u(...d){i(),r.value=!0,l=setTimeout(()=>{r.value=!1,l=null,o(...d)},ve(n))}return a&&(r.value=!0,Ce&&u()),Ne(s),{isPending:e.readonly(r),start:u,stop:s}}function xi(o=1e3,n={}){const{controls:t=!1,callback:a}=n,r=Jn(a??Jt,o,n),l=e.computed(()=>!r.isPending.value);return t?{ready:l,...r}:l}function Bi(o,n,t){const a=e.watch(o,(...r)=>(e.nextTick(()=>a()),n(...r)),t);return a}function le(o){var n;const t=ve(o);return(n=t==null?void 0:t.$el)!=null?n:t}const mt=Ce?window:void 0;function pe(...o){let n,t,a,r;if(typeof o[0]=="string"||Array.isArray(o[0])?([t,a,r]=o,n=mt):[n,t,a,r]=o,!n)return Jt;Array.isArray(t)||(t=[t]),Array.isArray(a)||(a=[a]);const l=[],i=()=>{l.forEach(c=>c()),l.length=0},s=(c,f,p,m)=>(c.addEventListener(f,p,m),()=>c.removeEventListener(f,p,m)),u=e.watch(()=>[le(n),ve(r)],([c,f])=>{if(i(),!c)return;const p=mi(f)?{...f}:f;l.push(...t.flatMap(m=>a.map(g=>s(c,m,g,p))))},{immediate:!0,flush:"post"}),d=()=>{u(),i()};return Ne(d),d}function ki(o){return typeof o=="function"?o:typeof o=="string"?n=>n.key===o:Array.isArray(o)?n=>o.includes(n.key):()=>!0}function Qn(...o){let n,t,a={};o.length===3?(n=o[0],t=o[1],a=o[2]):o.length===2?typeof o[1]=="object"?(n=!0,t=o[0],a=o[1]):(n=o[0],t=o[1]):(n=!0,t=o[0]);const{target:r=mt,eventName:l="keydown",passive:i=!1,dedupe:s=!1}=a,u=ki(n);return pe(r,l,c=>{c.repeat&&ve(s)||u(c)&&t(c)},i)}function on(){const o=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{o.value=!0},n),o}function Pa(o){const n=on();return e.computed(()=>(n.value,!!o()))}function Ea(o,n,t={}){const{window:a=mt,...r}=t;let l;const i=Pa(()=>a&&"MutationObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=e.computed(()=>{const p=ve(o),m=(Array.isArray(p)?p:[p]).map(le).filter(fi);return new Set(m)}),d=e.watch(()=>u.value,p=>{s(),i.value&&p.size&&(l=new MutationObserver(n),p.forEach(m=>l.observe(m,r)))},{immediate:!0,flush:"post"}),c=()=>l==null?void 0:l.takeRecords(),f=()=>{s(),d()};return Ne(f),{isSupported:i,stop:f,takeRecords:c}}function _i(o={}){var n;const{window:t=mt,deep:a=!0,triggerOnRemoval:r=!1}=o,l=(n=o.document)!=null?n:t==null?void 0:t.document,i=()=>{var d;let c=l==null?void 0:l.activeElement;if(a)for(;c!=null&&c.shadowRoot;)c=(d=c==null?void 0:c.shadowRoot)==null?void 0:d.activeElement;return c},s=e.ref(),u=()=>{s.value=i()};return t&&(pe(t,"blur",d=>{d.relatedTarget===null&&u()},!0),pe(t,"focus",u,!0)),r&&Ea(l,d=>{d.filter(c=>c.removedNodes.length).map(c=>Array.from(c.removedNodes)).flat().forEach(c=>{c===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function Da(o,n={}){const{immediate:t=!0,fpsLimit:a=void 0,window:r=mt}=n,l=e.ref(!1),i=a?1e3/a:null;let s=0,u=null;function d(p){if(!l.value||!r)return;s||(s=p);const m=p-s;if(i&&mnull,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}function xe(o,n,t={}){const{window:a=mt,...r}=t;let l;const i=Pa(()=>a&&"ResizeObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=e.computed(()=>Array.isArray(o)?o.map(f=>le(f)):[le(o)]),d=e.watch(u,f=>{if(s(),i.value&&a){l=new ResizeObserver(n);for(const p of f)p&&l.observe(p,r)}},{immediate:!0,flush:"post"}),c=()=>{s(),d()};return Ne(c),{isSupported:i,stop:c}}function Ei(o,n={}){const t=_i(n),a=e.computed(()=>le(o));return{focused:e.computed(()=>a.value&&t.value?a.value.contains(t.value):!1)}}function Ra(o=Pi()){const n=e.shallowRef(),t=()=>{const a=le(o);a&&(n.value=a.parentElement)};return wi(t),e.watch(()=>ve(o),t),n}function W(o,n,t,a={}){var r,l,i;const{clone:s=!1,passive:u=!1,eventName:d,deep:c=!1,defaultValue:f,shouldEmit:p}=a,m=e.getCurrentInstance(),g=t||(m==null?void 0:m.emit)||((r=m==null?void 0:m.$emit)==null?void 0:r.bind(m))||((i=(l=m==null?void 0:m.proxy)==null?void 0:l.$emit)==null?void 0:i.bind(m==null?void 0:m.proxy));let v=d;n||(n="modelValue"),v=v||`update:${n.toString()}`;const C=h=>s?typeof s=="function"?s(h):Si(h):h,y=()=>ci(o[n])?C(o[n]):f,x=h=>{p?p(h)&&g(v,h):g(v,h)};if(u){const h=y(),b=e.ref(h);let w=!1;return e.watch(()=>o[n],B=>{w||(w=!0,b.value=C(B),e.nextTick(()=>w=!1))}),e.watch(b,B=>{!w&&(B!==o[n]||c)&&x(B)},{deep:c}),b}else return e.computed({get(){return y()},set(h){x(h)}})}function an(o){return o?o.flatMap(n=>n.type===e.Fragment?an(n.children):[n]):[]}const Di=["INPUT","TEXTAREA"];function Xe(o,n,t,a={}){if(!n||a.enableIgnoredElement&&Di.includes(n.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:l="[data-radix-vue-collection-item]",itemsArray:i=[],loop:s=!0,dir:u="ltr",preventScroll:d=!0,focus:c=!1}=a,[f,p,m,g,v,C]=[o.key==="ArrowRight",o.key==="ArrowLeft",o.key==="ArrowUp",o.key==="ArrowDown",o.key==="Home",o.key==="End"],y=m||g,x=f||p;if(!v&&!C&&(!y&&!x||r==="vertical"&&x||r==="horizontal"&&y))return null;const h=t?Array.from(t.querySelectorAll(l)):i;if(!h.length)return null;d&&o.preventDefault();let b=null;return x||y?b=Ta(h,n,{goForward:y?g:u==="ltr"?f:p,loop:s}):v?b=h.at(0)||null:C&&(b=h.at(-1)||null),c&&(b==null||b.focus()),b}function Ta(o,n,t,a=o.length){if(--a===0)return null;const r=o.indexOf(n),l=t.goForward?r+1:r-1;if(!t.loop&&(l<0||l>=o.length))return null;const i=(l+o.length)%o.length,s=o[i];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?Ta(o,s,t,a):s:null}function $n(o){if(o===null||typeof o!="object")return!1;const n=Object.getPrototypeOf(o);return n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.iterator in o?!1:Symbol.toStringTag in o?Object.prototype.toString.call(o)==="[object Module]":!0}function zn(o,n,t=".",a){if(!$n(n))return zn(o,{},t,a);const r=Object.assign({},n);for(const l in o){if(l==="__proto__"||l==="constructor")continue;const i=o[l];i!=null&&(a&&a(r,l,i,t)||(Array.isArray(i)&&Array.isArray(r[l])?r[l]=[...i,...r[l]]:$n(i)&&$n(r[l])?r[l]=zn(i,r[l],(t?`${t}.`:"")+l.toString(),a):r[l]=i))}return r}function Ri(o){return(...n)=>n.reduce((t,a)=>zn(t,a,"",o),{})}const Ti=Ri(),[rn,$i]=K("ConfigProvider"),Ii=e.defineComponent({inheritAttrs:!1,__name:"ConfigProvider",props:{dir:{default:"ltr"},scrollBody:{type:[Boolean,Object],default:!0},nonce:{default:void 0},useId:{type:Function,default:void 0}},setup(o){const n=o,{dir:t,scrollBody:a,nonce:r}=e.toRefs(n);return $i({dir:t,scrollBody:a,nonce:r,useId:n.useId}),(l,i)=>e.renderSlot(l.$slots,"default")}});let Vi="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ai=(o=21)=>{let n="",t=o;for(;t--;)n+=Vi[Math.random()*64|0];return n};const Mi=xa(()=>{const o=e.ref(new Map),n=e.ref(),t=e.computed(()=>{for(const i of o.value.values())if(i)return!0;return!1}),a=rn({scrollBody:e.ref(!0)});let r=null;const l=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=n.value??"",Qo&&(r==null||r()),n.value=void 0};return e.watch(t,(i,s)=>{var f;if(!Ce)return;if(!i){s&&l();return}n.value===void 0&&(n.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},c=(f=a.scrollBody)!=null&&f.value?typeof a.scrollBody.value=="object"?Ti({padding:a.scrollBody.value.padding===!0?u:a.scrollBody.value.padding,margin:a.scrollBody.value.margin===!0?u:a.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.body.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),Qo&&(r=pe(document,"touchmove",p=>Oi(p),{passive:!1})),e.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),o});function vt(o){const n=Ai(6),t=Mi();t.value.set(n,o??!1);const a=e.computed({get:()=>t.value.get(n)??!1,set:r=>t.value.set(n,r)});return bi(()=>{t.value.delete(n)}),a}function $a(o){const n=window.getComputedStyle(o);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&o.clientWidth1?!0:(n.preventDefault&&n.cancelable&&n.preventDefault(),!1)}const Ni="data-radix-vue-collection-item";function ce(o,n=Ni){const t=o??Symbol();return{createCollection:l=>{const i=e.ref([]);function s(){const u=le(l);return u?i.value=Array.from(u.querySelectorAll(`[${n}]:not([data-disabled])`)):i.value=[]}return e.onBeforeUpdate(()=>{i.value=[]}),e.onMounted(s),e.onUpdated(s),e.watch(()=>l==null?void 0:l.value,s,{immediate:!0}),e.provide(t,i),i},injectCollection:()=>e.inject(t,e.ref([]))}}function ln(o){const n=e.ref(o);function t(){return n.value}function a(v){n.value=v}function r(v,C){return new j.DateFormatter(n.value,C).format(v)}function l(v,C=!0){return U.hasTime(v)&&C?r(U.toDate(v),{dateStyle:"long",timeStyle:"long"}):r(U.toDate(v),{dateStyle:"long"})}function i(v,C={}){return new j.DateFormatter(n.value,{month:"long",year:"numeric",...C}).format(v)}function s(v,C={}){return new j.DateFormatter(n.value,{month:"long",...C}).format(v)}function u(){const v=j.today(j.getLocalTimeZone());return[1,2,3,4,5,6,7,8,9,10,11,12].map(y=>({label:s(U.toDate(v.set({month:y}))),value:y}))}function d(v,C={}){return new j.DateFormatter(n.value,{year:"numeric",...C}).format(v)}function c(v,C){return U.isZonedDateTime(v)?new j.DateFormatter(n.value,{...C,timeZone:v.timeZone}).formatToParts(U.toDate(v)):new j.DateFormatter(n.value,C).formatToParts(U.toDate(v))}function f(v,C="narrow"){return new j.DateFormatter(n.value,{weekday:C}).format(v)}function p(v){var x;return((x=new j.DateFormatter(n.value,{hour:"numeric",minute:"numeric"}).formatToParts(v).find(h=>h.type==="dayPeriod"))==null?void 0:x.value)==="PM"?"PM":"AM"}const m={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function g(v,C,y={}){const x={...m,...y},b=c(v,x).find(w=>w.type===C);return b?b.value:""}return{setLocale:a,getLocale:t,fullMonth:s,fullYear:d,fullMonthAndYear:i,toParts:c,custom:r,part:g,dayPeriod:p,selectedDate:l,dayOfWeek:f,getMonths:u}}function ee(o){const n=rn({dir:e.ref("ltr")});return e.computed(()=>{var t;return(o==null?void 0:o.value)||((t=n.dir)==null?void 0:t.value)||"ltr"})}function ie(o){const n=e.getCurrentInstance(),t=n==null?void 0:n.type.emits,a={};return t!=null&&t.length||console.warn(`No emitted event found. Please check component: ${n==null?void 0:n.type.__name}`),t==null||t.forEach(r=>{a[e.toHandlerKey(e.camelize(r))]=(...l)=>o(r,...l)}),a}let In=0;function eo(){e.watchEffect(o=>{if(!Ce)return;const n=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",n[0]??ta()),document.body.insertAdjacentElement("beforeend",n[1]??ta()),In++,o(()=>{In===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),In--})})}function ta(){const o=document.createElement("span");return o.setAttribute("data-radix-focus-guard",""),o.tabIndex=0,o.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",o}function Be(o){return e.computed(()=>{var n;return ve(o)?!!((n=le(o))!=null&&n.closest("form")):!0})}function Fe(o){const n=e.getCurrentInstance(),t=Object.keys((n==null?void 0:n.type.props)??{}).reduce((r,l)=>{const i=(n==null?void 0:n.type.props[l]).default;return i!==void 0&&(r[l]=i),r},{}),a=e.toRef(o);return e.computed(()=>{const r={},l=(n==null?void 0:n.vnode.props)??{};return Object.keys(l).forEach(i=>{r[e.camelize(i)]=l[i]}),Object.keys({...t,...r}).reduce((i,s)=>(a.value[s]!==void 0&&(i[s]=a.value[s]),i),{})})}function ne(o,n){const t=Fe(o),a=n?ie(n):{};return e.computed(()=>({...t.value,...a}))}function _(){const o=e.getCurrentInstance(),n=e.ref(),t=e.computed(()=>{var i,s;return["#text","#comment"].includes((i=n.value)==null?void 0:i.$el.nodeName)?(s=n.value)==null?void 0:s.$el.nextElementSibling:le(n)}),a=Object.assign({},o.exposed),r={};for(const i in o.props)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o.props[i]});if(Object.keys(a).length>0)for(const i in a)Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>a[i]});Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>o.vnode.el}),o.exposed=r;function l(i){n.value=i,!(i instanceof Element||!i)&&(Object.defineProperty(r,"$el",{enumerable:!0,configurable:!0,get:()=>i.$el}),o.exposed=r)}return{forwardRef:l,currentRef:n,currentElement:t}}function Ia(o,n){const t=Ye(!1,300),a=e.ref(null),r=Pt();function l(){a.value=null,t.value=!1}function i(s,u){const d=s.currentTarget,c={x:s.clientX,y:s.clientY},f=Fi(c,d.getBoundingClientRect()),p=zi(c,f),m=Li(u.getBoundingClientRect()),g=Hi([...p,...m]);a.value=g,t.value=!0}return e.watchEffect(s=>{if(o.value&&n.value){const u=c=>i(c,n.value),d=c=>i(c,o.value);o.value.addEventListener("pointerleave",u),n.value.addEventListener("pointerleave",d),s(()=>{var c,f;(c=o.value)==null||c.removeEventListener("pointerleave",u),(f=n.value)==null||f.removeEventListener("pointerleave",d)})}}),e.watchEffect(s=>{var u;if(a.value){const d=c=>{var C,y;if(!a.value)return;const f=c.target,p={x:c.clientX,y:c.clientY},m=((C=o.value)==null?void 0:C.contains(f))||((y=n.value)==null?void 0:y.contains(f)),g=!Ki(p,a.value),v=f.hasAttribute("data-grace-area-trigger");m?l():(g||v)&&(l(),r.trigger())};(u=o.value)==null||u.ownerDocument.addEventListener("pointermove",d),s(()=>{var c;return(c=o.value)==null?void 0:c.ownerDocument.removeEventListener("pointermove",d)})}}),{isPointerInTransit:t,onPointerExit:r.on}}function Fi(o,n){const t=Math.abs(n.top-o.y),a=Math.abs(n.bottom-o.y),r=Math.abs(n.right-o.x),l=Math.abs(n.left-o.x);switch(Math.min(t,a,r,l)){case l:return"left";case r:return"right";case t:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function zi(o,n,t=5){const a=[];switch(n){case"top":a.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":a.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":a.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":a.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return a}function Li(o){const{top:n,right:t,bottom:a,left:r}=o;return[{x:r,y:n},{x:t,y:n},{x:t,y:a},{x:r,y:a}]}function Ki(o,n){const{x:t,y:a}=o;let r=!1;for(let l=0,i=n.length-1;la!=c>a&&t<(d-s)*(a-u)/(c-u)+s&&(r=!r)}return r}function Hi(o){const n=o.slice();return n.sort((t,a)=>t.xa.x?1:t.ya.y?1:0),Wi(n)}function Wi(o){if(o.length<=1)return o.slice();const n=[];for(let a=0;a=2;){const l=n[n.length-1],i=n[n.length-2];if((l.x-i.x)*(r.y-i.y)>=(l.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}n.pop();const t=[];for(let a=o.length-1;a>=0;a--){const r=o[a];for(;t.length>=2;){const l=t[t.length-1],i=t[t.length-2];if((l.x-i.x)*(r.y-i.y)>=(l.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}return t.pop(),n.length===1&&t.length===1&&n[0].x===t[0].x&&n[0].y===t[0].y?n:n.concat(t)}var ji=function(o){if(typeof document>"u")return null;var n=Array.isArray(o)?o[0]:o;return n.ownerDocument.body},lt=new WeakMap,Kt=new WeakMap,Ht={},Vn=0,Va=function(o){return o&&(o.host||Va(o.parentNode))},Ui=function(o,n){return n.map(function(t){if(o.contains(t))return t;var a=Va(t);return a&&o.contains(a)?a:(console.error("aria-hidden",t,"in not contained inside",o,". Doing nothing"),null)}).filter(function(t){return!!t})},Gi=function(o,n,t,a){var r=Ui(n,Array.isArray(o)?o:[o]);Ht[t]||(Ht[t]=new WeakMap);var l=Ht[t],i=[],s=new Set,u=new Set(r),d=function(f){!f||s.has(f)||(s.add(f),d(f.parentNode))};r.forEach(d);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))c(p);else try{var m=p.getAttribute(a),g=m!==null&&m!=="false",v=(lt.get(p)||0)+1,C=(l.get(p)||0)+1;lt.set(p,v),l.set(p,C),i.push(p),v===1&&g&&Kt.set(p,!0),C===1&&p.setAttribute(t,"true"),g||p.setAttribute(a,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return c(n),s.clear(),Vn++,function(){i.forEach(function(f){var p=lt.get(f)-1,m=l.get(f)-1;lt.set(f,p),l.set(f,m),p||(Kt.has(f)||f.removeAttribute(a),Kt.delete(f)),m||f.removeAttribute(t)}),Vn--,Vn||(lt=new WeakMap,lt=new WeakMap,Kt=new WeakMap,Ht={})}},qi=function(o,n,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(o)?o:[o]),r=ji(o);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live]"))),Gi(a,r,t,"aria-hidden")):function(){return null}};function Vt(o){let n;e.watch(()=>le(o),t=>{t?n=qi(t):n&&n()}),e.onUnmounted(()=>{n&&n()})}let Yi=0;function J(o,n="radix"){if(o)return o;const t=rn({useId:void 0});return Zo.useId?`${n}-${Zo.useId()}`:t.useId?`${n}-${t.useId()}`:`${n}-${++Yi}`}function Xi(o,n){const t=e.ref(),a=(l,i)=>{if(n.multiple&&Array.isArray(o.value))if(n.selectionBehavior==="replace")o.value=[l],t.value=l;else{const s=o.value.findIndex(u=>i(u));s!==-1?o.value.splice(s,1):o.value.push(l)}else n.selectionBehavior==="replace"?o.value={...l}:!Array.isArray(o.value)&&i(o.value)?o.value=void 0:o.value={...l};return o.value};function r(l,i,s,u){var p;if(!(t!=null&&t.value)||!n.multiple||!Array.isArray(o.value))return;const c=(p=s().filter(m=>m.ref.dataset.disabled!=="").find(m=>m.ref===i))==null?void 0:p.value;if(!c)return;let f=null;switch(l){case"prev":case"next":{f=Ge(u,t.value,c);break}case"first":{f=Ge(u,t.value,u==null?void 0:u[0]);break}case"last":{f=Ge(u,t.value,u==null?void 0:u[u.length-1]);break}}o.value=f}return{firstValue:t,onSelectItem:a,handleMultipleReplace:r}}function Aa(o){const n=e.ref(),t=e.computed(()=>{var r;return((r=n.value)==null?void 0:r.width)??0}),a=e.computed(()=>{var r;return((r=n.value)==null?void 0:r.height)??0});return e.onMounted(()=>{const r=le(o);if(r){n.value={width:r.offsetWidth,height:r.offsetHeight};const l=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let u,d;if("borderBoxSize"in s){const c=s.borderBoxSize,f=Array.isArray(c)?c[0]:c;u=f.inlineSize,d=f.blockSize}else u=r.offsetWidth,d=r.offsetHeight;n.value={width:u,height:d}});return l.observe(r,{box:"border-box"}),()=>l.unobserve(r)}else n.value=void 0}),{width:t,height:a}}function to(o,n){const t=e.ref(o);function a(l){return n[t.value][l]??t.value}return{state:t,dispatch:l=>{t.value=a(l)}}}function At(o){const n=Ye("",1e3);return{search:n,handleTypeaheadSearch:(r,l)=>{var p,m;if(!(o!=null&&o.value)&&!l)return;n.value=n.value+r;const i=(o==null?void 0:o.value)??l,s=document.activeElement,u=((m=(p=i.find(g=>g===s))==null?void 0:p.textContent)==null?void 0:m.trim())??"",d=i.map(g=>{var v;return((v=g.textContent)==null?void 0:v.trim())??""}),c=oo(d,n.value,u),f=i.find(g=>{var v;return((v=g.textContent)==null?void 0:v.trim())===c});return f&&f.focus(),f},resetTypeahead:()=>{n.value=""}}}function no(o,n){return o.map((t,a)=>o[(n+a)%o.length])}function oo(o,n,t){const r=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,l=t?o.indexOf(t):-1;let i=no(o,Math.max(l,0));r.length===1&&(i=i.filter(d=>d!==t));const u=i.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return u!==t?u:void 0}function Zi(o,n){return{inheritAttrs:!1,name:`${o.__name??""}Wrapper`,setup(t,a){return()=>{const r=typeof(n==null?void 0:n.props)=="function"?n==null?void 0:n.props(a.attrs):n==null?void 0:n.props,{forwardRef:l}=_(),i=e.mergeProps(r,a.attrs);return e.h(o,{...i,ref:l},a.slots)}}}}function ke(){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"}}const sn=e.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(o,{attrs:n,slots:t}){return()=>{var u,d;if(!t.default)return null;const a=an(t.default()),r=a.findIndex(c=>c.type!==e.Comment);if(r===-1)return a;const l=a[r];(u=l.props)==null||delete u.ref;const i=l.props?e.mergeProps(n,l.props):n;n.class&&((d=l.props)!=null&&d.class)&&delete l.props.class;const s=e.cloneVNode(l,i);for(const c in i)c.startsWith("on")&&(s.props||(s.props={}),s.props[c]=i[c]);return a.length===1?s:(a[r]=s,a)}}}),P=e.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(o,{attrs:n,slots:t}){const a=o.asChild?"template":o.as;return typeof a=="string"&&["area","img","input"].includes(a)?()=>e.h(a,n):a!=="template"?()=>e.h(o.as,n,{default:t.default}):()=>e.h(sn,n,{default:t.default})}});function se(){const o=e.ref(),n=e.computed(()=>{var t,a;return["#text","#comment"].includes((t=o.value)==null?void 0:t.$el.nodeName)?(a=o.value)==null?void 0:a.$el.nextElementSibling:le(o)});return{primitiveElement:o,currentElement:n}}const[Ma,Ji]=K("CollapsibleRoot"),Oa=e.defineComponent({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(o,{expose:n,emit:t}){const a=o,l=W(a,"open",t,{defaultValue:a.defaultOpen,passive:a.open===void 0}),i=W(a,"disabled");return Ji({contentId:"",disabled:i,open:l,onOpenToggle:()=>{l.value=!l.value}}),n({open:l}),_(),(s,u)=>(e.openBlock(),e.createBlock(e.unref(P),{as:s.as,"as-child":a.asChild,"data-state":e.unref(l)?"open":"closed","data-disabled":e.unref(i)?"":void 0},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{open:e.unref(l)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),Na=e.defineComponent({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=Ma();return(a,r)=>{var l,i;return e.openBlock(),e.createBlock(e.unref(P),{type:a.as==="button"?"button":void 0,as:a.as,"as-child":n.asChild,"aria-controls":e.unref(t).contentId,"aria-expanded":e.unref(t).open.value,"data-state":e.unref(t).open.value?"open":"closed","data-disabled":(l=e.unref(t).disabled)!=null&&l.value?"":void 0,disabled:(i=e.unref(t).disabled)==null?void 0:i.value,onClick:e.unref(t).onOpenToggle},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"])}}});function Qi(o,n){const t=e.ref({}),a=e.ref("none"),r=o.value?"mounted":"unmounted",{state:l,dispatch:i}=to(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),s=m=>{var g;if(Ce){const v=new CustomEvent(m,{bubbles:!1,cancelable:!1});(g=n.value)==null||g.dispatchEvent(v)}};e.watch(o,async(m,g)=>{var C;const v=g!==m;if(await e.nextTick(),v){const y=a.value,x=Wt(n.value);m?(i("MOUNT"),s("enter"),x==="none"&&s("after-enter")):x==="none"||((C=t.value)==null?void 0:C.display)==="none"?(i("UNMOUNT"),s("leave"),s("after-leave")):g&&y!==x?(i("ANIMATION_OUT"),s("leave")):(i("UNMOUNT"),s("after-leave"))}},{immediate:!0});const u=m=>{const g=Wt(n.value),v=g.includes(m.animationName),C=l.value==="mounted"?"enter":"leave";m.target===n.value&&v&&(s(`after-${C}`),i("ANIMATION_END")),m.target===n.value&&g==="none"&&i("ANIMATION_END")},d=m=>{m.target===n.value&&(a.value=Wt(n.value))},c=e.watch(n,(m,g)=>{m?(t.value=getComputedStyle(m),m.addEventListener("animationstart",d),m.addEventListener("animationcancel",u),m.addEventListener("animationend",u)):(i("ANIMATION_END"),g==null||g.removeEventListener("animationstart",d),g==null||g.removeEventListener("animationcancel",u),g==null||g.removeEventListener("animationend",u))},{immediate:!0}),f=e.watch(l,()=>{const m=Wt(n.value);a.value=l.value==="mounted"?m:"none"});return e.onUnmounted(()=>{c(),f()}),{isPresent:e.computed(()=>["mounted","unmountSuspended"].includes(l.value))}}function Wt(o){return o&&getComputedStyle(o).animationName||"none"}const re=e.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(o,{slots:n,expose:t}){var d;const{present:a,forceMount:r}=e.toRefs(o),l=e.ref(),{isPresent:i}=Qi(a,l);t({present:i});let s=n.default({present:i});s=an(s||[]);const u=e.getCurrentInstance();if(s&&(s==null?void 0:s.length)>1){const c=(d=u==null?void 0:u.parent)!=null&&d.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(` `)].join(` `))}return()=>r.value||a.value||i.value?e.h(n.default({present:i})[0],{ref:c=>{const f=le(c);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?l.value=f.firstElementChild:l.value=f),f}}):null}}),Fa=e.defineComponent({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Ma();t.contentId||(t.contentId=J(void 0,"radix-vue-collapsible-content"));const a=e.ref(),{forwardRef:r,currentElement:l}=_(),i=e.ref(0),s=e.ref(0),u=e.computed(()=>t.open.value),d=e.ref(u.value),c=e.ref();return e.watch(()=>{var f;return[u.value,(f=a.value)==null?void 0:f.present]},async()=>{await e.nextTick();const f=l.value;if(!f)return;c.value=c.value||{transitionDuration:f.style.transitionDuration,animationName:f.style.animationName},f.style.transitionDuration="0s",f.style.animationName="none";const p=f.getBoundingClientRect();s.value=p.height,i.value=p.width,d.value||(f.style.transitionDuration=c.value.transitionDuration,f.style.animationName=c.value.animationName)},{immediate:!0}),e.onMounted(()=>{requestAnimationFrame(()=>{d.value=!1})}),(f,p)=>(e.openBlock(),e.createBlock(e.unref(re),{ref_key:"presentRef",ref:a,present:f.forceMount||e.unref(t).open.value,"force-mount":!0},{default:e.withCtx(()=>{var m,g;return[e.createVNode(e.unref(P),e.mergeProps(f.$attrs,{id:e.unref(t).contentId,ref:e.unref(r),"as-child":n.asChild,as:f.as,"data-state":e.unref(t).open.value?"open":"closed","data-disabled":(m=e.unref(t).disabled)!=null&&m.value?"":void 0,hidden:!((g=a.value)!=null&&g.present),style:{"--radix-collapsible-content-height":`${s.value}px`,"--radix-collapsible-content-width":`${i.value}px`}}),{default:e.withCtx(()=>{var v;return[(v=a.value)!=null&&v.present?e.renderSlot(f.$slots,"default",{key:0}):e.createCommentVNode("",!0)]}),_:3},16,["id","as-child","as","data-state","data-disabled","hidden","style"])]}),_:3},8,["present"]))}});function za({type:o,defaultValue:n,modelValue:t}){const a=t||n;if(ut(o)&&ut(t)&&ut(n))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(t!==void 0&&n!==void 0&&typeof t!=typeof n)throw new Error(`Invalid prop \`value\` of value \`${t}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${n}\`. The \`value\` prop must be: ${o==="single"?"- a string":o==="multiple"?"- an array of strings":`- a string - an array of strings`} - \`undefined\``);const r=t!==void 0||n!==void 0;if(o&&r){const l=Array.isArray(t)||Array.isArray(n),i=t!==void 0?"modelValue":"defaultValue",s=i==="modelValue"?typeof t:typeof n;if(o==="single"&&l)return console.error(`Invalid prop \`${i}\` of type ${s} supplied with type \`single\`. The \`modelValue\` prop must be a string or \`undefined\`. You can remove the \`type\` prop to let the component infer the type from the ${i} prop.`),"multiple";if(o==="multiple"&&!l)return console.error(`Invalid prop \`${i}\` of type ${s} supplied with type \`multiple\`. The \`modelValue\` prop must be an array of strings or \`undefined\`. You can remove the \`type\` prop to let the component infer the type from the ${i} prop.`),"single"}return r?Array.isArray(a)?"multiple":"single":o}function es({type:o,defaultValue:n,modelValue:t}){return o||za({type:o,defaultValue:n,modelValue:t})}function ts({type:o,defaultValue:n}){return n!==void 0?n:o==="single"?void 0:[]}function La(o,n){const t=e.ref(es(o)),a=W(o,"modelValue",n,{defaultValue:ts(o),passive:o.modelValue===void 0,deep:!0});e.watch(()=>[o.type,o.modelValue,o.defaultValue],()=>{const i=za(o);t.value!==i&&(t.value=i)},{immediate:!0});function r(i){if(t.value==="single")a.value=i===a.value?void 0:i;else{const s=[...a.value||[]];if(s.includes(i)){const u=s.findIndex(d=>d===i);s.splice(u,1)}else s.push(i);a.value=s}}const l=e.computed(()=>t.value==="single");return{modelValue:a,type:t,changeModelValue:r,isSingle:l}}const[un,ns]=K("AccordionRoot"),os=e.defineComponent({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{dir:r,disabled:l}=e.toRefs(t),i=ee(r),{modelValue:s,changeModelValue:u,isSingle:d}=La(t,a),{forwardRef:c,currentElement:f}=_();return ns({disabled:l,direction:i,orientation:t.orientation,parentElement:f,isSingle:d,collapsible:t.collapsible,modelValue:s,changeModelValue:u}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(c),"as-child":p.asChild,as:p.as},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default",{modelValue:e.unref(s)})]),_:3},8,["as-child","as"]))}}),[ao,as]=K("AccordionItem"),rs=e.defineComponent({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},asChild:{type:Boolean},as:{}},setup(o,{expose:n}){const t=o,a=un(),r=e.computed(()=>a.isSingle.value?t.value===a.modelValue.value:Array.isArray(a.modelValue.value)&&a.modelValue.value.includes(t.value)),l=e.computed(()=>a.disabled.value||t.disabled||a.isSingle.value&&r.value&&!a.collapsible),i=e.computed(()=>l.value?"":void 0),s=e.computed(()=>r.value?"open":"closed");n({open:r,dataDisabled:i});const{currentRef:u,currentElement:d}=_();as({open:r,dataState:s,disabled:l,dataDisabled:i,triggerId:"",currentRef:u,currentElement:d,value:e.computed(()=>t.value)});function c(f){Xe(f,d.value,a.parentElement.value,{arrowKeyOptions:a.orientation,dir:a.direction.value,focus:!0})}return(f,p)=>(e.openBlock(),e.createBlock(e.unref(Oa),{"data-orientation":e.unref(a).orientation,"data-disabled":i.value,"data-state":s.value,disabled:l.value,open:r.value,as:t.as,"as-child":t.asChild,onKeydown:e.withKeys(c,["up","down","left","right","home","end"])},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{open:r.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child"]))}}),ls=e.defineComponent({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=un(),a=ao();return _(),(r,l)=>(e.openBlock(),e.createBlock(e.unref(Fa),{role:"region",hidden:!e.unref(a).open.value,"as-child":n.asChild,"force-mount":n.forceMount,"aria-labelledby":e.unref(a).triggerId,"data-state":e.unref(a).dataState.value,"data-disabled":e.unref(a).dataDisabled.value,"data-orientation":e.unref(t).orientation,style:{"--radix-accordion-content-width":"var(--radix-collapsible-content-width)","--radix-accordion-content-height":"var(--radix-collapsible-content-height)"}},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["hidden","as-child","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),is=e.defineComponent({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(o){const n=o,t=un(),a=ao();return _(),(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),{as:n.as,"as-child":n.asChild,"data-orientation":e.unref(t).orientation,"data-state":e.unref(a).dataState.value,"data-disabled":e.unref(a).dataDisabled.value},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),ss=e.defineComponent({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=un(),a=ao();a.triggerId||(a.triggerId=J(void 0,"radix-vue-accordion-trigger"));function r(){a.disabled.value||t.changeModelValue(a.value.value)}return(l,i)=>(e.openBlock(),e.createBlock(e.unref(Na),{id:e.unref(a).triggerId,ref:e.unref(a).currentRef,"data-radix-vue-collection-item":"",as:n.as,"as-child":n.asChild,"aria-disabled":e.unref(a).disabled.value||void 0,"aria-expanded":e.unref(a).open.value||!1,"data-disabled":e.unref(a).dataDisabled.value,"data-orientation":e.unref(t).orientation,"data-state":e.unref(a).dataState.value,disabled:e.unref(a).disabled.value,onClick:r},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[_e,us]=K("DialogRoot"),Ka=e.defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(o,{emit:n}){const t=o,r=W(t,"open",n,{defaultValue:t.defaultOpen,passive:t.open===void 0}),l=e.ref(),i=e.ref(),{modal:s}=e.toRefs(t);return us({open:r,modal:s,openModal:()=>{r.value=!0},onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:l,contentElement:i}),(u,d)=>e.renderSlot(u.$slots,"default",{open:e.unref(r)})}}),Ha=e.defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=_e(),{forwardRef:a,currentElement:r}=_();return t.contentId||(t.contentId=J(void 0,"radix-vue-dialog-content")),e.onMounted(()=>{t.triggerElement.value=r.value}),(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{ref:e.unref(a),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e.unref(t).open.value||!1,"aria-controls":e.unref(t).open.value?e.unref(t).contentId:void 0,"data-state":e.unref(t).open.value?"open":"closed",onClick:e.unref(t).onOpenToggle}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),Ee=e.defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=on();return(t,a)=>e.unref(n)||t.forceMount?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:t.to,disabled:t.disabled},[e.renderSlot(t.$slots,"default")],8,["to","disabled"])):e.createCommentVNode("",!0)}}),ds=e.defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),cs="dismissableLayer.pointerDownOutside",fs="dismissableLayer.focusOutside";function Wa(o,n){const t=n.closest("[data-dismissable-layer]"),a=o.dataset.dismissableLayer===""?o:o.querySelector("[data-dismissable-layer]"),r=Array.from(o.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(t&&a===t||r.indexOf(a){});return e.watchEffect(i=>{if(!Ce)return;const s=async d=>{const c=d.target;if(n!=null&&n.value){if(Wa(n.value,c)){a.value=!1;return}if(d.target&&!a.value){let f=function(){dt(cs,o,p)};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",r.value),r.value=f,t.addEventListener("click",r.value,{once:!0})):f()}else t.removeEventListener("click",r.value);a.value=!1}},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);i(()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>a.value=!0}}function Ua(o,n){var r;const t=((r=n==null?void 0:n.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),a=e.ref(!1);return e.watchEffect(l=>{if(!Ce)return;const i=async s=>{n!=null&&n.value&&(await e.nextTick(),!(!n.value||Wa(n.value,s.target))&&s.target&&!a.value&&dt(fs,o,{originalEvent:s}))};t.addEventListener("focusin",i),l(()=>t.removeEventListener("focusin",i))}),{onFocusCapture:()=>a.value=!0,onBlurCapture:()=>a.value=!1}}const ye=e.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ze=e.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r,currentElement:l}=_(),i=e.computed(()=>{var g;return((g=l.value)==null?void 0:g.ownerDocument)??globalThis.document}),s=e.computed(()=>ye.layersRoot),u=e.computed(()=>l.value?Array.from(s.value).indexOf(l.value):-1),d=e.computed(()=>ye.layersWithOutsidePointerEventsDisabled.size>0),c=e.computed(()=>{const g=Array.from(s.value),[v]=[...ye.layersWithOutsidePointerEventsDisabled].slice(-1),C=g.indexOf(v);return u.value>=C}),f=ja(async g=>{const v=[...ye.branches].some(C=>C==null?void 0:C.contains(g.target));!c.value||v||(a("pointerDownOutside",g),a("interactOutside",g),await e.nextTick(),g.defaultPrevented||a("dismiss"))},l),p=Ua(g=>{[...ye.branches].some(C=>C==null?void 0:C.contains(g.target))||(a("focusOutside",g),a("interactOutside",g),g.defaultPrevented||a("dismiss"))},l);Qn("Escape",g=>{u.value===s.value.size-1&&(a("escapeKeyDown",g),g.defaultPrevented||a("dismiss"))});let m;return e.watchEffect(g=>{l.value&&(t.disableOutsidePointerEvents&&(ye.layersWithOutsidePointerEventsDisabled.size===0&&(m=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),ye.layersWithOutsidePointerEventsDisabled.add(l.value)),s.value.add(l.value),g(()=>{t.disableOutsidePointerEvents&&ye.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=m)}))}),e.watchEffect(g=>{g(()=>{l.value&&(s.value.delete(l.value),ye.layersWithOutsidePointerEventsDisabled.delete(l.value))})}),(g,v)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(r),"as-child":g.asChild,as:g.as,"data-dismissable-layer":"",style:e.normalizeStyle({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:e.unref(p).onFocusCapture,onBlurCapture:e.unref(p).onBlurCapture,onPointerdownCapture:e.unref(f).onPointerDownCapture},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),ps=e.defineComponent({__name:"DismissableLayerBranch",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t,currentElement:a}=_();return e.onMounted(()=>{ye.branches.add(a.value)}),e.onUnmounted(()=>{ye.branches.delete(a.value)}),(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({ref:e.unref(t)},n),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16))}}),An="focusScope.autoFocusOnMount",Mn="focusScope.autoFocusOnUnmount",na={bubbles:!1,cancelable:!0};function Xt(o,{select:n=!1}={}){const t=document.activeElement;for(const a of o)if(Ae(a,{select:n}),document.activeElement!==t)return!0}function ms(o){const n=ro(o),t=oa(n,o),a=oa(n.reverse(),o);return[t,a]}function ro(o){const n=[],t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function oa(o,n){for(const t of o)if(!vs(t,{upTo:n}))return t}function vs(o,{upTo:n}){if(getComputedStyle(o).visibility==="hidden")return!0;for(;o;){if(n!==void 0&&o===n)return!1;if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}function hs(o){return o instanceof HTMLInputElement&&"select"in o}function Ae(o,{select:n=!1}={}){if(o&&o.focus){const t=document.activeElement;o.focus({preventScroll:!0}),o!==t&&hs(o)&&n&&o.select()}}const gs=ui(()=>e.ref([]));function ys(){const o=gs();return{add(n){const t=o.value[0];n!==t&&(t==null||t.pause()),o.value=aa(o.value,n),o.value.unshift(n)},remove(n){var t;o.value=aa(o.value,n),(t=o.value[0])==null||t.resume()}}}function aa(o,n){const t=[...o],a=t.indexOf(n);return a!==-1&&t.splice(a,1),t}function Cs(o){return o.filter(n=>n.tagName!=="A")}const dn=e.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(o,{emit:n}){const t=o,a=n,{currentRef:r,currentElement:l}=_(),i=e.ref(null),s=ys(),u=e.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});e.watchEffect(c=>{if(!Ce)return;const f=l.value;if(!t.trapped)return;function p(C){if(u.paused||!f)return;const y=C.target;f.contains(y)?i.value=y:Ae(i.value,{select:!0})}function m(C){if(u.paused||!f)return;const y=C.relatedTarget;y!==null&&(f.contains(y)||Ae(i.value,{select:!0}))}function g(C){f.contains(i.value)||Ae(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",m);const v=new MutationObserver(g);f&&v.observe(f,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),v.disconnect()})}),e.watchEffect(async c=>{const f=l.value;if(await e.nextTick(),!f)return;s.add(u);const p=document.activeElement;if(!f.contains(p)){const g=new CustomEvent(An,na);f.addEventListener(An,v=>a("mountAutoFocus",v)),f.dispatchEvent(g),g.defaultPrevented||(Xt(Cs(ro(f)),{select:!0}),document.activeElement===p&&Ae(f))}c(()=>{f.removeEventListener(An,C=>a("mountAutoFocus",C));const g=new CustomEvent(Mn,na),v=C=>{a("unmountAutoFocus",C)};f.addEventListener(Mn,v),f.dispatchEvent(g),setTimeout(()=>{g.defaultPrevented||Ae(p??document.body,{select:!0}),f.removeEventListener(Mn,v),s.remove(u)},0)})});function d(c){if(!t.loop&&!t.trapped||u.paused)return;const f=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,p=document.activeElement;if(f&&p){const m=c.currentTarget,[g,v]=ms(m);g&&v?!c.shiftKey&&p===v?(c.preventDefault(),t.loop&&Ae(g,{select:!0})):c.shiftKey&&p===g&&(c.preventDefault(),t.loop&&Ae(v,{select:!0})):p===m&&c.preventDefault()}}return(c,f)=>(e.openBlock(),e.createBlock(e.unref(P),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),bs="menu.itemSelect",Ln=["Enter"," "],ws=["ArrowDown","PageUp","Home"],Ga=["ArrowUp","PageDown","End"],xs=[...ws,...Ga],Bs={ltr:[...Ln,"ArrowRight"],rtl:[...Ln,"ArrowLeft"]},ks={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function lo(o){return o?"open":"closed"}function Qt(o){return o==="indeterminate"}function io(o){return Qt(o)?"indeterminate":o?"checked":"unchecked"}function Kn(o){const n=document.activeElement;for(const t of o)if(t===n||(t.focus(),document.activeElement!==n))return}function _s(o,n){const{x:t,y:a}=o;let r=!1;for(let l=0,i=n.length-1;la!=c>a&&t<(d-s)*(a-u)/(c-u)+s&&(r=!r)}return r}function Ss(o,n){if(!n)return!1;const t={x:o.clientX,y:o.clientY};return _s(t,n)}function Et(o){return o.pointerType==="mouse"}const Ps="DialogTitle",Es="DialogContent";function Ds({titleName:o=Ps,contentName:n=Es,componentLink:t="dialog.html#title",titleId:a,descriptionId:r,contentElement:l}){const i=`Warning: \`${n}\` requires a \`${o}\` for the component to be accessible for screen reader users. If you want to hide the \`${o}\`, you can wrap it with our VisuallyHidden component. For more information, see https://www.radix-vue.com/components/${t}`,s=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${n}.`;e.onMounted(()=>{var c;document.getElementById(a)||console.warn(i);const d=(c=l.value)==null?void 0:c.getAttribute("aria-describedby");r&&d&&(document.getElementById(r)||console.warn(s))})}const qa=e.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=_e(),{forwardRef:l,currentElement:i}=_();return r.titleId||(r.titleId=J(void 0,"radix-vue-dialog-title")),r.descriptionId||(r.descriptionId=J(void 0,"radix-vue-dialog-description")),e.onMounted(()=>{r.contentElement=i,document.activeElement!==document.body&&(r.triggerElement.value=document.activeElement)}),process.env.NODE_ENV!=="production"&&Ds({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:r.titleId,descriptionId:r.descriptionId,contentElement:i}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(dn),{"as-child":"",loop:"",trapped:t.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>a("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>a("closeAutoFocus",d))},{default:e.withCtx(()=>[e.createVNode(e.unref(ze),e.mergeProps({id:e.unref(r).contentId,ref:e.unref(l),as:s.as,"as-child":s.asChild,"disable-outside-pointer-events":s.disableOutsidePointerEvents,role:"dialog","aria-describedby":e.unref(r).descriptionId,"aria-labelledby":e.unref(r).titleId,"data-state":e.unref(lo)(e.unref(r).open.value)},s.$attrs,{onDismiss:u[0]||(u[0]=d=>e.unref(r).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=d=>a("escapeKeyDown",d)),onFocusOutside:u[2]||(u[2]=d=>a("focusOutside",d)),onInteractOutside:u[3]||(u[3]=d=>a("interactOutside",d)),onPointerDownOutside:u[4]||(u[4]=d=>a("pointerDownOutside",d))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Rs=e.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=_e(),l=ie(a),{forwardRef:i,currentElement:s}=_();return Vt(s),(u,d)=>(e.openBlock(),e.createBlock(qa,e.mergeProps({...t,...e.unref(l)},{ref:e.unref(i),"trap-focus":e.unref(r).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:d[0]||(d[0]=c=>{var f;c.defaultPrevented||(c.preventDefault(),(f=e.unref(r).triggerElement.value)==null||f.focus())}),onPointerDownOutside:d[1]||(d[1]=c=>{const f=c.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0;(f.button===2||p)&&c.preventDefault()}),onFocusOutside:d[2]||(d[2]=c=>{c.preventDefault()})}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),Ts=e.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,r=ie(n);_();const l=_e(),i=e.ref(!1),s=e.ref(!1);return(u,d)=>(e.openBlock(),e.createBlock(qa,e.mergeProps({...t,...e.unref(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{var f;c.defaultPrevented||(i.value||(f=e.unref(l).triggerElement.value)==null||f.focus(),c.preventDefault()),i.value=!1,s.value=!1}),onInteractOutside:d[1]||(d[1]=c=>{var m;c.defaultPrevented||(i.value=!0,c.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const f=c.target;((m=e.unref(l).triggerElement.value)==null?void 0:m.contains(f))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.value&&c.preventDefault()})}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16))}}),Ya=e.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=_e(),l=ie(a),{forwardRef:i}=_();return(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(r).open.value},{default:e.withCtx(()=>[e.unref(r).modal.value?(e.openBlock(),e.createBlock(Rs,e.mergeProps({key:0,ref:e.unref(i)},{...t,...e.unref(l),...s.$attrs}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(Ts,e.mergeProps({key:1,ref:e.unref(i)},{...t,...e.unref(l),...s.$attrs}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),$s=e.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(o){const n=_e();return vt(!0),_(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),{as:t.as,"as-child":t.asChild,"data-state":e.unref(n).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Xa=e.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=_e(),{forwardRef:t}=_();return(a,r)=>{var l;return(l=e.unref(n))!=null&&l.modal.value?(e.openBlock(),e.createBlock(e.unref(re),{key:0,present:a.forceMount||e.unref(n).open.value},{default:e.withCtx(()=>[e.createVNode($s,e.mergeProps(a.$attrs,{ref:e.unref(t),as:a.as,"as-child":a.asChild}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):e.createCommentVNode("",!0)}}}),so=e.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=_e();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{type:a.as==="button"?"button":void 0,onClick:r[0]||(r[0]=l=>e.unref(t).onOpenChange(!1))}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["type"]))}}),Za=e.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(o){const n=o,t=_e();return _(),(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).titleId}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),Ja=e.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(o){const n=o;_();const t=_e();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).descriptionId}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),Is=e.defineComponent({__name:"AlertDialogRoot",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(o,{emit:n}){const r=ne(o,n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(Ka),e.mergeProps(e.unref(r),{modal:!0}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Vs=e.defineComponent({__name:"AlertDialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ha),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),As=e.defineComponent({__name:"AlertDialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[Ms,Os]=K("AlertDialogContent"),Ns=e.defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,r=ie(n);_();const l=e.ref();return Os({onCancelElementChange:i=>{l.value=i}}),(i,s)=>(e.openBlock(),e.createBlock(e.unref(Ya),e.mergeProps({...t,...e.unref(r)},{role:"alertdialog",onPointerDownOutside:s[0]||(s[0]=e.withModifiers(()=>{},["prevent"])),onInteractOutside:s[1]||(s[1]=e.withModifiers(()=>{},["prevent"])),onOpenAutoFocus:s[2]||(s[2]=()=>{e.nextTick(()=>{var u;(u=l.value)==null||u.focus({preventScroll:!0})})})}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16))}}),Fs=e.defineComponent({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Xa),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),zs=e.defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Ms(),{forwardRef:a,currentElement:r}=_();return e.onMounted(()=>{t.onCancelElementChange(r.value)}),(l,i)=>(e.openBlock(),e.createBlock(e.unref(so),e.mergeProps(n,{ref:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Ls=e.defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Za),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Ks=e.defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ja),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Hs=e.defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(so),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Ws=e.defineComponent({inheritAttrs:!1,__name:"AspectRatio",props:{ratio:{default:1},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_(),a=e.computed(()=>1/n.ratio*100);return(r,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`position: relative; width: 100%; padding-bottom: ${a.value}%`),"data-radix-aspect-ratio-wrapper":""},[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(t),"as-child":r.asChild,as:r.as,style:{position:"absolute",inset:"0px"}},r.$attrs),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{aspect:a.value})]),_:3},16,["as-child","as"])],4))}}),[Qa,js]=K("AvatarRoot"),Us=e.defineComponent({__name:"AvatarRoot",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){return _(),js({imageLoadingStatus:e.ref("loading")}),(n,t)=>(e.openBlock(),e.createBlock(e.unref(P),{"as-child":n.asChild,as:n.as},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["as-child","as"]))}});function Gs(o){const n=e.ref("idle"),t=e.ref(!1),a=r=>()=>{t.value&&(n.value=r)};return e.onMounted(()=>{t.value=!0,e.watch(o,r=>{if(!r)n.value="error";else{const l=new window.Image;n.value="loading",l.onload=a("loaded"),l.onerror=a("error"),l.src=r}},{immediate:!0})}),e.onUnmounted(()=>{t.value=!1}),n}const qs=e.defineComponent({__name:"AvatarImage",props:{src:{},asChild:{type:Boolean},as:{default:"img"}},emits:["loadingStatusChange"],setup(o,{emit:n}){const t=o,a=n,{src:r}=e.toRefs(t);_();const l=Qa(),i=Gs(r);return e.watch(i,s=>{a("loadingStatusChange",s),s!=="idle"&&(l.imageLoadingStatus.value=s)},{immediate:!0}),(s,u)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(P),{role:"img","as-child":s.asChild,as:s.as,src:e.unref(r)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["as-child","as","src"])),[[e.vShow,e.unref(i)==="loaded"]])}}),Ys=e.defineComponent({__name:"AvatarFallback",props:{delayMs:{default:0},asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,t=Qa();_();const a=e.ref(!1);let r;return e.watch(t.imageLoadingStatus,l=>{l==="loading"&&(a.value=!1,n.delayMs?r=setTimeout(()=>{a.value=!0,clearTimeout(r)},n.delayMs):a.value=!0)},{immediate:!0}),(l,i)=>a.value&&e.unref(t).imageLoadingStatus.value!=="loaded"?(e.openBlock(),e.createBlock(e.unref(P),{key:0,"as-child":l.asChild,as:l.as},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["as-child","as"])):e.createCommentVNode("",!0)}});function Xs(o){function n(a){return Array.isArray(o.date.value)?o.date.value.some(r=>j.isSameDay(r,a)):o.date.value?j.isSameDay(o.date.value,a):!1}const t=e.computed(()=>{var a,r,l,i;if(Array.isArray(o.date.value)){if(!o.date.value.length)return!1;for(const s of o.date.value)if((a=o.isDateDisabled)!=null&&a.call(o,s)||(r=o.isDateUnavailable)!=null&&r.call(o,s))return!0}else{if(!o.date.value)return!1;if((l=o.isDateDisabled)!=null&&l.call(o,o.date.value)||(i=o.isDateUnavailable)!=null&&i.call(o,o.date.value))return!0}return!1});return{isDateSelected:n,isInvalid:t}}function Zs(o,n){const t=n(o),a=t.compare(o),r={};return a>=7&&(r.day=1),a>=U.getDaysInMonth(o)&&(r.month=1),t.set({...r})}function Js(o,n){const t=n(o),a=o.compare(t),r={};return a>=7&&(r.day=35),a>=U.getDaysInMonth(o)&&(r.month=13),t.set({...r})}function Qs(o,n){return n(o)}function eu(o,n){return n(o)}function er(o){const n=ln(o.locale.value),t=e.computed(()=>{const v={calendar:o.placeholder.value.calendar.identifier};return o.placeholder.value.calendar.identifier==="gregory"&&o.placeholder.value.era==="BC"&&(v.era="short"),v}),a=e.ref(U.createMonths({dateObj:o.placeholder.value,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value})),r=e.computed(()=>a.value.map(v=>v.value));function l(v){return!r.value.some(C=>j.isEqualMonth(v,C))}const i=(v="month",C)=>{if(!o.maxValue.value||!a.value.length)return!1;if(o.disabled.value)return!0;const y=a.value[a.value.length-1].value;if(C||o.nextPage.value){const h=Zs(y,C||o.nextPage.value);return U.isAfter(h,o.maxValue.value)}if(v==="year"){const h=y.add({years:1}).set({day:1,month:1});return U.isAfter(h,o.maxValue.value)}const x=y.add({months:1}).set({day:1});return U.isAfter(x,o.maxValue.value)},s=(v="month",C)=>{if(!o.minValue.value||!a.value.length)return!1;if(o.disabled.value)return!0;const y=a.value[0].value;if(C||o.prevPage.value){const h=Js(y,C||o.prevPage.value);return U.isBefore(h,o.minValue.value)}if(v==="year"){const h=y.subtract({years:1}).set({day:35,month:13});return U.isBefore(h,o.minValue.value)}const x=y.subtract({months:1}).set({day:35});return U.isBefore(x,o.minValue.value)};function u(v){var C;return!!((C=o.isDateDisabled)!=null&&C.call(o,v)||o.disabled.value||o.maxValue.value&&U.isAfter(v,o.maxValue.value)||o.minValue.value&&U.isBefore(v,o.minValue.value))}const d=v=>{var C;return!!((C=o.isDateUnavailable)!=null&&C.call(o,v))},c=e.computed(()=>a.value.length?a.value[0].rows[0].map(v=>n.dayOfWeek(U.toDate(v),o.weekdayFormat.value)):[]),f=(v="month",C)=>{const y=a.value[0].value;if(C||o.nextPage.value){const b=Qs(y,C||o.nextPage.value),w=U.createMonths({dateObj:b,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value});a.value=w;const B={};if(!C){const k=w[0].value.compare(y);k>=U.getDaysInMonth(y)&&(B.day=1),k>=365&&(B.month=1)}o.placeholder.value=w[0].value.set({...B});return}const x=v==="month"?y.add({months:o.pagedNavigation.value?o.numberOfMonths.value:1}):y.add({years:1}),h=U.createMonths({dateObj:x,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value});a.value=h,o.placeholder.value=h[0].value.set({day:1})},p=(v="month",C)=>{const y=a.value[0].value;if(C||o.prevPage.value){const b=eu(y,C||o.prevPage.value),w=U.createMonths({dateObj:b,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value});a.value=w;const B={};if(!C){const k=y.compare(w[0].value);k>=U.getDaysInMonth(y)&&(B.day=1),k>=365&&(B.month=1)}o.placeholder.value=w[0].value.set({...B});return}const x=v==="month"?y.subtract({months:o.pagedNavigation.value?o.numberOfMonths.value:1}):y.subtract({years:1}),h=U.createMonths({dateObj:x,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value});a.value=h,o.placeholder.value=h[0].value.set({day:1})};e.watch(o.placeholder,v=>{r.value.some(C=>j.isEqualMonth(C,v))||(a.value=U.createMonths({dateObj:v,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value}))}),e.watch([o.locale,o.weekStartsOn,o.fixedWeeks,o.numberOfMonths],()=>{a.value=U.createMonths({dateObj:o.placeholder.value,weekStartsOn:o.weekStartsOn.value,locale:o.locale.value,fixedWeeks:o.fixedWeeks.value,numberOfMonths:o.numberOfMonths.value})});const m=e.computed(()=>{if(!a.value.length)return"";if(o.locale.value!==n.getLocale()&&n.setLocale(o.locale.value),a.value.length===1){const B=a.value[0].value;return`${n.fullMonthAndYear(U.toDate(B),t.value)}`}const v=U.toDate(a.value[0].value),C=U.toDate(a.value[a.value.length-1].value),y=n.fullMonth(v,t.value),x=n.fullMonth(C,t.value),h=n.fullYear(v,t.value),b=n.fullYear(C,t.value);return h===b?`${y} - ${x} ${b}`:`${y} ${h} - ${x} ${b}`}),g=e.computed(()=>`${o.calendarLabel.value??"Event Date"}, ${m.value}`);return{isDateDisabled:u,isDateUnavailable:d,isNextButtonDisabled:i,isPrevButtonDisabled:s,grid:a,weekdays:c,visibleView:r,isOutsideVisibleView:l,formatter:n,nextPage:f,prevPage:p,headingValue:m,fullCalendarLabel:g}}const tu={style:{border:"0px",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute","white-space":"nowrap",width:"1px"}},nu={role:"heading","aria-level":"2"},[ht,ou]=K("CalendarRoot"),tr=e.defineComponent({__name:"CalendarRoot",props:{modelValue:{},multiple:{type:Boolean,default:!1},defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},pagedNavigation:{type:Boolean,default:!1},preventDeselect:{type:Boolean,default:!1},weekStartsOn:{default:0},weekdayFormat:{default:"narrow"},calendarLabel:{},fixedWeeks:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{default:"en"},numberOfMonths:{default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},initialFocus:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},isDateUnavailable:{type:Function,default:void 0},dir:{},nextPage:{},prevPage:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue","update:placeholder"],setup(o,{emit:n}){const t=o,a=n,{locale:r,disabled:l,readonly:i,initialFocus:s,pagedNavigation:u,weekStartsOn:d,weekdayFormat:c,fixedWeeks:f,multiple:p,minValue:m,maxValue:g,numberOfMonths:v,preventDeselect:C,isDateDisabled:y,isDateUnavailable:x,calendarLabel:h,defaultValue:b,nextPage:w,prevPage:B,dir:k}=e.toRefs(t),{primitiveElement:E,currentElement:D}=se(),S=ee(k),R=W(t,"modelValue",a,{defaultValue:b.value,passive:t.modelValue===void 0}),M=pt({defaultPlaceholder:t.placeholder,defaultValue:R.value}),A=W(t,"placeholder",a,{defaultValue:t.defaultPlaceholder??M.copy(),passive:t.placeholder===void 0});function H(Y){A.value=Y.copy()}const{fullCalendarLabel:O,headingValue:L,isDateDisabled:V,isDateUnavailable:I,isNextButtonDisabled:$,isPrevButtonDisabled:T,weekdays:z,isOutsideVisibleView:F,nextPage:q,prevPage:N,formatter:G,grid:X}=er({locale:r,placeholder:A,weekStartsOn:d,fixedWeeks:f,numberOfMonths:v,minValue:m,maxValue:g,disabled:l,weekdayFormat:c,pagedNavigation:u,isDateDisabled:y.value,isDateUnavailable:x.value,calendarLabel:h,nextPage:w,prevPage:B}),{isInvalid:oe,isDateSelected:ae}=Xs({date:R,isDateDisabled:V,isDateUnavailable:I});e.watch(R,Y=>{if(Array.isArray(Y)&&Y.length){const ue=Y[Y.length-1];ue&&!j.isEqualDay(A.value,ue)&&H(ue)}else!Array.isArray(Y)&&Y&&!j.isEqualDay(A.value,Y)&&H(Y)});function Q(Y){if(p.value){if(!R.value)R.value=[Y.copy()];else if(Array.isArray(R.value)){if(R.value.findIndex(de=>j.isSameDay(de,Y))===-1)R.value=[...R.value,Y];else if(!C.value){const de=R.value.filter(me=>!j.isSameDay(me,Y));if(!de.length){A.value=Y.copy(),R.value=void 0;return}R.value=de.map(me=>me.copy())}}}else{if(!R.value){R.value=Y.copy();return}!C.value&&j.isEqualDay(R.value,Y)?(A.value=Y.copy(),R.value=void 0):R.value=Y.copy()}}return e.onMounted(()=>{s.value&&wa(D.value)}),ou({isDateUnavailable:I,dir:S,isDateDisabled:V,locale:r,formatter:G,modelValue:R,placeholder:A,disabled:l,initialFocus:s,pagedNavigation:u,weekStartsOn:d,weekdayFormat:c,fixedWeeks:f,multiple:p,numberOfMonths:v,readonly:i,preventDeselect:C,fullCalendarLabel:O,headingValue:L,isInvalid:oe,isDateSelected:ae,isNextButtonDisabled:$,isPrevButtonDisabled:T,isOutsideVisibleView:F,nextPage:q,prevPage:N,parentElement:D,onPlaceholderChange:H,onDateChange:Q}),(Y,ue)=>(e.openBlock(),e.createBlock(e.unref(P),{ref_key:"primitiveElement",ref:E,as:Y.as,"as-child":Y.asChild,role:"application","aria-label":e.unref(O),"data-readonly":e.unref(i)?"":void 0,"data-disabled":e.unref(l)?"":void 0,"data-invalid":e.unref(oe)?"":void 0,dir:e.unref(S)},{default:e.withCtx(()=>[e.renderSlot(Y.$slots,"default",{date:e.unref(A),grid:e.unref(X),weekDays:e.unref(z),weekStartsOn:e.unref(d),locale:e.unref(r),fixedWeeks:e.unref(f)}),e.createElementVNode("div",tu,[e.createElementVNode("div",nu,e.toDisplayString(e.unref(O)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),nr=e.defineComponent({__name:"CalendarHeader",props:{asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),or=e.defineComponent({__name:"CalendarHeading",props:{asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=ht();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"data-disabled":e.unref(t).disabled.value?"":void 0}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{headingValue:e.unref(t).headingValue.value},()=>[e.createTextVNode(e.toDisplayString(e.unref(t).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),ar=e.defineComponent({__name:"CalendarGrid",props:{asChild:{type:Boolean},as:{default:"table"}},setup(o){const n=o,t=ht(),a=e.computed(()=>t.disabled.value?!0:void 0),r=e.computed(()=>t.readonly.value?!0:void 0);return(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{tabindex:"-1",role:"grid","aria-readonly":r.value,"aria-disabled":a.value,"data-readonly":r.value&&"","data-disabled":a.value&&""}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),rr=e.defineComponent({__name:"CalendarCell",props:{date:{},asChild:{type:Boolean},as:{default:"td"}},setup(o){const n=ht();return(t,a)=>{var r,l;return e.openBlock(),e.createBlock(e.unref(P),{as:t.as,"as-child":t.asChild,role:"gridcell","aria-selected":e.unref(n).isDateSelected(t.date)?!0:void 0,"aria-disabled":e.unref(n).isDateDisabled(t.date)||((l=(r=e.unref(n)).isDateUnavailable)==null?void 0:l.call(r,t.date)),"data-disabled":e.unref(n).isDateDisabled(t.date)?"":void 0},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"])}}}),lr=e.defineComponent({__name:"CalendarHeadCell",props:{asChild:{type:Boolean},as:{default:"th"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),ir=e.defineComponent({__name:"CalendarNext",props:{step:{default:"month"},nextPage:{},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=e.computed(()=>a.disabled.value||a.isNextButtonDisabled(n.step,n.nextPage)),a=ht();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),{as:n.as,"as-child":n.asChild,"aria-label":"Next page",type:r.as==="button"?"button":void 0,"aria-disabled":t.value||void 0,"data-disabled":t.value||void 0,disabled:t.value,onClick:l[0]||(l[0]=i=>e.unref(a).nextPage(n.step,n.nextPage))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Next page")])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),sr=e.defineComponent({__name:"CalendarPrev",props:{step:{default:"month"},prevPage:{},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=e.computed(()=>a.disabled.value||a.isPrevButtonDisabled(n.step,n.prevPage)),a=ht();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),{"aria-label":"Previous page",as:n.as,"as-child":n.asChild,type:r.as==="button"?"button":void 0,"aria-disabled":t.value||void 0,"data-disabled":t.value||void 0,disabled:t.value,onClick:l[0]||(l[0]=i=>e.unref(a).prevPage(n.step,n.prevPage))},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Prev page")])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),ur=e.defineComponent({__name:"CalendarGridHead",props:{asChild:{type:Boolean},as:{default:"thead"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-hidden":"true"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),dr=e.defineComponent({__name:"CalendarGridBody",props:{asChild:{type:Boolean},as:{default:"tbody"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),cr=e.defineComponent({__name:"CalendarGridRow",props:{asChild:{type:Boolean},as:{default:"tr"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),fr=e.defineComponent({__name:"CalendarCellTrigger",props:{day:{},month:{},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=ke(),a=ht(),{primitiveElement:r,currentElement:l}=se(),i=e.computed(()=>n.day.day.toLocaleString(a.locale.value)),s=e.computed(()=>a.formatter.custom(U.toDate(n.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),u=e.computed(()=>a.isDateDisabled(n.day)),d=e.computed(()=>{var h;return(h=a.isDateUnavailable)==null?void 0:h.call(a,n.day)}),c=e.computed(()=>j.isToday(n.day,j.getLocalTimeZone())),f=e.computed(()=>!j.isSameMonth(n.day,n.month)),p=e.computed(()=>a.isOutsideVisibleView(n.day)),m=e.computed(()=>!a.disabled.value&&j.isSameDay(n.day,a.placeholder.value)),g=e.computed(()=>a.isDateSelected(n.day)),v="[data-radix-vue-calendar-cell-trigger]:not([data-disabled]):not([data-outside-month]):not([data-outside-visible-months])";function C(h){var b;a.readonly.value||a.isDateDisabled(h)||(b=a.isDateUnavailable)!=null&&b.call(a,h)||a.onDateChange(h)}function y(){C(n.day)}function x(h){h.preventDefault(),h.stopPropagation();const b=a.parentElement.value,w=b?Array.from(b.querySelectorAll(v)):[];let k=w.indexOf(l.value);const E=7,D=a.dir.value==="rtl"?-1:1;switch(h.code){case t.ARROW_RIGHT:k+=D;break;case t.ARROW_LEFT:k-=D;break;case t.ARROW_UP:k-=E;break;case t.ARROW_DOWN:k+=E;break;case t.ENTER:case t.SPACE_CODE:C(n.day);return;default:return}if(k>=0&&k{const S=b?Array.from(b.querySelectorAll(v)):[];S[S.length-Math.abs(k)].focus()});return}if(k>=w.length){if(a.isNextButtonDisabled("month"))return;a.nextPage(),e.nextTick(()=>{(b?Array.from(b.querySelectorAll(v)):[])[k-w.length].focus()})}}return(h,b)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({ref_key:"primitiveElement",ref:r},n,{role:"button","aria-label":s.value,"data-radix-vue-calendar-cell-trigger":"","aria-disabled":f.value||u.value||d.value?!0:void 0,"data-selected":g.value?!0:void 0,"data-value":h.day.toString(),"data-disabled":u.value||f.value?"":void 0,"data-unavailable":d.value?"":void 0,"data-today":c.value?"":void 0,"data-outside-view":f.value?"":void 0,"data-outside-visible-view":p.value?"":void 0,"data-focused":m.value?"":void 0,tabindex:m.value?0:f.value||u.value?void 0:-1,onClick:y,onKeydown:[e.withKeys(x,["up","down","left","right","space","enter"]),b[0]||(b[0]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["enter"]))]}),{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default",{dayValue:i.value},()=>[e.createTextVNode(e.toDisplayString(i.value),1)])]),_:3},16,["aria-label","aria-disabled","data-selected","data-value","data-disabled","data-unavailable","data-today","data-outside-view","data-outside-visible-view","data-focused","tabindex"]))}});function en(o){return o==="indeterminate"}function pr(o){return en(o)?"indeterminate":o?"checked":"unchecked"}const au=["value","checked","name","disabled","required"],[ru,lu]=K("CheckboxRoot"),iu=e.defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(o,{emit:n}){const t=o,a=n,{disabled:r}=e.toRefs(t),l=W(t,"checked",a,{defaultValue:t.defaultChecked,passive:t.checked===void 0}),{forwardRef:i,currentElement:s}=_(),u=Be(s),d=e.computed(()=>{var c;return t.id&&s.value?(c=document.querySelector(`[for="${t.id}"]`))==null?void 0:c.innerText:void 0});return lu({disabled:r,state:l}),(c,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps(c.$attrs,{id:c.id,ref:e.unref(i),role:"checkbox","as-child":t.asChild,as:c.as,type:c.as==="button"?"button":void 0,"aria-checked":e.unref(en)(e.unref(l))?"mixed":e.unref(l),"aria-required":!1,"aria-label":c.$attrs["aria-label"]||d.value,"data-state":e.unref(pr)(e.unref(l)),"data-disabled":e.unref(r)?"":void 0,disabled:e.unref(r),onKeydown:e.withKeys(e.withModifiers(()=>{},["prevent"]),["enter"]),onClick:f[0]||(f[0]=p=>l.value=e.unref(en)(e.unref(l))?!0:!e.unref(l))}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{checked:e.unref(l)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-label","data-state","data-disabled","disabled","onKeydown"]),e.unref(u)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:c.value,checked:!!e.unref(l),name:t.name,disabled:t.disabled,required:t.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,au)):e.createCommentVNode("",!0)],64))}}),su=e.defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(o){const{forwardRef:n}=_(),t=ru();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(re),{present:a.forceMount||e.unref(en)(e.unref(t).state.value)||e.unref(t).state.value===!0},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(n),"data-state":e.unref(pr)(e.unref(t).state.value),"data-disabled":e.unref(t).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":a.asChild,as:a.as},a.$attrs),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[mr,uu]=K("PopperRoot"),Ze=e.defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(o){const n=e.ref();return uu({anchor:n,onAnchorChange:t=>n.value=t}),(t,a)=>e.renderSlot(t.$slots,"default")}}),Je=e.defineComponent({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t,currentElement:a}=_(),r=mr();return e.watchEffect(()=>{r.onAnchorChange(n.element??a.value)}),(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(t),as:l.as,"as-child":l.asChild},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["as","as-child"]))}});function du(o){return o!==null}function cu(o){return{name:"transformOrigin",options:o,fn(n){var C,y,x;const{placement:t,rects:a,middlewareData:r}=n,i=((C=r.arrow)==null?void 0:C.centerOffset)!==0,s=i?0:o.arrowWidth,u=i?0:o.arrowHeight,[d,c]=Hn(t),f={start:"0%",center:"50%",end:"100%"}[c],p=(((y=r.arrow)==null?void 0:y.x)??0)+s/2,m=(((x=r.arrow)==null?void 0:x.y)??0)+u/2;let g="",v="";return d==="bottom"?(g=i?f:`${p}px`,v=`${-u}px`):d==="top"?(g=i?f:`${p}px`,v=`${a.floating.height+u}px`):d==="right"?(g=`${-u}px`,v=i?f:`${m}px`):d==="left"&&(g=`${a.floating.width+u}px`,v=i?f:`${m}px`),{data:{x:g,y:v}}}}}function Hn(o){const[n,t="center"]=o.split("-");return[n,t]}const vr={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[fu,pu]=K("PopperContent"),qe=e.defineComponent({inheritAttrs:!1,__name:"PopperContent",props:e.mergeDefaults({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...vr}),emits:["placed"],setup(o,{emit:n}){const t=o,a=n,r=mr(),{forwardRef:l,currentElement:i}=_(),s=e.ref(),u=e.ref(),{width:d,height:c}=Aa(u),f=e.computed(()=>t.side+(t.align!=="center"?`-${t.align}`:"")),p=e.computed(()=>typeof t.collisionPadding=="number"?t.collisionPadding:{top:0,right:0,bottom:0,left:0,...t.collisionPadding}),m=e.computed(()=>Array.isArray(t.collisionBoundary)?t.collisionBoundary:[t.collisionBoundary]),g=e.computed(()=>({padding:p.value,boundary:m.value.filter(du),altBoundary:m.value.length>0})),v=ii(()=>[be.offset({mainAxis:t.sideOffset+c.value,alignmentAxis:t.alignOffset}),t.prioritizePosition&&t.avoidCollisions&&be.flip({...g.value}),t.avoidCollisions&&be.shift({mainAxis:!0,crossAxis:!!t.prioritizePosition,limiter:t.sticky==="partial"?be.limitShift():void 0,...g.value}),!t.prioritizePosition&&t.avoidCollisions&&be.flip({...g.value}),be.size({...g.value,apply:({elements:S,rects:R,availableWidth:M,availableHeight:A})=>{const{width:H,height:O}=R.reference,L=S.floating.style;L.setProperty("--radix-popper-available-width",`${M}px`),L.setProperty("--radix-popper-available-height",`${A}px`),L.setProperty("--radix-popper-anchor-width",`${H}px`),L.setProperty("--radix-popper-anchor-height",`${O}px`)}}),u.value&&be.arrow({element:u.value,padding:t.arrowPadding}),cu({arrowWidth:d.value,arrowHeight:c.value}),t.hideWhenDetached&&be.hide({strategy:"referenceHidden",...g.value})]),{floatingStyles:C,placement:y,isPositioned:x,middlewareData:h}=be.useFloating(r.anchor,s,{strategy:"fixed",placement:f,whileElementsMounted:(...S)=>be.autoUpdate(...S,{animationFrame:t.updatePositionStrategy==="always"}),middleware:v}),b=e.computed(()=>Hn(y.value)[0]),w=e.computed(()=>Hn(y.value)[1]);e.watchPostEffect(()=>{x.value&&a("placed")});const B=e.computed(()=>{var S;return((S=h.value.arrow)==null?void 0:S.centerOffset)!==0}),k=e.ref("");e.watchEffect(()=>{i.value&&(k.value=window.getComputedStyle(i.value).zIndex)});const E=e.computed(()=>{var S;return((S=h.value.arrow)==null?void 0:S.x)??0}),D=e.computed(()=>{var S;return((S=h.value.arrow)==null?void 0:S.y)??0});return pu({placedSide:b,onArrowChange:S=>u.value=S,arrowX:E,arrowY:D,shouldHideArrow:B}),(S,R)=>{var M,A,H;return e.openBlock(),e.createElementBlock("div",{ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:e.normalizeStyle({...e.unref(C),transform:e.unref(x)?e.unref(C).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:k.value,"--radix-popper-transform-origin":[(M=e.unref(h).transformOrigin)==null?void 0:M.x,(A=e.unref(h).transformOrigin)==null?void 0:A.y].join(" "),...((H=e.unref(h).hide)==null?void 0:H.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(l)},S.$attrs,{"as-child":t.asChild,as:S.as,"data-side":b.value,"data-align":w.value,style:{animation:e.unref(x)?void 0:"none"}}),{default:e.withCtx(()=>[e.renderSlot(S.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),mu=e.createElementVNode("polygon",{points:"0,0 30,0 15,10"},null,-1),vu=e.defineComponent({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{width:t.width,height:t.height,viewBox:t.asChild?void 0:"0 0 30 10",preserveAspectRatio:t.asChild?void 0:"none"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[mu])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),hu={top:"bottom",right:"left",bottom:"top",left:"right"},gt=e.defineComponent({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const{forwardRef:n}=_(),t=fu(),a=e.computed(()=>hu[t.placedSide.value]);return(r,l)=>{var i,s,u,d;return e.openBlock(),e.createElementBlock("span",{ref:c=>{e.unref(t).onArrowChange(c)},style:e.normalizeStyle({position:"absolute",left:(i=e.unref(t).arrowX)!=null&&i.value?`${(s=e.unref(t).arrowX)==null?void 0:s.value}px`:void 0,top:(u=e.unref(t).arrowY)!=null&&u.value?`${(d=e.unref(t).arrowY)==null?void 0:d.value}px`:void 0,[a.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[e.unref(t).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[e.unref(t).placedSide.value],visibility:e.unref(t).shouldHideArrow.value?"hidden":void 0})},[e.createVNode(vu,e.mergeProps(r.$attrs,{ref:e.unref(n),style:{display:"block"},as:r.as,"as-child":r.asChild,width:r.width,height:r.height}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),Qe=e.defineComponent({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){return _(),(n,t)=>(e.openBlock(),e.createBlock(e.unref(P),{as:n.as,"as-child":n.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child"]))}}),uo=e.defineComponent({__name:"VisuallyHiddenInput",props:{name:{},value:{},required:{type:Boolean},disabled:{type:Boolean}},setup(o){const n=o,t=e.computed(()=>typeof n.value=="string"||typeof n.value=="number"||typeof n.value=="boolean"?[{name:n.name,value:n.value}]:typeof n.value=="object"&&Array.isArray(n.value)?n.value.flatMap((a,r)=>typeof a=="object"?Object.entries(a).map(([l,i])=>({name:`[${r}][${n.name}][${l}]`,value:i})):{name:`[${n.name}][${r}]`,value:a}):n.value!==null&&typeof n.value=="object"&&!Array.isArray(n.value)?Object.entries(n.value).map(([a,r])=>({name:`[${n.name}][${a}]`,value:r})):[]);return(a,r)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,l=>(e.openBlock(),e.createBlock(Qe,{key:l.name,as:"input",type:"hidden",hidden:"",readonly:"",name:l.name,value:l.value,required:a.required,disabled:a.disabled},null,8,["name","value","required","disabled"]))),128))}}),gu="data-radix-vue-collection-item",[co,yu]=K("CollectionProvider");function Mt(o=gu){const n=e.ref(new Map),t=e.ref(),a=yu({collectionRef:t,itemMap:n,attrName:o}),{getItems:r}=Ct(a),l=e.computed(()=>Array.from(a.itemMap.value.values())),i=e.computed(()=>a.itemMap.value.size);return{getItems:r,reactiveItems:l,itemMapSize:i}}const Ot=e.defineComponent({name:"CollectionSlot",setup(o,{slots:n}){const t=co(),{primitiveElement:a,currentElement:r}=se();return e.watch(r,()=>{t.collectionRef.value=r.value}),()=>e.h(sn,{ref:a},n)}}),yt=e.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(o,{slots:n,attrs:t}){const a=co(),{primitiveElement:r,currentElement:l}=se();return e.watchEffect(i=>{if(l.value){const s=e.markRaw(l.value);a.itemMap.value.set(s,{ref:l.value,value:o.value}),i(()=>a.itemMap.value.delete(s))}}),()=>e.h(sn,{...t,[a.attrName]:"",ref:r},n)}});function Ct(o){const n=o??co();return{getItems:()=>{const a=n.collectionRef.value;if(!a)return[];const r=Array.from(a.querySelectorAll(`[${n.attrName}]`));return Array.from(n.itemMap.value.values()).sort((s,u)=>r.indexOf(s.ref)-r.indexOf(u.ref))}}}const[De,Cu]=K("ComboboxRoot"),bu=e.defineComponent({__name:"ComboboxRoot",props:{modelValue:{},defaultValue:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(o,{emit:n}){const t=o,a=n,{multiple:r,disabled:l,dir:i}=e.toRefs(t),s=ee(i),u=W(t,"searchTerm",a,{defaultValue:"",passive:t.searchTerm===void 0}),d=W(t,"modelValue",a,{defaultValue:t.defaultValue??r.value?[]:void 0,passive:t.modelValue===void 0,deep:!0}),c=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),f=W(t,"selectedValue",a,{defaultValue:void 0,passive:t.selectedValue===void 0});async function p($){var T,z;c.value=$,await e.nextTick(),$?(d.value&&(Array.isArray(d.value)&&r.value?f.value=(T=h().find(F=>{var q,N;return((N=(q=F.ref)==null?void 0:q.dataset)==null?void 0:N.state)==="checked"}))==null?void 0:T.value:f.value=d.value),await e.nextTick(),(z=v.value)==null||z.focus(),A()):(g.value=!1,t.resetSearchTermOnBlur&&E())}function m($){if(Array.isArray(d.value)&&r.value){const T=d.value.findIndex(F=>we(F,$)),z=[...d.value];T===-1?z.push($):z.splice(T,1),d.value=z}else d.value=$,p(!1)}const g=e.ref(!1),v=e.ref(),C=e.ref(),{forwardRef:y,currentElement:x}=_(),{getItems:h,reactiveItems:b,itemMapSize:w}=Mt("data-radix-vue-combobox-item"),B=e.ref([]);e.watch(()=>w.value,()=>{B.value=h().map($=>$.value)},{immediate:!0,flush:"post"});const k=e.computed(()=>{if(g.value){if(t.filterFunction)return t.filterFunction(B.value,u.value);const $=B.value.filter(T=>typeof T=="string");if($.length)return $.filter(T=>{var z;return T.toLowerCase().includes((z=u.value)==null?void 0:z.toLowerCase())})}return B.value});function E(){!r.value&&d.value&&!Array.isArray(d.value)?t.displayValue?u.value=t.displayValue(d.value):typeof d.value!="object"?u.value=d.value.toString():u.value="":u.value=""}const D=e.computed(()=>k.value.findIndex($=>we($,f.value))),S=e.computed(()=>{var $;return($=b.value.find(T=>we(T.value,f.value)))==null?void 0:$.ref}),R=e.computed(()=>JSON.stringify(d.value));e.watch(R,async()=>{await e.nextTick(),await e.nextTick(),E()},{immediate:!t.searchTerm}),e.watch(()=>[k.value.length,u.value.length],async([$,T],[z,F])=>{await e.nextTick(),await e.nextTick(),$&&(F>T||D.value===-1)&&(f.value=k.value[0])});const M=Be(x);function A(){var $;S.value instanceof Element&&(($=S.value)==null||$.scrollIntoView({block:"nearest"}))}function H(){S.value instanceof Element&&S.value.focus&&S.value.focus()}const O=e.ref(!1);function L(){O.value=!0}function V(){requestAnimationFrame(()=>{O.value=!1})}async function I($){var T;k.value.length&&f.value&&S.value instanceof Element&&($.preventDefault(),$.stopPropagation(),O.value||(T=S.value)==null||T.click())}return Cu({searchTerm:u,modelValue:d,onValueChange:m,isUserInputted:g,multiple:r,disabled:l,open:c,onOpenChange:p,filteredOptions:k,contentId:"",inputElement:v,selectedElement:S,onInputElementChange:$=>v.value=$,onInputNavigation:async $=>{const T=D.value;T===0&&$==="up"||T===k.value.length-1&&$==="down"||(T===-1&&k.value.length||$==="home"?f.value=k.value[0]:$==="end"?f.value=k.value[k.value.length-1]:f.value=k.value[$==="up"?T-1:T+1],await e.nextTick(),A(),H(),e.nextTick(()=>{var z;return(z=v.value)==null?void 0:z.focus({preventScroll:!0})}))},onInputEnter:I,onCompositionEnd:V,onCompositionStart:L,selectedValue:f,onSelectedValueChange:$=>f.value=$,parentElement:x,contentElement:C,onContentElementChange:$=>C.value=$}),($,T)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(y),style:{pointerEvents:e.unref(c)?"auto":void 0},as:$.as,"as-child":$.asChild,dir:e.unref(s)},$.$attrs),{default:e.withCtx(()=>[e.renderSlot($.$slots,"default",{open:e.unref(c),modelValue:e.unref(d)}),e.unref(M)&&t.name?(e.openBlock(),e.createBlock(e.unref(uo),{key:0,name:t.name,value:e.unref(d)},null,8,["name","value"])):e.createCommentVNode("",!0)]),_:3},16,["style","as","as-child","dir"])]),_:3}))}}),wu=e.defineComponent({__name:"ComboboxInput",props:{type:{default:"text"},disabled:{type:Boolean},autoFocus:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},setup(o){const n=o,t=De(),{forwardRef:a,currentElement:r}=_();e.onMounted(()=>{const c=r.value.nodeName==="INPUT"?r.value:r.value.querySelector("input");c&&(t.onInputElementChange(c),setTimeout(()=>{n.autoFocus&&(c==null||c.focus())},1))});const l=e.computed(()=>n.disabled||t.disabled.value||!1),i=e.ref();e.watchSyncEffect(()=>{var c;return i.value=(c=t.selectedElement.value)==null?void 0:c.id});function s(c){t.open.value?t.onInputNavigation(c.key==="ArrowUp"?"up":"down"):t.onOpenChange(!0)}function u(c){t.open.value&&t.onInputNavigation(c.key==="Home"?"home":"end")}function d(c){var f;t.searchTerm.value=(f=c.target)==null?void 0:f.value,t.open.value||t.onOpenChange(!0),t.isUserInputted.value=!0}return(c,f)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(a),as:c.as,"as-child":c.asChild,type:c.type,disabled:l.value,value:e.unref(t).searchTerm.value,"aria-expanded":e.unref(t).open.value,"aria-controls":e.unref(t).contentId,"aria-disabled":l.value??void 0,"aria-activedescendant":i.value,"aria-autocomplete":"list",role:"combobox",autocomplete:"false",onInput:d,onKeydown:[e.withKeys(e.withModifiers(s,["prevent"]),["down","up"]),e.withKeys(e.unref(t).onInputEnter,["enter"]),e.withKeys(e.withModifiers(u,["prevent"]),["home","end"])],onCompositionstart:e.unref(t).onCompositionStart,onCompositionend:e.unref(t).onCompositionEnd},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["as","as-child","type","disabled","value","aria-expanded","aria-controls","aria-disabled","aria-activedescendant","onKeydown","onCompositionstart","onCompositionend"]))}}),xu=e.defineComponent({__name:"ComboboxAnchor",props:{asChild:{type:Boolean},as:{}},setup(o){const{forwardRef:n}=_();return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Je),{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(n),"as-child":t.asChild,as:t.as},t.$attrs),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["as-child","as"])]),_:3}))}}),Bu=e.defineComponent({__name:"ComboboxTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=De(),a=e.computed(()=>n.disabled||t.disabled.value||!1);return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{type:r.as==="button"?"button":void 0,tabindex:"-1","aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":e.unref(t).open.value,"aria-controls":e.unref(t).contentId,"data-state":e.unref(t).open.value?"open":"closed",disabled:a.value,"data-disabled":a.value?"":void 0,"aria-disabled":a.value??void 0,onClick:l[0]||(l[0]=i=>e.unref(t).onOpenChange(!e.unref(t).open.value))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","disabled","data-disabled","aria-disabled"]))}}),ku=e.defineComponent({__name:"ComboboxCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=De();function a(){var r;t.searchTerm.value="",(r=t.inputElement.value)==null||r.focus()}return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({type:r.as==="button"?"button":void 0},n,{tabindex:"-1",onClick:a}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["type"]))}}),[hr,_u]=K("ComboboxGroup"),Su=e.defineComponent({__name:"ComboboxGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,{currentRef:t,currentElement:a}=_(),r=J(void 0,"radix-vue-combobox-group"),l=De(),i=e.ref(!1);function s(){if(!a.value)return;const u=a.value.querySelectorAll("[data-radix-vue-combobox-item]:not([data-hidden])");i.value=!!u.length}return Ea(a,()=>{e.nextTick(()=>{s()})},{childList:!0}),e.watch(()=>l.searchTerm.value,()=>{e.nextTick(()=>{s()})},{immediate:!0}),_u({id:r}),(u,d)=>e.withDirectives((e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{ref_key:"currentRef",ref:t,role:"group","aria-labelledby":e.unref(r)}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["aria-labelledby"])),[[e.vShow,i.value]])}}),Pu=e.defineComponent({__name:"ComboboxLabel",props:{for:{},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o;_();const t=hr({id:""});return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).id}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),[Eu,Du]=K("ComboboxContent"),Ru=e.defineComponent({__name:"ComboboxContentImpl",props:{position:{default:"inline"},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!0},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const t=o,a=n,{position:r}=e.toRefs(t),l=De();vt(t.bodyLock);const{forwardRef:i,currentElement:s}=_();Vt(l.parentElement);const u=e.computed(()=>t.position==="popper"?t:{}),d=Fe(u.value);function c(p){l.onSelectedValueChange("")}e.onMounted(()=>{l.onContentElementChange(s.value)});const f={boxSizing:"border-box","--radix-combobox-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-combobox-content-available-width":"var(--radix-popper-available-width)","--radix-combobox-content-available-height":"var(--radix-popper-available-height)","--radix-combobox-trigger-width":"var(--radix-popper-anchor-width)","--radix-combobox-trigger-height":"var(--radix-popper-anchor-height)"};return Du({position:r}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(Ot),null,{default:e.withCtx(()=>[p.dismissable?(e.openBlock(),e.createBlock(e.unref(ze),{key:0,"as-child":"","disable-outside-pointer-events":p.disableOutsidePointerEvents,onDismiss:m[0]||(m[0]=g=>e.unref(l).onOpenChange(!1)),onFocusOutside:m[1]||(m[1]=g=>{var v;(v=e.unref(l).parentElement.value)!=null&&v.contains(g.target)&&g.preventDefault(),a("focusOutside",g)}),onInteractOutside:m[2]||(m[2]=g=>a("interactOutside",g)),onEscapeKeyDown:m[3]||(m[3]=g=>a("escapeKeyDown",g)),onPointerDownOutside:m[4]||(m[4]=g=>{var v;(v=e.unref(l).parentElement.value)!=null&&v.contains(g.target)&&g.preventDefault(),a("pointerDownOutside",g)})},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)==="popper"?e.unref(qe):e.unref(P)),e.mergeProps({...p.$attrs,...e.unref(d)},{id:e.unref(l).contentId,ref:e.unref(i),role:"listbox","data-state":e.unref(l).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...e.unref(r)==="popper"?f:{}},onPointerleave:c}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3},8,["disable-outside-pointer-events"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r)==="popper"?e.unref(qe):e.unref(P)),e.mergeProps({key:1},{...p.$attrs,...u.value},{id:e.unref(l).contentId,ref:e.unref(i),role:"listbox","data-state":e.unref(l).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...e.unref(r)==="popper"?f:{}},onPointerleave:c}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3}))}}),Tu=e.defineComponent({__name:"ComboboxContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const r=ne(o,n),{forwardRef:l}=_(),i=De();return i.contentId||(i.contentId=J(void 0,"radix-vue-combobox-content")),(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(i).open.value},{default:e.withCtx(()=>[e.createVNode(Ru,e.mergeProps({...e.unref(r),...s.$attrs},{ref:e.unref(l)}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),$u=e.defineComponent({__name:"ComboboxEmpty",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;_();const t=De(),a=e.computed(()=>t.filteredOptions.value.length===0);return(r,l)=>a.value?(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.mergeProps({key:0},n)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("No options")])]),_:3},16)):e.createCommentVNode("",!0)}});function cn(o){const n=rn({nonce:e.ref()});return e.computed(()=>{var t;return(o==null?void 0:o.value)||((t=n.nonce)==null?void 0:t.value)})}const Iu=e.defineComponent({__name:"ComboboxViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_(),{nonce:a}=e.toRefs(n),r=cn(a);return(l,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps({...l.$attrs,...n},{ref:e.unref(t),"data-radix-combobox-viewport":"",role:"presentation",style:{position:"relative",flex:1,overflow:"auto"}}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16),e.createVNode(e.unref(P),{as:"style",nonce:e.unref(r)},{default:e.withCtx(()=>[e.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-combobox-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),[Vu,Au]=K("ComboboxItem"),Mu="combobox.select",Ou=e.defineComponent({__name:"ComboboxItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,a=n,{disabled:r}=e.toRefs(t),l=De();hr({id:"",options:e.ref([])});const{forwardRef:i}=_(),s=e.computed(()=>{var v,C;return l.multiple.value&&Array.isArray(l.modelValue.value)?(v=l.modelValue.value)==null?void 0:v.some(y=>we(y,t.value)):we((C=l.modelValue)==null?void 0:C.value,t.value)}),u=e.computed(()=>we(l.selectedValue.value,t.value)),d=J(void 0,"radix-vue-combobox-item"),c=J(void 0,"radix-vue-combobox-option"),f=e.computed(()=>l.isUserInputted.value?l.searchTerm.value===""||!!l.filteredOptions.value.find(v=>we(v,t.value)):!0);async function p(v){a("select",v),!(v!=null&&v.defaultPrevented)&&!r.value&&v&&l.onValueChange(t.value)}function m(v){if(!v)return;const C={originalEvent:v,value:t.value};dt(Mu,p,C)}async function g(v){await e.nextTick(),!v.defaultPrevented&&l.onSelectedValueChange(t.value)}if(t.value==="")throw new Error("A 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.");return Au({isSelected:s}),(v,C)=>(e.openBlock(),e.createBlock(e.unref(yt),{value:v.value},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(P),{id:e.unref(c),ref:e.unref(i),role:"option",tabindex:"-1","aria-labelledby":e.unref(d),"data-highlighted":u.value?"":void 0,"aria-selected":s.value,"data-state":s.value?"checked":"unchecked","aria-disabled":e.unref(r)||void 0,"data-disabled":e.unref(r)?"":void 0,as:v.as,"as-child":v.asChild,"data-hidden":f.value?void 0:!0,onClick:m,onPointermove:g},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(v.value),1)])]),_:3},8,["id","aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","as","as-child","data-hidden"]),[[e.vShow,f.value]])]),_:3},8,["value"]))}}),Nu=e.defineComponent({__name:"ComboboxItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o;_();const t=Vu();return(a,r)=>e.unref(t).isSelected.value?(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({key:0,"aria-hidden":"true"},n),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}}),Fu=e.defineComponent({__name:"ComboboxSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-hidden":"true"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),zu=e.defineComponent({__name:"ComboboxArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o,t=De(),a=Eu();return _(),(r,l)=>e.unref(t).open.value&&e.unref(a).position.value==="popper"?(e.openBlock(),e.createBlock(e.unref(gt),e.normalizeProps(e.mergeProps({key:0},n)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}}),Lu=e.defineComponent({__name:"ComboboxPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),fn=e.defineComponent({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Je),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),fo=e.defineComponent({__name:"MenuArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(gt),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}});function Ku(){const o=e.ref(!1);return e.onMounted(()=>{pe("keydown",()=>{o.value=!0},{capture:!0,passive:!0}),pe(["pointerdown","pointermove"],()=>{o.value=!1},{capture:!0,passive:!0})}),o}const Hu=xa(Ku),[et,gr]=K(["MenuRoot","MenuSub"],"MenuContext"),[Nt,Wu]=K("MenuRoot"),po=e.defineComponent({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n,{modal:r,dir:l}=e.toRefs(t),i=ee(l),s=W(t,"open",a),u=e.ref(),d=Hu();return gr({open:s,onOpenChange:c=>{s.value=c},content:u,onContentChange:c=>{u.value=c}}),Wu({onClose:()=>{s.value=!1},isUsingKeyboardRef:d,dir:i,modal:r}),(c,f)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3}))}}),ju="rovingFocusGroup.onEntryFocus",Uu={bubbles:!1,cancelable:!0},pn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Gu(o,n){return n!=="rtl"?o:o==="ArrowLeft"?"ArrowRight":o==="ArrowRight"?"ArrowLeft":o}function yr(o,n,t){const a=Gu(o.key,t);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return pn[a]}function Cr(o,n=!1,t){const a=(t==null?void 0:t.activeElement)??document.activeElement;for(const r of o)if(r===a||(r.focus({preventScroll:n}),document.activeElement!==a))return}function qu(o,n){return o.map((t,a)=>o[(n+a)%o.length])}const[Yu,Xu]=K("RovingFocusGroup"),tt=e.defineComponent({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(o,{expose:n,emit:t}){const a=o,r=t,{loop:l,orientation:i,dir:s}=e.toRefs(a),u=ee(s),d=W(a,"currentTabStopId",r,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),c=e.ref(!1),f=e.ref(!1),p=e.ref(0),{getItems:m}=Mt();function g(C){const y=!f.value;if(C.currentTarget&&C.target===C.currentTarget&&y&&!c.value){const x=new CustomEvent(ju,Uu);if(C.currentTarget.dispatchEvent(x),r("entryFocus",x),!x.defaultPrevented){const h=m().map(k=>k.ref).filter(k=>k.dataset.disabled!==""),b=h.find(k=>k.getAttribute("data-active")==="true"),w=h.find(k=>k.id===d.value),B=[b,w,...h].filter(Boolean);Cr(B,a.preventScrollOnEntryFocus)}}f.value=!1}function v(){setTimeout(()=>{f.value=!1},1)}return n({getItems:m}),Xu({loop:l,dir:u,orientation:i,currentTabStopId:d,onItemFocus:C=>{d.value=C},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(C,y)=>(e.openBlock(),e.createBlock(e.unref(Ot),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),{tabindex:c.value||p.value===0?-1:0,"data-orientation":e.unref(i),as:C.as,"as-child":C.asChild,dir:e.unref(u),style:{outline:"none"},onMousedown:y[0]||(y[0]=x=>f.value=!0),onMouseup:v,onFocus:g,onBlur:y[1]||(y[1]=x=>c.value=!1)},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),nt=e.defineComponent({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,t=Yu(),a=e.computed(()=>n.tabStopId||J()),r=e.computed(()=>t.currentTabStopId.value===a.value),{getItems:l}=Ct(),{primitiveElement:i,currentElement:s}=se(),u=e.computed(()=>{var c;return(c=s.value)==null?void 0:c.getRootNode()});e.onMounted(()=>{n.focusable&&t.onFocusableItemAdd()}),e.onUnmounted(()=>{n.focusable&&t.onFocusableItemRemove()});function d(c){if(c.key==="Tab"&&c.shiftKey){t.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const f=yr(c,t.orientation.value,t.dir.value);if(f!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!n.allowShiftKey&&c.shiftKey)return;c.preventDefault();let p=[...l().map(m=>m.ref).filter(m=>m.dataset.disabled!=="")];if(f==="last")p.reverse();else if(f==="prev"||f==="next"){f==="prev"&&p.reverse();const m=p.indexOf(c.currentTarget);p=t.loop.value?qu(p,m+1):p.slice(m+1)}e.nextTick(()=>Cr(p,!1,u.value))}}return(c,f)=>(e.openBlock(),e.createBlock(e.unref(yt),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref_key:"primitiveElement",ref:i,tabindex:r.value?0:-1,"data-orientation":e.unref(t).orientation.value,"data-active":c.active,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:f[0]||(f[0]=p=>{c.focusable?e.unref(t).onItemFocus(a.value):p.preventDefault()}),onFocus:f[1]||(f[1]=p=>e.unref(t).onItemFocus(a.value)),onKeydown:d},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[mo,Zu]=K("MenuContent"),vo=e.defineComponent({__name:"MenuContentImpl",props:e.mergeDefaults({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...vr}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(o,{emit:n}){const t=o,a=n,r=et(),l=Nt(),{trapFocus:i,disableOutsidePointerEvents:s,loop:u}=e.toRefs(t);eo(),vt(s.value);const d=e.ref(""),c=e.ref(0),f=e.ref(0),p=e.ref(null),m=e.ref("right"),g=e.ref(0),v=e.ref(null),{createCollection:C}=ce(),{forwardRef:y,currentElement:x}=_(),h=C(x);e.watch(x,S=>{r.onContentChange(S)});const{handleTypeaheadSearch:b}=At(h);e.onUnmounted(()=>{window.clearTimeout(c.value)});function w(S){var M,A;return m.value===((M=p.value)==null?void 0:M.side)&&Ss(S,(A=p.value)==null?void 0:A.area)}async function B(S){var R;a("openAutoFocus",S),!S.defaultPrevented&&(S.preventDefault(),(R=x.value)==null||R.focus({preventScroll:!0}))}function k(S){if(S.defaultPrevented)return;const M=S.target.closest("[data-radix-menu-content]")===S.currentTarget,A=S.ctrlKey||S.altKey||S.metaKey,H=S.key.length===1,O=Xe(S,document.activeElement,x.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l==null?void 0:l.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(O)return O==null?void 0:O.focus();if(S.code==="Space"||(M&&(S.key==="Tab"&&S.preventDefault(),!A&&H&&b(S.key)),S.target!==x.value)||!xs.includes(S.key))return;S.preventDefault();const L=h.value;Ga.includes(S.key)&&L.reverse(),Kn(L)}function E(S){var R,M;(M=(R=S==null?void 0:S.currentTarget)==null?void 0:R.contains)!=null&&M.call(R,S.target)||(window.clearTimeout(c.value),d.value="")}function D(S){var A;if(!Et(S))return;const R=S.target,M=g.value!==S.clientX;if((A=S==null?void 0:S.currentTarget)!=null&&A.contains(R)&&M){const H=S.clientX>g.value?"right":"left";m.value=H,g.value=S.clientX}}return Zu({onItemEnter:S=>!!w(S),onItemLeave:S=>{var R;w(S)||((R=x.value)==null||R.focus(),v.value=null)},onTriggerLeave:S=>!!w(S),searchRef:d,pointerGraceTimerRef:f,onPointerGraceIntentChange:S=>{p.value=S}}),(S,R)=>(e.openBlock(),e.createBlock(e.unref(dn),{"as-child":"",trapped:e.unref(i),onMountAutoFocus:B,onUnmountAutoFocus:R[7]||(R[7]=M=>a("closeAutoFocus",M))},{default:e.withCtx(()=>[e.createVNode(e.unref(ze),{"as-child":"","disable-outside-pointer-events":e.unref(s),onEscapeKeyDown:R[2]||(R[2]=M=>a("escapeKeyDown",M)),onPointerDownOutside:R[3]||(R[3]=M=>a("pointerDownOutside",M)),onFocusOutside:R[4]||(R[4]=M=>a("focusOutside",M)),onInteractOutside:R[5]||(R[5]=M=>a("interactOutside",M)),onDismiss:R[6]||(R[6]=M=>a("dismiss"))},{default:e.withCtx(()=>[e.createVNode(e.unref(tt),{"current-tab-stop-id":v.value,"onUpdate:currentTabStopId":R[0]||(R[0]=M=>v.value=M),"as-child":"",orientation:"vertical",dir:e.unref(l).dir.value,loop:e.unref(u),onEntryFocus:R[1]||(R[1]=M=>{a("entryFocus",M),e.unref(l).isUsingKeyboardRef.value||M.preventDefault()})},{default:e.withCtx(()=>[e.createVNode(e.unref(qe),{ref:e.unref(y),role:"menu",as:S.as,"as-child":S.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":e.unref(lo)(e.unref(r).open.value),dir:e.unref(l).dir.value,side:S.side,"side-offset":S.sideOffset,align:S.align,"align-offset":S.alignOffset,"avoid-collisions":S.avoidCollisions,"collision-boundary":S.collisionBoundary,"collision-padding":S.collisionPadding,"arrow-padding":S.arrowPadding,"prioritize-position":S.prioritizePosition,sticky:S.sticky,"hide-when-detached":S.hideWhenDetached,onKeydown:k,onBlur:E,onPointermove:D},{default:e.withCtx(()=>[e.renderSlot(S.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),br=e.defineComponent({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=mo(),{forwardRef:a}=_(),r=e.ref(!1);async function l(s){if(!s.defaultPrevented&&Et(s)){if(n.disabled)t.onItemLeave(s);else if(!t.onItemEnter(s)){const d=s.currentTarget;d==null||d.focus({preventScroll:!0})}}}async function i(s){await e.nextTick(),!s.defaultPrevented&&Et(s)&&t.onItemLeave(s)}return(s,u)=>(e.openBlock(),e.createBlock(e.unref(yt),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(a),role:"menuitem",tabindex:"-1"},s.$attrs,{as:s.as,"as-child":s.asChild,"data-radix-vue-collection-item":"","aria-disabled":s.disabled||void 0,"data-disabled":s.disabled?"":void 0,"data-highlighted":r.value?"":void 0,onPointermove:l,onPointerleave:i,onFocus:u[0]||(u[0]=async d=>{await e.nextTick(),!(d.defaultPrevented||s.disabled)&&(r.value=!0)}),onBlur:u[1]||(u[1]=async d=>{await e.nextTick(),!d.defaultPrevented&&(r.value=!1)})}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3}))}}),Ft=e.defineComponent({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r,currentElement:l}=_(),i=Nt(),s=mo(),u=e.ref(!1);async function d(){const c=l.value;if(!t.disabled&&c){const f=new CustomEvent(bs,{bubbles:!0,cancelable:!0});a("select",f),await e.nextTick(),f.defaultPrevented?u.value=!1:i.onClose()}}return(c,f)=>(e.openBlock(),e.createBlock(br,e.mergeProps(t,{ref:e.unref(r),onClick:d,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var m;await e.nextTick(),!p.defaultPrevented&&(u.value||(m=p.currentTarget)==null||m.click())}),onKeydown:f[2]||(f[2]=async p=>{const m=e.unref(s).searchRef.value!=="";c.disabled||m&&p.key===" "||e.unref(Ln).includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16))}}),[Ju,wr]=K(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext"),ho=e.defineComponent({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=Ju({checked:e.ref(!1)});return(t,a)=>(e.openBlock(),e.createBlock(e.unref(re),{present:t.forceMount||e.unref(Qt)(e.unref(n).checked.value)||e.unref(n).checked.value===!0},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{as:t.as,"as-child":t.asChild,"data-state":e.unref(io)(e.unref(n).checked.value)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),go=e.defineComponent({__name:"MenuCheckboxItem",props:{checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(o,{emit:n}){const t=o,a=n,r=W(t,"checked",a);return wr({checked:r}),(l,i)=>(e.openBlock(),e.createBlock(Ft,e.mergeProps({role:"menuitemcheckbox"},t,{"aria-checked":e.unref(Qt)(e.unref(r))?"mixed":e.unref(r),"data-state":e.unref(io)(e.unref(r)),onSelect:i[0]||(i[0]=async s=>{a("select",s),e.unref(Qt)(e.unref(r))?r.value=!0:r.value=!e.unref(r)})}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{checked:e.unref(r)})]),_:3},16,["aria-checked","data-state"]))}}),Qu=e.defineComponent({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=ne(t,a),l=et(),{forwardRef:i,currentElement:s}=_();return Vt(s),(u,d)=>(e.openBlock(),e.createBlock(vo,e.mergeProps(e.unref(r),{ref:e.unref(i),"trap-focus":e.unref(l).open.value,"disable-outside-pointer-events":e.unref(l).open.value,"disable-outside-scroll":!0,onDismiss:d[0]||(d[0]=c=>e.unref(l).onOpenChange(!1)),onFocusOutside:d[1]||(d[1]=e.withModifiers(c=>a("focusOutside",c),["prevent"]))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),ed=e.defineComponent({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n),l=et();return(i,s)=>(e.openBlock(),e.createBlock(vo,e.mergeProps(e.unref(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:s[0]||(s[0]=u=>e.unref(l).onOpenChange(!1))}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16))}}),yo=e.defineComponent({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n),l=et(),i=Nt();return(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(l).open.value},{default:e.withCtx(()=>[e.unref(i).modal.value?(e.openBlock(),e.createBlock(Qu,e.normalizeProps(e.mergeProps({key:0},{...s.$attrs,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(ed,e.normalizeProps(e.mergeProps({key:1},{...s.$attrs,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),mn=e.defineComponent({__name:"MenuGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({role:"group"},n),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Co=e.defineComponent({__name:"MenuLabel",props:{asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),bo=e.defineComponent({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[td,nd]=K("MenuRadioGroup"),wo=e.defineComponent({__name:"MenuRadioGroup",props:{modelValue:{default:""},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=W(t,"modelValue",n);return nd({modelValue:r,onValueChange:l=>{r.value=l}}),(l,i)=>(e.openBlock(),e.createBlock(mn,e.normalizeProps(e.guardReactiveProps(t)),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{modelValue:e.unref(r)})]),_:3},16))}}),xo=e.defineComponent({__name:"MenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,a=n,{value:r}=e.toRefs(t),l=td(),i=e.computed(()=>l.modelValue.value===(r==null?void 0:r.value));return wr({checked:i}),(s,u)=>(e.openBlock(),e.createBlock(Ft,e.mergeProps({role:"menuitemradio"},t,{"aria-checked":i.value,"data-state":e.unref(io)(i.value),onSelect:u[0]||(u[0]=async d=>{a("select",d),e.unref(l).onValueChange(e.unref(r))})}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),Bo=e.defineComponent({__name:"MenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{role:"separator","aria-orientation":"horizontal"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[xr,od]=K("MenuSub"),ko=e.defineComponent({__name:"MenuSub",props:{open:{type:Boolean,default:void 0}},emits:["update:open"],setup(o,{emit:n}){const t=o,r=W(t,"open",n,{defaultValue:!1,passive:t.open===void 0}),l=et(),i=e.ref(),s=e.ref();return e.watchEffect(u=>{(l==null?void 0:l.open.value)===!1&&(r.value=!1),u(()=>r.value=!1)}),gr({open:r,onOpenChange:u=>{r.value=u},content:s,onContentChange:u=>{s.value=u}}),od({triggerId:"",contentId:"",trigger:i,onTriggerChange:u=>{i.value=u}}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3}))}}),_o=e.defineComponent({__name:"MenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n),l=et(),i=Nt(),s=xr(),{forwardRef:u,currentElement:d}=_();return s.contentId||(s.contentId=J(void 0,"radix-vue-menu-sub-content")),(c,f)=>(e.openBlock(),e.createBlock(e.unref(re),{present:c.forceMount||e.unref(l).open.value},{default:e.withCtx(()=>[e.createVNode(vo,e.mergeProps(e.unref(r),{id:e.unref(s).contentId,ref:e.unref(u),"aria-labelledby":e.unref(s).triggerId,align:"start",side:e.unref(i).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:f[0]||(f[0]=e.withModifiers(p=>{var m;e.unref(i).isUsingKeyboardRef.value&&((m=e.unref(d))==null||m.focus())},["prevent"])),onCloseAutoFocus:f[1]||(f[1]=e.withModifiers(()=>{},["prevent"])),onFocusOutside:f[2]||(f[2]=p=>{p.defaultPrevented||p.target!==e.unref(s).trigger.value&&e.unref(l).onOpenChange(!1)}),onEscapeKeyDown:f[3]||(f[3]=p=>{e.unref(i).onClose(),p.preventDefault()}),onKeydown:f[4]||(f[4]=p=>{var v,C;const m=(v=p.currentTarget)==null?void 0:v.contains(p.target),g=e.unref(ks)[e.unref(i).dir.value].includes(p.key);m&&g&&(e.unref(l).onOpenChange(!1),(C=e.unref(s).trigger.value)==null||C.focus(),p.preventDefault())})}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),So=e.defineComponent({__name:"MenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=et(),a=Nt(),r=xr(),l=mo(),i=e.ref(null);r.triggerId||(r.triggerId=J(void 0,"radix-vue-menu-sub-trigger"));function s(){i.value&&window.clearTimeout(i.value),i.value=null}e.onUnmounted(()=>{s()});function u(f){!Et(f)||l.onItemEnter(f)||!n.disabled&&!t.open.value&&!i.value&&(l.onPointerGraceIntentChange(null),i.value=window.setTimeout(()=>{t.onOpenChange(!0),s()},100))}async function d(f){var m,g;if(!Et(f))return;s();const p=(m=t.content.value)==null?void 0:m.getBoundingClientRect();if(p!=null&&p.width){const v=(g=t.content.value)==null?void 0:g.dataset.side,C=v==="right",y=C?-5:5,x=p[C?"left":"right"],h=p[C?"right":"left"];l.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x,y:p.top},{x:h,y:p.top},{x:h,y:p.bottom},{x,y:p.bottom}],side:v}),window.clearTimeout(l.pointerGraceTimerRef.value),l.pointerGraceTimerRef.value=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(f))return;l.onPointerGraceIntentChange(null)}}async function c(f){var m;const p=l.searchRef.value!=="";n.disabled||p&&f.key===" "||Bs[a.dir.value].includes(f.key)&&(t.onOpenChange(!0),await e.nextTick(),(m=t.content.value)==null||m.focus(),f.preventDefault())}return(f,p)=>(e.openBlock(),e.createBlock(fn,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(br,e.mergeProps(n,{id:e.unref(r).triggerId,ref:m=>{var g;(g=e.unref(r))==null||g.onTriggerChange(m==null?void 0:m.$el)},"aria-haspopup":"menu","aria-expanded":e.unref(t).open.value,"aria-controls":e.unref(r).contentId,"data-state":e.unref(lo)(e.unref(t).open.value),onClick:p[0]||(p[0]=async m=>{n.disabled||m.defaultPrevented||(m.currentTarget.focus(),e.unref(t).open.value||e.unref(t).onOpenChange(!0))}),onPointermove:u,onPointerleave:d,onKeydown:c}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),[Br,ad]=K("ContextMenuRoot"),rd=e.defineComponent({inheritAttrs:!1,__name:"ContextMenuRoot",props:{dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n,{dir:r,modal:l}=e.toRefs(t);_();const i=ee(r),s=e.ref(!1);return ad({open:s,onOpenChange:u=>{s.value=u},dir:i,modal:l}),e.watch(s,u=>{a("update:open",u)}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(po),{open:s.value,"onUpdate:open":d[0]||(d[0]=c=>s.value=c),dir:e.unref(i),modal:e.unref(l)},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},8,["open","dir","modal"]))}});function ra(o){return o.pointerType!=="mouse"}const ld=e.defineComponent({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,{disabled:t}=e.toRefs(n),{forwardRef:a}=_(),r=Br(),l=e.ref({x:0,y:0}),i=e.computed(()=>({getBoundingClientRect:()=>({width:0,height:0,left:l.value.x,right:l.value.x,top:l.value.y,bottom:l.value.y,...l.value})})),s=e.ref(0);function u(){window.clearTimeout(s.value)}function d(m){l.value={x:m.clientX,y:m.clientY},r.onOpenChange(!0)}async function c(m){t.value||(await e.nextTick(),m.defaultPrevented||(u(),d(m),m.preventDefault()))}async function f(m){t.value||(await e.nextTick(),ra(m)&&!m.defaultPrevented&&(u(),s.value=window.setTimeout(()=>d(m),700)))}async function p(m){t.value||(await e.nextTick(),ra(m)&&!m.defaultPrevented&&u())}return(m,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(fn),{as:"template",element:i.value},null,8,["element"]),e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(a),as:m.as,"as-child":m.asChild,"data-state":e.unref(r).open.value?"open":"closed","data-disabled":e.unref(t)?"":void 0,style:{WebkitTouchCallout:"none"}},m.$attrs,{onContextmenu:c,onPointerdown:f,onPointermove:p,onPointercancel:p,onPointerup:p}),{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),id=e.defineComponent({__name:"ContextMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(bo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),sd=e.defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{default:0},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);_();const l=Br(),i=e.ref(!1);return(s,u)=>(e.openBlock(),e.createBlock(e.unref(yo),e.mergeProps(e.unref(r),{side:"right","side-offset":2,align:"start",style:{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:u[0]||(u[0]=d=>{!d.defaultPrevented&&i.value&&d.preventDefault(),i.value=!1}),onInteractOutside:u[1]||(u[1]=d=>{!d.defaultPrevented&&!e.unref(l).modal.value&&(i.value=!0)})}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))}}),ud=e.defineComponent({__name:"ContextMenuArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(fo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),dd=e.defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(Ft),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),cd=e.defineComponent({__name:"ContextMenuGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(mn),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),fd=e.defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Bo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),pd=e.defineComponent({__name:"ContextMenuCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(go),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),md=e.defineComponent({__name:"ContextMenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(ho),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),vd=e.defineComponent({__name:"ContextMenuLabel",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Co),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),hd=e.defineComponent({__name:"ContextMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(wo),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),gd=e.defineComponent({__name:"ContextMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(xo),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),yd=e.defineComponent({__name:"ContextMenuSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n;_();const r=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0});return(l,i)=>(e.openBlock(),e.createBlock(e.unref(ko),{open:e.unref(r),"onUpdate:open":i[0]||(i[0]=s=>e.isRef(r)?r.value=s:null)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{open:e.unref(r)})]),_:3},8,["open"]))}}),Cd=e.defineComponent({__name:"ContextMenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(_o),e.mergeProps(e.unref(r),{style:{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),bd=e.defineComponent({__name:"ContextMenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(So),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),wd=["hour","minute","second"];function it(o){const{formatter:n}=o,t=Xn.map(a=>[a,o.value[a]]);if("hour"in o.value){const a=ya.map(l=>l==="dayPeriod"?[l,n.dayPeriod(U.toDate(o.value))]:[l,o.value[l]]),r=[...t,...a];return Object.fromEntries(r)}return Object.fromEntries(t)}function kr(o){const n=Ca.map(t=>t==="dayPeriod"?[t,"AM"]:[t,null]).filter(([t])=>t==="literal"||t===null?!1:o==="day"?!wd.includes(t)&&t!=="dayPeriod":!0);return Object.fromEntries(n)}function xd(o){const{segmentValues:n,formatter:t,locale:a}=o;function r(i){if("hour"in n){const s=n[i];return s!==null?i==="day"&&n.month!==null?t.part(o.dateRef.set({[i]:s,month:n.month}),i,{hourCycle:o.hourCycle===24?"h24":void 0}):t.part(o.dateRef.set({[i]:s}),i,{hourCycle:o.hourCycle===24?"h24":void 0}):Tn(i,"",a.value)}else{if(ri(i)){const s=n[i];return s!==null?i==="day"&&n.month!==null?t.part(o.dateRef.set({[i]:s,month:n.month}),i):t.part(o.dateRef.set({[i]:s}),i):Tn(i,"",a.value)}return""}}return Object.keys(n).reduce((i,s)=>{if(!ba(s))return i;if("hour"in n&&s==="dayPeriod"){const u=n[s];u!==null?i[s]=u:i[s]=Tn(s,"AM",a.value)}else i[s]=r(s);return i},{})}function Bd(o){const{granularity:n,formatter:t,contentObj:a,hideTimeZone:r,hourCycle:l}=o;return t.toParts(o.dateRef,li(n,l)).map(u=>["literal","timeZoneName",null].includes(u.type)||!ba(u.type)?{part:u.type,value:u.value}:{part:u.type,value:a[u.type]}).filter(u=>!(u.part===null||u.value===null||u.part==="timeZoneName"&&(!U.isZonedDateTime(o.dateRef)||r)))}function Wn(o){const n=xd(o),t=Bd({contentObj:n,...o});return{obj:n,arr:t}}function Se(o){const n=ke();return o===n.ARROW_RIGHT||o===n.ARROW_LEFT}function je(o){return!Number.isNaN(Number.parseInt(o))}function Te(o){const n=ke();return!!([n.ENTER,n.ARROW_UP,n.ARROW_DOWN,n.ARROW_LEFT,n.ARROW_RIGHT,n.BACKSPACE,n.SPACE,"a","A","p","P"].includes(o)||je(o))}function tn(o){return Array.from(o.querySelectorAll("[data-radix-vue-date-field-segment]")).filter(n=>n.getAttribute("data-radix-vue-date-field-segment")!=="literal")}const kd=["id","value","name","disabled","required"],[_d,Sd]=K("DateFieldRoot"),_r=e.defineComponent({inheritAttrs:!1,__name:"DateFieldRoot",props:{defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},modelValue:{},hourCycle:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{default:"en"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},name:{},required:{type:Boolean},id:{},dir:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:placeholder"],setup(o,{expose:n,emit:t}){const a=o,r=t,{locale:l,disabled:i,readonly:s,isDateUnavailable:u,granularity:d,defaultValue:c,dir:f}=e.toRefs(a),p=ln(a.locale),m=ee(f),{primitiveElement:g,currentElement:v}=se(),C=e.ref(new Set);e.onMounted(()=>{tn(v.value).forEach(I=>C.value.add(I))});const y=W(a,"modelValue",r,{defaultValue:c.value,passive:a.modelValue===void 0}),x=pt({defaultPlaceholder:a.placeholder,granularity:d.value,defaultValue:y.value}),h=W(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??x.copy(),passive:a.placeholder===void 0}),b=e.computed(()=>a.granularity?U.hasTime(h.value)?a.granularity:"day":U.hasTime(h.value)?"minute":"day"),w=e.computed(()=>{var I;return y.value?!!((I=u.value)!=null&&I.call(u,y.value)||a.minValue&&U.isBefore(y.value,a.minValue)||a.maxValue&&U.isBefore(a.maxValue,y.value)):!1}),B=kr(b.value),k=e.ref(y.value?{...it({value:y.value,formatter:p})}:{...B}),E=e.computed(()=>Wn({granularity:b.value,dateRef:h.value,formatter:p,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:k.value,locale:l})),D=e.computed(()=>E.value.arr),S=e.computed(()=>D.value.filter(({part:I})=>I!=="literal"));e.watch(l,I=>{p.getLocale()!==I&&(p.setLocale(I),e.nextTick(()=>{C.value.clear(),tn(v.value).forEach($=>C.value.add($))}))}),e.watch(y,I=>{I!==void 0&&(!j.isEqualDay(h.value,I)||h.value.compare(I)!==0)&&(h.value=I.copy())}),e.watch([y,l],([I])=>{I!==void 0?k.value={...it({value:I,formatter:p})}:(Object.values(k.value).every($=>$===null)||y===void 0)&&(k.value={...B})});const R=e.ref(null),M=e.computed(()=>Array.from(C.value).findIndex(I=>{var $;return I.getAttribute("data-radix-vue-date-field-segment")===(($=R.value)==null?void 0:$.getAttribute("data-radix-vue-date-field-segment"))})),A=e.computed(()=>{const I=m.value==="rtl"?-1:1;return(I<0?M.value<0:M.value>C.value.size-1)?null:Array.from(C.value)[M.value+I]}),H=e.computed(()=>{const I=m.value==="rtl"?-1:1;return(I>0?M.value<0:M.value>C.value.size-1)?null:Array.from(C.value)[M.value-I]}),O=ke();function L(I){var $,T;Se(I.key)&&(I.key===O.ARROW_LEFT&&(($=H.value)==null||$.focus()),I.key===O.ARROW_RIGHT&&((T=A.value)==null||T.focus()))}function V(I){R.value=I}return Sd({isDateUnavailable:u.value,locale:l,modelValue:y,placeholder:h,disabled:i,formatter:p,hourCycle:a.hourCycle,readonly:s,segmentValues:k,isInvalid:w,segmentContents:S,elements:C,setFocusedElement:V,focusNext(){var I;(I=A.value)==null||I.focus()}}),n({setFocusedElement:V}),(I,$)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps(I.$attrs,{ref_key:"primitiveElement",ref:g,role:"group","aria-disabled":e.unref(i)?!0:void 0,"data-disabled":e.unref(i)?"":void 0,"data-readonly":e.unref(s)?"":void 0,"data-invalid":w.value?"":void 0,dir:e.unref(m),onKeydown:e.withKeys(L,["left","right"])}),{default:e.withCtx(()=>[e.renderSlot(I.$slots,"default",{modelValue:e.unref(y),segments:D.value,isInvalid:w.value})]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]),e.createElementVNode("input",{id:I.id,type:"text",tabindex:"-1","aria-hidden":"true",value:e.unref(y)?e.unref(y).toString():"",name:I.name,disabled:e.unref(i),required:I.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0},onFocus:$[0]||($[0]=T=>{var z,F;return(F=(z=Array.from(C.value))==null?void 0:z[0])==null?void 0:F.focus()})},null,40,kd)],64))}});function ot(o){return{role:"spinbutton",contenteditable:!0,tabindex:o.disabled?void 0:0,spellcheck:!1,inputmode:"numeric",autocorrect:"off",enterkeyhint:"next",style:"caret-color: transparent;"}}function Pd(o){const{segmentValues:n,placeholder:t}=o,a=n.day===null,r=n.day?t.set({day:n.day}):t,l=r.day,i=1,s=U.getDaysInMonth(r),u=a?"Empty":`${l}`;return{...ot(o),"aria-label":"day,","aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function Ed(o){const{segmentValues:n,placeholder:t,formatter:a}=o,r=n.month===null,l=n.month?t.set({month:n.month}):t,i=l.month,s=1,u=12,d=r?"Empty":`${i} - ${a.fullMonth(U.toDate(l))}`;return{...ot(o),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":s,"aria-valuemax":u,"aria-valuenow":i,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function Dd(o){const{segmentValues:n,placeholder:t}=o,a=n.year===null,r=n.year?t.set({year:n.year}):t,l=1,i=9999,s=r.year,u=a?"Empty":`${s}`;return{...ot(o),"aria-label":"year, ","aria-valuemin":l,"aria-valuemax":i,"aria-valuenow":s,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function Rd(o){const{segmentValues:n,hourCycle:t,placeholder:a}=o;if(!("hour"in n)||!("hour"in a))return{};const r=n.hour===null,l=n.hour?a.set({hour:n.hour}):a,i=t===12?1:0,s=t===12?12:23,u=l.hour,d=r?"Empty":`${u} ${n.dayPeriod??""}`;return{...ot(o),"aria-label":"hour, ","aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":u,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function Td(o){const{segmentValues:n,placeholder:t}=o;if(!("minute"in n)||!("minute"in t))return{};const a=n.minute===null,l=(n.minute?t.set({minute:n.minute}):t).minute,i=0,s=59,u=a?"Empty":`${l}`;return{...ot(o),"aria-label":"minute, ","aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function $d(o){const{segmentValues:n,placeholder:t}=o;if(!("second"in n)||!("second"in t))return{};const a=n.second===null,l=(n.second?t.set({second:n.second}):t).second,i=0,s=59,u=a?"Empty":`${l}`;return{...ot(o),"aria-label":"second, ","aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":a?"":void 0}}function Id(o){const{segmentValues:n}=o;if(!("dayPeriod"in n))return{};const t=0,a=12,r=n.hour?n.hour>12?n.hour-12:n.hour:0,l=n.dayPeriod??"AM";return{...ot(o),inputmode:"text","aria-label":"AM/PM","aria-valuemin":t,"aria-valuemax":a,"aria-valuenow":r,"aria-valuetext":l}}function Vd(o){return{"aria-hidden":!0,"data-segment":"literal"}}function Ad(o){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:o.disabled?void 0:0,style:"caret-color: transparent;"}}const Md={day:{attrs:Pd},month:{attrs:Ed},year:{attrs:Dd},hour:{attrs:Rd},minute:{attrs:Td},second:{attrs:$d},dayPeriod:{attrs:Id},literal:{attrs:Vd},timeZoneName:{attrs:Ad}};function Sr(o){const n=ke();function t({e:h,part:b,dateRef:w,prevValue:B}){const k=h.key===n.ARROW_UP?1:-1,E=0,D=59;if(B===null)return k>0?E:D;const S=[b,k];return w.set({[b]:B}).cycle(...S)[b]}function a(h){if(o.hasLeftFocus.value=!1,h===null)return h;const b=h.toString();return b.length===1?(o.modelValue.value=void 0,null):Number.parseInt(b.slice(0,-1))}function r({e:h,part:b,dateRef:w,prevValue:B,hourCycle:k}){const E=h.key===n.ARROW_UP?1:-1;if(B===null)return w[b];if(b==="hour"&&"hour"in w){const S=[b,E,{hourCycle:k}];return w.set({[b]:B}).cycle(...S)[b]}const D=[b,E];return b==="day"&&o.segmentValues.value.month!==null?w.set({[b]:B,month:o.segmentValues.value.month}).cycle(...D)[b]:w.set({[b]:B}).cycle(...D)[b]}function l(h,b,w){let B=!1;const k=Math.floor(h/10);if(o.hasLeftFocus.value&&(o.hasLeftFocus.value=!1,w=null),w===null)return b===0?(o.lastKeyZero.value=!0,{value:null,moveToNext:B}):((o.lastKeyZero.value||b>k)&&(B=!0),o.lastKeyZero.value=!1,{value:b,moveToNext:B});const E=w.toString().length,D=Number.parseInt(w.toString()+b.toString());return E===2||D>h?((b>k||D>h)&&(B=!0),{value:b,moveToNext:B}):(B=!0,{value:D,moveToNext:B})}function i(h,b){let B=!1;const k=Math.floor(59/10);if(o.hasLeftFocus.value&&(o.hasLeftFocus.value=!1,b=null),b===null)return h===0?(o.lastKeyZero.value=!0,{value:0,moveToNext:B}):((o.lastKeyZero.value||h>k)&&(B=!0),o.lastKeyZero.value=!1,{value:h,moveToNext:B});const E=b.toString().length,D=Number.parseInt(b.toString()+h.toString());return E===2||D>59?(h>k&&(B=!0),{value:h,moveToNext:B}):(B=!0,{value:D,moveToNext:B})}function s(h,b){let B=!1;const k=Math.floor(24/10);if(o.hasLeftFocus.value&&(o.hasLeftFocus.value=!1,b=null),b===null)return h===0?(o.lastKeyZero.value=!0,{value:0,moveToNext:B}):((o.lastKeyZero.value||h>k)&&(B=!0),o.lastKeyZero.value=!1,{value:h,moveToNext:B});const E=b.toString().length,D=Number.parseInt(b.toString()+h.toString());return E===2||D>24?(h>k&&(B=!0),{value:h,moveToNext:B}):(B=!0,{value:D,moveToNext:B})}function u(h,b){let w=!1;if(o.hasLeftFocus.value&&(o.hasLeftFocus.value=!1,b=null),b===null)return{value:h===0?1:h,moveToNext:w};const B=b.toString()+h.toString();return B.length>4?{value:h===0?1:h,moveToNext:w}:(B.length===4&&(w=!0),{value:Number.parseInt(B),moveToNext:w})}const d=e.computed(()=>Md[o.part].attrs({disabled:o.disabled.value,placeholder:o.placeholder.value,hourCycle:o.hourCycle,segmentValues:o.segmentValues.value,formatter:o.formatter}));function c(h){if(!Te(h.key)||Se(h.key))return;const b=o.segmentValues.value.day;if(h.key===n.ARROW_DOWN||h.key===n.ARROW_UP){o.segmentValues.value.day=r({e:h,part:"day",dateRef:o.placeholder.value,prevValue:b});return}if(je(h.key)){const w=Number.parseInt(h.key),B=o.segmentValues.value.month,k=B?U.getDaysInMonth(o.placeholder.value.set({month:B})):U.getDaysInMonth(o.placeholder.value),{value:E,moveToNext:D}=l(k,w,b);o.segmentValues.value.day=E,D&&o.focusNext()}h.key===n.BACKSPACE&&(o.hasLeftFocus.value=!1,o.segmentValues.value.day=a(b))}function f(h){if(!Te(h.key)||Se(h.key))return;const b=o.segmentValues.value.month;if(h.key===n.ARROW_DOWN||h.key===n.ARROW_UP){o.segmentValues.value.month=r({e:h,part:"month",dateRef:o.placeholder.value,prevValue:b});return}if(je(h.key)){const w=Number.parseInt(h.key),{value:B,moveToNext:k}=l(12,w,b);o.segmentValues.value.month=B,k&&o.focusNext()}h.key===n.BACKSPACE&&(o.hasLeftFocus.value=!1,o.segmentValues.value.month=a(b))}function p(h){if(!Te(h.key)||Se(h.key))return;const b=o.segmentValues.value.year;if(h.key===n.ARROW_DOWN||h.key===n.ARROW_UP){o.segmentValues.value.year=r({e:h,part:"year",dateRef:o.placeholder.value,prevValue:b});return}if(je(h.key)){const w=Number.parseInt(h.key),{value:B,moveToNext:k}=u(w,b);o.segmentValues.value.year=B,k&&o.focusNext()}h.key===n.BACKSPACE&&(o.hasLeftFocus.value=!1,o.segmentValues.value.year=a(b))}function m(h){const b=o.placeholder.value;if(!Te(h.key)||Se(h.key)||!("hour"in b)||!("hour"in o.segmentValues.value))return;const w=o.segmentValues.value.hour,B=o.hourCycle;if(h.key===n.ARROW_UP||h.key===n.ARROW_DOWN){o.segmentValues.value.hour=r({e:h,part:"hour",dateRef:o.placeholder.value,prevValue:w,hourCycle:B}),"dayPeriod"in o.segmentValues.value&&(o.segmentValues.value.hour<12?o.segmentValues.value.dayPeriod="AM":o.segmentValues.value.hour&&(o.segmentValues.value.dayPeriod="PM"));return}if(je(h.key)){const k=Number.parseInt(h.key),{value:E,moveToNext:D}=s(k,w);"dayPeriod"in o.segmentValues.value&&E&&E>12?o.segmentValues.value.dayPeriod="PM":"dayPeriod"in o.segmentValues.value&&E&&(o.segmentValues.value.dayPeriod="AM"),o.segmentValues.value.hour=E,D&&o.focusNext()}h.key===n.BACKSPACE&&(o.hasLeftFocus.value=!1,o.segmentValues.value.hour=a(w))}function g(h){const b=o.placeholder.value;if(!Te(h.key)||Se(h.key)||!("minute"in b)||!("minute"in o.segmentValues.value))return;const w=o.segmentValues.value.minute;if(o.segmentValues.value.minute=t({e:h,part:"minute",dateRef:o.placeholder.value,prevValue:w}),je(h.key)){const B=Number.parseInt(h.key),{value:k,moveToNext:E}=i(B,w);o.segmentValues.value.minute=k,E&&o.focusNext()}h.key===n.BACKSPACE&&(o.hasLeftFocus.value=!1,o.segmentValues.value.minute=a(w))}function v(h){const b=o.placeholder.value;if(!Te(h.key)||Se(h.key)||!("second"in b)||!("second"in o.segmentValues.value))return;const w=o.segmentValues.value.second;if(o.segmentValues.value.second=t({e:h,part:"second",dateRef:o.placeholder.value,prevValue:w}),je(h.key)){const B=Number.parseInt(h.key),{value:k,moveToNext:E}=i(B,w);o.segmentValues.value.second=k,E&&o.focusNext()}h.key===n.BACKSPACE&&(o.hasLeftFocus.value=!1,o.segmentValues.value.second=a(w))}function C(h){if(!((!Te(h.key)||Se(h.key))&&h.key!=="a"&&h.key!=="p"||!("hour"in o.placeholder.value)||!("dayPeriod"in o.segmentValues.value))){if(h.key===n.ARROW_UP||h.key===n.ARROW_DOWN){if(o.segmentValues.value.dayPeriod==="AM"){o.segmentValues.value.dayPeriod="PM",o.segmentValues.value.hour=o.segmentValues.value.hour+12;return}o.segmentValues.value.dayPeriod="AM",o.segmentValues.value.hour=o.segmentValues.value.hour-12;return}if(["a","A"].includes(h.key)&&o.segmentValues.value.dayPeriod!=="AM"){o.segmentValues.value.dayPeriod="AM",o.segmentValues.value.hour=o.segmentValues.value.hour-12;return}["p","P"].includes(h.key)&&o.segmentValues.value.dayPeriod!=="PM"&&(o.segmentValues.value.dayPeriod="PM",o.segmentValues.value.hour=o.segmentValues.value.hour+12)}}function y(h){o.disabled.value&&h.preventDefault()}function x(h){const b=o.disabled.value,w=o.readonly.value;if(h.key!==n.TAB&&h.preventDefault(),b||w)return;if({day:c,month:f,year:p,hour:m,minute:g,second:v,dayPeriod:C,timeZoneName:()=>{}}[o.part](h),![n.ARROW_LEFT,n.ARROW_RIGHT].includes(h.key)&&h.key!==n.TAB&&h.key!==n.SHIFT&&Te(h.key)&&Object.values(o.segmentValues.value).every(k=>k!==null)){const k={...o.segmentValues.value};let E=o.placeholder.value.copy();Object.keys(k).forEach(D=>{const S=k[D];E=E.set({[D]:S})}),o.modelValue.value=E.copy()}}return{handleSegmentClick:y,handleSegmentKeydown:x,attributes:d}}const Pr=e.defineComponent({__name:"DateFieldInput",props:{part:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=_d(),a=e.ref(!0),r=e.ref(!1),{handleSegmentClick:l,handleSegmentKeydown:i,attributes:s}=Sr({hasLeftFocus:a,lastKeyZero:r,placeholder:t.placeholder,hourCycle:t.hourCycle,segmentValues:t.segmentValues,formatter:t.formatter,part:n.part,disabled:t.disabled,readonly:t.readonly,focusNext:t.focusNext,modelValue:t.modelValue}),u=e.computed(()=>t.disabled.value),d=e.computed(()=>t.readonly.value),c=e.computed(()=>t.isInvalid.value);return(f,p)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({as:f.as,"as-child":f.asChild},e.unref(s),{contenteditable:u.value||d.value?!1:f.part!=="literal","data-radix-vue-date-field-segment":f.part,"aria-disabled":u.value?!0:void 0,"aria-readonly":d.value?!0:void 0,"data-disabled":u.value?"":void 0,"data-invalid":c.value?"":void 0,"aria-invalid":c.value?!0:void 0},e.toHandlers(f.part!=="literal"?{mousedown:e.unref(l),keydown:e.unref(i),focusout:()=>{a.value=!0},focusin:m=>{e.unref(t).setFocusedElement(m.target)}}:{})),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-radix-vue-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),Od=e.defineComponent({__name:"DatePickerHeader",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(nr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Nd=e.defineComponent({__name:"DatePickerHeading",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(or),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(({headingValue:r})=>[e.renderSlot(t.$slots,"default",{headingValue:r},()=>[e.createTextVNode(e.toDisplayString(r),1)])]),_:3},16))}}),Fd=e.defineComponent({__name:"DatePickerGrid",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(ar),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),zd=e.defineComponent({__name:"DatePickerCell",props:{date:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(rr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Ld=e.defineComponent({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(lr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Kd=e.defineComponent({__name:"DatePickerNext",props:{step:{},nextPage:{type:Function},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(ir),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Hd=e.defineComponent({__name:"DatePickerPrev",props:{step:{},prevPage:{type:Function},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(sr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Wd=e.defineComponent({__name:"DatePickerGridHead",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(ur),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),jd=e.defineComponent({__name:"DatePickerGridBody",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(dr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Ud=e.defineComponent({__name:"DatePickerGridRow",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(cr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Gd=e.defineComponent({__name:"DatePickerCellTrigger",props:{day:{},month:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(fr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),qd=e.defineComponent({__name:"DatePickerInput",props:{part:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Pr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[Po,Yd]=K("DatePickerRoot"),Xd=e.defineComponent({inheritAttrs:!1,__name:"DatePickerRoot",props:{defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},modelValue:{},hourCycle:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{default:"en"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},name:{},required:{type:Boolean},id:{},dir:{},asChild:{type:Boolean},as:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},pagedNavigation:{type:Boolean,default:!1},weekStartsOn:{default:0},weekdayFormat:{default:"narrow"},fixedWeeks:{type:Boolean,default:!1},numberOfMonths:{default:1},preventDeselect:{type:Boolean,default:!1}},emits:["update:modelValue","update:placeholder","update:open"],setup(o,{emit:n}){const t=o,a=n,{locale:r,disabled:l,readonly:i,pagedNavigation:s,weekStartsOn:u,weekdayFormat:d,fixedWeeks:c,numberOfMonths:f,preventDeselect:p,isDateDisabled:m,isDateUnavailable:g,defaultOpen:v,modal:C,id:y,name:x,required:h,minValue:b,maxValue:w,granularity:B,hideTimeZone:k,hourCycle:E,defaultValue:D,dir:S}=e.toRefs(t),R=ee(S),M=W(t,"modelValue",a,{defaultValue:D.value,passive:t.modelValue===void 0}),A=e.computed(()=>pt({defaultPlaceholder:t.placeholder,granularity:t.granularity,defaultValue:M.value})),H=W(t,"placeholder",a,{defaultValue:t.defaultPlaceholder??A.value.copy(),passive:t.placeholder===void 0}),O=W(t,"open",a,{defaultValue:v.value,passive:t.open===void 0}),L=e.ref();return Yd({isDateUnavailable:g.value,isDateDisabled:m.value,locale:r,disabled:l,pagedNavigation:s,weekStartsOn:u,weekdayFormat:d,fixedWeeks:c,numberOfMonths:f,readonly:i,preventDeselect:p,modelValue:M,placeholder:H,defaultOpen:v,modal:C,open:O,id:y,name:x,required:h,minValue:b,maxValue:w,granularity:B,hideTimeZone:k,hourCycle:E,dateFieldRef:L,dir:R,onDateChange(V){!V||!M.value?M.value=V:!p.value&&j.isSameDay(M.value,V)?M.value=void 0:M.value=V.copy()},onPlaceholderChange(V){j.isEqualDay(V,H.value)||(H.value=V.copy())}}),(V,I)=>(e.openBlock(),e.createBlock(e.unref(Vo),{open:e.unref(O),"onUpdate:open":I[0]||(I[0]=$=>e.isRef(O)?O.value=$:null),"default-open":e.unref(v),modal:e.unref(C)},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),Zd=e.defineComponent({__name:"DatePickerCalendar",setup(o){const n=Po();return(t,a)=>(e.openBlock(),e.createBlock(e.unref(tr),e.mergeProps({isDateDisabled:e.unref(n).isDateDisabled,isDateUnavailable:e.unref(n).isDateUnavailable,minValue:e.unref(n).minValue.value,maxValue:e.unref(n).maxValue.value,locale:e.unref(n).locale.value,disabled:e.unref(n).disabled.value,pagedNavigation:e.unref(n).pagedNavigation.value,weekStartsOn:e.unref(n).weekStartsOn.value,weekdayFormat:e.unref(n).weekdayFormat.value,fixedWeeks:e.unref(n).fixedWeeks.value,numberOfMonths:e.unref(n).numberOfMonths.value,readonly:e.unref(n).readonly.value,preventDeselect:e.unref(n).preventDeselect.value,dir:e.unref(n).dir.value},{"model-value":e.unref(n).modelValue.value,placeholder:e.unref(n).placeholder.value,"initial-focus":"",multiple:!1,"onUpdate:modelValue":a[0]||(a[0]=r=>{r&&e.unref(n).modelValue.value&&e.unref(j.isEqualDay)(r,e.unref(n).modelValue.value)||e.unref(n).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{e.unref(j.isEqualDay)(r,e.unref(n).placeholder.value)||e.unref(n).onPlaceholderChange(r)})}),{default:e.withCtx(({weekDays:r,grid:l,date:i,weekStartsOn:s,locale:u,fixedWeeks:d})=>[e.renderSlot(t.$slots,"default",{date:i,grid:l,weekDays:r,weekStartsOn:s,locale:u,fixedWeeks:d})]),_:3},16,["model-value","placeholder"]))}}),Jd=e.defineComponent({__name:"DatePickerField",setup(o){const n=Po();return(t,a)=>(e.openBlock(),e.createBlock(e.unref(_r),e.mergeProps({ref:e.unref(n).dateFieldRef,"model-value":e.unref(n).modelValue.value,placeholder:e.unref(n).placeholder.value},{id:e.unref(n).id.value,name:e.unref(n).name.value,disabled:e.unref(n).disabled.value,minValue:e.unref(n).minValue.value,maxValue:e.unref(n).maxValue.value,readonly:e.unref(n).readonly.value,hourCycle:e.unref(n).hourCycle.value,granularity:e.unref(n).granularity.value,hideTimeZone:e.unref(n).hideTimeZone.value,locale:e.unref(n).locale.value,isDateUnavailable:e.unref(n).isDateUnavailable,required:e.unref(n).required.value,dir:e.unref(n).dir.value},{"onUpdate:modelValue":a[0]||(a[0]=r=>{r&&e.unref(n).modelValue.value&&e.unref(j.isEqualDay)(e.unref(n).modelValue.value,r)&&r.compare(e.unref(n).modelValue.value)===0||e.unref(n).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{e.unref(j.isEqualDay)(e.unref(n).placeholder.value,r)&&r.compare(e.unref(n).placeholder.value)===0||e.unref(n).onPlaceholderChange(r)})}),{default:e.withCtx(({segments:r,modelValue:l})=>[e.renderSlot(t.$slots,"default",{segments:r,modelValue:l})]),_:3},16,["model-value","placeholder"]))}}),Qd=e.defineComponent({__name:"DatePickerAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(zo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),ec=e.defineComponent({__name:"DatePickerArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(No),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),tc=e.defineComponent({__name:"DatePickerClose",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Fo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),nc=e.defineComponent({__name:"DatePickerTrigger",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Po();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(Ao),e.mergeProps({"data-radix-vue-date-field-segment":"trigger"},n,{disabled:e.unref(t).disabled.value,onFocusin:r[0]||(r[0]=l=>{var i;(i=e.unref(t).dateFieldRef.value)==null||i.setFocusedElement(l.target)})}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["disabled"]))}}),oc=e.defineComponent({__name:"DatePickerContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);return(l,i)=>(e.openBlock(),e.createBlock(e.unref(Mo),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Oo),e.normalizeProps(e.guardReactiveProps({...e.unref(r),...l.$attrs})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16)]),_:3}))}}),ac=e.defineComponent({__name:"DateRangePickerHeader",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(zr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),rc=e.defineComponent({__name:"DateRangePickerHeading",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Lr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(({headingValue:r})=>[e.renderSlot(t.$slots,"default",{headingValue:r},()=>[e.createTextVNode(e.toDisplayString(r),1)])]),_:3},16))}}),lc=e.defineComponent({__name:"DateRangePickerGrid",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Kr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),ic=e.defineComponent({__name:"DateRangePickerCell",props:{date:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Hr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),sc=e.defineComponent({__name:"DateRangePickerHeadCell",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Wr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),uc=e.defineComponent({__name:"DateRangePickerNext",props:{step:{},nextPage:{type:Function},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(jr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),dc=e.defineComponent({__name:"DateRangePickerPrev",props:{step:{},prevPage:{type:Function},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ur),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),cc=e.defineComponent({__name:"DateRangePickerGridHead",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Gr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),fc=e.defineComponent({__name:"DateRangePickerGridBody",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(qr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),pc=e.defineComponent({__name:"DateRangePickerGridRow",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Yr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),mc=e.defineComponent({__name:"DateRangePickerCellTrigger",props:{day:{},month:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Xr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),vc=e.defineComponent({__name:"DateRangePickerInput",props:{part:{},type:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Dr),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[Eo,hc]=K("DateRangePickerRoot"),gc=e.defineComponent({inheritAttrs:!1,__name:"DateRangePickerRoot",props:{defaultValue:{default:()=>({start:void 0,end:void 0})},defaultPlaceholder:{},placeholder:{default:void 0},modelValue:{},hourCycle:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{default:"en"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},name:{},required:{type:Boolean},id:{},dir:{},asChild:{type:Boolean},as:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},pagedNavigation:{type:Boolean,default:!1},weekStartsOn:{default:0},weekdayFormat:{default:"narrow"},fixedWeeks:{type:Boolean,default:!1},numberOfMonths:{default:1},preventDeselect:{type:Boolean,default:!1}},emits:["update:modelValue","update:placeholder","update:startValue","update:open"],setup(o,{emit:n}){const t=o,a=n,{locale:r,disabled:l,readonly:i,pagedNavigation:s,weekStartsOn:u,weekdayFormat:d,fixedWeeks:c,numberOfMonths:f,preventDeselect:p,isDateDisabled:m,isDateUnavailable:g,defaultOpen:v,modal:C,id:y,name:x,required:h,minValue:b,maxValue:w,granularity:B,hideTimeZone:k,hourCycle:E,dir:D}=e.toRefs(t),S=ee(D),R=W(t,"modelValue",a,{defaultValue:t.defaultValue??{start:void 0,end:void 0},passive:t.modelValue===void 0}),M=pt({defaultPlaceholder:t.placeholder,granularity:t.granularity,defaultValue:R.value.start}),A=W(t,"placeholder",a,{defaultValue:t.defaultPlaceholder??M.copy(),passive:t.placeholder===void 0}),H=W(t,"open",a,{defaultValue:v.value,passive:t.open===void 0}),O=e.ref();return hc({isDateUnavailable:g.value,isDateDisabled:m.value,locale:r,disabled:l,pagedNavigation:s,weekStartsOn:u,weekdayFormat:d,fixedWeeks:c,numberOfMonths:f,readonly:i,preventDeselect:p,modelValue:R,placeholder:A,defaultOpen:v,modal:C,open:H,id:y,name:x,required:h,minValue:b,maxValue:w,granularity:B,hideTimeZone:k,hourCycle:E,dateFieldRef:O,dir:S,onStartValueChange(L){a("update:startValue",L)},onDateChange(L){var V,I;R.value={start:(V=L.start)==null?void 0:V.copy(),end:(I=L.end)==null?void 0:I.copy()}},onPlaceholderChange(L){A.value=L.copy()}}),(L,V)=>(e.openBlock(),e.createBlock(e.unref(Vo),{open:e.unref(H),"onUpdate:open":V[0]||(V[0]=I=>e.isRef(H)?H.value=I:null),"default-open":e.unref(v),modal:e.unref(C)},{default:e.withCtx(()=>[e.renderSlot(L.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),yc=e.defineComponent({__name:"DateRangePickerCalendar",setup(o){const n=Eo();return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Fr),e.mergeProps({isDateDisabled:e.unref(n).isDateDisabled,isDateUnavailable:e.unref(n).isDateUnavailable,locale:e.unref(n).locale.value,disabled:e.unref(n).disabled.value,pagedNavigation:e.unref(n).pagedNavigation.value,weekStartsOn:e.unref(n).weekStartsOn.value,weekdayFormat:e.unref(n).weekdayFormat.value,fixedWeeks:e.unref(n).fixedWeeks.value,numberOfMonths:e.unref(n).numberOfMonths.value,readonly:e.unref(n).readonly.value,preventDeselect:e.unref(n).preventDeselect.value,minValue:e.unref(n).minValue.value,maxValue:e.unref(n).maxValue.value,dir:e.unref(n).dir.value},{"initial-focus":"","model-value":e.unref(n).modelValue.value,placeholder:e.unref(n).placeholder.value,"onUpdate:startValue":a[0]||(a[0]=r=>{e.unref(n).onStartValueChange(r)}),"onUpdate:modelValue":a[1]||(a[1]=r=>{r.start&&e.unref(n).modelValue.value.start&&r.end&&e.unref(n).modelValue.value.end&&e.unref(j.isEqualDay)(r.start,e.unref(n).modelValue.value.start)&&e.unref(j.isEqualDay)(r.end,e.unref(n).modelValue.value.end)||e.unref(n).onDateChange(r)}),"onUpdate:placeholder":a[2]||(a[2]=r=>{e.unref(j.isEqualDay)(r,e.unref(n).placeholder.value)||e.unref(n).onPlaceholderChange(r)})}),{default:e.withCtx(({weekDays:r,grid:l,date:i,weekStartsOn:s,locale:u,fixedWeeks:d})=>[e.renderSlot(t.$slots,"default",{date:i,grid:l,weekDays:r,weekStartsOn:s,locale:u,fixedWeeks:d})]),_:3},16,["model-value","placeholder"]))}}),Cc=e.defineComponent({__name:"DateRangePickerField",setup(o){const n=Eo();return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Er),e.mergeProps({ref:e.unref(n).dateFieldRef,"model-value":e.unref(n).modelValue.value,placeholder:e.unref(n).placeholder.value},{id:e.unref(n).id.value,name:e.unref(n).name.value,disabled:e.unref(n).disabled.value,minValue:e.unref(n).minValue.value,maxValue:e.unref(n).maxValue.value,readonly:e.unref(n).readonly.value,hourCycle:e.unref(n).hourCycle.value,granularity:e.unref(n).granularity.value,hideTimeZone:e.unref(n).hideTimeZone.value,locale:e.unref(n).locale.value,isDateUnavailable:e.unref(n).isDateUnavailable,required:e.unref(n).required.value,dir:e.unref(n).dir.value},{"onUpdate:modelValue":a[0]||(a[0]=r=>{r.start&&e.unref(n).modelValue.value.start&&r.end&&e.unref(n).modelValue.value.end&&r.start.compare(e.unref(n).modelValue.value.start)===0&&r.end.compare(e.unref(n).modelValue.value.end)===0||e.unref(n).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{e.unref(j.isEqualDay)(r,e.unref(n).placeholder.value)&&r.compare(e.unref(n).placeholder.value)===0||e.unref(n).onPlaceholderChange(r)})}),{default:e.withCtx(({segments:r,modelValue:l})=>[e.renderSlot(t.$slots,"default",{segments:r,modelValue:l})]),_:3},16,["model-value","placeholder"]))}}),bc=e.defineComponent({__name:"DateRangePickerAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(zo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),wc=e.defineComponent({__name:"DateRangePickerArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(No),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),xc=e.defineComponent({__name:"DateRangePickerClose",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Fo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Bc=e.defineComponent({__name:"DateRangePickerTrigger",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Eo();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(Ao),e.mergeProps({"data-radix-vue-date-field-segment":"trigger"},n,{disabled:e.unref(t).disabled.value,onFocusin:r[0]||(r[0]=l=>{var i;(i=e.unref(t).dateFieldRef.value)==null||i.setFocusedElement(l.target)})}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["disabled"]))}}),kc=e.defineComponent({__name:"DateRangePickerContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);return(l,i)=>(e.openBlock(),e.createBlock(e.unref(Mo),null,{default:e.withCtx(()=>[e.createVNode(e.unref(Oo),e.normalizeProps(e.guardReactiveProps({...e.unref(r),...l.$attrs})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16)]),_:3}))}}),_c=["id","value","name","disabled","required"],[Sc,Pc]=K("DateRangeFieldRoot"),Er=e.defineComponent({inheritAttrs:!1,__name:"DateRangeFieldRoot",props:{defaultValue:{default:void 0},defaultPlaceholder:{},placeholder:{default:void 0},modelValue:{},hourCycle:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{default:"en"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isDateUnavailable:{type:Function,default:void 0},name:{},required:{type:Boolean},id:{},dir:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:placeholder"],setup(o,{expose:n,emit:t}){var F,q;const a=o,r=t,{locale:l,disabled:i,readonly:s,isDateUnavailable:u,dir:d}=e.toRefs(a),c=ln(a.locale),{primitiveElement:f,currentElement:p}=se(),m=e.ref(new Set),g=ee(d);e.onMounted(()=>{tn(p.value).forEach(N=>m.value.add(N))});const v=W(a,"modelValue",r,{defaultValue:a.defaultValue??{start:void 0,end:void 0},passive:a.modelValue===void 0}),C=pt({defaultPlaceholder:a.placeholder,granularity:a.granularity,defaultValue:v.value.start}),y=W(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??C.copy(),passive:a.placeholder===void 0}),x=e.computed(()=>a.granularity?U.hasTime(y.value)?a.granularity:"day":U.hasTime(y.value)?"minute":"day"),h=e.computed(()=>{var N;return v.value.start?!!((N=u.value)!=null&&N.call(u,v.value.start)||a.minValue&&U.isBefore(v.value.start,a.minValue)||a.maxValue&&U.isBefore(a.maxValue,v.value.start)):!1}),b=e.computed(()=>{var N;return v.value.end?!!((N=u.value)!=null&&N.call(u,v.value.end)||a.minValue&&U.isBefore(v.value.end,a.minValue)||a.maxValue&&U.isBefore(a.maxValue,v.value.end)):!1}),w=e.computed(()=>h.value||b.value?!0:!v.value.start||!v.value.end?!1:!U.isBeforeOrSame(v.value.start,v.value.end)||u.value!==void 0&&!U.areAllDaysBetweenValid(v.value.start,v.value.end,u.value,void 0)),B=kr(x.value),k=e.ref(v.value.start?{...it({value:v.value.start,formatter:c})}:{...B}),E=e.ref(v.value.end?{...it({value:v.value.end,formatter:c})}:{...B}),D=e.computed(()=>Wn({granularity:x.value,dateRef:y.value,formatter:c,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:k.value,locale:l})),S=e.computed(()=>Wn({granularity:x.value,dateRef:y.value,formatter:c,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:E.value,locale:l})),R=e.computed(()=>({start:D.value.arr,end:S.value.arr})),M=e.computed(()=>({start:R.value.start.filter(({part:N})=>N!=="literal"),end:R.value.end.filter(({part:N})=>N!=="literal")})),A=e.ref((F=v.value.start)==null?void 0:F.copy()),H=e.ref((q=v.value.end)==null?void 0:q.copy());e.watch([A,H],([N,G])=>{v.value={start:N==null?void 0:N.copy(),end:G==null?void 0:G.copy()}}),e.watch(v,N=>{N.start&&N.end&&((!A.value||N.start.compare(A.value)!==0)&&(A.value=N.start.copy()),(!H.value||N.end.compare(H.value)!==0)&&(H.value=N.end.copy()))}),e.watch([A,l],([N])=>{N!==void 0?k.value={...it({value:N,formatter:c})}:(Object.values(k.value).every(G=>G===null)||N===void 0)&&(k.value={...B})}),e.watch(l,N=>{c.getLocale()!==N&&(c.setLocale(N),e.nextTick(()=>{m.value.clear(),tn(p.value).forEach(G=>m.value.add(G))}))}),e.watch(v,N=>{N.start!==void 0&&(!j.isEqualDay(y.value,N.start)||y.value.compare(N.start)!==0)&&(y.value=N.start.copy())}),e.watch([H,l],([N])=>{N!==void 0?E.value={...it({value:N,formatter:c})}:(Object.values(E.value).every(G=>G===null)||N===void 0)&&(E.value={...B})});const O=e.ref(null),L=e.computed(()=>Array.from(m.value).findIndex(N=>{var G,X;return N.getAttribute("data-radix-vue-date-field-segment")===((G=O.value)==null?void 0:G.getAttribute("data-radix-vue-date-field-segment"))&&N.getAttribute("data-radix-vue-date-range-field-segment-type")===((X=O.value)==null?void 0:X.getAttribute("data-radix-vue-date-range-field-segment-type"))})),V=e.computed(()=>{const N=g.value==="rtl"?-1:1;return(N<0?L.value<0:L.value>m.value.size-1)?null:Array.from(m.value)[L.value+N]}),I=e.computed(()=>{const N=g.value==="rtl"?-1:1;return(N>0?L.value<0:L.value>m.value.size-1)?null:Array.from(m.value)[L.value-N]}),$=ke();function T(N){var G,X;Se(N.key)&&(N.key===$.ARROW_LEFT&&((G=I.value)==null||G.focus()),N.key===$.ARROW_RIGHT&&((X=V.value)==null||X.focus()))}function z(N){O.value=N}return Pc({isDateUnavailable:u.value,locale:l,startValue:A,endValue:H,placeholder:y,disabled:i,formatter:c,hourCycle:a.hourCycle,readonly:s,segmentValues:{start:k,end:E},isInvalid:w,segmentContents:M,elements:m,setFocusedElement:z,focusNext(){var N;(N=V.value)==null||N.focus()}}),n({setFocusedElement:z}),(N,G)=>{var X,oe;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps(N.$attrs,{ref_key:"primitiveElement",ref:f,role:"group","aria-disabled":e.unref(i)?!0:void 0,"data-disabled":e.unref(i)?"":void 0,"data-readonly":e.unref(s)?"":void 0,"data-invalid":w.value?"":void 0,dir:e.unref(g),onKeydown:e.withKeys(T,["left","right"])}),{default:e.withCtx(()=>[e.renderSlot(N.$slots,"default",{modelValue:e.unref(v),segments:R.value})]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]),e.createElementVNode("input",{id:N.id,type:"text",tabindex:"-1","aria-hidden":"true",value:`${(X=e.unref(v).start)==null?void 0:X.toString()} - ${(oe=e.unref(v).end)==null?void 0:oe.toString()}`,name:N.name,disabled:e.unref(i),required:N.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0},onFocus:G[0]||(G[0]=ae=>{var Q,Y;return(Y=(Q=Array.from(m.value))==null?void 0:Q[0])==null?void 0:Y.focus()})},null,40,_c)],64)}}}),Dr=e.defineComponent({__name:"DateRangeFieldInput",props:{part:{},type:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Sc(),a=e.ref(!0),r=e.ref(!1),{handleSegmentClick:l,handleSegmentKeydown:i,attributes:s}=Sr({hasLeftFocus:a,lastKeyZero:r,placeholder:t.placeholder,hourCycle:t.hourCycle,segmentValues:t.segmentValues[n.type],formatter:t.formatter,part:n.part,disabled:t.disabled,readonly:t.readonly,focusNext:t.focusNext,modelValue:n.type==="start"?t.startValue:t.endValue}),u=e.computed(()=>t.disabled.value),d=e.computed(()=>t.readonly.value),c=e.computed(()=>t.isInvalid.value);return(f,p)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({as:f.as,"as-child":f.asChild},e.unref(s),{contenteditable:u.value||d.value?!1:f.part!=="literal","data-radix-vue-date-field-segment":f.part,"aria-disabled":u.value?!0:void 0,"aria-readonly":d.value?!0:void 0,"data-disabled":u.value?"":void 0,"data-radix-vue-date-range-field-segment-type":f.type,"data-invalid":c.value?"":void 0,"aria-invalid":c.value?!0:void 0},e.toHandlers(f.part!=="literal"?{mousedown:e.unref(l),keydown:e.unref(i),focusout:()=>{a.value=!0},focusin:m=>{e.unref(t).setFocusedElement(m.target)}}:{})),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-radix-vue-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-radix-vue-date-range-field-segment-type","data-invalid","aria-invalid"]))}}),[Rr,Ec]=K("DropdownMenuRoot"),Dc=e.defineComponent({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n;_();const r=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),l=e.ref(),{modal:i,dir:s}=e.toRefs(t),u=ee(s);return Ec({open:r,onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:l,contentId:"",modal:i,dir:u}),(d,c)=>(e.openBlock(),e.createBlock(e.unref(po),{open:e.unref(r),"onUpdate:open":c[0]||(c[0]=f=>e.isRef(r)?r.value=f:null),dir:e.unref(u),modal:e.unref(i)},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{open:e.unref(r)})]),_:3},8,["open","dir","modal"]))}}),Rc=e.defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Rr(),{forwardRef:a,currentElement:r}=_();return e.onMounted(()=>{t.triggerElement=r}),t.triggerId||(t.triggerId=J(void 0,"radix-vue-dropdown-menu-trigger")),(l,i)=>(e.openBlock(),e.createBlock(e.unref(fn),{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{id:e.unref(t).triggerId,ref:e.unref(a),type:l.as==="button"?"button":void 0,"as-child":n.asChild,as:l.as,"aria-haspopup":"menu","aria-expanded":e.unref(t).open.value,"aria-controls":e.unref(t).open.value?e.unref(t).contentId:void 0,"data-disabled":l.disabled?"":void 0,disabled:l.disabled,"data-state":e.unref(t).open.value?"open":"closed",onClick:i[0]||(i[0]=async s=>{var u;!l.disabled&&s.button===0&&s.ctrlKey===!1&&((u=e.unref(t))==null||u.onOpenToggle(),await e.nextTick(),e.unref(t).open.value&&s.preventDefault())}),onKeydown:i[1]||(i[1]=e.withKeys(s=>{l.disabled||(["Enter"," "].includes(s.key)&&e.unref(t).onOpenToggle(),s.key==="ArrowDown"&&e.unref(t).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())},["enter","space","arrow-down"]))},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),Tc=e.defineComponent({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(bo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),$c=e.defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);_();const l=Rr(),i=e.ref(!1);function s(u){u.defaultPrevented||(i.value||setTimeout(()=>{var d;(d=l.triggerElement.value)==null||d.focus()},0),i.value=!1,u.preventDefault())}return l.contentId||(l.contentId=J(void 0,"radix-vue-dropdown-menu-content")),(u,d)=>{var c;return e.openBlock(),e.createBlock(e.unref(yo),e.mergeProps(e.unref(r),{id:e.unref(l).contentId,"aria-labelledby":(c=e.unref(l))==null?void 0:c.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:s,onInteractOutside:d[0]||(d[0]=f=>{var v;if(f.defaultPrevented)return;const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,g=p.button===2||m;(!e.unref(l).modal.value||g)&&(i.value=!0),(v=e.unref(l).triggerElement.value)!=null&&v.contains(f.target)&&f.preventDefault()})}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),Ic=e.defineComponent({__name:"DropdownMenuArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(fo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Vc=e.defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(Ft),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Ac=e.defineComponent({__name:"DropdownMenuGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(mn),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Mc=e.defineComponent({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Bo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Oc=e.defineComponent({__name:"DropdownMenuCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(go),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Nc=e.defineComponent({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(ho),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Fc=e.defineComponent({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Co),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),zc=e.defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(wo),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Lc=e.defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const r=ne(o,n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(xo),e.normalizeProps(e.guardReactiveProps(e.unref(r))),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Kc=e.defineComponent({__name:"DropdownMenuSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(o,{emit:n}){const t=o,r=W(t,"open",n,{passive:t.open===void 0,defaultValue:t.defaultOpen??!1});return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(ko),{open:e.unref(r),"onUpdate:open":i[0]||(i[0]=s=>e.isRef(r)?r.value=s:null)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{open:e.unref(r)})]),_:3},8,["open"]))}}),Hc=e.defineComponent({__name:"DropdownMenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(_o),e.mergeProps(e.unref(r),{style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Wc=e.defineComponent({__name:"DropdownMenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(So),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),jc=["value","name","disabled","required"],[bt,Uc]=K("EditableRoot"),Gc=e.defineComponent({inheritAttrs:!1,__name:"EditableRoot",props:{defaultValue:{},modelValue:{},placeholder:{default:"Enter text..."},dir:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean},activationMode:{default:"focus"},selectOnFocus:{type:Boolean,default:!1},submitMode:{default:"blur"},startWithEditMode:{type:Boolean},maxLength:{},autoResize:{type:Boolean,default:!1},id:{},name:{},required:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue","submit","update:state"],setup(o,{expose:n,emit:t}){const a=o,r=t,{id:l,name:i,defaultValue:s,startWithEditMode:u,placeholder:d,maxLength:c,disabled:f,dir:p,submitMode:m,activationMode:g,selectOnFocus:v,readonly:C,autoResize:y,required:x}=e.toRefs(a),h=e.ref(),b=ee(p),w=e.ref(u.value??!1),B=W(a,"modelValue",r,{defaultValue:s.value??"",passive:a.modelValue===void 0}),{primitiveElement:k,currentElement:E}=se(),D=Be(E),S=e.computed(()=>typeof d.value=="string"?{edit:d.value,preview:d.value}:d.value),R=e.ref(B.value);function M(){B.value=R.value,w.value=!1,r("update:state","cancel")}function A(){w.value=!0,r("update:state","edit")}function H(){R.value=B.value,w.value=!1,r("update:state","submit"),r("submit",B.value)}function O(){w.value&&(m.value==="blur"||m.value==="both"?H():M())}const L=ja(()=>O(),E),V=Ua(()=>O(),E),I=e.computed(()=>B.value==="");return n({submit:H,cancel:M,edit:A}),Uc({id:l,name:i,disabled:f,isEditing:w,maxLength:c,modelValue:B,placeholder:S,edit:A,cancel:M,submit:H,activationMode:g,submitMode:m,selectOnFocus:v,inputRef:h,startWithEditMode:u,isEmpty:I,readonly:C,autoResize:y}),($,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps($.$attrs,{ref_key:"primitiveElement",ref:k,as:$.as,"as-child":$.asChild,dir:e.unref(b),onFocusCapture:e.unref(V).onFocusCapture,onBlurCapture:e.unref(V).onBlurCapture,onPointerdownCapture:e.unref(L).onPointerDownCapture}),{default:e.withCtx(()=>[e.renderSlot($.$slots,"default",{modelValue:e.unref(B),isEditing:w.value,isEmpty:I.value,submit:H,cancel:M,edit:A})]),_:3},16,["as","as-child","dir","onFocusCapture","onBlurCapture","onPointerdownCapture"]),e.unref(D)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:e.unref(B),name:e.unref(i),disabled:e.unref(f),required:e.unref(x),style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,jc)):e.createCommentVNode("",!0)],64))}}),qc=e.defineComponent({__name:"EditableArea",props:{asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=bt();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"data-placeholder-shown":e.unref(t).isEditing.value?void 0:"","data-focus":e.unref(t).isEditing.value?"":void 0,"data-focused":e.unref(t).isEditing.value?"":void 0,"data-empty":e.unref(t).isEmpty.value?"":void 0,"data-readonly":e.unref(t).readonly.value?"":void 0,"data-disabled":e.unref(t).disabled.value?"":void 0,style:e.unref(t).autoResize.value?{display:"inline-grid"}:void 0}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["data-placeholder-shown","data-focus","data-focused","data-empty","data-readonly","data-disabled","style"]))}}),Yc=e.defineComponent({__name:"EditableInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(o){const n=o,t=ke(),a=bt(),r=e.computed(()=>a.disabled.value),l=e.computed(()=>{var d;return(d=a.placeholder.value)==null?void 0:d.edit}),{primitiveElement:i,currentElement:s}=se();e.onMounted(()=>{var d,c;a.inputRef.value=s.value,a.startWithEditMode.value&&((d=a.inputRef.value)==null||d.focus({preventScroll:!0}),a.selectOnFocus.value&&((c=a.inputRef.value)==null||c.select()))}),e.watch(a.isEditing,d=>{d&&e.nextTick(()=>{var c,f;(c=a.inputRef.value)==null||c.focus({preventScroll:!0}),a.selectOnFocus.value&&((f=a.inputRef.value)==null||f.select())})});function u(d){(a.submitMode.value==="enter"||a.submitMode.value==="both")&&d.key===t.ENTER&&!d.shiftKey&&!d.metaKey&&a.submit()}return(d,c)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({ref_key:"primitiveElement",ref:i},n,{value:e.unref(a).modelValue.value,placeholder:l.value,disabled:r.value,maxlength:e.unref(a).maxLength.value,"data-disabled":r.value?"":void 0,"data-readonly":e.unref(a).readonly.value?"":void 0,readonly:e.unref(a).readonly.value,"aria-label":"editable input",hidden:e.unref(a).autoResize.value?void 0:!e.unref(a).isEditing.value,style:e.unref(a).autoResize.value?{all:"unset",gridArea:"1 / 1 / auto / auto",visibility:e.unref(a).isEditing.value?void 0:"hidden"}:void 0,onInput:c[0]||(c[0]=f=>e.unref(a).modelValue.value=f.target.value),onKeydown:[e.withKeys(u,["enter","space"]),e.withKeys(e.unref(a).cancel,["esc"])]}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16,["value","placeholder","disabled","maxlength","data-disabled","data-readonly","readonly","hidden","style","onKeydown"]))}}),Xc=e.defineComponent({__name:"EditablePreview",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,t=bt(),a=e.computed(()=>{var i;return(i=t.placeholder.value)==null?void 0:i.preview});function r(){t.activationMode.value==="focus"&&t.edit()}function l(){t.activationMode.value==="dblclick"&&t.edit()}return(i,s)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{tabindex:"0","data-placeholder-shown":e.unref(t).isEditing.value?void 0:"",hidden:e.unref(t).autoResize.value?void 0:e.unref(t).isEditing.value,style:e.unref(t).autoResize.value?{whiteSpace:"pre",userSelect:"none",gridArea:"1 / 1 / auto / auto",visibility:e.unref(t).isEditing.value?"hidden":void 0,overflow:"hidden",textOverflow:"ellipsis"}:void 0,onFocusin:r,onDblclick:l}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(t).modelValue.value||a.value),1)])]),_:3},16,["data-placeholder-shown","hidden","style"]))}}),Zc=e.defineComponent({__name:"EditableSubmitTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=bt();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"submit","aria-disabled":e.unref(t).disabled.value?"":void 0,"data-disabled":e.unref(t).disabled.value?"":void 0,disabled:e.unref(t).disabled.value,type:a.as==="button"?"button":void 0,hidden:e.unref(t).isEditing.value?void 0:"",onClick:e.unref(t).submit}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Submit")])]),_:3},16,["aria-disabled","data-disabled","disabled","type","hidden","onClick"]))}}),Jc=e.defineComponent({__name:"EditableCancelTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=bt();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"cancel","aria-disabled":e.unref(t).disabled.value?"":void 0,"data-disabled":e.unref(t).disabled.value?"":void 0,disabled:e.unref(t).disabled.value,type:a.as==="button"?"button":void 0,hidden:e.unref(t).isEditing.value?void 0:"",onClick:e.unref(t).cancel}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Cancel")])]),_:3},16,["aria-disabled","data-disabled","disabled","type","hidden","onClick"]))}}),Qc=e.defineComponent({__name:"EditableEditTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=bt();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"edit","aria-disabled":e.unref(t).disabled.value?"":void 0,"data-disabled":e.unref(t).disabled.value?"":void 0,disabled:e.unref(t).disabled.value,type:a.as==="button"?"button":void 0,hidden:e.unref(t).isEditing.value?"":void 0,onClick:e.unref(t).edit}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode("Edit")])]),_:3},16,["aria-disabled","data-disabled","disabled","type","hidden","onClick"]))}}),[Do,ef]=K("HoverCardRoot"),tf=e.defineComponent({__name:"HoverCardRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},openDelay:{default:700},closeDelay:{default:300}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n,{openDelay:r,closeDelay:l}=e.toRefs(t);_();const i=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),s=e.ref(0),u=e.ref(0),d=e.ref(!1),c=e.ref(!1),f=e.ref(!1),p=e.ref();function m(){clearTimeout(u.value),s.value=window.setTimeout(()=>i.value=!0,r.value)}function g(){clearTimeout(s.value),!d.value&&!c.value&&(u.value=window.setTimeout(()=>i.value=!1,l.value))}function v(){i.value=!1}return ef({open:i,onOpenChange(C){i.value=C},onOpen:m,onClose:g,onDismiss:v,hasSelectionRef:d,isPointerDownOnContentRef:c,isPointerInTransitRef:f,triggerElement:p}),(C,y)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default",{open:e.unref(i)})]),_:3}))}});function jn(o){return n=>n.pointerType==="touch"?void 0:o()}function nf(o){const n=[],t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)n.push(t.currentNode);return n}const of=e.defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{default:"a"}},setup(o){const{forwardRef:n,currentElement:t}=_(),a=Do();a.triggerElement=t;function r(){setTimeout(()=>{!a.isPointerInTransitRef.value&&!a.open.value&&a.onClose()},0)}return(l,i)=>(e.openBlock(),e.createBlock(e.unref(Je),{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(n),"as-child":l.asChild,as:l.as,"data-state":e.unref(a).open.value?"open":"closed","data-grace-area-trigger":"",onPointerenter:i[0]||(i[0]=s=>e.unref(jn)(e.unref(a).onOpen)(s)),onPointerleave:i[1]||(i[1]=s=>e.unref(jn)(r)(s)),onFocus:i[2]||(i[2]=s=>e.unref(a).onOpen()),onBlur:i[3]||(i[3]=s=>e.unref(a).onClose())},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["as-child","as","data-state"])]),_:3}))}}),af=e.defineComponent({__name:"HoverCardPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),rf=e.defineComponent({__name:"HoverCardContentImpl",props:{side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const t=o,a=n,r=Fe(t),{forwardRef:l,currentElement:i}=_(),s=Do(),{isPointerInTransit:u,onPointerExit:d}=Ia(s.triggerElement,i);Ci(s.isPointerInTransitRef,u,{direction:"rtl"}),d(()=>{s.onClose()});const c=e.ref(!1);let f;e.watchEffect(m=>{if(c.value){const g=document.body;f=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",m(()=>{g.style.userSelect=f,g.style.webkitUserSelect=f})}});function p(){c.value=!1,s.isPointerDownOnContentRef.value=!1,e.nextTick(()=>{var g;((g=document.getSelection())==null?void 0:g.toString())!==""&&(s.hasSelectionRef.value=!0)})}return e.onMounted(()=>{i.value&&(document.addEventListener("pointerup",p),nf(i.value).forEach(g=>g.setAttribute("tabindex","-1")))}),e.onUnmounted(()=>{document.removeEventListener("pointerup",p),s.hasSelectionRef.value=!1,s.isPointerDownOnContentRef.value=!1}),(m,g)=>(e.openBlock(),e.createBlock(e.unref(ze),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:g[1]||(g[1]=v=>a("escapeKeyDown",v)),onPointerDownOutside:g[2]||(g[2]=v=>a("pointerDownOutside",v)),onFocusOutside:g[3]||(g[3]=e.withModifiers(v=>a("focusOutside",v),["prevent"])),onDismiss:e.unref(s).onDismiss},{default:e.withCtx(()=>[e.createVNode(e.unref(qe),e.mergeProps({...e.unref(r),...m.$attrs},{ref:e.unref(l),"data-state":e.unref(s).open.value?"open":"closed",style:{userSelect:c.value?"text":void 0,WebkitUserSelect:c.value?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"},onPointerdown:g[0]||(g[0]=v=>{v.currentTarget.contains(v.target)&&(c.value=!0),e.unref(s).hasSelectionRef.value=!1,e.unref(s).isPointerDownOnContentRef.value=!0})}),{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["onDismiss"]))}}),lf=e.defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const r=ne(o,n),{forwardRef:l}=_(),i=Do();return(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(i).open.value},{default:e.withCtx(()=>[e.createVNode(rf,e.mergeProps(e.unref(r),{ref:e.unref(l),onPointerenter:u[0]||(u[0]=d=>e.unref(jn)(e.unref(i).onOpen)(d))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),sf=e.defineComponent({__name:"HoverCardArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(gt),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),uf=e.defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{onMousedown:a[0]||(a[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}});function df(o){return o==null?void 0:o.querySelector("[data-state=checked]")}function cf(o,n,t){return o===void 0?!1:Array.isArray(o)?o.some(a=>ft(a,n,t)):ft(o,n,t)}function ft(o,n,t){return o===void 0||n===void 0?!1:typeof o=="string"?o===n:typeof t=="function"?t(o,n):typeof t=="string"?(o==null?void 0:o[t])===(n==null?void 0:n[t]):we(o,n)}const[vn,ff]=K("ListboxRoot"),pf=e.defineComponent({__name:"ListboxRoot",props:{modelValue:{},defaultValue:{},multiple:{type:Boolean},orientation:{default:"vertical"},dir:{},disabled:{type:Boolean},selectionBehavior:{default:"toggle"},highlightOnHover:{type:Boolean},by:{},name:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue","highlight","entryFocus","leave"],setup(o,{emit:n}){const t=o,a=n,{multiple:r,highlightOnHover:l,orientation:i,disabled:s,selectionBehavior:u,dir:d}=e.toRefs(t),{getItems:c}=Mt(),{handleTypeaheadSearch:f}=At(),{primitiveElement:p,currentElement:m}=se(),g=ke(),v=ee(d),C=Be(m),y=e.ref(),x=e.ref(!1),h=e.ref(!0),b=W(t,"modelValue",a,{defaultValue:t.defaultValue??(r.value?[]:void 0),passive:t.modelValue===void 0,deep:!0});function w(T){if(x.value=!0,Array.isArray(b.value)){const z=b.value.findIndex(F=>ft(F,T,t.by));if(t.selectionBehavior==="toggle"){const F=[...b.value];z===-1?F.push(T):F.splice(z,1),b.value=F}else b.value=[T],y.value=T}else t.selectionBehavior==="toggle"&&ft(b.value,T,t.by)?b.value=void 0:b.value=T;setTimeout(()=>{x.value=!1},1)}const B=e.ref(null),k=e.ref(null),E=e.ref(!1),D=Pt(),S=Pt();function R(){return c().map(T=>T.ref).filter(T=>T.dataset.disabled!=="")}function M(T){if(!T)return;B.value=T,B.value.focus(),B.value.scrollIntoView({block:"nearest"});const z=c().find(F=>F.ref===T);a("highlight",z)}function A(T){B.value&&B.value.click()}function H(T){if(x.value=!0,E.value)S.trigger(T);else{const z=T.altKey||T.ctrlKey||T.metaKey;if(z&&T.key==="a"&&r.value){const F=c(),q=F.map(N=>N.value);b.value=[...q],T.preventDefault(),M(F[F.length-1].ref)}else if(!z){const F=f(T.key,R());F&&M(F)}}setTimeout(()=>{x.value=!1},1)}function O(T){const z=B.value;z!=null&&z.isConnected&&(k.value=z),B.value=null,a("leave",T)}function L(T){var F,q;const z=new CustomEvent("listbox.entryFocus",{bubbles:!1,cancelable:!0});if((F=T.currentTarget)==null||F.dispatchEvent(z),a("entryFocus",z),!z.defaultPrevented)if(k.value)M(k.value);else{const N=(q=R())==null?void 0:q[0];M(N)}}function V(T){const z=yr(T,i.value,v.value);if(!z)return;let F=R();if(B.value){if(z==="last")F.reverse();else if(z==="prev"||z==="next"){z==="prev"&&F.reverse();const q=F.indexOf(B.value);F=F.slice(q+1)}I(T,F[0])}if(F.length){const q=!B.value&&z==="prev"?F.length-1:0;M(F[q])}if(E.value)return S.trigger(T)}function I(T,z){var q;if(!(E.value||t.selectionBehavior!=="replace"||!r.value||!Array.isArray(b.value)||(T.altKey||T.ctrlKey||T.metaKey)&&!T.shiftKey)&&T.shiftKey){const N=c().filter(oe=>oe.ref.dataset.disabled!=="");let G=(q=N.find(oe=>oe.ref===z))==null?void 0:q.value;if(T.key===g.END?G=N[N.length-1].value:T.key===g.HOME&&(G=N[0].value),!G||!y.value)return;const X=Ge(N.map(oe=>oe.value),y.value,G);b.value=X}}async function $(T){if(E.value)D.trigger(T);else{await e.nextTick();const F=R().find(q=>q.dataset.state==="checked");F&&M(F)}}return e.watch(b,()=>{x.value||e.nextTick(()=>{$()})},{immediate:!0,deep:!0}),ff({modelValue:b,onValueChange:w,multiple:r,orientation:i,dir:v,disabled:s,highlightOnHover:l,highlightedElement:B,isVirtual:E,virtualFocusHook:D,virtualKeydownHook:S,by:t.by,firstValue:y,selectionBehavior:u,focusable:h,onLeave:O,onEnter:L,onChangeHighlight:M,onKeydownEnter:A,onKeydownNavigation:V,onKeydownTypeAhead:H}),(T,z)=>(e.openBlock(),e.createBlock(e.unref(P),{ref_key:"primitiveElement",ref:p,as:T.as,"as-child":T.asChild,dir:e.unref(v),"data-disabled":e.unref(s)?"":void 0,onPointerleave:O,onFocusout:z[0]||(z[0]=async F=>{const q=F.relatedTarget||F.target;await e.nextTick(),B.value&&e.unref(m)&&!e.unref(m).contains(q)&&O(F)})},{default:e.withCtx(()=>[e.renderSlot(T.$slots,"default",{modelValue:e.unref(b)}),e.unref(C)&&t.name?(e.openBlock(),e.createBlock(e.unref(uo),{key:0,name:t.name,value:e.unref(b)},null,8,["name","value"])):e.createCommentVNode("",!0)]),_:3},8,["as","as-child","dir","data-disabled"]))}}),mf=e.defineComponent({__name:"ListboxContent",props:{asChild:{type:Boolean},as:{}},setup(o){const n=vn(),t=Ye(!1,10);return(a,r)=>(e.openBlock(),e.createBlock(e.unref(Ot),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),{role:"listbox",as:a.as,"as-child":a.asChild,tabindex:e.unref(n).focusable.value?e.unref(n).highlightedElement.value?"-1":"0":void 0,"aria-orientation":e.unref(n).orientation.value,"aria-multiselectable":!!e.unref(n).multiple.value,"data-orientation":e.unref(n).orientation.value,onMousedown:r[0]||(r[0]=e.withModifiers(l=>t.value=!0,["left"])),onFocus:r[1]||(r[1]=l=>{e.unref(t)||e.unref(n).onEnter(l)}),onKeydown:[r[2]||(r[2]=e.withKeys(e.withModifiers(l=>{e.unref(n).focusable.value&&e.unref(n).onKeydownNavigation(l)},["prevent"]),["down","up","left","right","home","end"])),e.withKeys(e.unref(n).onKeydownEnter,["enter"]),e.unref(n).onKeydownTypeAhead]},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["as","as-child","tabindex","aria-orientation","aria-multiselectable","data-orientation","onKeydown"])]),_:3}))}}),vf=e.defineComponent({__name:"ListboxFilter",props:{modelValue:{},autoFocus:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=W(t,"modelValue",n,{defaultValue:"",passive:t.modelValue===void 0}),l=vn();l.focusable.value=!1;const{primitiveElement:i,currentElement:s}=se();return e.onMounted(()=>{setTimeout(()=>{var u;t.autoFocus&&((u=s.value)==null||u.focus())},1)}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(P),{ref_key:"primitiveElement",ref:i,as:u.as,"as-child":u.asChild,value:e.unref(r),disabled:e.unref(l).disabled.value?"":void 0,"data-disabled":e.unref(l).disabled.value?"":void 0,type:"text",onKeydown:[e.withKeys(e.withModifiers(e.unref(l).onKeydownNavigation,["prevent"]),["down","up","home","end"]),e.withKeys(e.unref(l).onKeydownEnter,["enter"])],onInput:d[0]||(d[0]=c=>{r.value=c.target.value})},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{modelValue:e.unref(r)})]),_:3},8,["as","as-child","value","disabled","data-disabled","onKeydown"]))}}),hf="listbox.select",[gf,yf]=K("ListboxItem"),Cf=e.defineComponent({__name:"ListboxItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"div"}},emits:["select"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r,currentElement:l}=_(),i=J(void 0,"radix-vue-listbox-item"),s=vn(),u=e.computed(()=>l.value===s.highlightedElement.value),d=e.computed(()=>cf(s.modelValue.value,t.value,s.by)),c=e.computed(()=>s.disabled.value||t.disabled);async function f(m){a("select",m),!(m!=null&&m.defaultPrevented)&&!c.value&&m&&(s.onValueChange(t.value),s.onChangeHighlight(m.target))}function p(m){const g={originalEvent:m,value:t.value};dt(hf,f,g)}return yf({isSelected:d}),(m,g)=>(e.openBlock(),e.createBlock(e.unref(yt),{value:m.value},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{id:e.unref(i),ref:e.unref(r),role:"option",tabindex:e.unref(s).focusable.value?u.value?"0":"-1":void 0,"aria-selected":d.value,as:m.as,"as-child":m.asChild,disabled:c.value?"":void 0,"data-disabled":c.value?"":void 0,"data-highlighted":u.value?"":void 0,"data-state":d.value?"checked":"unchecked",onClick:p,onKeydown:e.withKeys(e.withModifiers(p,["prevent"]),["space"]),onPointermove:g[0]||(g[0]=v=>{e.unref(s).highlightOnHover.value?e.unref(s).onChangeHighlight(e.unref(l)):e.unref(s).focusable.value||e.unref(s).onChangeHighlight(e.unref(l))})},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},8,["id","tabindex","aria-selected","as","as-child","disabled","data-disabled","data-highlighted","data-state","onKeydown"])]),_:3},8,["value"]))}}),bf=e.defineComponent({__name:"ListboxItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o;_();const t=gf();return(a,r)=>e.unref(t).isSelected.value?(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({key:0,"aria-hidden":"true"},n),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}});function Bt(o,n,t){let a=t.initialDeps??[],r;return()=>{var l,i,s,u;let d;t.key&&((l=t.debug)!=null&&l.call(t))&&(d=Date.now());const c=o();if(!(c.length!==a.length||c.some((m,g)=>a[g]!==m)))return r;a=c;let p;if(t.key&&((i=t.debug)!=null&&i.call(t))&&(p=Date.now()),r=n(...c),t.key&&((s=t.debug)!=null&&s.call(t))){const m=Math.round((Date.now()-d)*100)/100,g=Math.round((Date.now()-p)*100)/100,v=g/16,C=(y,x)=>{for(y=String(y);y.lengthMath.abs(o-n)<1,xf=(o,n,t)=>{let a;return function(...r){o.clearTimeout(a),a=o.setTimeout(()=>n.apply(this,r),t)}},Bf=o=>o,kf=o=>{const n=Math.max(o.startIndex-o.overscan,0),t=Math.min(o.endIndex+o.overscan,o.count-1),a=[];for(let r=n;r<=t;r++)a.push(r);return a},_f=(o,n)=>{const t=o.scrollElement;if(!t)return;const a=o.targetWindow;if(!a)return;const r=i=>{const{width:s,height:u}=i;n({width:Math.round(s),height:Math.round(u)})};if(r(t.getBoundingClientRect()),!a.ResizeObserver)return()=>{};const l=new a.ResizeObserver(i=>{const s=i[0];if(s!=null&&s.borderBoxSize){const u=s.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(t.getBoundingClientRect())});return l.observe(t,{box:"border-box"}),()=>{l.unobserve(t)}},la={passive:!0},Sf=typeof window>"u"?!0:"onscrollend"in window,Pf=(o,n)=>{const t=o.scrollElement;if(!t)return;const a=o.targetWindow;if(!a)return;let r=0;const l=Sf?()=>{}:xf(a,()=>{n(r,!1)},o.options.isScrollingResetDelay),i=d=>()=>{r=t[o.options.horizontal?"scrollLeft":"scrollTop"],l(),n(r,d)},s=i(!0),u=i(!1);return u(),t.addEventListener("scroll",s,la),t.addEventListener("scrollend",u,la),()=>{t.removeEventListener("scroll",s),t.removeEventListener("scrollend",u)}},Ef=(o,n,t)=>{if(n!=null&&n.borderBoxSize){const a=n.borderBoxSize[0];if(a)return Math.round(a[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Df=(o,{adjustments:n=0,behavior:t},a)=>{var r,l;const i=o+n;(l=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||l.call(r,{[a.options.horizontal?"left":"top"]:i,behavior:t})};class Rf{constructor(n){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const a=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(r=>{r.forEach(l=>{this._measureElement(l.target,l)})}));return{disconnect:()=>{var r;return(r=a())==null?void 0:r.disconnect()},observe:r=>{var l;return(l=a())==null?void 0:l.observe(r,{box:"border-box"})},unobserve:r=>{var l;return(l=a())==null?void 0:l.unobserve(r)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([a,r])=>{typeof r>"u"&&delete t[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Bf,rangeExtractor:kf,onChange:()=>{},measureElement:Ef,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,a)=>{var r,l;const{startIndex:i,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},u=this.calculateRange();(t||i!==(u==null?void 0:u.startIndex)||s!==(u==null?void 0:u.endIndex))&&((l=(r=this.options).onChange)==null||l.call(r,this,a))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.notify(!1,!1);return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(r,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,a)=>{const r=new Map,l=new Map;for(let i=a-1;i>=0;i--){const s=t[i];if(r.has(s.lane))continue;const u=l.get(s.lane);if(u==null||s.end>u.end?l.set(s.lane,s):s.endi.end===s.end?i.index-s.index:i.end-s.end)[0]:void 0},this.getMeasurementOptions=Bt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,a,r,l,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:a,scrollMargin:r,getItemKey:l,enabled:i}),{key:!1}),this.getMeasurements=Bt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:a,scrollMargin:r,getItemKey:l,enabled:i},s)=>{var u;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,d);for(let f=d;f{const w=l(f),B=this.elementsCache.get(w);if(!b){B&&(this.observer.unobserve(B),this.elementsCache.delete(w));return}B!==b&&(B&&this.observer.unobserve(B),this.observer.observe(b),this.elementsCache.set(w,b)),b.isConnected&&this.resizeItem(f,this.options.measureElement(b,void 0,this))});const m=l(f),g=this.options.lanes===1?c[f-1]:this.getFurthestMeasurement(c,f),v=g?g.end+this.options.gap:a+r,C=s.get(m),y=typeof C=="number"?C:this.options.estimateSize(f),x=v+y,h=g?g.lane:f%this.options.lanes;c[f]={index:f,start:v,size:y,end:x,key:m,lane:h,measureElement:p}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Bt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,a,r)=>this.range=t.length>0&&a>0?Tf({measurements:t,outerSize:a,scrollOffset:r}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Bt(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,a,r,l)=>a===null?[]:t({startIndex:a.startIndex,endIndex:a.endIndex,overscan:r,count:l}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const a=this.options.indexAttribute,r=t.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(t,a)=>{const r=this.indexFromElement(t),l=this.getMeasurements()[r];if(!l||!t.isConnected){this.elementsCache.forEach((s,u)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(u))});return}const i=this.elementsCache.get(l.key);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(l.key,t)),this.resizeItem(r,this.options.measureElement(t,a,this))},this.resizeItem=(t,a)=>{const r=this.getMeasurements()[t];if(!r)return;const l=this.itemSizeCache.get(r.key)??r.size,i=a-l;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,i,this):r.start{t&&this._measureElement(t,void 0)},this.getVirtualItems=Bt(()=>[this.getIndexes(),this.getMeasurements()],(t,a)=>{const r=[];for(let l=0,i=t.length;lthis.options.debug}),this.getVirtualItemForOffset=t=>{const a=this.getMeasurements();if(a.length!==0)return On(a[Tr(0,a.length-1,r=>On(a[r]).start,t)])},this.getOffsetForAlignment=(t,a)=>{const r=this.getSize(),l=this.getScrollOffset();a==="auto"&&(t<=l?a="start":t>=l+r?a="end":a="start"),a==="start"?t=t:a==="end"?t=t-r:a==="center"&&(t=t-r/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",u=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-r;return Math.max(Math.min(u,t),0)},this.getOffsetForIndex=(t,a="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const r=this.getMeasurements()[t];if(!r)return;const l=this.getSize(),i=this.getScrollOffset();if(a==="auto")if(r.end>=i+l-this.options.scrollPaddingEnd)a="end";else if(r.start<=i+this.options.scrollPaddingStart)a="start";else return[i,a];const s=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,a),a]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(t,{align:a="auto",behavior:r}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const l=this.getOffsetForIndex(t,a);if(!l)return;const[i,s]=l;this._scrollToOffset(i,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[d]=On(this.getOffsetForIndex(t,s));wf(d,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:r})}else this.scrollToIndex(t,{align:s,behavior:r})}))},this.scrollBy=(t,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var t;const a=this.getMeasurements();let r;return a.length===0?r=this.options.paddingStart:r=this.options.lanes===1?((t=a[a.length-1])==null?void 0:t.end)??0:Math.max(...a.slice(-this.options.lanes).map(l=>l.end)),r-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:a,behavior:r})=>{this.options.scrollToFn(t,{behavior:r,adjustments:a},this)},this.measure=()=>{var t,a;this.itemSizeCache=new Map,(a=(t=this.options).onChange)==null||a.call(t,this,!1)},this.setOptions(n)}}const Tr=(o,n,t,a)=>{for(;o<=n;){const r=(o+n)/2|0,l=t(r);if(la)n=r-1;else return r}return o>0?o-1:0};function Tf({measurements:o,outerSize:n,scrollOffset:t}){const a=o.length-1,l=Tr(0,a,s=>o[s].start,t);let i=l;for(;ie.unref(o).getScrollElement(),r=>{r&&n._willUpdate()},{immediate:!0}),e.watch(()=>e.unref(o),r=>{n.setOptions({...r,onChange:(l,i)=>{var s;e.triggerRef(t),(s=r.onChange)==null||s.call(r,l,i)}}),n._willUpdate(),e.triggerRef(t)},{immediate:!0}),e.onScopeDispose(a),t}function $r(o){return $f(e.computed(()=>({observeElementRect:_f,observeElementOffset:Pf,scrollToFn:Df,...e.unref(o)})))}const If=e.defineComponent({__name:"ListboxVirtualizer",props:{options:{},estimateSize:{},textContent:{type:Function}},setup(o){const n=o,t=e.useSlots(),a=vn(),r=Ra(),{getItems:l}=Ct();a.isVirtual.value=!0;const i=e.computed(()=>{const p=r.value;if(p){const m=window.getComputedStyle(p);return{start:Number.parseFloat(m.paddingBlockStart||m.paddingTop),end:Number.parseFloat(m.paddingBlockEnd||m.paddingBottom)}}else return{start:0,end:0}}),s=$r({get scrollPaddingStart(){return i.value.start},get scrollPaddingEnd(){return i.value.end},get count(){return n.options.length},get horizontal(){return a.orientation.value==="horizontal"},estimateSize(){return n.estimateSize??28},getScrollElement(){return r.value},overscan:12}),u=e.computed(()=>s.value.getVirtualItems().map(p=>({item:p,is:e.cloneVNode(t.default({option:n.options[p.index],virtualizer:s.value,virtualItem:p})[0],{key:`${p.key}`,"data-index":p.index,"aria-setsize":n.options.length,"aria-posinset":p.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${p.start}px)`,overflowAnchor:"none"}})})));a.virtualFocusHook.on(p=>{const m=n.options.findIndex(g=>Array.isArray(a.modelValue.value)?ft(g,a.modelValue.value[0],a.by):ft(g,a.modelValue.value,a.by));m!==-1&&(p==null||p.preventDefault(),s.value.scrollToIndex(m,{align:"start"}),requestAnimationFrame(()=>{const g=df(r.value);g&&p&&(g==null||g.focus())}))});const d=Ye("",1e3),c=e.computed(()=>{const p=m=>n.textContent?n.textContent(m):m.toString().toLowerCase();return n.options.map((m,g)=>({index:g,textContent:p(m)}))});function f(p,m){var y,x,h,b;if(!((y=a.firstValue)!=null&&y.value)||!a.multiple.value||!Array.isArray(a.modelValue.value))return;const v=(x=l().filter(w=>w.ref.dataset.disabled!=="").find(w=>w.ref===a.highlightedElement.value))==null?void 0:x.value;if(!v)return;let C=null;switch(m){case"prev":case"next":{C=Ge(n.options,a.firstValue.value,v);break}case"first":{C=Ge(n.options,a.firstValue.value,(h=n.options)==null?void 0:h[0]);break}case"last":{C=Ge(n.options,a.firstValue.value,(b=n.options)==null?void 0:b[n.options.length-1]);break}}a.modelValue.value=C}return a.virtualKeydownHook.on(p=>{var C;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m)return;let v=pn[p.key];if(m&&p.key==="a"&&a.multiple.value?(p.preventDefault(),a.modelValue.value=[...n.options],v="last"):p.shiftKey&&v&&f(p,v),["first","last"].includes(v)){p.preventDefault();const y=v==="first"?0:n.options.length-1;s.value.scrollToIndex(y),requestAnimationFrame(()=>{const x=l(),h=v==="first"?x[0]:x[x.length-1];a.onChangeHighlight(h.ref)})}else if(!v&&!m){d.value+=p.key;const y=Number((C=document.activeElement)==null?void 0:C.getAttribute("data-index")),x=c.value[y].textContent,h=c.value.map(B=>B.textContent),b=oo(h,d.value,x),w=c.value.find(B=>B.textContent===b);w&&(s.value.scrollToIndex(w.index,{align:"start"}),requestAnimationFrame(()=>{const B=r.value.querySelector(`[data-index="${w.index}"]`);B instanceof HTMLElement&&a.onChangeHighlight(B)}))}}),(p,m)=>(e.openBlock(),e.createElementBlock("div",{"data-radix-vue-virtualizer":"",style:e.normalizeStyle({position:"relative",width:"100%",height:`${e.unref(s).getTotalSize()}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,({is:g,item:v})=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g),{key:v.index}))),128))],4))}}),[Vf,Af]=K("ListboxGroup"),Mf=e.defineComponent({__name:"ListboxGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=J(void 0,"radix-vue-listbox-group");return Af({id:t}),(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({role:"group"},n,{"aria-labelledby":e.unref(t)}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),Of=e.defineComponent({__name:"ListboxGroupLabel",props:{for:{},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=Vf({id:""});return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).id}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),[hn,Nf]=K("MenubarRoot"),Ff=e.defineComponent({__name:"MenubarRoot",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r,currentElement:l}=_(),{createCollection:i}=ce("menubar");i(l);const s=W(t,"modelValue",a,{defaultValue:t.defaultValue??"",passive:t.modelValue===void 0}),u=e.ref(null),{dir:d,loop:c}=e.toRefs(t),f=ee(d);return Nf({modelValue:s,dir:f,loop:c,onMenuOpen:p=>{s.value=p,u.value=p},onMenuClose:()=>{s.value=""},onMenuToggle:p=>{s.value=s.value?"":p,u.value=p}}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(tt),{"current-tab-stop-id":u.value,"onUpdate:currentTabStopId":m[0]||(m[0]=g=>u.value=g),orientation:"horizontal",loop:e.unref(c),dir:e.unref(f),"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(r),role:"menubar"},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default",{modelValue:e.unref(s)})]),_:3},512)]),_:3},8,["current-tab-stop-id","loop","dir"]))}}),[Ro,zf]=K("MenubarMenu"),Lf=e.defineComponent({__name:"MenubarMenu",props:{value:{}},setup(o){const t=J(o.value),a=hn();_();const r=e.ref(),l=e.ref(!1),i=e.computed(()=>a.modelValue.value===t);return e.watch(i,()=>{i.value||(l.value=!1)}),zf({value:t,triggerElement:r,triggerId:t,contentId:"",wasKeyboardTriggerOpenRef:l}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(po),{open:i.value,modal:!1,dir:e.unref(a).dir.value,"onUpdate:open":u[0]||(u[0]=d=>{d||e.unref(a).onMenuClose()})},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["open","dir"]))}}),Kf=e.defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=hn(),t=Ro(),{forwardRef:a,currentElement:r}=_(),l=e.ref(!1),i=e.computed(()=>n.modelValue.value===t.value);return e.onMounted(()=>{t.triggerElement=r}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(nt),{"as-child":"",focusable:!s.disabled,"tab-stop-id":e.unref(t).value},{default:e.withCtx(()=>[e.createVNode(e.unref(fn),{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{id:e.unref(t).triggerId,ref:e.unref(a),as:s.as,type:s.as==="button"?"button":void 0,role:"menuitem","aria-haspopup":"menu","aria-expanded":i.value,"aria-controls":i.value?e.unref(t).contentId:void 0,"data-highlighted":l.value?"":void 0,"data-state":i.value?"open":"closed","data-disabled":s.disabled?"":void 0,disabled:s.disabled,"data-value":e.unref(t).value,"data-radix-vue-collection-item":"",onPointerdown:u[0]||(u[0]=d=>{!s.disabled&&d.button===0&&d.ctrlKey===!1&&(e.unref(n).onMenuOpen(e.unref(t).value),i.value||d.preventDefault())}),onPointerenter:u[1]||(u[1]=()=>{var c;!!e.unref(n).modelValue.value&&!i.value&&(e.unref(n).onMenuOpen(e.unref(t).value),(c=e.unref(r))==null||c.focus())}),onKeydown:u[2]||(u[2]=e.withKeys(d=>{s.disabled||(["Enter"," "].includes(d.key)&&e.unref(n).onMenuToggle(e.unref(t).value),d.key==="ArrowDown"&&e.unref(n).onMenuOpen(e.unref(t).value),["Enter"," ","ArrowDown"].includes(d.key)&&(e.unref(t).wasKeyboardTriggerOpenRef.value=!0,d.preventDefault()))},["enter","space","arrow-down"])),onFocus:u[3]||(u[3]=d=>l.value=!0),onBlur:u[4]||(u[4]=d=>l.value=!1)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["id","as","type","aria-expanded","aria-controls","data-highlighted","data-state","data-disabled","disabled","data-value"])]),_:3})]),_:3},8,["focusable","tab-stop-id"]))}}),Hf=e.defineComponent({__name:"MenubarPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(bo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Wf=e.defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);_();const l=hn(),i=Ro();i.contentId||(i.contentId=J(void 0,"radix-vue-menubar-content"));const{injectCollection:s}=ce("menubar"),u=s(),d=e.ref(!1);function c(f){const m=f.target.hasAttribute("data-radix-menubar-subtrigger"),v=(l.dir.value==="rtl"?"ArrowRight":"ArrowLeft")===f.key;if(!v&&m)return;let y=u.value.map(b=>b.dataset.value);v&&y.reverse();const x=y.indexOf(i.value);y=l.loop.value?no(y,x+1):y.slice(x+1);const[h]=y;h&&l.onMenuOpen(h)}return(f,p)=>(e.openBlock(),e.createBlock(e.unref(yo),e.mergeProps(e.unref(r),{id:e.unref(i).contentId,"data-radix-menubar-content":"","aria-labelledby":e.unref(i).triggerId,style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:p[0]||(p[0]=m=>{var v;!!!e.unref(l).modelValue.value&&!d.value&&((v=e.unref(i).triggerElement.value)==null||v.focus()),d.value=!1,m.preventDefault()}),onFocusOutside:p[1]||(p[1]=m=>{const g=m.target;e.unref(u).some(C=>C.contains(g))&&m.preventDefault()}),onInteractOutside:p[2]||(p[2]=m=>{d.value=!0}),onEntryFocus:p[3]||(p[3]=m=>{e.unref(i).wasKeyboardTriggerOpenRef.value||m.preventDefault()}),onKeydown:e.withKeys(c,["arrow-right","arrow-left"])}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),jf=e.defineComponent({__name:"MenubarArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(fo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Uf=e.defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(Ft),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Gf=e.defineComponent({__name:"MenubarGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(mn),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),qf=e.defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Bo),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Yf=e.defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(go),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Xf=e.defineComponent({__name:"MenubarItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(ho),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Zf=e.defineComponent({__name:"MenubarLabel",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(Co),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Jf=e.defineComponent({__name:"MenubarRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=ie(n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(wo),e.normalizeProps(e.guardReactiveProps({...t,...e.unref(r)})),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),Qf=e.defineComponent({__name:"MenubarRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const r=ne(o,n);return _(),(l,i)=>(e.openBlock(),e.createBlock(e.unref(xo),e.normalizeProps(e.guardReactiveProps(e.unref(r))),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),ep=e.defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n;_();const r=W(t,"open",a,{defaultValue:t.defaultOpen??!1,passive:t.open===void 0});return(l,i)=>(e.openBlock(),e.createBlock(e.unref(ko),{open:e.unref(r),"onUpdate:open":i[0]||(i[0]=s=>e.isRef(r)?r.value=s:null)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{open:e.unref(r)})]),_:3},8,["open"]))}}),tp=e.defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const r=ne(o,n);_();const{injectCollection:l}=ce("menubar"),i=hn(),s=Ro(),u=l();function d(c){if(c.target.hasAttribute("data-radix-menubar-subtrigger"))return;let m=u.value.map(C=>C.dataset.value);const g=m.indexOf(s.value);m=i.loop.value?no(m,g+1):m.slice(g+1);const[v]=m;v&&i.onMenuOpen(v)}return(c,f)=>(e.openBlock(),e.createBlock(e.unref(_o),e.mergeProps(e.unref(r),{"data-radix-menubar-content":"",style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onKeydown:e.withKeys(d,["arrow-right"])}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16))}}),np=e.defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(So),e.mergeProps(n,{"data-radix-menubar-subtrigger":""}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[Le,Ir]=K(["NavigationMenuRoot","NavigationMenuSub"],"NavigationMenuContext"),op=e.defineComponent({__name:"NavigationMenuRoot",props:{modelValue:{default:void 0},defaultValue:{},dir:{},orientation:{default:"horizontal"},delayDuration:{default:200},skipDelayDuration:{default:300},disableClickTrigger:{type:Boolean,default:!1},disableHoverTrigger:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"nav"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=W(t,"modelValue",n,{defaultValue:t.defaultValue??"",passive:t.modelValue===void 0}),l=e.ref(""),{forwardRef:i,currentElement:s}=_(),u=e.ref(),d=e.ref(),{createCollection:c}=ce("nav");c(u);const{delayDuration:f,skipDelayDuration:p,dir:m,disableClickTrigger:g,disableHoverTrigger:v}=e.toRefs(t),C=ee(m),y=Ye(!1,p),x=e.computed(()=>r.value!==""||y.value?150:f.value),h=Zn(b=>{typeof b=="string"&&(l.value=r.value,r.value=b)},x);return Ir({isRootMenu:!0,modelValue:r,previousValue:l,baseId:J(void 0,"radix-navigation-menu"),disableClickTrigger:g,disableHoverTrigger:v,dir:C,orientation:t.orientation,rootNavigationMenu:s,indicatorTrack:u,onIndicatorTrackChange:b=>{u.value=b},viewport:d,onViewportChange:b=>{d.value=b},onTriggerEnter:b=>{h(b)},onTriggerLeave:()=>{y.value=!0,h("")},onContentEnter:()=>{h()},onContentLeave:()=>{h("")},onItemSelect:b=>{l.value=r.value,r.value=b},onItemDismiss:()=>{l.value=r.value,r.value=""}}),(b,w)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(i),"aria-label":"Main",as:b.as,"as-child":b.asChild,"data-orientation":b.orientation,dir:e.unref(C),"data-radix-navigation-menu":""},{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default",{modelValue:e.unref(r)})]),_:3},8,["as","as-child","data-orientation","dir"]))}});function gn(o){return o?"open":"closed"}function Vr(o,n){return`${o}-trigger-${n}`}function To(o,n){return`${o}-content-${n}`}const ap="navigationMenu.linkSelect",Zt="navigationMenu.rootContentDismiss";function Un(o){const n=[],t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function Ar(o){const n=document.activeElement;return o.some(t=>t===n?!0:(t.focus(),document.activeElement!==n))}function rp(o){return o.forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")}),()=>{o.forEach(n=>{const t=n.dataset.tabindex;n.setAttribute("tabindex",t)})}}function Mr(o){return n=>n.pointerType==="mouse"?o(n):void 0}const[$o,lp]=K("NavigationMenuItem"),ip=e.defineComponent({__name:"NavigationMenuItem",props:{value:{},asChild:{type:Boolean},as:{default:"li"}},setup(o){const n=o;_();const{injectCollection:t}=ce("nav"),a=t(),r=Le(),l=J(n.value),i=e.ref(),s=e.ref(),u=To(r.baseId,l);let d=()=>({});const c=e.ref(!1);async function f(v="start"){const C=document.getElementById(u);if(C){d();const y=Un(C);y.length&&Ar(v==="start"?y:y.reverse())}}function p(){const v=document.getElementById(u);if(v){const C=Un(v);C.length&&(d=rp(C))}}lp({value:l,contentId:u,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:c,onEntryKeyDown:f,onFocusProxyEnter:f,onContentFocusOutside:p,onRootContentClose:p});function m(){var v;r.onItemDismiss(),(v=i.value)==null||v.focus()}function g(v){const C=document.activeElement;if(v.keyCode===32||v.key==="Enter")if(r.modelValue.value===l){m(),v.preventDefault();return}else{v.target.click(),v.preventDefault();return}const y=a.value.filter(h=>{var b;return(b=h.parentElement)==null?void 0:b.hasAttribute("data-menu-item")});if(!y.includes(C))return;const x=Xe(v,C,void 0,{itemsArray:y,loop:!1});x&&(x==null||x.focus()),v.preventDefault(),v.stopPropagation()}return(v,C)=>(e.openBlock(),e.createBlock(e.unref(P),{"as-child":v.asChild,as:v.as,"data-menu-item":"",onKeydown:e.withKeys(g,["up","down","left","right","home","end","space"])},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default")]),_:3},8,["as-child","as"]))}}),sp=e.defineComponent({__name:"NavigationMenuContentImpl",props:{disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const t=o,a=n,{injectCollection:r}=ce("nav"),l=r(),{forwardRef:i,currentElement:s}=_(),u=Le(),d=$o(),c=Vr(u.baseId,d.value),f=To(u.baseId,d.value),p=e.ref(null),m=e.computed(()=>{const b=l.value.map(S=>S.id.split("trigger-")[1]);u.dir.value==="rtl"&&b.reverse();const w=b.indexOf(u.modelValue.value),B=b.indexOf(u.previousValue.value),k=d.value===u.modelValue.value,E=B===b.indexOf(d.value);if(!k&&!E)return p.value;const D=(()=>{if(w!==B){if(k&&B!==-1)return w>B?"from-end":"from-start";if(E&&w!==-1)return w>B?"to-start":"to-end"}return null})();return p.value=D,D});function g(h){var b,w;if(a("focusOutside",h),a("interactOutside",h),!h.defaultPrevented){d.onContentFocusOutside();const B=h.target;(w=(b=u.rootNavigationMenu)==null?void 0:b.value)!=null&&w.contains(B)&&h.preventDefault()}}function v(h){var b;if(a("pointerDownOutside",h),!h.defaultPrevented){const w=h.target,B=l.value.some(E=>E.contains(w)),k=u.isRootMenu&&((b=u.viewport.value)==null?void 0:b.contains(w));(B||k||!u.isRootMenu)&&h.preventDefault()}}e.watchEffect(h=>{const b=s.value;if(u.isRootMenu&&b){const w=()=>{var B;u.onItemDismiss(),d.onRootContentClose(),b.contains(document.activeElement)&&((B=d.triggerRef.value)==null||B.focus())};b.addEventListener(Zt,w),h(()=>b.removeEventListener(Zt,w))}});function C(h){var b,w;a("escapeKeyDown",h),h.defaultPrevented||(u.onItemDismiss(),(w=(b=d.triggerRef)==null?void 0:b.value)==null||w.focus(),d.wasEscapeCloseRef.value=!0)}function y(h){var E;if(h.target.closest("[data-radix-navigation-menu]")!==u.rootNavigationMenu.value)return;const b=h.altKey||h.ctrlKey||h.metaKey,w=h.key==="Tab"&&!b,B=Un(h.currentTarget);if(w){const D=document.activeElement,S=B.findIndex(A=>A===D),M=h.shiftKey?B.slice(0,S).reverse():B.slice(S+1,B.length);if(Ar(M))h.preventDefault();else{(E=d.focusProxyRef.value)==null||E.focus();return}}const k=Xe(h,document.activeElement,void 0,{itemsArray:B,loop:!1,enableIgnoredElement:!0});k==null||k.focus()}function x(){var b;const h=new Event(Zt,{bubbles:!0,cancelable:!0});(b=s.value)==null||b.dispatchEvent(h)}return(h,b)=>(e.openBlock(),e.createBlock(e.unref(ze),e.mergeProps({id:e.unref(f),ref:e.unref(i),"aria-labelledby":e.unref(c),"data-motion":m.value,"data-state":e.unref(gn)(e.unref(u).modelValue.value===e.unref(d).value),"data-orientation":e.unref(u).orientation},t,{onKeydown:y,onEscapeKeyDown:C,onPointerDownOutside:v,onFocusOutside:g,onDismiss:x}),{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},16,["id","aria-labelledby","data-motion","data-state","data-orientation"]))}}),up=e.defineComponent({inheritAttrs:!1,__name:"NavigationMenuContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const t=o,a=n,r=ie(a),{forwardRef:l}=_(),i=on(),s=Le(),u=$o(),d=e.computed(()=>u.value===s.modelValue.value),c=e.computed(()=>s.viewport.value&&!s.modelValue.value&&s.previousValue.value?s.previousValue.value===u.value:!1);return(f,p)=>e.unref(i)?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:e.unref(s).viewport.value,disabled:!e.unref(s).viewport.value},[e.createVNode(e.unref(re),{present:f.forceMount||d.value||c.value},{default:e.withCtx(()=>[e.createVNode(sp,e.mergeProps({ref:e.unref(l),"data-state":e.unref(gn)(d.value),style:{pointerEvents:!d.value&&e.unref(s).isRootMenu?"none":void 0}},{...f.$attrs,...t,...e.unref(r)},{onPointerenter:p[0]||(p[0]=m=>e.unref(s).onContentEnter(e.unref(u).value)),onPointerleave:p[1]||(p[1]=m=>e.unref(Mr)(()=>e.unref(s).onContentLeave())(m)),onPointerDownOutside:p[2]||(p[2]=m=>a("pointerDownOutside",m)),onFocusOutside:p[3]||(p[3]=m=>a("focusOutside",m)),onInteractOutside:p[4]||(p[4]=m=>a("interactOutside",m))}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["present"])],8,["to","disabled"])):e.createCommentVNode("",!0)}}),dp=e.defineComponent({inheritAttrs:!1,__name:"NavigationMenuIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_(),{injectCollection:a}=ce("nav"),r=a(),l=Le(),i=e.ref(),s=e.computed(()=>l.orientation==="horizontal"),u=e.computed(()=>!!l.modelValue.value),d=e.ref();function c(){d.value&&(i.value={size:s.value?d.value.offsetWidth:d.value.offsetHeight,offset:s.value?d.value.offsetLeft:d.value.offsetTop})}return e.watchEffect(()=>{if(!l.modelValue.value){i.value=void 0;return}const f=r.value;d.value=f.find(p=>p.id.includes(l.modelValue.value)),c()}),xe(d,c),xe(l.indicatorTrack,c),(f,p)=>e.unref(l).indicatorTrack.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:e.unref(l).indicatorTrack.value},[e.createVNode(e.unref(re),{present:f.forceMount||u.value},{default:e.withCtx(()=>{var m,g,v,C;return[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(t),"aria-hidden":"true","data-state":u.value?"visible":"hidden","data-orientation":e.unref(l).orientation,"as-child":n.asChild,as:f.as,style:{position:"absolute",...s.value?{left:0,width:`${(m=i.value)==null?void 0:m.size}px`,transform:`translateX(${(g=i.value)==null?void 0:g.offset}px)`}:{top:0,height:`${(v=i.value)==null?void 0:v.size}px`,transform:`translateY(${(C=i.value)==null?void 0:C.offset}px)`}}},f.$attrs),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["data-state","data-orientation","as-child","as","style"])]}),_:3},8,["present"])],8,["to"])):e.createCommentVNode("",!0)}}),cp=e.defineComponent({__name:"NavigationMenuLink",props:{active:{type:Boolean},asChild:{type:Boolean},as:{default:"a"}},emits:["select"],setup(o,{emit:n}){const t=o,a=n;_();async function r(l){var s;const i=new CustomEvent(ap,{bubbles:!0,cancelable:!0,detail:{originalEvent:l}});if(a("select",i),!i.defaultPrevented&&!l.metaKey){const u=new CustomEvent(Zt,{bubbles:!0,cancelable:!0});(s=l.target)==null||s.dispatchEvent(u)}}return(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),{as:l.as,"data-active":l.active?"":void 0,"aria-current":l.active?"page":void 0,"as-child":t.asChild,"data-radix-vue-collection-item":"",onClick:r},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["as","data-active","aria-current","as-child"]))}}),fp=e.defineComponent({inheritAttrs:!1,__name:"NavigationMenuList",props:{asChild:{type:Boolean},as:{default:"ul"}},setup(o){const n=o,t=Le(),{forwardRef:a,currentElement:r}=_();return e.onMounted(()=>{t.onIndicatorTrackChange(r.value)}),(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(a),style:{position:"relative"}},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps(l.$attrs,{"as-child":n.asChild,as:l.as,"data-orientation":e.unref(t).orientation}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["as-child","as","data-orientation"])]),_:3},512))}}),pp=e.defineComponent({__name:"NavigationMenuSub",props:{modelValue:{},defaultValue:{},orientation:{default:"horizontal"},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,r=W(t,"modelValue",n,{defaultValue:t.defaultValue??"",passive:t.modelValue===void 0}),l=e.ref(""),i=Le(),{forwardRef:s,currentElement:u}=_(),d=e.ref(),c=e.ref(),{createCollection:f}=ce("nav");return f(d),Ir({...i,isRootMenu:!1,modelValue:r,previousValue:l,orientation:t.orientation,rootNavigationMenu:u,indicatorTrack:d,onIndicatorTrackChange:p=>{d.value=p},viewport:c,onViewportChange:p=>{c.value=p},onTriggerEnter:p=>{r.value=p},onTriggerLeave:()=>{},onContentEnter:()=>{},onContentLeave:()=>{},onItemSelect:p=>{r.value=p},onItemDismiss:()=>{r.value=""}}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(s),"data-orientation":p.orientation,"as-child":t.asChild,as:p.as,"data-radix-navigation-menu":""},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default",{modelValue:e.unref(r)})]),_:3},8,["data-orientation","as-child","as"]))}}),mp=["aria-owns"],vp=e.defineComponent({inheritAttrs:!1,__name:"NavigationMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Le(),a=$o(),{forwardRef:r,currentElement:l}=_(),i=e.ref(""),s=e.ref(""),u=Ye(!1,300),d=e.ref(!1),c=e.computed(()=>a.value===t.modelValue.value);e.onMounted(()=>{a.triggerRef=l,i.value=Vr(t.baseId,a.value),s.value=To(t.baseId,a.value)});function f(){t.disableHoverTrigger.value||(d.value=!1,a.wasEscapeCloseRef.value=!1)}function p(x){if(!t.disableHoverTrigger.value&&x.pointerType==="mouse"){if(n.disabled||d.value||a.wasEscapeCloseRef.value||u.value)return;t.onTriggerEnter(a.value),u.value=!0}}function m(x){if(!t.disableHoverTrigger.value&&x.pointerType==="mouse"){if(n.disabled)return;t.onTriggerLeave(),u.value=!1}}function g(x){x.pointerType==="mouse"&&t.disableClickTrigger.value||u.value||(c.value?t.onItemSelect(""):t.onItemSelect(a.value),d.value=c.value)}function v(x){const b={horizontal:"ArrowDown",vertical:t.dir.value==="rtl"?"ArrowLeft":"ArrowRight"}[t.orientation];c.value&&x.key===b&&(a.onEntryKeyDown(),x.preventDefault(),x.stopPropagation())}function C(x){a.focusProxyRef.value=le(x)}function y(x){const h=document.getElementById(a.contentId),b=x.relatedTarget,w=b===l.value,B=h==null?void 0:h.contains(b);(w||!B)&&a.onFocusProxyEnter(w?"start":"end")}return(x,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps({id:i.value,ref:e.unref(r),disabled:x.disabled,"data-disabled":x.disabled?"":void 0,"data-state":e.unref(gn)(c.value),"aria-expanded":c.value,"aria-controls":s.value,"as-child":n.asChild,as:x.as},x.$attrs,{"data-radix-vue-collection-item":"",onPointerenter:f,onPointermove:p,onPointerleave:m,onClick:g,onKeydown:v}),{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default")]),_:3},16,["id","disabled","data-disabled","data-state","aria-expanded","aria-controls","as-child","as"]),c.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(Qe),{ref:C,"aria-hidden":"true",tabindex:0,onFocus:y}),e.unref(t).viewport?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-owns":s.value},null,8,mp)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))}}),hp=e.defineComponent({inheritAttrs:!1,__name:"NavigationMenuViewport",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const{forwardRef:n,currentElement:t}=_(),a=Le(),r=e.ref(),l=e.computed(()=>!!a.modelValue.value),i=e.computed(()=>a.modelValue.value);e.watch(t,()=>{t.value&&a.onViewportChange(t.value)});const s=e.ref();return e.watch([i,l],async()=>{var d,c;if(await e.nextTick(),!t.value)return;const u=(c=(d=t.value.querySelector("[data-state=open]"))==null?void 0:d.children)==null?void 0:c[0];s.value=u},{immediate:!0}),xe(s,()=>{s.value&&(r.value={width:s.value.offsetWidth,height:s.value.offsetHeight})}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(re),{present:u.forceMount||l.value},{default:e.withCtx(()=>{var c,f;return[e.createVNode(e.unref(P),e.mergeProps(u.$attrs,{ref:e.unref(n),as:u.as,"as-child":u.asChild,"data-state":e.unref(gn)(l.value),"data-orientation":e.unref(a).orientation,style:{pointerEvents:!l.value&&e.unref(a).isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":r.value?`${(c=r.value)==null?void 0:c.width}px`:void 0,"--radix-navigation-menu-viewport-height":r.value?`${(f=r.value)==null?void 0:f.height}px`:void 0},onPointerenter:d[0]||(d[0]=p=>e.unref(a).onContentEnter(e.unref(a).modelValue.value)),onPointerleave:d[1]||(d[1]=p=>e.unref(Mr)(()=>e.unref(a).onContentLeave())(p))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["as","as-child","data-state","data-orientation","style"])]}),_:3},8,["present"]))}});function Or(o){const{disabled:n}=o,t=e.ref(),a=Pt(),r=()=>window.clearTimeout(t.value),l=p=>{r(),!n.value&&(a.trigger(),t.value=window.setTimeout(()=>{l(60)},p))},i=()=>{l(400)},s=()=>{r()},u=e.ref(!1),d=e.computed(()=>le(o.target)),c=p=>{p.button!==0||u.value||(p.preventDefault(),u.value=!0,i())},f=()=>{u.value=!1,s()};return Ce&&(pe(d||window,"pointerdown",c),pe(window,"pointerup",f),pe(window,"pointercancel",f)),{isPressed:u,onTrigger:a.on}}function ia(o,n=e.ref({})){return Ba(()=>new ga.NumberFormatter(o.value,n.value))}function gp(o,n=e.ref({})){return Ba(()=>new ga.NumberParser(o.value,n.value))}function sa(o,n,t){let a=o==="+"?n+t:n-t;if(n%1!==0||t%1!==0){const r=n.toString().split("."),l=t.toString().split("."),i=r[1]&&r[1].length||0,s=l[1]&&l[1].length||0,u=10**Math.max(i,s);n=Math.round(n*u),t=Math.round(t*u),a=o==="+"?n+t:n-t,a/=u}return a}const yp=["value","name","disabled","required"],[Io,Cp]=K("NumberFieldRoot"),bp=e.defineComponent({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{disabled:r,min:l,max:i,step:s,locale:u,formatOptions:d,id:c}=e.toRefs(t),f=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),{primitiveElement:p,currentElement:m}=se(),g=Be(m),v=e.ref(),C=e.computed(()=>A(f.value)===l.value||(l.value&&!isNaN(f.value)?sa("-",f.value,s.value)A(f.value)===i.value||(i.value&&!isNaN(f.value)?sa("+",f.value,s.value)>i.value:!1));function x(O,L=1){var I;const V=k.parse(((I=v.value)==null?void 0:I.value)??"");t.disabled||(isNaN(V)?f.value=l.value??0:O==="increase"?f.value=A(V+(s.value??1)*L):f.value=A(V-(s.value??1)*L))}function h(O=1){x("increase",O)}function b(O=1){x("decrease",O)}function w(O){O==="min"&&l.value!==void 0?f.value=A(l.value):O==="max"&&i.value!==void 0&&(f.value=A(i.value))}const B=ia(u,d),k=gp(u,d),E=e.computed(()=>B.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),D=ia(u,d),S=e.computed(()=>isNaN(f.value)?"":D.format(f.value));function R(O){return k.isValidPartialNumber(O,l.value,i.value)}function M(O){v.value&&(v.value.value=O)}function A(O){let L;return s.value===void 0||isNaN(s.value)?L=ct(O,l.value,i.value):L=ql(O,l.value,i.value,s.value),L=k.parse(B.format(L)),L}function H(O){const L=k.parse(O);return f.value=A(L),O.length?(isNaN(L),M(S.value)):M(O)}return Cp({modelValue:f,handleDecrease:b,handleIncrease:h,handleMinMaxValue:w,inputMode:E,inputEl:v,onInputElement:O=>v.value=O,textValue:S,validate:R,applyInputValue:H,disabled:r,max:i,min:l,isDecreaseDisabled:C,isIncreaseDisabled:y,id:c}),(O,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps(O.$attrs,{ref_key:"primitiveElement",ref:p,role:"group",as:O.as,"as-child":O.asChild,"data-disabled":e.unref(r)?"":void 0}),{default:e.withCtx(()=>[e.renderSlot(O.$slots,"default",{modelValue:e.unref(f),textValue:S.value})]),_:3},16,["as","as-child","data-disabled"]),e.unref(g)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:e.unref(f),name:t.name,disabled:t.disabled,required:t.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,yp)):e.createCommentVNode("",!0)],64))}}),wp=e.defineComponent({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(o){const n=o,{primitiveElement:t,currentElement:a}=se(),r=Io();function l(i){i.target===document.activeElement&&(Math.abs(i.deltaY)<=Math.abs(i.deltaX)||(i.preventDefault(),i.deltaY>0?r.handleIncrease():i.deltaY<0&&r.handleDecrease()))}return e.onMounted(()=>{r.onInputElement(a.value)}),(i,s)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(r).id.value,ref_key:"primitiveElement",ref:t,role:"spinbutton",type:"text",tabindex:"0",value:e.unref(r).textValue.value,inputmode:e.unref(r).inputMode.value,disabled:e.unref(r).disabled.value?"":void 0,"data-disabled":e.unref(r).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":e.unref(r).modelValue.value,"aria-valuemin":e.unref(r).min.value,"aria-valuemax":e.unref(r).max.value,onKeydown:[s[0]||(s[0]=e.withKeys(e.withModifiers(u=>e.unref(r).handleIncrease(),["prevent"]),["up"])),s[1]||(s[1]=e.withKeys(e.withModifiers(u=>e.unref(r).handleDecrease(),["prevent"]),["down"])),s[2]||(s[2]=e.withKeys(e.withModifiers(u=>e.unref(r).handleIncrease(10),["prevent"]),["page-up"])),s[3]||(s[3]=e.withKeys(e.withModifiers(u=>e.unref(r).handleDecrease(10),["prevent"]),["page-down"])),s[4]||(s[4]=e.withKeys(e.withModifiers(u=>e.unref(r).handleMinMaxValue("min"),["prevent"]),["home"])),s[5]||(s[5]=e.withKeys(e.withModifiers(u=>e.unref(r).handleMinMaxValue("max"),["prevent"]),["end"])),s[7]||(s[7]=e.withKeys(u=>{var d;return e.unref(r).applyInputValue((d=u.target)==null?void 0:d.value)},["enter"]))],onWheel:l,onBeforeinput:s[6]||(s[6]=u=>{const d=u.target;let c=d.value.slice(0,d.selectionStart??void 0)+(u.data??"")+d.value.slice(d.selectionEnd??void 0);e.unref(r).validate(c)||u.preventDefault()}),onBlur:s[8]||(s[8]=u=>{var d;return e.unref(r).applyInputValue((d=u.target)==null?void 0:d.value)})}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}}),xp=e.defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Io(),a=e.computed(()=>{var u;return((u=t.disabled)==null?void 0:u.value)||n.disabled||t.isIncreaseDisabled.value}),{primitiveElement:r,currentElement:l}=se(),{isPressed:i,onTrigger:s}=Or({target:l,disabled:a});return s(()=>{t.handleIncrease()}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{ref_key:"primitiveElement",ref:r,tabindex:"-1","aria-label":"Increase",type:u.as==="button"?"button":void 0,style:{userSelect:e.unref(i)?"none":void 0},disabled:a.value?"":void 0,"data-disabled":a.value?"":void 0,"data-pressed":e.unref(i)?"true":void 0,onContextmenu:d[0]||(d[0]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),Bp=e.defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Io(),a=e.computed(()=>{var u;return((u=t.disabled)==null?void 0:u.value)||n.disabled||t.isDecreaseDisabled.value}),{primitiveElement:r,currentElement:l}=se(),{isPressed:i,onTrigger:s}=Or({target:l,disabled:a});return s(()=>{t.handleDecrease()}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{ref_key:"primitiveElement",ref:r,tabindex:"-1","aria-label":"Decrease",type:u.as==="button"?"button":void 0,style:{userSelect:e.unref(i)?"none":void 0},disabled:a.value?"":void 0,"data-disabled":a.value?"":void 0,"data-pressed":e.unref(i)?"true":void 0,onContextmenu:d[0]||(d[0]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),[wt,kp]=K("PaginationRoot"),_p=e.defineComponent({__name:"PaginationRoot",props:{page:{},defaultPage:{default:1},itemsPerPage:{default:10},total:{default:0},siblingCount:{default:2},disabled:{type:Boolean},showEdges:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"nav"}},emits:["update:page"],setup(o,{emit:n}){const t=o,a=n,{siblingCount:r,disabled:l,showEdges:i}=e.toRefs(t);_();const s=W(t,"page",a,{defaultValue:t.defaultPage,passive:t.page===void 0}),u=e.computed(()=>Math.max(1,Math.ceil(t.total/t.itemsPerPage)));return kp({page:s,onPageChange(d){s.value=d},pageCount:u,siblingCount:r,disabled:l,showEdges:i}),(d,c)=>(e.openBlock(),e.createBlock(e.unref(P),{as:d.as,"as-child":d.asChild},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{page:e.unref(s),pageCount:u.value})]),_:3},8,["as","as-child"]))}}),Sp=e.defineComponent({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"data-type":"ellipsis"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode("…")])]),_:3},16))}}),Pp=e.defineComponent({__name:"PaginationFirst",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=wt();_();const a=e.computed(()=>t.page.value===1||t.disabled.value);return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"First Page",type:r.as==="button"?"button":void 0,disabled:a.value,onClick:l[0]||(l[0]=i=>!a.value&&e.unref(t).onPageChange(1))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("First page")])]),_:3},16,["type","disabled"]))}}),Ep=e.defineComponent({__name:"PaginationLast",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=wt();_();const a=e.computed(()=>t.page.value===t.pageCount.value||t.disabled.value);return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"Last Page",type:r.as==="button"?"button":void 0,disabled:a.value,onClick:l[0]||(l[0]=i=>!a.value&&e.unref(t).onPageChange(e.unref(t).pageCount.value))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Last page")])]),_:3},16,["type","disabled"]))}});function $e(o,n){const t=n-o+1;return Array.from({length:t},(a,r)=>r+o)}function Dp(o){return o.map(n=>typeof n=="number"?{type:"page",value:n}:{type:"ellipsis"})}const jt="ellipsis";function Rp(o,n,t,a){const l=n,i=Math.max(o-t,1),s=Math.min(o+t,l);if(a){const d=Math.min(2*t+5,n)-2,c=i>3&&Math.abs(l-d-1+1)>2&&Math.abs(i-1)>2,f=s2&&Math.abs(l-s)>2;if(!c&&f)return[...$e(1,d),jt,l];if(c&&!f){const m=$e(l-d+1,l);return[1,jt,...m]}if(c&&f){const m=$e(i,s);return[1,jt,...m,jt,l]}return $e(1,l)}else{const u=t*2+1;return nDp(Rp(t.page.value,t.pageCount.value,t.siblingCount.value,t.showEdges.value)));return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{items:a.value})]),_:3},16))}}),$p=e.defineComponent({__name:"PaginationListItem",props:{value:{},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=wt(),a=e.computed(()=>t.page.value===n.value),r=e.computed(()=>t.disabled.value);return(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"data-type":"page","aria-label":`Page ${l.value}`,"aria-current":a.value?"page":void 0,"data-selected":a.value?"true":void 0,disabled:r.value,type:l.as==="button"?"button":void 0,onClick:i[0]||(i[0]=s=>!r.value&&e.unref(t).onPageChange(l.value))}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),Ip=e.defineComponent({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=wt(),a=e.computed(()=>t.page.value===t.pageCount.value||t.disabled.value);return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"Next Page",type:r.as==="button"?"button":void 0,disabled:a.value,onClick:l[0]||(l[0]=i=>!a.value&&e.unref(t).onPageChange(e.unref(t).page.value+1))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Next page")])]),_:3},16,["type","disabled"]))}}),Vp=e.defineComponent({__name:"PaginationPrev",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=wt(),a=e.computed(()=>t.page.value===1||t.disabled.value);return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"Previous Page",type:r.as==="button"?"button":void 0,disabled:a.value,onClick:l[0]||(l[0]=i=>!a.value&&e.unref(t).onPageChange(e.unref(t).page.value-1))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Prev page")])]),_:3},16,["type","disabled"]))}}),Ap=["id","value","name","disabled","required"],[Mp,Op]=K("PinInputRoot"),Np=e.defineComponent({inheritAttrs:!1,__name:"PinInputRoot",props:{modelValue:{},defaultValue:{},placeholder:{default:""},mask:{type:Boolean},otp:{type:Boolean},type:{default:"text"},dir:{},name:{},disabled:{type:Boolean},required:{type:Boolean},id:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue","complete"],setup(o,{emit:n}){const t=o,a=n,{mask:r,otp:l,placeholder:i,type:s,disabled:u,dir:d}=e.toRefs(t),{forwardRef:c}=_(),f=ee(d),p=W(t,"modelValue",a,{defaultValue:t.defaultValue??[],passive:t.modelValue===void 0}),m=e.ref(new Set);function g(C){m.value.add(C)}const v=e.computed(()=>p.value.filter(y=>!!y).length===m.value.size);return e.watch(p,()=>{v.value&&a("complete",p.value)},{deep:!0}),Op({modelValue:p,mask:r,otp:l,placeholder:i,type:s,dir:f,disabled:u,isCompleted:v,inputElements:m,onInputElementChange:g}),(C,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps(C.$attrs,{ref:e.unref(c),dir:e.unref(f),"data-complete":v.value?"":void 0,"data-disabled":e.unref(u)?"":void 0}),{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default",{modelValue:e.unref(p)})]),_:3},16,["dir","data-complete","data-disabled"]),e.createElementVNode("input",{id:C.id,type:"text",tabindex:"-1","aria-hidden":"true",value:e.unref(p).join(""),name:C.name,disabled:e.unref(u),required:C.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0},onFocus:y[0]||(y[0]=x=>{var h,b;return(b=(h=Array.from(m.value))==null?void 0:h[0])==null?void 0:b.focus()})},null,40,Ap)],64))}}),Fp=e.defineComponent({__name:"PinInputInput",props:{index:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},setup(o){const n=o,t=Mp(),a=e.computed(()=>Array.from(t.inputElements.value)),r=e.computed(()=>n.disabled||t.disabled.value),l=e.computed(()=>t.otp.value),i=e.computed(()=>t.type.value==="number"),s=e.computed(()=>t.mask.value),{primitiveElement:u,currentElement:d}=se();function c(b){var k;const w=b.target;if((((k=b.data)==null?void 0:k.length)??0)>1){y(w.value);return}if(i.value&&!/^\d*$/.test(w.value)){w.value=w.value.replace(/\D/g,"");return}w.value=w.value.slice(-1),h(n.index,w.value);const B=a.value[n.index+1];B&&B.focus()}function f(b){Xe(b,document.activeElement,void 0,{itemsArray:a.value,focus:!0,loop:!1,arrowKeyOptions:"horizontal",dir:t.dir.value})}function p(b){if(b.preventDefault(),b.target.value)h(n.index,"");else{const k=a.value[n.index-1];k&&(k.focus(),h(n.index-1,""))}}function m(b){b.key==="Delete"&&(b.preventDefault(),h(n.index,""))}function g(b){const w=b.target;w.setSelectionRange(1,1),w.value||(w.placeholder="")}function v(b){const w=b.target;e.nextTick(()=>{w.value||(w.placeholder=t.placeholder.value)})}function C(b){b.preventDefault();const w=b.clipboardData;if(!w)return;const B=w.getData("text");y(B)}function y(b){var E;const w=[...t.modelValue.value],B=b.length>=a.value.length?0:n.index,k=Math.min(B+b.length,a.value.length);for(let D=B;D=0&&b[w]==="";)b.pop(),w--;return b}function h(b,w){const B=[...t.modelValue.value];B[b]=w,t.modelValue.value=x(B)}return e.onMounted(()=>{t.onInputElementChange(d.value)}),e.onUnmounted(()=>{var b;(b=t.inputElements)==null||b.value.delete(d.value)}),(b,w)=>(e.openBlock(),e.createBlock(e.unref(P),{ref_key:"primitiveElement",ref:u,autocapitalize:"none",as:b.as,"as-child":b.asChild,autocomplete:l.value?"one-time-code":"false",type:s.value?"password":"text",inputmode:i.value?"numeric":"text",pattern:i.value?"[0-9]*":void 0,placeholder:e.unref(t).placeholder.value,value:e.unref(t).modelValue.value[b.index],disabled:r.value,"data-disabled":r.value?"":void 0,"data-complete":e.unref(t).isCompleted.value?"":void 0,"aria-label":`pin input ${b.index+1} of ${a.value.length}`,onInput:w[0]||(w[0]=B=>c(B)),onKeydown:[e.withKeys(f,["left","right","up","down","home","end"]),e.withKeys(p,["backspace"]),e.withKeys(m,["delete"])],onFocus:g,onBlur:v,onPaste:C},{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},8,["as","as-child","autocomplete","type","inputmode","pattern","placeholder","value","disabled","data-disabled","data-complete","aria-label"]))}}),[at,zp]=K("PopoverRoot"),Vo=e.defineComponent({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n,{modal:r}=e.toRefs(t),l=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),i=e.ref(),s=e.ref(!1);return zp({contentId:"",modal:r,open:l,onOpenChange:u=>{l.value=u},onOpenToggle:()=>{l.value=!l.value},triggerElement:i,hasCustomAnchor:s}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{open:e.unref(l)})]),_:3}))}}),Ao=e.defineComponent({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=at(),{forwardRef:a,currentElement:r}=_();return e.onMounted(()=>{t.triggerElement.value=r.value}),(l,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t).hasCustomAnchor.value?e.unref(P):e.unref(Je)),{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(a),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e.unref(t).open.value,"aria-controls":e.unref(t).contentId,"data-state":e.unref(t).open.value?"open":"closed",as:l.as,"as-child":n.asChild,onClick:e.unref(t).onOpenToggle},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),Mo=e.defineComponent({__name:"PopoverPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Nr=e.defineComponent({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=Fe(t),{forwardRef:l}=_(),i=at();return eo(),(s,u)=>(e.openBlock(),e.createBlock(e.unref(dn),{"as-child":"",loop:"",trapped:s.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>a("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>a("closeAutoFocus",d))},{default:e.withCtx(()=>[e.createVNode(e.unref(ze),{"as-child":"","disable-outside-pointer-events":s.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=d=>a("pointerDownOutside",d)),onInteractOutside:u[1]||(u[1]=d=>a("interactOutside",d)),onEscapeKeyDown:u[2]||(u[2]=d=>a("escapeKeyDown",d)),onFocusOutside:u[3]||(u[3]=d=>a("focusOutside",d)),onDismiss:u[4]||(u[4]=d=>e.unref(i).onOpenChange(!1))},{default:e.withCtx(()=>[e.createVNode(e.unref(qe),e.mergeProps(e.unref(r),{id:e.unref(i).contentId,ref:e.unref(l),"data-state":e.unref(i).open.value?"open":"closed",role:"dialog",style:{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["id","data-state"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Lp=e.defineComponent({__name:"PopoverContentModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=at(),l=e.ref(!1);vt(!0);const i=ne(t,a),{forwardRef:s,currentElement:u}=_();return Vt(u),(d,c)=>(e.openBlock(),e.createBlock(Nr,e.mergeProps(e.unref(i),{ref:e.unref(s),"trap-focus":e.unref(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=e.withModifiers(f=>{var p;a("closeAutoFocus",f),l.value||(p=e.unref(r).triggerElement.value)==null||p.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=f=>{a("pointerDownOutside",f);const p=f.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,g=p.button===2||m;l.value=g}),onFocusOutside:c[2]||(c[2]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),Kp=e.defineComponent({__name:"PopoverContentNonModal",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=at(),l=e.ref(!1),i=e.ref(!1),s=ne(t,a);return(u,d)=>(e.openBlock(),e.createBlock(Nr,e.mergeProps(e.unref(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{var f;a("closeAutoFocus",c),c.defaultPrevented||(l.value||(f=e.unref(r).triggerElement.value)==null||f.focus(),c.preventDefault()),l.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{var m;a("interactOutside",c),c.defaultPrevented||(l.value=!0,c.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const f=c.target;((m=e.unref(r).triggerElement.value)==null?void 0:m.contains(f))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&i.value&&c.preventDefault()})}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16))}}),Oo=e.defineComponent({__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(o,{emit:n}){const t=o,a=n,r=at(),l=ne(t,a),{forwardRef:i}=_();return r.contentId||(r.contentId=J(void 0,"radix-vue-popover-content")),(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(r).open.value},{default:e.withCtx(()=>[e.unref(r).modal.value?(e.openBlock(),e.createBlock(Lp,e.mergeProps({key:0},e.unref(l),{ref:e.unref(i)}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(Kp,e.mergeProps({key:1},e.unref(l),{ref:e.unref(i)}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),No=e.defineComponent({__name:"PopoverArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(gt),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Fo=e.defineComponent({__name:"PopoverClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=at();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),{type:a.as==="button"?"button":void 0,as:a.as,"as-child":n.asChild,onClick:r[0]||(r[0]=l=>e.unref(t).onOpenChange(!1))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["type","as","as-child"]))}}),zo=e.defineComponent({__name:"PopoverAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(o){const n=o;_();const t=at();return e.onBeforeMount(()=>{t.hasCustomAnchor.value=!0}),e.onUnmounted(()=>{t.hasCustomAnchor.value=!1}),(a,r)=>(e.openBlock(),e.createBlock(e.unref(Je),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16))}}),Dt=100,[Hp,Wp]=K("ProgressRoot"),Lo=o=>typeof o=="number";function jp(o,n){return ut(o)||Lo(o)&&!Number.isNaN(o)&&o<=n&&o>=0?o:(console.error(`Invalid prop \`value\` of value \`${o}\` supplied to \`ProgressRoot\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or ${Dt} if no \`max\` prop is set) - \`null\` or \`undefined\` if the progress is indeterminate. Defaulting to \`null\`.`),null)}function Up(o){return Lo(o)&&!Number.isNaN(o)&&o>0?o:(console.error(`Invalid prop \`max\` of value \`${o}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Dt}\`.`),Dt)}const Gp=e.defineComponent({__name:"ProgressRoot",props:{modelValue:{},max:{default:Dt},getValueLabel:{type:Function,default:(o,n)=>`${Math.round(o/n*Dt)}%`},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:max"],setup(o,{emit:n}){const t=o,a=n;_();const r=W(t,"modelValue",a,{passive:t.modelValue===void 0}),l=W(t,"max",a,{passive:t.max===void 0});e.watch(()=>r.value,async s=>{const u=jp(s,t.max);u!==s&&(await e.nextTick(),r.value=u)},{immediate:!0}),e.watch(()=>t.max,s=>{const u=Up(t.max);u!==s&&(l.value=u)},{immediate:!0});const i=e.computed(()=>ut(r.value)?"indeterminate":r.value===l.value?"complete":"loading");return Wp({modelValue:r,max:l,progressState:i}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(P),{"as-child":s.asChild,as:s.as,"aria-valuemax":e.unref(l),"aria-valuemin":0,"aria-valuenow":Lo(e.unref(r))?e.unref(r):void 0,"aria-valuetext":s.getValueLabel(e.unref(r),e.unref(l)),"aria-label":s.getValueLabel(e.unref(r),e.unref(l)),role:"progressbar","data-state":i.value,"data-value":e.unref(r)??void 0,"data-max":e.unref(l)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{modelValue:e.unref(r)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),qp=e.defineComponent({__name:"ProgressIndicator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Hp();return _(),(a,r)=>{var l;return e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"data-state":e.unref(t).progressState.value,"data-value":((l=e.unref(t).modelValue)==null?void 0:l.value)??void 0,"data-max":e.unref(t).max.value}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["data-state","data-value","data-max"])}}}),[Yp,Xp]=K("RadioGroupRoot"),Zp=e.defineComponent({__name:"RadioGroupRoot",props:{modelValue:{},defaultValue:{},disabled:{type:Boolean,default:!1},name:{},required:{type:Boolean,default:!1},orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r}=_(),l=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),{disabled:i,loop:s,orientation:u,name:d,required:c,dir:f}=e.toRefs(t),p=ee(f);return Xp({modelValue:l,changeModelValue:m=>{l.value=m},disabled:i,loop:s,orientation:u,name:d==null?void 0:d.value,required:c}),(m,g)=>(e.openBlock(),e.createBlock(e.unref(tt),{"as-child":"",orientation:e.unref(u),dir:e.unref(p),loop:e.unref(s)},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(r),role:"radiogroup","data-disabled":e.unref(i)?"":void 0,"as-child":m.asChild,as:m.as,required:e.unref(c),"aria-orientation":e.unref(u),"aria-required":e.unref(c),dir:e.unref(p),name:e.unref(d)},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{modelValue:e.unref(l)})]),_:3},8,["data-disabled","as-child","as","required","aria-orientation","aria-required","dir","name"])]),_:3},8,["orientation","dir","loop"]))}}),Jp=["value","checked","name","disabled","required"],Qp=e.defineComponent({__name:"Radio",props:{id:{},value:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},checked:{type:Boolean,default:void 0},name:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(o,{emit:n}){const t=o,r=W(t,"checked",n,{passive:t.checked===void 0}),{value:l}=e.toRefs(t),{forwardRef:i,currentElement:s}=_(),u=Be(s),d=e.computed(()=>{var f;return t.id&&s.value?((f=document.querySelector(`[for="${t.id}"]`))==null?void 0:f.innerText)??t.value:void 0});function c(f){r.value=!0,u.value&&f.stopPropagation()}return(f,p)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(f.$attrs,{id:f.id,ref:e.unref(i),role:"radio",type:f.as==="button"?"button":void 0,as:f.as,"aria-checked":e.unref(r),"aria-label":d.value,"as-child":f.asChild,disabled:f.disabled?"":void 0,"data-state":e.unref(r)?"checked":"unchecked","data-disabled":f.disabled?"":void 0,value:e.unref(l),required:f.required,name:f.name,onClick:e.withModifiers(c,["stop"])}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{checked:e.unref(r)}),e.unref(u)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"radio",tabindex:"-1","aria-hidden":"true",value:e.unref(l),checked:!!e.unref(r),name:f.name,disabled:f.disabled,required:f.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Jp)):e.createCommentVNode("",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),[em,tm]=K("RadioGroupItem"),nm=e.defineComponent({inheritAttrs:!1,__name:"RadioGroupItem",props:{id:{},value:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},name:{},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,{forwardRef:t,currentElement:a}=_(),r=Yp(),l=e.computed(()=>r.disabled.value||n.disabled),i=e.computed(()=>r.required.value||n.required),s=e.computed(()=>{var f;return((f=r.modelValue)==null?void 0:f.value)===n.value});tm({disabled:l,checked:s});const u=e.ref(!1),d=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];pe("keydown",f=>{d.includes(f.key)&&(u.value=!0)}),pe("keyup",()=>{u.value=!1});function c(){setTimeout(()=>{var f;u.value&&((f=a.value)==null||f.click())},0)}return(f,p)=>(e.openBlock(),e.createBlock(e.unref(nt),{checked:s.value,disabled:l.value,"as-child":"",focusable:!l.value,active:s.value},{default:e.withCtx(()=>[e.createVNode(Qp,e.mergeProps({...f.$attrs,...n},{ref:e.unref(t),checked:s.value,required:i.value,disabled:l.value,"onUpdate:checked":p[0]||(p[0]=m=>e.unref(r).changeModelValue(f.value)),onKeydown:p[1]||(p[1]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["enter"])),onFocus:c}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),om=e.defineComponent({__name:"RadioGroupIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(o){const{forwardRef:n}=_(),t=em();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(re),{present:a.forceMount||e.unref(t).checked.value},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(n),"data-state":e.unref(t).checked.value?"checked":"unchecked","data-disabled":e.unref(t).disabled.value?"":void 0,"as-child":a.asChild,as:a.as},a.$attrs),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}});function am(o){const n=e.computed(()=>o.start.value?!!o.isDateDisabled(o.start.value):!1),t=e.computed(()=>o.end.value?!!o.isDateDisabled(o.end.value):!1),a=e.computed(()=>n.value||t.value?!1:!!(o.start.value&&o.end.value&&U.isBefore(o.end.value,o.start.value))),r=c=>o.start.value?j.isSameDay(o.start.value,c):!1,l=c=>o.end.value?j.isSameDay(o.end.value,c):!1,i=c=>o.start.value&&j.isSameDay(o.start.value,c)||o.end.value&&j.isSameDay(o.end.value,c)?!0:o.end.value&&o.start.value?U.isBetween(c,o.start.value,o.end.value):!1,s=e.computed(()=>{if(o.start.value&&o.end.value||!o.start.value||!o.focusedValue.value)return null;const c=U.isBefore(o.start.value,o.focusedValue.value),f=c?o.start.value:o.focusedValue.value,p=c?o.focusedValue.value:o.start.value;return j.isSameDay(f.add({days:1}),p)?{start:f,end:p}:U.areAllDaysBetweenValid(f,p,o.isDateUnavailable,o.isDateDisabled)?{start:f,end:p}:null});return{isInvalid:a,isSelected:i,highlightedRange:s,isSelectionStart:r,isSelectionEnd:l,isHighlightedStart:c=>!s.value||!s.value.start?!1:j.isSameDay(s.value.start,c),isHighlightedEnd:c=>!s.value||!s.value.end?!1:j.isSameDay(s.value.end,c)}}const rm={style:{border:"0px",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute","white-space":"nowrap",width:"1px"}},lm={role:"heading","aria-level":"2"},[xt,im]=K("RangeCalendarRoot"),Fr=e.defineComponent({__name:"RangeCalendarRoot",props:{defaultPlaceholder:{},defaultValue:{default:()=>({start:void 0,end:void 0})},modelValue:{},placeholder:{default:void 0},pagedNavigation:{type:Boolean,default:!1},preventDeselect:{type:Boolean,default:!1},weekStartsOn:{default:0},weekdayFormat:{default:"narrow"},calendarLabel:{},fixedWeeks:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{default:"en"},numberOfMonths:{default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},initialFocus:{type:Boolean,default:!1},isDateDisabled:{type:Function,default:void 0},isDateUnavailable:{type:Function,default:void 0},dir:{},nextPage:{},prevPage:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue","update:placeholder","update:startValue"],setup(o,{emit:n}){const t=o,a=n,{disabled:r,readonly:l,initialFocus:i,pagedNavigation:s,weekStartsOn:u,weekdayFormat:d,fixedWeeks:c,numberOfMonths:f,preventDeselect:p,isDateUnavailable:m,isDateDisabled:g,calendarLabel:v,maxValue:C,minValue:y,locale:x,dir:h,nextPage:b,prevPage:w}=e.toRefs(t),{primitiveElement:B,currentElement:k}=se(),E=ee(h),D=e.ref(),S=e.ref(),R=W(t,"modelValue",a,{defaultValue:t.defaultValue??{start:void 0,end:void 0},passive:t.modelValue===void 0}),M=pt({defaultPlaceholder:t.placeholder,defaultValue:R.value.start}),A=e.ref(R.value.start),H=e.ref(R.value.end),O=W(t,"placeholder",a,{defaultValue:t.defaultPlaceholder??M.copy(),passive:t.placeholder===void 0});function L(te){O.value=te.copy()}const{fullCalendarLabel:V,headingValue:I,isDateDisabled:$,isDateUnavailable:T,isNextButtonDisabled:z,isPrevButtonDisabled:F,grid:q,weekdays:N,isOutsideVisibleView:G,nextPage:X,prevPage:oe,formatter:ae}=er({locale:x,placeholder:O,weekStartsOn:u,fixedWeeks:c,numberOfMonths:f,minValue:y,maxValue:C,disabled:r,weekdayFormat:d,pagedNavigation:s,isDateDisabled:g.value,isDateUnavailable:m.value,calendarLabel:v,nextPage:b,prevPage:w}),{isInvalid:Q,isSelected:Y,highlightedRange:ue,isSelectionStart:de,isSelectionEnd:me,isHighlightedStart:We,isHighlightedEnd:Ul}=am({start:A,end:H,isDateDisabled:$,isDateUnavailable:T,focusedValue:S});return e.watch(R,te=>{te.start&&(!A.value||!j.isEqualDay(A.value,te.start))&&(A.value=te.start.copy()),te.end&&(!H.value||!j.isEqualDay(H.value,te.end))&&(H.value=te.end.copy())}),e.watch(A,te=>{te&&!j.isEqualDay(te,O.value)&&L(te),a("update:startValue",te)}),e.watch([A,H],([te,Re])=>{const ge=R.value;if(!(ge&&ge.start&&ge.end&&te&&Re&&j.isEqualDay(ge.start,te)&&j.isEqualDay(ge.end,Re)))if(te&&Re){if(ge.start&&ge.end&&j.isEqualDay(ge.start,te)&&j.isEqualDay(ge.end,Re))return;U.isBefore(Re,te)?R.value={start:Re.copy(),end:te.copy()}:R.value={start:te.copy(),end:Re.copy()}}else ge.start&&ge.end&&(R.value={start:void 0,end:void 0})}),im({isDateUnavailable:T,startValue:A,endValue:H,formatter:ae,modelValue:R,placeholder:O,disabled:r,initialFocus:i,pagedNavigation:s,weekStartsOn:u,weekdayFormat:d,fixedWeeks:c,numberOfMonths:f,readonly:l,preventDeselect:p,fullCalendarLabel:V,headingValue:I,isInvalid:Q,isDateDisabled:$,highlightedRange:ue,focusedValue:S,lastPressedDateValue:D,isSelected:Y,isSelectionEnd:me,isSelectionStart:de,isNextButtonDisabled:z,isPrevButtonDisabled:F,isOutsideVisibleView:G,nextPage:X,prevPage:oe,parentElement:k,onPlaceholderChange:L,locale:x,dir:E,isHighlightedStart:We,isHighlightedEnd:Ul}),e.onMounted(()=>{i.value&&wa(k.value)}),(te,Re)=>(e.openBlock(),e.createBlock(e.unref(P),{ref_key:"primitiveElement",ref:B,as:te.as,"as-child":te.asChild,role:"application","aria-label":e.unref(V),"data-readonly":e.unref(l)?"":void 0,"data-disabled":e.unref(r)?"":void 0,"data-invalid":e.unref(Q)?"":void 0,dir:e.unref(E)},{default:e.withCtx(()=>[e.createElementVNode("div",rm,[e.createElementVNode("div",lm,e.toDisplayString(e.unref(V)),1)]),e.renderSlot(te.$slots,"default",{date:e.unref(O),grid:e.unref(q),weekDays:e.unref(N),weekStartsOn:e.unref(u),locale:e.unref(x),fixedWeeks:e.unref(c)})]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),zr=e.defineComponent({__name:"RangeCalendarHeader",props:{asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Lr=e.defineComponent({__name:"RangeCalendarHeading",props:{asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=xt();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"data-disabled":e.unref(t).disabled.value?"":void 0}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{headingValue:e.unref(t).headingValue.value},()=>[e.createTextVNode(e.toDisplayString(e.unref(t).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),Kr=e.defineComponent({__name:"RangeCalendarGrid",props:{asChild:{type:Boolean},as:{default:"table"}},setup(o){const n=o,t=xt(),a=e.computed(()=>t.disabled.value?!0:void 0),r=e.computed(()=>t.readonly.value?!0:void 0);return(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{tabindex:"-1",role:"grid","aria-readonly":r.value,"aria-disabled":a.value,"data-readonly":r.value&&"","data-disabled":a.value&&""}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),Hr=e.defineComponent({__name:"RangeCalendarCell",props:{date:{},asChild:{type:Boolean},as:{default:"td"}},setup(o){const n=xt();return(t,a)=>{var r,l;return e.openBlock(),e.createBlock(e.unref(P),{as:t.as,"as-child":t.asChild,role:"gridcell","aria-selected":e.unref(n).isSelected(t.date)?!0:void 0,"aria-disabled":e.unref(n).isDateDisabled(t.date)||((l=(r=e.unref(n)).isDateUnavailable)==null?void 0:l.call(r,t.date)),"data-disabled":e.unref(n).isDateDisabled(t.date)?"":void 0},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"])}}}),Wr=e.defineComponent({__name:"RangeCalendarHeadCell",props:{asChild:{type:Boolean},as:{default:"th"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),jr=e.defineComponent({__name:"RangeCalendarNext",props:{step:{},nextPage:{},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=e.computed(()=>a.disabled.value||a.isNextButtonDisabled(n.step,n.nextPage)),a=xt();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"Next page",type:r.as==="button"?"button":void 0,"aria-disabled":t.value||void 0,"data-disabled":t.value||void 0,disabled:t.value,onClick:l[0]||(l[0]=i=>e.unref(a).nextPage(n.step,n.nextPage))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Next page")])]),_:3},16,["type","aria-disabled","data-disabled","disabled"]))}}),Ur=e.defineComponent({__name:"RangeCalendarPrev",props:{step:{},prevPage:{},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=e.computed(()=>a.disabled.value||a.isPrevButtonDisabled(n.step,n.prevPage)),a=xt();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-label":"Previous page",type:r.as==="button"?"button":void 0,"aria-disabled":t.value||void 0,"data-disabled":t.value||void 0,disabled:t.value,onClick:l[0]||(l[0]=i=>e.unref(a).prevPage(n.step,n.prevPage))}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode("Prev page")])]),_:3},16,["type","aria-disabled","data-disabled","disabled"]))}}),Gr=e.defineComponent({__name:"RangeCalendarGridHead",props:{asChild:{type:Boolean},as:{default:"thead"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{"aria-hidden":"true"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),qr=e.defineComponent({__name:"RangeCalendarGridBody",props:{asChild:{type:Boolean},as:{default:"tbody"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Yr=e.defineComponent({__name:"RangeCalendarGridRow",props:{asChild:{type:Boolean},as:{default:"tr"}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Xr=e.defineComponent({__name:"RangeCalendarCellTrigger",props:{day:{},month:{},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=xt(),a=ke(),{primitiveElement:r,currentElement:l}=se(),i=e.computed(()=>t.formatter.custom(U.toDate(n.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),s=e.computed(()=>t.isDateDisabled(n.day)),u=e.computed(()=>{var D;return(D=t.isDateUnavailable)==null?void 0:D.call(t,n.day)}),d=e.computed(()=>t.isSelected(n.day)),c=e.computed(()=>t.isSelectionStart(n.day)),f=e.computed(()=>t.isSelectionEnd(n.day)),p=e.computed(()=>t.isHighlightedStart(n.day)),m=e.computed(()=>t.isHighlightedEnd(n.day)),g=e.computed(()=>t.highlightedRange.value?U.isBetweenInclusive(n.day,t.highlightedRange.value.start,t.highlightedRange.value.end):!1),v="[data-radix-vue-calendar-cell-trigger]:not([data-disabled]):not([data-outside-month]):not([data-outside-visible-months])",C=e.computed(()=>j.isToday(n.day,j.getLocalTimeZone())),y=e.computed(()=>!j.isSameMonth(n.day,n.month)),x=e.computed(()=>t.isOutsideVisibleView(n.day)),h=e.computed(()=>n.day.day.toLocaleString(t.locale.value)),b=e.computed(()=>!t.disabled.value&&j.isSameDay(n.day,t.placeholder.value));function w(D,S){var R;if(!t.readonly.value&&!(t.isDateDisabled(S)||(R=t.isDateUnavailable)!=null&&R.call(t,S))){if(t.lastPressedDateValue.value=S.copy(),t.startValue.value&&t.highlightedRange.value===null){if(j.isSameDay(S,t.startValue.value)&&!t.preventDeselect.value&&!t.endValue.value){t.startValue.value=void 0,t.onPlaceholderChange(S);return}else if(!t.endValue.value){D.preventDefault(),t.lastPressedDateValue.value&&j.isSameDay(t.lastPressedDateValue.value,S)&&(t.startValue.value=S.copy());return}}if(t.startValue.value&&t.endValue.value&&j.isSameDay(t.endValue.value,S)&&!t.preventDeselect.value){t.startValue.value=void 0,t.endValue.value=void 0,t.onPlaceholderChange(S);return}t.startValue.value?t.endValue.value?t.endValue.value&&t.startValue.value&&(t.endValue.value=void 0,t.startValue.value=S.copy()):t.endValue.value=S.copy():t.startValue.value=S.copy()}}function B(D){w(D,n.day)}function k(){var D;t.isDateDisabled(n.day)||(D=t.isDateUnavailable)!=null&&D.call(t,n.day)||(t.focusedValue.value=n.day.copy())}function E(D){D.preventDefault(),D.stopPropagation();const S=t.parentElement.value,R=S?Array.from(S.querySelectorAll(v)):[];let A=R.indexOf(l.value);const H=7,O=t.dir.value==="rtl"?-1:1;switch(D.code){case a.ARROW_RIGHT:A+=O;break;case a.ARROW_LEFT:A-=O;break;case a.ARROW_UP:A-=H;break;case a.ARROW_DOWN:A+=H;break;case a.ENTER:case a.SPACE_CODE:w(D,n.day);return;default:return}if(A>=0&&A{const L=S?Array.from(S.querySelectorAll(v)):[];L[L.length-Math.abs(A)].focus()});return}if(A>=R.length){if(t.isNextButtonDisabled("month"))return;t.nextPage(),e.nextTick(()=>{(S?Array.from(S.querySelectorAll(v)):[])[A-R.length].focus()})}}return(D,S)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({ref_key:"primitiveElement",ref:r},n,{role:"button","aria-label":i.value,"data-radix-vue-calendar-cell-trigger":"","aria-selected":d.value?!0:void 0,"aria-disabled":y.value||s.value||u.value?!0:void 0,"data-highlighted":g.value?"":void 0,"data-selection-start":c.value?!0:void 0,"data-selection-end":f.value?!0:void 0,"data-highlighted-start":p.value?!0:void 0,"data-highlighted-end":m.value?!0:void 0,"data-selected":d.value?!0:void 0,"data-outside-visible-view":x.value?"":void 0,"data-value":D.day.toString(),"data-disabled":s.value||y.value?"":void 0,"data-unavailable":u.value?"":void 0,"data-today":C.value?"":void 0,"data-outside-month":y.value?"":void 0,"data-focused":b.value?"":void 0,tabindex:b.value?0:y.value||s.value?void 0:-1,onClick:B,onFocusin:k,onMouseenter:k,onKeydown:e.withKeys(E,["up","down","left","right","enter","space"])}),{default:e.withCtx(()=>[e.renderSlot(D.$slots,"default",{dayValue:h.value},()=>[e.createTextVNode(e.toDisplayString(h.value),1)])]),_:3},16,["aria-label","aria-selected","aria-disabled","data-highlighted","data-selection-start","data-selection-end","data-highlighted-start","data-highlighted-end","data-selected","data-outside-visible-view","data-value","data-disabled","data-unavailable","data-today","data-outside-month","data-focused","tabindex"]))}}),[he,sm]=K("ScrollAreaRoot"),um=e.defineComponent({__name:"ScrollAreaRoot",props:{type:{default:"hover"},dir:{},scrollHideDelay:{default:600},asChild:{type:Boolean},as:{}},setup(o,{expose:n}){const t=o,a=e.ref(0),r=e.ref(0),l=e.ref(),i=e.ref(),s=e.ref(),u=e.ref(),d=e.ref(!1),c=e.ref(!1),{type:f,dir:p,scrollHideDelay:m}=e.toRefs(t),g=ee(p);function v(){var h;(h=l.value)==null||h.scrollTo({top:0})}function C(){var h;(h=l.value)==null||h.scrollTo({top:0,left:0})}n({viewport:l,scrollTop:v,scrollTopLeft:C});const{forwardRef:y,currentElement:x}=_();return sm({type:f,dir:g,scrollHideDelay:m,scrollArea:x,viewport:l,onViewportChange:h=>{l.value=h||void 0},content:i,onContentChange:h=>{i.value=h},scrollbarX:s,scrollbarXEnabled:d,scrollbarY:u,scrollbarYEnabled:c,onScrollbarXChange:h=>{s.value=h||void 0},onScrollbarYChange:h=>{u.value=h||void 0},onScrollbarXEnabledChange:h=>{d.value=h},onScrollbarYEnabledChange:h=>{c.value=h},onCornerWidthChange:h=>{a.value=h},onCornerHeightChange:h=>{r.value=h}}),(h,b)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(y),"as-child":t.asChild,as:h.as,dir:e.unref(g),style:e.normalizeStyle({position:"relative","--radix-scroll-area-corner-width":`${a.value}px`,"--radix-scroll-area-corner-height":`${r.value}px`})},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},8,["as-child","as","dir","style"]))}}),dm=e.defineComponent({inheritAttrs:!1,__name:"ScrollAreaViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(o,{expose:n}){const t=o,{nonce:a}=e.toRefs(t),r=cn(a),l=he(),i=e.ref();e.onMounted(()=>{l.onViewportChange(i.value),l.onContentChange(u.value)}),n({viewportElement:i});const{forwardRef:s,currentElement:u}=_();return(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({ref_key:"viewportElement",ref:i,"data-radix-scroll-area-viewport":"",style:{overflowX:e.unref(l).scrollbarXEnabled.value?"scroll":"hidden",overflowY:e.unref(l).scrollbarYEnabled.value?"scroll":"hidden"}},d.$attrs,{tabindex:0}),[e.createVNode(e.unref(P),{ref:e.unref(s),style:e.normalizeStyle({minWidth:e.unref(l).scrollbarXEnabled.value?"fit-content":void 0}),"as-child":t.asChild,as:d.as},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["style","as-child","as"])],16),e.createVNode(e.unref(P),{as:"style",nonce:e.unref(r)},{default:e.withCtx(()=>[e.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-radix-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")]),_:1},8,["nonce"])],64))}});function Zr(o,n){return t=>{if(o[0]===o[1]||n[0]===n[1])return n[0];const a=(n[1]-n[0])/(o[1]-o[0]);return n[0]+a*(t-o[0])}}function yn(o){const n=Jr(o.viewport,o.content),t=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,a=(o.scrollbar.size-t)*n;return Math.max(a,18)}function Jr(o,n){const t=o/n;return Number.isNaN(t)?0:t}function cm(o,n=()=>{}){let t={left:o.scrollLeft,top:o.scrollTop},a=0;return function r(){const l={left:o.scrollLeft,top:o.scrollTop},i=t.left!==l.left,s=t.top!==l.top;(i||s)&&n(),t=l,a=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(a)}function ua(o,n,t="ltr"){const a=yn(n),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,l=n.scrollbar.size-r,i=n.content-n.viewport,s=l-a,u=t==="ltr"?[0,i]:[i*-1,0],d=ct(o,u[0],u[1]);return Zr([0,i],[0,s])(d)}function Ut(o){return o?Number.parseInt(o,10):0}function fm(o,n,t,a="ltr"){const r=yn(t),l=r/2,i=n||l,s=r-i,u=t.scrollbar.paddingStart+i,d=t.scrollbar.size-t.scrollbar.paddingEnd-s,c=t.content-t.viewport,f=a==="ltr"?[0,c]:[c*-1,0];return Zr([u,d],f)(o)}function da(o,n){return o>0&&o{document.addEventListener("wheel",v,{passive:!1})}),e.onUnmounted(()=>{document.removeEventListener("wheel",v)});function C(){var y,x,h,b,w;u.value&&(t.isHorizontal?l.handleSizeChange({content:((y=r.viewport.value)==null?void 0:y.scrollWidth)??0,viewport:((x=r.viewport.value)==null?void 0:x.offsetWidth)??0,scrollbar:{size:u.value.clientWidth??0,paddingStart:Ut(getComputedStyle(u.value).paddingLeft),paddingEnd:Ut(getComputedStyle(u.value).paddingRight)}}):l.handleSizeChange({content:((h=r.viewport.value)==null?void 0:h.scrollHeight)??0,viewport:((b=r.viewport.value)==null?void 0:b.offsetHeight)??0,scrollbar:{size:((w=u.value)==null?void 0:w.clientHeight)??0,paddingStart:Ut(getComputedStyle(u.value).paddingLeft),paddingEnd:Ut(getComputedStyle(u.value).paddingRight)}}))}return xe(u,C),xe(r.content,C),(y,x)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(s),style:{position:"absolute"},"data-scrollbarimpl":"",as:e.unref(i).as.value,"as-child":e.unref(i).asChild.value,onPointerdown:p,onPointermove:m,onPointerup:g},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},8,["as","as-child"]))}}),pm=e.defineComponent({__name:"ScrollAreaScrollbarX",setup(o){const n=he(),t=Cn(),{forwardRef:a,currentElement:r}=_();e.onMounted(()=>{r.value&&n.onScrollbarXChange(r.value)});const l=e.computed(()=>t.sizes.value);return(i,s)=>(e.openBlock(),e.createBlock(Qr,{ref:e.unref(a),"is-horizontal":!0,"data-orientation":"horizontal",style:e.normalizeStyle({bottom:0,left:e.unref(n).dir.value==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:e.unref(n).dir.value==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":l.value?`${e.unref(yn)(l.value)}px`:void 0}),onOnDragScroll:s[0]||(s[0]=u=>e.unref(t).onDragScroll(u.x))},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["style"]))}}),mm=e.defineComponent({__name:"ScrollAreaScrollbarY",setup(o){const n=he(),t=Cn(),{forwardRef:a,currentElement:r}=_();e.onMounted(()=>{r.value&&n.onScrollbarYChange(r.value)});const l=e.computed(()=>t.sizes.value);return(i,s)=>(e.openBlock(),e.createBlock(Qr,{ref:e.unref(a),"is-horizontal":!1,"data-orientation":"vertical",style:e.normalizeStyle({top:0,right:e.unref(n).dir.value==="ltr"?0:void 0,left:e.unref(n).dir.value==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":l.value?`${e.unref(yn)(l.value)}px`:void 0}),onOnDragScroll:s[0]||(s[0]=u=>e.unref(t).onDragScroll(u.y))},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["style"]))}}),[Cn,vm]=K("ScrollAreaScrollbarVisible"),Ko=e.defineComponent({__name:"ScrollAreaScrollbarVisible",setup(o){const n=he(),t=bn(),{forwardRef:a}=_(),r=e.ref({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=e.computed(()=>{const y=Jr(r.value.viewport,r.value.content);return y>0&&y<1}),i=e.ref(),s=e.ref(0);function u(y,x){if(m.value){const h=n.viewport.value.scrollLeft+y.deltaY;n.viewport.value.scrollLeft=h,da(h,x)&&y.preventDefault()}else{const h=n.viewport.value.scrollTop+y.deltaY;n.viewport.value.scrollTop=h,da(h,x)&&y.preventDefault()}}function d(y,x){m.value?s.value=x.x:s.value=x.y}function c(y){s.value=0}function f(y){r.value=y}function p(y,x){return fm(y,s.value,r.value,x)}const m=e.computed(()=>t.isHorizontal.value);function g(y){m.value?n.viewport.value.scrollLeft=p(y,n.dir.value):n.viewport.value.scrollTop=p(y)}function v(){if(m.value){if(n.viewport.value&&i.value){const y=n.viewport.value.scrollLeft,x=ua(y,r.value,n.dir.value);i.value.style.transform=`translate3d(${x}px, 0, 0)`}}else if(n.viewport.value&&i.value){const y=n.viewport.value.scrollTop,x=ua(y,r.value);i.value.style.transform=`translate3d(0, ${x}px, 0)`}}function C(y){i.value=y}return vm({sizes:r,hasThumb:l,handleWheelScroll:u,handleThumbDown:d,handleThumbUp:c,handleSizeChange:f,onThumbPositionChange:v,onThumbChange:C,onDragScroll:g}),(y,x)=>m.value?(e.openBlock(),e.createBlock(pm,e.mergeProps({key:0},y.$attrs,{ref:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(mm,e.mergeProps({key:1},y.$attrs,{ref:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},16))}}),el=e.defineComponent({__name:"ScrollAreaScrollbarAuto",props:{forceMount:{type:Boolean}},setup(o){const n=he(),t=bn(),{forwardRef:a}=_(),r=e.ref(!1),l=Zn(()=>{if(n.viewport.value){const i=n.viewport.value.offsetWidthl()),xe(n.viewport,l),xe(n.content,l),(i,s)=>(e.openBlock(),e.createBlock(e.unref(re),{present:i.forceMount||r.value},{default:e.withCtx(()=>[e.createVNode(Ko,e.mergeProps(i.$attrs,{ref:e.unref(a),"data-state":r.value?"visible":"hidden"}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),hm=e.defineComponent({inheritAttrs:!1,__name:"ScrollAreaScrollbarHover",props:{forceMount:{type:Boolean}},setup(o){const n=he(),{forwardRef:t}=_();let a;const r=e.ref(!1);function l(){window.clearTimeout(a),r.value=!0}function i(){a=window.setTimeout(()=>{r.value=!1},n.scrollHideDelay.value)}return e.onMounted(()=>{const s=n.scrollArea.value;s&&(s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",i))}),e.onUnmounted(()=>{const s=n.scrollArea.value;s&&(window.clearTimeout(a),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",i))}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||r.value},{default:e.withCtx(()=>[e.createVNode(el,e.mergeProps(s.$attrs,{ref:e.unref(t),"data-state":r.value?"visible":"hidden"}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["data-state"])]),_:3},8,["present"]))}}),gm=e.defineComponent({__name:"ScrollAreaScrollbarScroll",props:{forceMount:{type:Boolean}},setup(o){const n=he(),t=bn(),{forwardRef:a}=_(),{state:r,dispatch:l}=to("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});e.watchEffect(s=>{if(r.value==="idle"){const u=window.setTimeout(()=>l("HIDE"),n.scrollHideDelay.value);s(()=>{window.clearTimeout(u)})}});const i=Zn(()=>l("SCROLL_END"),100);return e.watchEffect(s=>{const u=n.viewport.value,d=t.isHorizontal.value?"scrollLeft":"scrollTop";if(u){let c=u[d];const f=()=>{const p=u[d];c!==p&&(l("SCROLL"),i()),c=p};u.addEventListener("scroll",f),s(()=>{u.removeEventListener("scroll",f)})}}),(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(r)!=="hidden"},{default:e.withCtx(()=>[e.createVNode(Ko,e.mergeProps(s.$attrs,{ref:e.unref(a)}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),[bn,ym]=K("ScrollAreaScrollbar"),Cm=e.defineComponent({inheritAttrs:!1,__name:"ScrollAreaScrollbar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,{forwardRef:t}=_(),a=he(),r=e.computed(()=>n.orientation==="horizontal");e.watch(r,()=>{r.value?a.onScrollbarXEnabledChange(!0):a.onScrollbarYEnabledChange(!0)},{immediate:!0}),e.onUnmounted(()=>{a.onScrollbarXEnabledChange(!1),a.onScrollbarYEnabledChange(!1)});const{orientation:l,forceMount:i,asChild:s,as:u}=e.toRefs(n);return ym({orientation:l,forceMount:i,isHorizontal:r,as:u,asChild:s}),(d,c)=>e.unref(a).type.value==="hover"?(e.openBlock(),e.createBlock(hm,e.mergeProps({key:0},d.$attrs,{ref:e.unref(t),"force-mount":e.unref(i)}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16,["force-mount"])):e.unref(a).type.value==="scroll"?(e.openBlock(),e.createBlock(gm,e.mergeProps({key:1},d.$attrs,{ref:e.unref(t),"force-mount":e.unref(i)}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16,["force-mount"])):e.unref(a).type.value==="auto"?(e.openBlock(),e.createBlock(el,e.mergeProps({key:2},d.$attrs,{ref:e.unref(t),"force-mount":e.unref(i)}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16,["force-mount"])):e.unref(a).type.value==="always"?(e.openBlock(),e.createBlock(Ko,e.mergeProps({key:3},d.$attrs,{ref:e.unref(t),"data-state":"visible"}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}}),bm=e.defineComponent({__name:"ScrollAreaThumb",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=he(),a=Cn();function r(p){const g=p.target.getBoundingClientRect(),v=p.clientX-g.left,C=p.clientY-g.top;a.handleThumbDown(p,{x:v,y:C})}function l(p){a.handleThumbUp(p)}const{forwardRef:i,currentElement:s}=_(),u=e.ref(),d=e.computed(()=>t.viewport.value);function c(){if(!u.value){const p=cm(d.value,a.onThumbPositionChange);u.value=p,a.onThumbPositionChange()}}const f=e.computed(()=>a.sizes.value);return Bi(f,()=>{a.onThumbChange(s.value),d.value&&(a.onThumbPositionChange(),d.value.addEventListener("scroll",c))}),e.onUnmounted(()=>{var p;d.value.removeEventListener("scroll",c),(p=t.viewport.value)==null||p.removeEventListener("scroll",c)}),(p,m)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(i),"data-state":e.unref(a).hasThumb?"visible":"hidden",style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},"as-child":n.asChild,as:p.as,onPointerdown:r,onPointerup:l},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},8,["data-state","as-child","as"]))}}),wm=e.defineComponent({__name:"ScrollAreaCornerImpl",setup(o){const n=he(),t=e.ref(0),a=e.ref(0),r=e.computed(()=>!!t.value&&!!a.value);function l(){var u;const s=((u=n.scrollbarX.value)==null?void 0:u.offsetHeight)||0;n.onCornerHeightChange(s),a.value=s}function i(){var u;const s=((u=n.scrollbarY.value)==null?void 0:u.offsetWidth)||0;n.onCornerWidthChange(s),t.value=s}return xe(n.scrollbarX.value,l),xe(n.scrollbarY.value,i),e.watch(()=>n.scrollbarX.value,l),e.watch(()=>n.scrollbarY.value,i),(s,u)=>{var d;return r.value?(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({key:0,style:{width:`${t.value}px`,height:`${a.value}px`,position:"absolute",right:e.unref(n).dir.value==="ltr"?0:void 0,left:e.unref(n).dir.value==="rtl"?0:void 0,bottom:0}},(d=s.$parent)==null?void 0:d.$props),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["style"])):e.createCommentVNode("",!0)}}}),xm=e.defineComponent({__name:"ScrollAreaCorner",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_(),a=he(),r=e.computed(()=>!!a.scrollbarX.value&&!!a.scrollbarY.value),l=e.computed(()=>a.type.value!=="scroll"&&r.value);return(i,s)=>l.value?(e.openBlock(),e.createBlock(wm,e.mergeProps({key:0},n,{ref:e.unref(t)}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}}),Bm=["default-value"],km=e.defineComponent({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(o){const n=o,{value:t}=e.toRefs(n),a=e.ref();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(Qe),{"as-child":""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("select",e.mergeProps({ref_key:"selectElement",ref:a},n,{"onUpdate:modelValue":l[0]||(l[0]=i=>e.isRef(t)?t.value=i:null),"default-value":e.unref(t)}),[e.renderSlot(r.$slots,"default")],16,Bm),[[e.vModelSelect,e.unref(t)]])]),_:3}))}}),_m={key:0,value:""},[Ke,tl]=K("SelectRoot"),[Sm,Pm]=K("SelectRoot"),Em=e.defineComponent({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(o,{emit:n}){const t=o,a=n,r=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),l=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),i=e.ref(),s=e.ref(),u=e.ref({x:0,y:0}),d=e.ref(!1),{required:c,disabled:f,dir:p}=e.toRefs(t),m=ee(p);tl({triggerElement:i,onTriggerChange:y=>{i.value=y},valueElement:s,onValueElementChange:y=>{s.value=y},valueElementHasChildren:d,onValueElementHasChildrenChange:y=>{d.value=y},contentId:"",modelValue:r,onValueChange:y=>{r.value=y},open:l,required:c,onOpenChange:y=>{l.value=y},dir:m,triggerPointerDownPosRef:u,disabled:f});const g=Be(i),v=e.ref(new Set),C=e.computed(()=>Array.from(v.value).map(y=>{var x;return(x=y.props)==null?void 0:x.value}).join(";"));return Pm({onNativeOptionAdd:y=>{v.value.add(y)},onNativeOptionRemove:y=>{v.value.delete(y)}}),(y,x)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{modelValue:e.unref(r),open:e.unref(l)}),e.unref(g)?(e.openBlock(),e.createBlock(km,e.mergeProps({key:C.value},y.$attrs,{"aria-hidden":"true",tabindex:"-1",required:e.unref(c),name:y.name,autocomplete:y.autocomplete,disabled:e.unref(f),value:e.unref(r),onChange:x[0]||(x[0]=h=>r.value=h.target.value)}),{default:e.withCtx(()=>[e.unref(r)===void 0?(e.openBlock(),e.createElementBlock("option",_m)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Array.from(v.value),h=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h),e.mergeProps({ref_for:!0},h.props,{key:h.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):e.createCommentVNode("",!0)]),_:3}))}}),Dm=[" ","Enter","ArrowUp","ArrowDown"],Rm=[" ","Enter"],Pe=10;function nl(o){return o===""||ut(o)}const Tm=e.defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Ke(),a=e.computed(()=>{var m;return((m=t.disabled)==null?void 0:m.value)||n.disabled}),{forwardRef:r,currentElement:l}=_();t.contentId||(t.contentId=J(void 0,"radix-vue-select-content")),e.onMounted(()=>{t.triggerElement=l});const{injectCollection:i}=ce(),s=i(),{search:u,handleTypeaheadSearch:d,resetTypeahead:c}=At(s);function f(){a.value||(t.onOpenChange(!0),c())}function p(m){f(),t.triggerPointerDownPosRef.value={x:Math.round(m.pageX),y:Math.round(m.pageY)}}return(m,g)=>(e.openBlock(),e.createBlock(e.unref(Je),{"as-child":""},{default:e.withCtx(()=>{var v,C,y,x;return[e.createVNode(e.unref(P),{ref:e.unref(r),role:"combobox",type:m.as==="button"?"button":void 0,"aria-controls":e.unref(t).contentId,"aria-expanded":e.unref(t).open.value||!1,"aria-required":(v=e.unref(t).required)==null?void 0:v.value,"aria-autocomplete":"none",disabled:a.value,dir:(C=e.unref(t))==null?void 0:C.dir.value,"data-state":(y=e.unref(t))!=null&&y.open.value?"open":"closed","data-disabled":a.value?"":void 0,"data-placeholder":e.unref(nl)((x=e.unref(t).modelValue)==null?void 0:x.value)?"":void 0,"as-child":m.asChild,as:m.as,onClick:g[0]||(g[0]=h=>{var b;(b=h==null?void 0:h.currentTarget)==null||b.focus()}),onPointerdown:g[1]||(g[1]=h=>{if(h.pointerType==="touch")return h.preventDefault();const b=h.target;b.hasPointerCapture(h.pointerId)&&b.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(p(h),h.preventDefault())}),onPointerup:g[2]||(g[2]=e.withModifiers(h=>{h.pointerType==="touch"&&p(h)},["prevent"])),onKeydown:g[3]||(g[3]=h=>{const b=e.unref(u)!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&b&&h.key===" "||(e.unref(d)(h.key),e.unref(Dm).includes(h.key)&&(f(),h.preventDefault()))})},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),$m=e.defineComponent({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[Ho,Im]=K("SelectItemAlignedPosition"),Vm=e.defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(o,{emit:n}){const t=o,a=n,{injectCollection:r}=ce(),l=Ke(),i=He(),s=r(),u=e.ref(!1),d=e.ref(!0),c=e.ref(),{forwardRef:f,currentElement:p}=_(),{viewport:m,selectedItem:g,selectedItemText:v,focusSelectedItem:C}=i;function y(){if(l.triggerElement.value&&l.valueElement.value&&c.value&&p.value&&(m!=null&&m.value)&&(g!=null&&g.value)&&(v!=null&&v.value)){const b=l.triggerElement.value.getBoundingClientRect(),w=p.value.getBoundingClientRect(),B=l.valueElement.value.getBoundingClientRect(),k=v.value.getBoundingClientRect();if(l.dir.value!=="rtl"){const ae=k.left-w.left,Q=B.left-ae,Y=b.left-Q,ue=b.width+Y,de=Math.max(ue,w.width),me=window.innerWidth-Pe,We=ct(Q,Pe,me-de);c.value.style.minWidth=`${ue}px`,c.value.style.left=`${We}px`}else{const ae=w.right-k.right,Q=window.innerWidth-B.right-ae,Y=window.innerWidth-b.right-Q,ue=b.width+Y,de=Math.max(ue,w.width),me=window.innerWidth-Pe,We=ct(Q,Pe,me-de);c.value.style.minWidth=`${ue}px`,c.value.style.right=`${We}px`}const E=s.value,D=window.innerHeight-Pe*2,S=m.value.scrollHeight,R=window.getComputedStyle(p.value),M=Number.parseInt(R.borderTopWidth,10),A=Number.parseInt(R.paddingTop,10),H=Number.parseInt(R.borderBottomWidth,10),O=Number.parseInt(R.paddingBottom,10),L=M+A+S+O+H,V=Math.min(g.value.offsetHeight*5,L),I=window.getComputedStyle(m.value),$=Number.parseInt(I.paddingTop,10),T=Number.parseInt(I.paddingBottom,10),z=b.top+b.height/2-Pe,F=D-z,q=g.value.offsetHeight/2,N=g.value.offsetTop+q,G=M+A+N,X=L-G;if(G<=z){const ae=g.value===E[E.length-1];c.value.style.bottom="0px";const Q=p.value.clientHeight-m.value.offsetTop-m.value.offsetHeight,Y=Math.max(F,q+(ae?T:0)+Q+H),ue=G+Y;c.value.style.height=`${ue}px`}else{const ae=g.value===E[0];c.value.style.top="0px";const Y=Math.max(z,M+m.value.offsetTop+(ae?$:0)+q)+X;c.value.style.height=`${Y}px`,m.value.scrollTop=G-z+m.value.offsetTop}c.value.style.margin=`${Pe}px 0`,c.value.style.minHeight=`${V}px`,c.value.style.maxHeight=`${D}px`,a("placed"),requestAnimationFrame(()=>u.value=!0)}}const x=e.ref("");e.onMounted(async()=>{await e.nextTick(),y(),p.value&&(x.value=window.getComputedStyle(p.value).zIndex)});function h(b){b&&d.value===!0&&(y(),C==null||C(),d.value=!1)}return Im({contentWrapper:c,shouldExpandOnScrollRef:u,onScrollButtonChange:h}),(b,w)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contentWrapperElement",ref:c,style:e.normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:x.value})},[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(f),style:{boxSizing:"border-box",maxHeight:"100%"}},{...b.$attrs,...t}),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},16)],4))}}),Am=e.defineComponent({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:Pe},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const t=Fe(o);return(a,r)=>(e.openBlock(),e.createBlock(e.unref(qe),e.mergeProps(e.unref(t),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16))}}),rt={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[He,Mm]=K("SelectContent"),Om=e.defineComponent({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(o,{emit:n}){const t=o,a=n,r=Ke();eo(),vt(t.bodyLock);const{createCollection:l}=ce(),i=e.ref();Vt(i);const s=l(i),{search:u,handleTypeaheadSearch:d}=At(s),c=e.ref(),f=e.ref(),p=e.ref(),m=e.ref(!1),g=e.ref(!1);function v(){f.value&&i.value&&Kn([f.value,i.value])}e.watch(m,()=>{v()});const{onOpenChange:C,triggerPointerDownPosRef:y}=r;e.watchEffect(w=>{if(!i.value)return;let B={x:0,y:0};const k=D=>{var S,R;B={x:Math.abs(Math.round(D.pageX)-(((S=y.value)==null?void 0:S.x)??0)),y:Math.abs(Math.round(D.pageY)-(((R=y.value)==null?void 0:R.y)??0))}},E=D=>{var S;D.pointerType!=="touch"&&(B.x<=10&&B.y<=10?D.preventDefault():(S=i.value)!=null&&S.contains(D.target)||C(!1),document.removeEventListener("pointermove",k),y.value=null)};y.value!==null&&(document.addEventListener("pointermove",k),document.addEventListener("pointerup",E,{capture:!0,once:!0})),w(()=>{document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",E,{capture:!0})})});function x(w){const B=w.ctrlKey||w.altKey||w.metaKey;if(w.key==="Tab"&&w.preventDefault(),!B&&w.key.length===1&&d(w.key),["ArrowUp","ArrowDown","Home","End"].includes(w.key)){let k=s.value;if(["ArrowUp","End"].includes(w.key)&&(k=k.slice().reverse()),["ArrowUp","ArrowDown"].includes(w.key)){const E=w.target,D=k.indexOf(E);k=k.slice(D+1)}setTimeout(()=>Kn(k)),w.preventDefault()}}const h=e.computed(()=>t.position==="popper"?t:{}),b=Fe(h.value);return Mm({content:i,viewport:c,onViewportChange:w=>{c.value=w},itemRefCallback:(w,B,k)=>{var S,R;const E=!g.value&&!k;(((S=r.modelValue)==null?void 0:S.value)!==void 0&&((R=r.modelValue)==null?void 0:R.value)===B||E)&&(f.value=w,E&&(g.value=!0))},selectedItem:f,selectedItemText:p,onItemLeave:()=>{var w;(w=i.value)==null||w.focus()},itemTextRefCallback:(w,B,k)=>{var S,R;const E=!g.value&&!k;(((S=r.modelValue)==null?void 0:S.value)!==void 0&&((R=r.modelValue)==null?void 0:R.value)===B||E)&&(p.value=w)},focusSelectedItem:v,position:t.position,isPositioned:m,searchRef:u}),(w,B)=>(e.openBlock(),e.createBlock(e.unref(dn),{"as-child":"",onMountAutoFocus:B[6]||(B[6]=e.withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:B[7]||(B[7]=k=>{var E;a("closeAutoFocus",k),!k.defaultPrevented&&((E=e.unref(r).triggerElement.value)==null||E.focus({preventScroll:!0}),k.preventDefault())})},{default:e.withCtx(()=>[e.createVNode(e.unref(ze),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:B[2]||(B[2]=e.withModifiers(()=>{},["prevent"])),onDismiss:B[3]||(B[3]=k=>e.unref(r).onOpenChange(!1)),onEscapeKeyDown:B[4]||(B[4]=k=>a("escapeKeyDown",k)),onPointerDownOutside:B[5]||(B[5]=k=>a("pointerDownOutside",k))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.position==="popper"?Am:Vm),e.mergeProps({...w.$attrs,...e.unref(b)},{id:e.unref(r).contentId,ref:k=>{i.value=e.unref(le)(k)},role:"listbox","data-state":e.unref(r).open.value?"open":"closed",dir:e.unref(r).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:B[0]||(B[0]=e.withModifiers(()=>{},["prevent"])),onPlaced:B[1]||(B[1]=k=>m.value=!0),onKeydown:x}),{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),Nm=e.defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(o){return tl(o.context),(t,a)=>e.renderSlot(t.$slots,"default")}}),Fm={key:1},zm=e.defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(o,{emit:n}){const t=o,r=ne(t,n),l=Ke(),i=e.ref();e.onMounted(()=>{i.value=new DocumentFragment});const s=e.ref(),u=e.computed(()=>t.forceMount||l.open.value);return(d,c)=>{var f;return u.value?(e.openBlock(),e.createBlock(e.unref(re),{key:0,ref_key:"presenceRef",ref:s,present:!0},{default:e.withCtx(()=>[e.createVNode(Om,e.normalizeProps(e.guardReactiveProps({...e.unref(r),...d.$attrs})),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16)]),_:3},512)):!((f=s.value)!=null&&f.present)&&i.value?(e.openBlock(),e.createElementBlock("div",Fm,[(e.openBlock(),e.createBlock(e.Teleport,{to:i.value},[e.createVNode(Nm,{context:e.unref(l)},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):e.createCommentVNode("",!0)}}}),Lm=e.defineComponent({__name:"SelectArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o,t=Ke(),a=He(rt);return(r,l)=>e.unref(t).open.value&&e.unref(a).position==="popper"?(e.openBlock(),e.createBlock(e.unref(gt),e.normalizeProps(e.mergeProps({key:0},n)),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}}),Km=e.defineComponent({__name:"SelectSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({"aria-hidden":"true"},n),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),[ol,Hm]=K("SelectItem"),Wm=e.defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,{disabled:t}=e.toRefs(n),a=Ke(),r=He(rt),{forwardRef:l,currentElement:i}=_(),s=e.computed(()=>{var v;return((v=a.modelValue)==null?void 0:v.value)===n.value}),u=e.ref(!1),d=e.ref(n.textValue??""),c=J(void 0,"radix-vue-select-item-text");async function f(v){await e.nextTick(),!(v!=null&&v.defaultPrevented)&&(t.value||(a.onValueChange(n.value),a.onOpenChange(!1)))}async function p(v){var C;await e.nextTick(),!v.defaultPrevented&&(t.value?(C=r.onItemLeave)==null||C.call(r):v.currentTarget.focus({preventScroll:!0}))}async function m(v){var C;await e.nextTick(),!v.defaultPrevented&&v.currentTarget===document.activeElement&&((C=r.onItemLeave)==null||C.call(r))}async function g(v){var y;await e.nextTick(),!(v.defaultPrevented||((y=r.searchRef)==null?void 0:y.value)!==""&&v.key===" ")&&(Rm.includes(v.key)&&f(),v.key===" "&&v.preventDefault())}if(n.value==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return e.onMounted(()=>{i.value&&r.itemRefCallback(i.value,n.value,n.disabled)}),Hm({value:n.value,disabled:t,textId:c,isSelected:s,onItemTextChange:v=>{d.value=((d.value||(v==null?void 0:v.textContent))??"").trim()}}),(v,C)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(l),role:"option","data-radix-vue-collection-item":"","aria-labelledby":e.unref(c),"data-highlighted":u.value?"":void 0,"aria-selected":s.value,"data-state":s.value?"checked":"unchecked","aria-disabled":e.unref(t)||void 0,"data-disabled":e.unref(t)?"":void 0,tabindex:e.unref(t)?void 0:-1,as:v.as,"as-child":v.asChild,onFocus:C[0]||(C[0]=y=>u.value=!0),onBlur:C[1]||(C[1]=y=>u.value=!1),onPointerup:f,onPointerdown:C[2]||(C[2]=y=>{y.currentTarget.focus({preventScroll:!0})}),onTouchend:C[3]||(C[3]=e.withModifiers(()=>{},["prevent","stop"])),onPointermove:p,onPointerleave:m,onKeydown:g},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),jm=e.defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,t=ol();return(a,r)=>e.unref(t).isSelected.value?(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({key:0,"aria-hidden":"true"},n),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):e.createCommentVNode("",!0)}}),[Um,Gm]=K("SelectGroup"),qm=e.defineComponent({__name:"SelectGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=J(void 0,"radix-vue-select-group");return Gm({id:t}),(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({role:"group"},n,{"aria-labelledby":e.unref(t)}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),Ym=e.defineComponent({__name:"SelectLabel",props:{for:{},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o,t=Um({id:""});return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).id}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),Xm=e.defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,t=Ke(),a=He(rt),r=Sm(),l=ol(),{forwardRef:i,currentElement:s}=_(),u=e.computed(()=>{var d;return e.h("option",{key:l.value,value:l.value,disabled:l.disabled.value,textContent:(d=s.value)==null?void 0:d.textContent})});return e.onMounted(()=>{s.value&&(l.onItemTextChange(s.value),a.itemTextRefCallback(s.value,l.value,l.disabled.value),r.onNativeOptionAdd(u.value))}),e.onBeforeUnmount(()=>{r.onNativeOptionRemove(u.value)}),(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps({id:e.unref(l).textId,ref:e.unref(i)},{...n,...d.$attrs}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},16,["id"]),e.unref(l).isSelected.value&&e.unref(t).valueElement.value&&!e.unref(t).valueElementHasChildren.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:e.unref(t).valueElement.value},[e.renderSlot(d.$slots,"default")],8,["to"])):e.createCommentVNode("",!0)],64))}}),Zm=e.defineComponent({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,{nonce:t}=e.toRefs(n),a=cn(t),r=He(rt),l=r.position==="item-aligned"?Ho():void 0,{forwardRef:i,currentElement:s}=_();e.onMounted(()=>{r==null||r.onViewportChange(s.value)});const u=e.ref(0);function d(c){const f=c.currentTarget,{shouldExpandOnScrollRef:p,contentWrapper:m}=l??{};if(p!=null&&p.value&&(m!=null&&m.value)){const g=Math.abs(u.value-f.scrollTop);if(g>0){const v=window.innerHeight-Pe*2,C=Number.parseFloat(m.value.style.minHeight),y=Number.parseFloat(m.value.style.height),x=Math.max(C,y);if(x0?w:0,m.value.style.justifyContent="flex-end")}}}u.value=f.scrollTop}return(c,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(i),"data-radix-select-viewport":"",role:"presentation"},{...c.$attrs,...n},{style:{position:"relative",flex:1,overflow:"auto"},onScroll:d}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16),e.createVNode(e.unref(P),{as:"style",nonce:e.unref(a)},{default:e.withCtx(()=>[e.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),al=e.defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(o,{emit:n}){const t=n,{injectCollection:a}=ce(),r=a(),l=He(rt),i=e.ref(null);function s(){i.value!==null&&(window.clearInterval(i.value),i.value=null)}e.watchEffect(()=>{const c=r.value.find(f=>f===document.activeElement);c==null||c.scrollIntoView({block:"nearest"})});function u(){i.value===null&&(i.value=window.setInterval(()=>{t("autoScroll")},50))}function d(){var c;(c=l.onItemLeave)==null||c.call(l),i.value===null&&(i.value=window.setInterval(()=>{t("autoScroll")},50))}return e.onBeforeUnmount(()=>s()),(c,f)=>{var p;return e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(p=c.$parent)==null?void 0:p.$props,{onPointerdown:u,onPointermove:d,onPointerleave:f[0]||(f[0]=()=>{s()})}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16)}}}),Jm=e.defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(o){const n=He(rt),t=n.position==="item-aligned"?Ho():void 0,{forwardRef:a,currentElement:r}=_(),l=e.ref(!1);return e.watchEffect(i=>{var s,u;if((s=n.viewport)!=null&&s.value&&((u=n.isPositioned)!=null&&u.value)){let d=function(){l.value=c.scrollTop>0};const c=n.viewport.value;d(),c.addEventListener("scroll",d),i(()=>c.removeEventListener("scroll",d))}}),e.watch(r,()=>{r.value&&(t==null||t.onScrollButtonChange(r.value))}),(i,s)=>l.value?(e.openBlock(),e.createBlock(al,{key:0,ref:e.unref(a),onAutoScroll:s[0]||(s[0]=()=>{const{viewport:u,selectedItem:d}=e.unref(n);u!=null&&u.value&&(d!=null&&d.value)&&(u.value.scrollTop=u.value.scrollTop-d.value.offsetHeight)})},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},512)):e.createCommentVNode("",!0)}}),Qm=e.defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(o){const n=He(rt),t=n.position==="item-aligned"?Ho():void 0,{forwardRef:a,currentElement:r}=_(),l=e.ref(!1);return e.watchEffect(i=>{var s,u;if((s=n.viewport)!=null&&s.value&&((u=n.isPositioned)!=null&&u.value)){let d=function(){const f=c.scrollHeight-c.clientHeight;l.value=Math.ceil(c.scrollTop)c.removeEventListener("scroll",d))}}),e.watch(r,()=>{r.value&&(t==null||t.onScrollButtonChange(r.value))}),(i,s)=>l.value?(e.openBlock(),e.createBlock(al,{key:0,ref:e.unref(a),onAutoScroll:s[0]||(s[0]=()=>{const{viewport:u,selectedItem:d}=e.unref(n);u!=null&&u.value&&(d!=null&&d.value)&&(u.value.scrollTop=u.value.scrollTop+d.value.offsetHeight)})},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},512)):e.createCommentVNode("",!0)}}),ev=e.defineComponent({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(o){const{forwardRef:n,currentElement:t}=_(),a=Ke(),r=e.useSlots();return e.onBeforeMount(()=>{var i;const l=!!an((i=r==null?void 0:r.default)==null?void 0:i.call(r)).length;a.onValueElementHasChildrenChange(l)}),e.onMounted(()=>{a.valueElement=t}),(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(n),as:l.as,"as-child":l.asChild,style:{pointerEvents:"none"}},{default:e.withCtx(()=>{var s;return[e.unref(nl)((s=e.unref(a).modelValue)==null?void 0:s.value)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.placeholder),1)],64)):e.renderSlot(l.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),tv=e.defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){return(n,t)=>(e.openBlock(),e.createBlock(e.unref(P),{"aria-hidden":"true",as:n.as,"as-child":n.asChild},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode("▼")])]),_:3},8,["as","as-child"]))}}),rl=e.defineComponent({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=["horizontal","vertical"];function a(s){return t.includes(s)}const r=e.computed(()=>a(n.orientation)?n.orientation:"horizontal"),l=e.computed(()=>r.value==="vertical"?n.orientation:void 0),i=e.computed(()=>n.decorative?{role:"none"}:{"aria-orientation":l.value,role:"separator"});return(s,u)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({as:s.as,"as-child":s.asChild,"data-orientation":r.value},i.value),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),ll=e.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(rl,e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}});function nv(o=[],n,t){const a=[...o];return a[t]=n,a.sort((r,l)=>r-l)}function il(o,n,t){const l=100/(t-n)*(o-n);return ct(l,0,100)}function ov(o,n){return n>2?`Value ${o+1} of ${n}`:n===2?["Minimum","Maximum"][o]:void 0}function av(o,n){if(o.length===1)return 0;const t=o.map(r=>Math.abs(r-n)),a=Math.min(...t);return t.indexOf(a)}function rv(o,n,t){const a=o/2,l=Wo([0,50],[0,a]);return(a-l(n)*t)*t}function lv(o){return o.slice(0,-1).map((n,t)=>o[t+1]-n)}function iv(o,n){if(n>0){const t=lv(o);return Math.min(...t)>=n}return!0}function Wo(o,n){return t=>{if(o[0]===o[1]||n[0]===n[1])return n[0];const a=(n[1]-n[0])/(o[1]-o[0]);return n[0]+a*(t-o[0])}}function sv(o){return(String(o).split(".")[1]||"").length}function uv(o,n){const t=10**n;return Math.round(o*t)/t}const sl=["PageUp","PageDown"],ul=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dl={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},[cl,fl]=K(["SliderVertical","SliderHorizontal"]),pl=e.defineComponent({__name:"SliderImpl",props:{asChild:{type:Boolean},as:{default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(o,{emit:n}){const t=o,a=n,r=wn();return(l,i)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({"data-slider-impl":""},t,{onKeydown:i[0]||(i[0]=s=>{s.key==="Home"?(a("homeKeyDown",s),s.preventDefault()):s.key==="End"?(a("endKeyDown",s),s.preventDefault()):e.unref(sl).concat(e.unref(ul)).includes(s.key)&&(a("stepKeyDown",s),s.preventDefault())}),onPointerdown:i[1]||(i[1]=s=>{const u=s.target;u.setPointerCapture(s.pointerId),s.preventDefault(),e.unref(r).thumbElements.value.includes(u)?u.focus():a("slideStart",s)}),onPointermove:i[2]||(i[2]=s=>{s.target.hasPointerCapture(s.pointerId)&&a("slideMove",s)}),onPointerup:i[3]||(i[3]=s=>{const u=s.target;u.hasPointerCapture(s.pointerId)&&(u.releasePointerCapture(s.pointerId),a("slideEnd",s))})}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16))}}),dv=e.defineComponent({__name:"SliderHorizontal",props:{dir:{},min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(o,{emit:n}){const t=o,a=n,{max:r,min:l,dir:i,inverted:s}=e.toRefs(t),{forwardRef:u,currentElement:d}=_(),c=e.ref(),f=e.computed(()=>(i==null?void 0:i.value)==="ltr"&&!s.value||(i==null?void 0:i.value)!=="ltr"&&s.value);function p(m){const g=c.value||d.value.getBoundingClientRect(),v=[0,g.width],C=f.value?[l.value,r.value]:[r.value,l.value],y=Wo(v,C);return c.value=g,y(m-g.left)}return fl({startEdge:f.value?"left":"right",endEdge:f.value?"right":"left",direction:f.value?1:-1,size:"width"}),(m,g)=>(e.openBlock(),e.createBlock(pl,{ref:e.unref(u),dir:e.unref(i),"data-orientation":"horizontal",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:g[0]||(g[0]=v=>{const C=p(v.clientX);a("slideStart",C)}),onSlideMove:g[1]||(g[1]=v=>{const C=p(v.clientX);a("slideMove",C)}),onSlideEnd:g[2]||(g[2]=()=>{c.value=void 0,a("slideEnd")}),onStepKeyDown:g[3]||(g[3]=v=>{const C=f.value?"from-left":"from-right",y=e.unref(dl)[C].includes(v.key);a("stepKeyDown",v,y?-1:1)}),onEndKeyDown:g[4]||(g[4]=v=>a("endKeyDown",v)),onHomeKeyDown:g[5]||(g[5]=v=>a("homeKeyDown",v))},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},8,["dir"]))}}),cv=e.defineComponent({__name:"SliderVertical",props:{min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(o,{emit:n}){const t=o,a=n,{max:r,min:l,inverted:i}=e.toRefs(t),{forwardRef:s,currentElement:u}=_(),d=e.ref(),c=e.computed(()=>!i.value);function f(p){const m=d.value||u.value.getBoundingClientRect(),g=[0,m.height],v=c.value?[r.value,l.value]:[l.value,r.value],C=Wo(g,v);return d.value=m,C(p-m.top)}return fl({startEdge:c.value?"bottom":"top",endEdge:c.value?"top":"bottom",size:"height",direction:c.value?1:-1}),(p,m)=>(e.openBlock(),e.createBlock(pl,{ref:e.unref(s),"data-orientation":"vertical",style:{"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m[0]||(m[0]=g=>{const v=f(g.clientY);a("slideStart",v)}),onSlideMove:m[1]||(m[1]=g=>{const v=f(g.clientY);a("slideMove",v)}),onSlideEnd:m[2]||(m[2]=()=>{d.value=void 0,a("slideEnd")}),onStepKeyDown:m[3]||(m[3]=g=>{const v=c.value?"from-bottom":"from-top",C=e.unref(dl)[v].includes(g.key);a("stepKeyDown",g,C?-1:1)}),onEndKeyDown:m[4]||(m[4]=g=>a("endKeyDown",g)),onHomeKeyDown:m[5]||(m[5]=g=>a("homeKeyDown",g))},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},512))}}),fv=["value","name","disabled","step"],[wn,pv]=K("SliderRoot"),mv=e.defineComponent({inheritAttrs:!1,__name:"SliderRoot",props:{name:{},defaultValue:{default:()=>[0]},modelValue:{},disabled:{type:Boolean,default:!1},orientation:{default:"horizontal"},dir:{},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","valueCommit"],setup(o,{emit:n}){const t=o,a=n,{min:r,max:l,step:i,minStepsBetweenThumbs:s,orientation:u,disabled:d,dir:c}=e.toRefs(t),f=ee(c),{forwardRef:p,currentElement:m}=_(),g=Be(m);Mt();const v=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),C=e.ref(0),y=e.ref(v.value);function x(k){const E=av(v.value,k);w(k,E)}function h(k){w(k,C.value)}function b(){const k=y.value[C.value];v.value[C.value]!==k&&a("valueCommit",e.toRaw(v.value))}function w(k,E,{commit:D}={commit:!1}){var H;const S=sv(i.value),R=uv(Math.round((k-r.value)/i.value)*i.value+r.value,S),M=ct(R,r.value,l.value),A=nv(v.value,M,E);if(iv(A,s.value*i.value)){C.value=A.indexOf(M);const O=String(A)!==String(v.value);O&&D&&a("valueCommit",A),O&&((H=B.value[C.value])==null||H.focus(),v.value=A)}}const B=e.ref([]);return pv({modelValue:v,valueIndexToChangeRef:C,thumbElements:B,orientation:u,min:r,max:l,disabled:d}),(k,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(Ot),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(u)==="horizontal"?dv:cv),e.mergeProps(k.$attrs,{ref:e.unref(p),"as-child":k.asChild,as:k.as,min:e.unref(r),max:e.unref(l),dir:e.unref(f),inverted:k.inverted,"aria-disabled":e.unref(d),"data-disabled":e.unref(d)?"":void 0,onPointerdown:E[0]||(E[0]=()=>{e.unref(d)||(y.value=e.unref(v))}),onSlideStart:E[1]||(E[1]=D=>!e.unref(d)&&x(D)),onSlideMove:E[2]||(E[2]=D=>!e.unref(d)&&h(D)),onSlideEnd:E[3]||(E[3]=D=>!e.unref(d)&&b()),onHomeKeyDown:E[4]||(E[4]=D=>!e.unref(d)&&w(e.unref(r),0,{commit:!0})),onEndKeyDown:E[5]||(E[5]=D=>!e.unref(d)&&w(e.unref(l),e.unref(v).length-1,{commit:!0})),onStepKeyDown:E[6]||(E[6]=(D,S)=>{if(!e.unref(d)){const A=e.unref(sl).includes(D.key)||D.shiftKey&&e.unref(ul).includes(D.key)?10:1,H=C.value,O=e.unref(v)[H],L=e.unref(i)*A*S;w(O+L,H,{commit:!0})}})}),{default:e.withCtx(()=>[e.renderSlot(k.$slots,"default",{modelValue:e.unref(v)})]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}),e.unref(g)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),(D,S)=>(e.openBlock(),e.createElementBlock("input",{key:S,value:D,type:"number",style:{display:"none"},name:k.name?k.name+(e.unref(v).length>1?"[]":""):void 0,disabled:e.unref(d),step:e.unref(i)},null,8,fv))),128)):e.createCommentVNode("",!0)],64))}}),vv=e.defineComponent({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=wn(),a=cl(),{forwardRef:r,currentElement:l}=_(),i=e.computed(()=>{var m,g;return(g=(m=t.modelValue)==null?void 0:m.value)==null?void 0:g[n.index]}),s=e.computed(()=>i.value===void 0?0:il(i.value,t.min.value??0,t.max.value??100)),u=e.computed(()=>{var m,g;return ov(n.index,((g=(m=t.modelValue)==null?void 0:m.value)==null?void 0:g.length)??0)}),d=Aa(l),c=e.computed(()=>d[a.size].value),f=e.computed(()=>c.value?rv(c.value,s.value,a.direction):0),p=on();return e.onMounted(()=>{t.thumbElements.value.push(l.value)}),e.onUnmounted(()=>{const m=t.thumbElements.value.findIndex(g=>g===l.value)??-1;t.thumbElements.value.splice(m,1)}),(m,g)=>(e.openBlock(),e.createBlock(e.unref(yt),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps(m.$attrs,{ref:e.unref(r),role:"slider","data-radix-vue-collection-item":"",tabindex:e.unref(t).disabled.value?void 0:0,"aria-label":m.$attrs["aria-label"]||u.value,"data-disabled":e.unref(t).disabled.value?"":void 0,"data-orientation":e.unref(t).orientation.value,"aria-valuenow":i.value,"aria-valuemin":e.unref(t).min.value,"aria-valuemax":e.unref(t).max.value,"aria-orientation":e.unref(t).orientation.value,"as-child":m.asChild,as:m.as,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[e.unref(a).startEdge]:`calc(${s.value}% + ${f.value}px)`,display:!e.unref(p)&&i.value===void 0?"none":void 0},onFocus:g[0]||(g[0]=()=>{e.unref(t).valueIndexToChangeRef.value=m.index})}),{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),hv=e.defineComponent({__name:"SliderThumb",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,{getItems:t}=Ct(),{forwardRef:a,currentElement:r}=_(),l=e.computed(()=>r.value?t().findIndex(i=>i.ref===r.value):-1);return(i,s)=>(e.openBlock(),e.createBlock(vv,e.mergeProps({ref:e.unref(a)},n,{index:l.value}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["index"]))}}),gv=e.defineComponent({__name:"SliderTrack",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=wn();return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),{"as-child":t.asChild,as:t.as,"data-disabled":e.unref(n).disabled.value?"":void 0,"data-orientation":e.unref(n).orientation.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),yv=e.defineComponent({__name:"SliderRange",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=wn(),t=cl();_();const a=e.computed(()=>{var i,s;return(s=(i=n.modelValue)==null?void 0:i.value)==null?void 0:s.map(u=>il(u,n.min.value,n.max.value))}),r=e.computed(()=>n.modelValue.value.length>1?Math.min(...a.value):0),l=e.computed(()=>100-Math.max(...a.value));return(i,s)=>(e.openBlock(),e.createBlock(e.unref(P),{"data-disabled":e.unref(n).disabled.value?"":void 0,"data-orientation":e.unref(n).orientation.value,"as-child":i.asChild,as:i.as,style:e.normalizeStyle({[e.unref(t).startEdge]:`${r.value}%`,[e.unref(t).endEdge]:`${l.value}%`})},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}});let Gn=null,Ue=null;function Cv(o,n){if(n){const t=(n&bl)!==0,a=(n&wl)!==0,r=(n&xl)!==0,l=(n&Bl)!==0;if(t)return r?"se-resize":l?"ne-resize":"e-resize";if(a)return r?"sw-resize":l?"nw-resize":"w-resize";if(r)return"s-resize";if(l)return"n-resize"}switch(o){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function ml(){Ue!==null&&(document.head.removeChild(Ue),Gn=null,Ue=null)}function Nn(o,n){const t=Cv(o,n);Gn!==t&&(Gn=t,Ue===null&&(Ue=document.createElement("style"),document.head.appendChild(Ue)),Ue.innerHTML=`*{cursor: ${t}!important;}`)}function bv({defaultSize:o,dragState:n,layout:t,panelData:a,panelIndex:r,precision:l=3}){const i=t[r];let s;return i==null?s=o!==void 0?o.toPrecision(l):"1":a.length===1?s="1":s=i.toPrecision(l),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:n!==null?"none":void 0}}function vl(o){return o.type==="keydown"}function hl(o){return o.type.startsWith("mouse")}function gl(o){return o.type.startsWith("touch")}function xn(o){if(hl(o))return{x:o.clientX,y:o.clientY};if(gl(o)){const n=o.touches[0];if(n&&n.clientX&&n.clientY)return{x:n.clientX,y:n.clientY}}return{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY}}function yl(o,n){const t=o==="horizontal",{x:a,y:r}=xn(n);return t?a:r}function wv(o,n,t){return o.xn.x&&o.yn.y}function Z(o,n="Assertion failed!"){if(!o)throw console.error(n),new Error(n)}function xv(o,n){if(o===n)throw new Error("Cannot compare node with itself");const t={a:pa(o),b:pa(n)};let a;for(;t.a.at(-1)===t.b.at(-1);)o=t.a.pop(),n=t.b.pop(),a=o;Z(a);const r={a:fa(ca(t.a)),b:fa(ca(t.b))};if(r.a===r.b){const l=a.childNodes,i={a:t.a.at(-1),b:t.b.at(-1)};let s=l.length;for(;s--;){const u=l[s];if(u===i.a)return 1;if(u===i.b)return-1}}return Math.sign(r.a-r.b)}const Bv=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function kv(o){const n=getComputedStyle(Cl(o)).display;return n==="flex"||n==="inline-flex"}function _v(o){const n=getComputedStyle(o);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||kv(o))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||Bv.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function ca(o){let n=o.length;for(;n--;){const t=o[n];if(Z(t),_v(t))return t}return null}function fa(o){return o&&Number(getComputedStyle(o).zIndex)||0}function pa(o){const n=[];for(;o;)n.push(o),o=Cl(o);return n}function Cl(o){var n;return o.parentNode instanceof DocumentFragment&&((n=o.parentNode)==null?void 0:n.host)||o.parentNode}const bl=1,wl=2,xl=4,Bl=8;function Sv(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const Pv=Sv()==="coarse",Oe=[];let Bn=!1;const Me=new Map,kn=new Map,Rt=new Set;function Ev(o,n,t,a,r){const{ownerDocument:l}=n,i={direction:t,element:n,hitAreaMargins:a,setResizeHandlerState:r},s=Me.get(l)??0;return Me.set(l,s+1),Rt.add(i),nn(),function(){kn.delete(o),Rt.delete(i);const d=Me.get(l)??1;Me.set(l,d-1),nn(),ml(),d===1&&Me.delete(l)}}function Gt(o){const{target:n}=o,{x:t,y:a}=xn(o);Bn=!0,jo({target:n,x:t,y:a}),nn(),Oe.length>0&&(Uo("down",o),o.preventDefault())}function Ie(o){const{x:n,y:t}=xn(o);if(!Bn){const{target:a}=o;jo({target:a,x:n,y:t})}Uo("move",o),kl(),Oe.length>0&&o.preventDefault()}function Ve(o){const{target:n}=o,{x:t,y:a}=xn(o);kn.clear(),Bn=!1,Oe.length>0&&o.preventDefault(),Uo("up",o),jo({target:n,x:t,y:a}),kl(),nn()}function jo({target:o,x:n,y:t}){Oe.splice(0);let a=null;o instanceof HTMLElement&&(a=o),Rt.forEach(r=>{const{element:l,hitAreaMargins:i}=r,s=l.getBoundingClientRect(),{bottom:u,left:d,right:c,top:f}=s,p=Pv?i.coarse:i.fine;if(n>=d-p&&n<=c+p&&t>=f-p&&t<=u+p){if(a!==null&&l!==a&&!l.contains(a)&&!a.contains(l)&&xv(a,l)>0){let g=a,v=!1;for(;g&&!g.contains(l);){if(wv(g.getBoundingClientRect(),s)){v=!0;break}g=g.parentElement}if(v)return}Oe.push(r)}})}function Fn(o,n){kn.set(o,n)}function kl(){let o=!1,n=!1;Oe.forEach(a=>{const{direction:r}=a;r.value==="horizontal"?o=!0:n=!0});let t=0;kn.forEach(a=>{t|=a}),o&&n?Nn("intersection",t):o?Nn("horizontal",t):n?Nn("vertical",t):ml()}function nn(){Me.forEach((o,n)=>{const{body:t}=n;t.removeEventListener("contextmenu",Ve),t.removeEventListener("mousedown",Gt),t.removeEventListener("mouseleave",Ie),t.removeEventListener("mousemove",Ie),t.removeEventListener("touchmove",Ie),t.removeEventListener("touchstart",Gt)}),window.removeEventListener("mouseup",Ve),window.removeEventListener("touchcancel",Ve),window.removeEventListener("touchend",Ve),Rt.size>0&&(Bn?(Oe.length>0&&Me.forEach((o,n)=>{const{body:t}=n;o>0&&(t.addEventListener("contextmenu",Ve),t.addEventListener("mouseleave",Ie),t.addEventListener("mousemove",Ie),t.addEventListener("touchmove",Ie,{passive:!1}))}),window.addEventListener("mouseup",Ve),window.addEventListener("touchcancel",Ve),window.addEventListener("touchend",Ve)):Me.forEach((o,n)=>{const{body:t}=n;o>0&&(t.addEventListener("mousedown",Gt),t.addEventListener("mousemove",Ie),t.addEventListener("touchmove",Ie,{passive:!1}),t.addEventListener("touchstart",Gt))}))}function Uo(o,n){Rt.forEach(t=>{const{setResizeHandlerState:a}=t,r=Oe.includes(t);a(o,r,n)})}const Go=10;function Tt(o,n,t=Go){o=Number.parseFloat(o.toFixed(t)),n=Number.parseFloat(n.toFixed(t));const a=o-n;return a===0?0:a>0?1:-1}function fe(o,n,t){return Tt(o,n,t)===0}function st({panelConstraints:o,panelIndex:n,size:t}){const a=o[n];Z(a!=null);const{collapsedSize:r=0,collapsible:l,maxSize:i=100,minSize:s=0}=a;if(Tt(t,s)<0)if(l){const u=(r+s)/2;Tt(t,u)<0?t=r:t=s}else t=s;return t=Math.min(i,t),t=Number.parseFloat(t.toFixed(Go)),t}function qt(o,n){if(o.length!==n.length)return!1;for(let t=0;t0&&(o=o<0?0-C:C)}}}{const c=o<0?i:s,f=t[c];Z(f);const{collapsible:p}=f;if(p){const m=n[c];Z(m!=null);const g=t[c];Z(g);const{collapsedSize:v=0,minSize:C=0}=g;if(fe(m,C)){const y=m-v;Tt(y,Math.abs(o))>0&&(o=o<0?0-y:y)}}}}{const c=o<0?1:-1;let f=o<0?s:i,p=0;for(;;){const g=n[f];Z(g!=null);const C=st({panelConstraints:t,panelIndex:f,size:100})-g;if(p+=C,f+=c,f<0||f>=t.length)break}const m=Math.min(Math.abs(o),Math.abs(p));o=o<0?0-m:m}{let f=o<0?i:s;for(;f>=0&&f=0))break;o<0?f--:f++}}if(fe(u,0))return n;{const c=o<0?s:i,f=n[c];Z(f!=null);const p=f+u,m=st({panelConstraints:t,panelIndex:c,size:p});if(l[c]=m,!fe(m,p)){let g=p-m,C=o<0?s:i;for(;C>=0&&C0?C--:C++}}}const d=l.reduce((c,f)=>f+c,0);return fe(d,100)?l:n}function _l(o,n=document){var a;if(!It)return null;if(n instanceof HTMLElement&&((a=n==null?void 0:n.dataset)==null?void 0:a.panelGroupId)===o)return n;const t=n.querySelector(`[data-panel-group][data-panel-group-id="${o}"]`);return t||null}function _n(o,n=document){if(!It)return null;const t=n.querySelector(`[data-panel-resize-handle-id="${o}"]`);return t||null}function Sl(o,n,t=document){return It?$t(o,t).findIndex(l=>l.getAttribute("data-panel-resize-handle-id")===n)??null:null}function $t(o,n=document){return It?Array.from(n.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${o}"]`)):[]}function Dv(o,n,t,a=document){var d,c;const r=_n(n,a),l=$t(o,a),i=r?l.indexOf(r):-1,s=((d=t[i])==null?void 0:d.id)??null,u=((c=t[i+1])==null?void 0:c.id)??null;return[s,u]}function Rv(o,n,t,a,r){const l=t==="horizontal",i=_n(n,r);Z(i);const s=i.getAttribute("data-panel-group-id");Z(s);const{initialCursorPosition:u}=a,d=yl(t,o),c=_l(s,r);Z(c);const f=c.getBoundingClientRect(),p=l?f.width:f.height;return(d-u)/p*100}function Tv(o,n,t,a,r,l){if(vl(o)){const i=t==="horizontal";let s=0;o.shiftKey?s=100:s=r??10;let u=0;switch(o.key){case"ArrowDown":u=i?0:s;break;case"ArrowLeft":u=i?-s:0;break;case"ArrowRight":u=i?s:0;break;case"ArrowUp":u=i?0:-s;break;case"End":u=100;break;case"Home":u=-100;break}return u}else return a==null?0:Rv(o,n,t,a,l)}function $v({layout:o,panelsArray:n,pivotIndices:t}){let a=0,r=100,l=0,i=0;const s=t[0];Z(s!=null),n.forEach((f,p)=>{const{constraints:m}=f,{maxSize:g=100,minSize:v=0}=m;p===s?(a=v,r=g):(l+=v,i+=g)});const u=Math.min(r,100-l),d=Math.max(a,100-i),c=o[s];return{valueMax:u,valueMin:d,valueNow:c}}function Iv({panelDataArray:o}){const n=Array(o.length),t=o.map(l=>l.constraints);let a=0,r=100;for(let l=0;l{const l=o[r];Z(l);const{callbacks:i,constraints:s,id:u}=l,{collapsedSize:d=0,collapsible:c}=s,f=t[u];if(f==null||a!==f){t[u]=a;const{onCollapse:p,onExpand:m,onResize:g}=i;g&&g(a,f),c&&(p||m)&&(m&&(f==null||f===d)&&a!==d&&m(),p&&(f==null||f!==d)&&a===d&&p())}})}function Vv(o,n=10){let t=null;return(...r)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{o(...r)},n)}}function Pl(o,n,t){const a=Sl(o,n,t);return a!=null?[a,a+1]:[-1,-1]}function Av({layout:o,panelConstraints:n}){const t=[...o],a=t.reduce((l,i)=>l+i,0);if(t.length!==n.length)throw new Error(`Invalid ${n.length} panel layout: ${t.map(l=>`${l}%`).join(", ")}`);if(!fe(a,100)){console.warn(`WARNING: Invalid layout total size: ${t.map(l=>`${l}%`).join(", ")}. Layout normalization will be applied.`);for(let l=0;llocalStorage.getItem(n),o.setItem=(n,t)=>{localStorage.setItem(n,t)};else throw new TypeError("localStorage not supported in this environment")}catch(n){console.error(n),o.getItem=()=>null,o.setItem=()=>{}}}function El(o){return`radix-vue:${o}`}function Dl(o){return o.map(n=>{const{constraints:t,id:a,idIsFromProps:r,order:l}=n;return r?a:l?`${l}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((n,t)=>n.localeCompare(t)).join(",")}function Rl(o,n){try{const t=El(o),a=n.getItem(t);if(a){const r=JSON.parse(a);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Mv(o,n,t){const a=Rl(o,t)??{},r=Dl(n);return a[r]??null}function Ov(o,n,t,a,r){const l=El(o),i=Dl(n),s=Rl(o,r)??{};s[i]={expandToSizes:Object.fromEntries(t.entries()),layout:a};try{r.setItem(l,JSON.stringify(s))}catch(u){console.error(u)}}function Nv({eagerValuesRef:o,groupId:n,layout:t,panelDataArray:a,panelGroupElement:r,setLayout:l}){e.watchEffect(i=>{const s=r.value;if(!s)return;const u=$t(n,s);for(let d=0;d{u.forEach(d=>{d.removeAttribute("aria-controls"),d.removeAttribute("aria-valuemax"),d.removeAttribute("aria-valuemin"),d.removeAttribute("aria-valuenow")})})}),e.watchEffect(i=>{const s=r.value;if(!s)return;const u=o.value;Z(u);const{panelDataArray:d}=u,c=_l(n,s);Z(c!=null,`No group found for id "${n}"`);const f=$t(n,s);Z(f);const p=f.map(m=>{const g=m.getAttribute("data-panel-resize-handle-id");Z(g);const[v,C]=Dv(n,g,d,s);if(v==null||C==null)return()=>{};const y=x=>{if(!x.defaultPrevented)switch(x.key){case"Enter":{x.preventDefault();const h=d.findIndex(b=>b.id===v);if(h>=0){const b=d[h];Z(b);const w=t.value[h],{collapsedSize:B=0,collapsible:k,minSize:E=0}=b.constraints;if(w!=null&&k){const D=_t({delta:fe(w,B)?E-B:B-w,layout:t.value,panelConstraints:d.map(S=>S.constraints),pivotIndices:Pl(n,g,s),trigger:"keyboard"});t.value!==D&&l(D)}}break}}};return m.addEventListener("keydown",y),()=>{m.removeEventListener("keydown",y)}});i(()=>{p.forEach(m=>m())})})}const Fv=100,St={getItem:o=>(ma(St),St.getItem(o)),setItem:(o,n)=>{ma(St),St.setItem(o,n)}},[Tl,zv]=K("PanelGroup"),Lv=e.defineComponent({__name:"SplitterGroup",props:{id:{},autoSaveId:{default:null},direction:{},keyboardResizeBy:{default:10},storage:{default:()=>St},asChild:{type:Boolean},as:{}},emits:["layout"],setup(o,{emit:n}){const t=o,a=n,r={},{direction:l}=e.toRefs(t),i=J(t.id,"radix-vue-splitter-group"),s=ee(),{forwardRef:u,currentElement:d}=_(),c=e.ref(null),f=e.ref([]),p=e.ref({}),m=e.ref(new Map),g=e.ref(0),v=e.computed(()=>({autoSaveId:t.autoSaveId,direction:t.direction,dragState:c.value,id:i,keyboardResizeBy:t.keyboardResizeBy,storage:t.storage})),C=e.ref({layout:f.value,panelDataArray:[],panelDataArrayChanged:!1}),y=V=>f.value=V;Nv({eagerValuesRef:C,groupId:i,layout:f,panelDataArray:C.value.panelDataArray,setLayout:y,panelGroupElement:d}),e.watchEffect(()=>{const{panelDataArray:V}=C.value,{autoSaveId:I}=t;if(I){if(f.value.length===0||f.value.length!==V.length)return;let $=r[I];$||($=Vv(Ov,Fv),r[I]=$);const T=[...V],z=new Map(m.value);$(I,T,z,f.value,t.storage)}});function x(V,I){const{panelDataArray:$}=C.value,T=O($,V);return bv({defaultSize:I,dragState:c.value,layout:f.value,panelData:$,panelIndex:T})}function h(V){const{panelDataArray:I}=C.value;I.push(V),I.sort(($,T)=>{const z=$.order,F=T.order;return z==null&&F==null?0:z==null?-1:F==null?1:z-F}),C.value.panelDataArrayChanged=!0}e.watch(()=>C.value.panelDataArrayChanged,()=>{if(C.value.panelDataArrayChanged){C.value.panelDataArrayChanged=!1;const{autoSaveId:V,storage:I}=v.value,{layout:$,panelDataArray:T}=C.value;let z=null;if(V){const q=Mv(V,T,I);q&&(m.value=new Map(Object.entries(q.expandToSizes)),z=q.layout)}z===null&&(z=Iv({panelDataArray:T}));const F=Av({layout:z,panelConstraints:T.map(q=>q.constraints)});Zl($,F)||(y(F),C.value.layout=F,a("layout",F),kt(T,F,p.value))}});function b(V){return function($){$.preventDefault();const T=d.value;if(!T)return()=>null;const{direction:z,dragState:F,id:q,keyboardResizeBy:N}=v.value,{layout:G,panelDataArray:X}=C.value,{initialLayout:oe}=F??{},ae=Pl(q,V,T);let Q=Tv($,V,z,F,N,T);if(Q===0)return;const Y=z==="horizontal";s.value==="rtl"&&Y&&(Q=-Q);const ue=X.map(We=>We.constraints),de=_t({delta:Q,layout:oe??G,panelConstraints:ue,pivotIndices:ae,trigger:vl($)?"keyboard":"mouse-or-touch"}),me=!qt(G,de);(hl($)||gl($))&&g.value!==Q&&(g.value=Q,me?Fn(V,0):Y?Fn(V,Q<0?bl:wl):Fn(V,Q<0?xl:Bl)),me&&(y(de),C.value.layout=de,a("layout",de),kt(X,de,p.value))}}function w(V,I){const{layout:$,panelDataArray:T}=C.value,z=T.map(oe=>oe.constraints),{panelSize:F,pivotIndices:q}=L(T,V,$);Z(F!=null);const G=O(T,V)===T.length-1?F-I:I-F,X=_t({delta:G,layout:$,panelConstraints:z,pivotIndices:q,trigger:"imperative-api"});qt($,X)||(y(X),C.value.layout=X,a("layout",X),kt(T,X,p.value))}function B(V,I){const{layout:$,panelDataArray:T}=C.value,z=O(T,V);T[z]=V,C.value.panelDataArrayChanged=!0;const{collapsedSize:F=0,collapsible:q}=I,{collapsedSize:N=0,collapsible:G,maxSize:X=100,minSize:oe=0}=V.constraints,{panelSize:ae}=L(T,V,$);ae!==null&&(q&&G&&ae===F?F!==N&&w(V,N):aeX&&w(V,X))}function k(V,I){const{direction:$}=v.value,{layout:T}=C.value;if(!d.value)return;const z=_n(V,d.value);Z(z);const F=yl($,I);c.value={dragHandleId:V,dragHandleRect:z.getBoundingClientRect(),initialCursorPosition:F,initialLayout:T}}function E(){c.value=null}function D(V){const{panelDataArray:I}=C.value,$=O(I,V);$>=0&&(I.splice($,1),delete p.value[V.id],C.value.panelDataArrayChanged=!0)}function S(V){const{layout:I,panelDataArray:$}=C.value;if(V.constraints.collapsible){const T=$.map(N=>N.constraints),{collapsedSize:z=0,panelSize:F,pivotIndices:q}=L($,V,I);if(Z(F!=null,`Panel size not found for panel "${V.id}"`),F!==z){m.value.set(V.id,F);const G=O($,V)===$.length-1?F-z:z-F,X=_t({delta:G,layout:I,panelConstraints:T,pivotIndices:q,trigger:"imperative-api"});qt(I,X)||(y(X),C.value.layout=X,a("layout",X),kt($,X,p.value))}}}function R(V){const{layout:I,panelDataArray:$}=C.value;if(V.constraints.collapsible){const T=$.map(G=>G.constraints),{collapsedSize:z=0,panelSize:F,minSize:q=0,pivotIndices:N}=L($,V,I);if(F===z){const G=m.value.get(V.id),X=G!=null&&G>=q?G:q,ae=O($,V)===$.length-1?F-X:X-F,Q=_t({delta:ae,layout:I,panelConstraints:T,pivotIndices:N,trigger:"imperative-api"});qt(I,Q)||(y(Q),C.value.layout=Q,a("layout",Q),kt($,Q,p.value))}}}function M(V){const{layout:I,panelDataArray:$}=C.value,{panelSize:T}=L($,V,I);return Z(T!=null,`Panel size not found for panel "${V.id}"`),T}function A(V){const{layout:I,panelDataArray:$}=C.value,{collapsedSize:T=0,collapsible:z,panelSize:F}=L($,V,I);return z===!0&&F===T}function H(V){const{layout:I,panelDataArray:$}=C.value,{collapsedSize:T=0,collapsible:z,panelSize:F}=L($,V,I);return Z(F!=null,`Panel size not found for panel "${V.id}"`),!z||F>T}zv({direction:l,dragState:c.value,groupId:i,reevaluatePanelConstraints:B,registerPanel:h,registerResizeHandle:b,resizePanel:w,startDragging:k,stopDragging:E,unregisterPanel:D,panelGroupElement:d,collapsePanel:S,expandPanel:R,isPanelCollapsed:A,isPanelExpanded:H,getPanelSize:M,getPanelStyle:x});function O(V,I){return V.findIndex($=>$===I||$.id===I.id)}function L(V,I,$){const T=O(V,I),F=T===V.length-1?[T-1,T]:[T,T+1],q=$[T];return{...I.constraints,panelSize:q,pivotIndices:F}}return(V,I)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(u),as:V.as,"as-child":V.asChild,style:e.normalizeStyle({display:"flex",flexDirection:e.unref(l)==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"}),"data-panel-group":"","data-orientation":e.unref(l),"data-panel-group-id":e.unref(i)},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default",{layout:f.value})]),_:3},8,["as","as-child","style","data-orientation","data-panel-group-id"]))}}),Kv=e.defineComponent({__name:"SplitterPanel",props:{collapsedSize:{},collapsible:{type:Boolean},defaultSize:{},id:{},maxSize:{},minSize:{},order:{},asChild:{type:Boolean},as:{}},emits:["collapse","expand","resize"],setup(o,{expose:n,emit:t}){const a=o,r=t,l=Tl();if(l===null)throw new Error("SplitterPanel components must be rendered within a SplitterGroup container");const{collapsePanel:i,expandPanel:s,getPanelSize:u,getPanelStyle:d,isPanelCollapsed:c,resizePanel:f,groupId:p,reevaluatePanelConstraints:m,registerPanel:g,unregisterPanel:v}=l,C=J(a.id,"radix-vue-splitter-panel"),y=e.computed(()=>({callbacks:{onCollapse:()=>r("collapse"),onExpand:()=>r("expand"),onResize:(...w)=>r("resize",...w)},constraints:{collapsedSize:a.collapsedSize&&Number.parseFloat(a.collapsedSize.toFixed(Go)),collapsible:a.collapsible,defaultSize:a.defaultSize,maxSize:a.maxSize,minSize:a.minSize},id:C,idIsFromProps:a.id!==void 0,order:a.order}));e.watch(()=>y.value.constraints,(w,B)=>{(B.collapsedSize!==w.collapsedSize||B.collapsible!==w.collapsible||B.maxSize!==w.maxSize||B.minSize!==w.minSize)&&m(y.value,B)},{deep:!0}),e.onMounted(()=>{const w=y.value;g(w),e.onUnmounted(()=>{v(w)})});const x=e.computed(()=>d(y.value,a.defaultSize)),h=e.computed(()=>c(y.value)),b=e.computed(()=>!h.value);return n({collapse:()=>{i(y.value)},expand:()=>{s(y.value)},getSize(){return u(y.value)},resize:w=>{f(y.value,w)},isCollapsed:h,isExpanded:b}),(w,B)=>(e.openBlock(),e.createBlock(e.unref(P),{id:e.unref(C),style:e.normalizeStyle(x.value),as:w.as,"as-child":w.asChild,"data-panel":"","data-panel-collapsible":w.collapsible||void 0,"data-panel-group-id":e.unref(p),"data-panel-id":e.unref(C),"data-panel-size":Number.parseFloat(`${x.value.flexGrow}`).toFixed(1),"data-state":w.collapsible?h.value?"collapsed":"expanded":void 0},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default",{isCollapsed:h.value,isExpanded:b.value})]),_:3},8,["id","style","as","as-child","data-panel-collapsible","data-panel-group-id","data-panel-id","data-panel-size","data-state"]))}});function Hv({disabled:o,handleId:n,resizeHandler:t,panelGroupElement:a}){e.watchEffect(r=>{const l=a.value;if(o.value||t.value===null||l===null)return;const i=_n(n,l);if(i==null)return;const s=u=>{var d;if(!u.defaultPrevented)switch(u.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{u.preventDefault(),(d=t.value)==null||d.call(t,u);break}case"F6":{u.preventDefault();const c=i.getAttribute("data-panel-group-id");Z(c);const f=$t(c,l),p=Sl(c,n,l);Z(p!==null);const m=u.shiftKey?p>0?p-1:f.length-1:p+1{i.removeEventListener("keydown",s)})})}const Wv=e.defineComponent({__name:"SplitterResizeHandle",props:{id:{},hitAreaMargins:{},tabindex:{default:0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["dragging"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r,currentElement:l}=_(),{disabled:i}=e.toRefs(t),s=Tl();if(s===null)throw new Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:u,groupId:d,registerResizeHandle:c,startDragging:f,stopDragging:p,panelGroupElement:m}=s,g=J(t.id,"radix-vue-splitter-resize-handle"),v=e.ref("inactive"),C=e.ref(!1),y=e.ref(null);return e.watch(i,()=>{It&&(i.value?y.value=null:y.value=c(g))},{immediate:!0}),e.watchEffect(x=>{var w,B;if(i.value||y.value===null)return;const h=l.value;if(!h)return;Z(h);const b=(k,E,D)=>{var S;if(E)switch(k){case"down":{v.value="drag",f(g,D),a("dragging",!0);break}case"move":{v.value!=="drag"&&(v.value="hover"),(S=y.value)==null||S.call(y,D);break}case"up":{v.value="hover",p(),a("dragging",!1);break}}else v.value="inactive"};x(Ev(g,h,u,{coarse:((w=t.hitAreaMargins)==null?void 0:w.coarse)??15,fine:((B=t.hitAreaMargins)==null?void 0:B.fine)??5},b))}),Hv({disabled:i,resizeHandler:y,handleId:g,panelGroupElement:m}),(x,h)=>(e.openBlock(),e.createBlock(e.unref(P),{id:e.unref(g),ref:e.unref(r),style:{touchAction:"none",userSelect:"none"},as:x.as,"as-child":x.asChild,role:"separator","data-resize-handle":"",tabindex:x.tabindex,"data-state":v.value,"data-disabled":e.unref(i)?"":void 0,"data-orientation":e.unref(u),"data-panel-group-id":e.unref(d),"data-resize-handle-active":v.value==="drag"?"pointer":C.value?"keyboard":void 0,"data-resize-handle-state":v.value,"data-panel-resize-handle-enabled":!e.unref(i),"data-panel-resize-handle-id":e.unref(g),onBlur:h[0]||(h[0]=b=>C.value=!1),onFocus:h[1]||(h[1]=b=>C.value=!1)},{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default")]),_:3},8,["id","as","as-child","tabindex","data-state","data-disabled","data-orientation","data-panel-group-id","data-resize-handle-active","data-resize-handle-state","data-panel-resize-handle-enabled","data-panel-resize-handle-id"]))}}),jv={"aria-live":"polite","aria-atomic":"true",role:"status",style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},[qo,Uv]=K("StepperRoot"),Gv=e.defineComponent({__name:"StepperRoot",props:{defaultValue:{default:1},orientation:{default:"horizontal"},dir:{},modelValue:{},linear:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{dir:r,orientation:l,linear:i}=e.toRefs(t),s=ee(r);_();const u=e.ref(new Set),d=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),c=e.computed(()=>Array.from(u.value)),f=e.computed(()=>d.value===1),p=e.computed(()=>d.value===c.value.length),m=e.computed(()=>u.value.size);function g(h){h>m.value||h<1||u.value.size&&c.value[h]&&c.value[h].getAttribute("disabled")||i.value&&h>(d.value??1)+1||(d.value=h)}const v=e.ref(null),C=e.ref(null),y=e.computed(()=>v.value?v.value.getAttribute("disabled")==="":!0),x=e.computed(()=>C.value?C.value.getAttribute("disabled")==="":!0);return e.watch(d,async()=>{await e.nextTick(()=>{v.value=c.value.length&&d.value1?c.value[d.value-2]:null})}),e.watch(c,async()=>{await e.nextTick(()=>{v.value=c.value.length&&d.value1?c.value[d.value-2]:null})}),Uv({modelValue:d,changeModelValue:h=>{d.value=h},orientation:l,dir:s,linear:i,totalStepperItems:u}),(h,b)=>(e.openBlock(),e.createBlock(e.unref(P),{role:"group","aria-label":"progress",as:h.as,"as-child":h.asChild,"data-linear":e.unref(i)?"":void 0,"data-orientation":h.orientation},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default",{modelValue:e.unref(d),totalSteps:u.value.size,isNextDisabled:y.value,isPrevDisabled:x.value,isFirstStep:f.value,isLastStep:p.value,goToStep:g,nextStep:()=>g((e.unref(d)??1)+1),prevStep:()=>g((e.unref(d)??1)-1)}),e.createElementVNode("div",jv," Step "+e.toDisplayString(e.unref(d))+" of "+e.toDisplayString(u.value.size),1)]),_:3},8,["as","as-child","data-linear","data-orientation"]))}}),[zt,qv]=K("StepperItem"),Yv=e.defineComponent({__name:"StepperItem",props:{step:{},disabled:{type:Boolean,default:!1},completed:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},setup(o){const n=o,{disabled:t,step:a,completed:r}=e.toRefs(n),{forwardRef:l}=_(),i=qo(),s=J(void 0,"radix-vue-stepper-item-title"),u=J(void 0,"radix-vue-stepper-item-description"),d=e.computed(()=>r.value?"completed":i.modelValue.value===a.value?"active":i.modelValue.value>a.value?"completed":"inactive"),c=e.computed(()=>t.value?!1:i.linear.value?a.value<=i.modelValue.value||a.value===i.modelValue.value+1:!0);return qv({titleId:s,descriptionId:u,state:d,disabled:t,step:a,isFocusable:c}),(f,p)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(l),as:f.as,"as-child":f.asChild,"aria-current":d.value==="active"?"true":void 0,"data-state":d.value,disabled:e.unref(t)||!c.value?"":void 0,"data-disabled":e.unref(t)||!c.value?"":void 0,"data-orientation":e.unref(i).orientation.value},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{state:d.value})]),_:3},8,["as","as-child","aria-current","data-state","disabled","data-disabled","data-orientation"]))}}),Xv=e.defineComponent({__name:"StepperTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=qo(),t=zt(),a=ke(),r=e.computed(()=>Array.from(n.totalStepperItems.value));function l(d){if(!t.disabled.value){if(n.linear.value){if((t.step.value<=n.modelValue.value||t.step.value===n.modelValue.value+1)&&d.ctrlKey===!1){n.changeModelValue(t.step.value);return}}else if(d.ctrlKey===!1){n.changeModelValue(t.step.value);return}d.preventDefault()}}function i(d){d.preventDefault(),!t.disabled.value&&((d.key===a.ENTER||d.key===a.SPACE)&&!d.ctrlKey&&!d.shiftKey&&n.changeModelValue(t.step.value),[a.ARROW_LEFT,a.ARROW_RIGHT,a.ARROW_UP,a.ARROW_DOWN].includes(d.key)&&Xe(d,document.activeElement,void 0,{itemsArray:r.value,focus:!0,loop:!1,arrowKeyOptions:n.orientation.value,dir:n.dir.value}))}const{forwardRef:s,currentElement:u}=_();return e.onMounted(()=>{n.totalStepperItems.value.add(u.value)}),e.onUnmounted(()=>{n.totalStepperItems.value.delete(u.value)}),(d,c)=>(e.openBlock(),e.createBlock(e.unref(P),{ref:e.unref(s),type:d.as==="button"?"button":void 0,as:d.as,"as-child":d.asChild,"data-state":e.unref(t).state.value,disabled:e.unref(t).disabled.value||!e.unref(t).isFocusable.value?"":void 0,"data-disabled":e.unref(t).disabled.value||!e.unref(t).isFocusable.value?"":void 0,"data-orientation":e.unref(n).orientation.value,tabindex:e.unref(t).isFocusable.value?0:-1,"aria-describedby":e.unref(t).descriptionId,"aria-labelledby":e.unref(t).titleId,onMousedown:e.withModifiers(l,["left"]),onKeydown:e.withKeys(i,["enter","space","left","right","up","down"])},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["type","as","as-child","data-state","disabled","data-disabled","data-orientation","tabindex","aria-describedby","aria-labelledby"]))}}),Zv=e.defineComponent({__name:"StepperDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(o){const n=o;_();const t=zt();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).descriptionId}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),Jv=e.defineComponent({__name:"StepperTitle",props:{asChild:{type:Boolean},as:{default:"h4"}},setup(o){const n=o,t=zt();return _(),(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).titleId}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["id"]))}}),Qv=e.defineComponent({__name:"StepperIndicator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=zt();return _(),(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(" Step "+e.toDisplayString(e.unref(t).step.value),1)])]),_:3},16))}}),eh=e.defineComponent({__name:"StepperSeparator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,t=qo(),a=zt();return _(),(r,l)=>(e.openBlock(),e.createBlock(e.unref(ll),e.mergeProps(n,{decorative:"",orientation:e.unref(t).orientation.value,"data-state":e.unref(a).state.value}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["orientation","data-state"]))}}),th=["name","disabled","required","value","checked","data-state","data-disabled"],[nh,oh]=K("SwitchRoot"),ah=e.defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(o,{emit:n}){const t=o,a=n,{disabled:r}=e.toRefs(t),l=W(t,"checked",a,{defaultValue:t.defaultChecked,passive:t.checked===void 0});function i(){r.value||(l.value=!l.value)}const{forwardRef:s,currentElement:u}=_(),d=Be(u),c=e.computed(()=>{var f;return t.id&&u.value?(f=document.querySelector(`[for="${t.id}"]`))==null?void 0:f.innerText:void 0});return oh({checked:l,toggleCheck:i,disabled:r}),(f,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps(f.$attrs,{id:f.id,ref:e.unref(s),role:"switch",type:f.as==="button"?"button":void 0,value:f.value,"aria-label":f.$attrs["aria-label"]||c.value,"aria-checked":e.unref(l),"aria-required":f.required,"data-state":e.unref(l)?"checked":"unchecked","data-disabled":e.unref(r)?"":void 0,"as-child":f.asChild,as:f.as,disabled:e.unref(r),onClick:i,onKeydown:e.withKeys(e.withModifiers(i,["prevent"]),["enter"])}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{checked:e.unref(l)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),e.unref(d)?(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",name:f.name,tabindex:"-1","aria-hidden":"true",disabled:e.unref(r),required:f.required,value:f.value,checked:!!e.unref(l),"data-state":e.unref(l)?"checked":"unchecked","data-disabled":e.unref(r)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,th)):e.createCommentVNode("",!0)],64))}}),rh=e.defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=nh();return _(),(t,a)=>{var r;return e.openBlock(),e.createBlock(e.unref(P),{"data-state":(r=e.unref(n).checked)!=null&&r.value?"checked":"unchecked","data-disabled":e.unref(n).disabled.value?"":void 0,"as-child":t.asChild,as:t.as},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[Sn,lh]=K("TabsRoot"),ih=e.defineComponent({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{orientation:r,dir:l}=e.toRefs(t),i=ee(l);_();const s=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),u=e.ref();return lh({modelValue:s,changeModelValue:d=>{s.value=d},orientation:r,dir:i,activationMode:t.activationMode,baseId:J(void 0,"radix-vue-tabs"),tabsList:u}),(d,c)=>(e.openBlock(),e.createBlock(e.unref(P),{dir:e.unref(i),"data-orientation":e.unref(r),"as-child":d.asChild,as:d.as},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{modelValue:e.unref(s)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),sh=e.defineComponent({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(o){const n=o,{loop:t}=e.toRefs(n),{forwardRef:a,currentElement:r}=_(),l=Sn();return l.tabsList=r,(i,s)=>(e.openBlock(),e.createBlock(e.unref(tt),{"as-child":"",orientation:e.unref(l).orientation.value,dir:e.unref(l).dir.value,loop:e.unref(t)},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(a),role:"tablist","as-child":i.asChild,as:i.as,"aria-orientation":e.unref(l).orientation.value},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function $l(o,n){return`${o}-trigger-${n}`}function Il(o,n){return`${o}-content-${n}`}const uh=e.defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_(),a=Sn(),r=e.computed(()=>$l(a.baseId,n.value)),l=e.computed(()=>Il(a.baseId,n.value)),i=e.computed(()=>n.value===a.modelValue.value),s=e.ref(i.value);return e.onMounted(()=>{requestAnimationFrame(()=>{s.value=!1})}),(u,d)=>(e.openBlock(),e.createBlock(e.unref(re),{present:i.value,"force-mount":""},{default:e.withCtx(({present:c})=>[e.createVNode(e.unref(P),{id:l.value,ref:e.unref(t),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":i.value?"active":"inactive","data-orientation":e.unref(a).orientation.value,"aria-labelledby":r.value,hidden:!c.value,tabindex:"0",style:e.normalizeStyle({animationDuration:s.value?"0s":void 0})},{default:e.withCtx(()=>[u.forceMount||i.value?e.renderSlot(u.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),dh=e.defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,{forwardRef:t}=_(),a=Sn(),r=e.computed(()=>$l(a.baseId,n.value)),l=e.computed(()=>Il(a.baseId,n.value)),i=e.computed(()=>n.value===a.modelValue.value);return(s,u)=>(e.openBlock(),e.createBlock(e.unref(nt),{"as-child":"",focusable:!s.disabled,active:i.value},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{id:r.value,ref:e.unref(t),role:"tab",type:s.as==="button"?"button":void 0,as:s.as,"as-child":s.asChild,"aria-selected":i.value?"true":"false","aria-controls":l.value,"data-state":i.value?"active":"inactive",disabled:s.disabled,"data-disabled":s.disabled?"":void 0,"data-orientation":e.unref(a).orientation.value,onMousedown:u[0]||(u[0]=e.withModifiers(d=>{!s.disabled&&d.ctrlKey===!1?e.unref(a).changeModelValue(s.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=e.withKeys(d=>e.unref(a).changeModelValue(s.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=e.unref(a).activationMode!=="manual";!i.value&&!s.disabled&&d&&e.unref(a).changeModelValue(s.value)})},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),ch=e.defineComponent({__name:"TabsIndicator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Sn();_();const a=e.ref(),r=e.ref({size:null,position:null});e.watch(()=>[t.modelValue.value,t==null?void 0:t.dir.value],async()=>{await e.nextTick(),l()},{immediate:!0}),xe([t.tabsList,a],l);function l(){var i;a.value=(i=t.tabsList.value)==null?void 0:i.querySelector('[role="tab"][data-state="active"]'),a.value&&(t.orientation.value==="horizontal"?r.value={size:a.value.offsetWidth,position:a.value.offsetLeft}:r.value={size:a.value.offsetHeight,position:a.value.offsetTop})}return(i,s)=>typeof r.value.size=="number"?(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({key:0},n,{style:{"--radix-tabs-indicator-size":`${r.value.size}px`,"--radix-tabs-indicator-position":`${r.value.position}px`}}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["style"])):e.createCommentVNode("",!0)}}),[Pn,fh]=K("TagsInputRoot"),ph=e.defineComponent({__name:"TagsInputRoot",props:{modelValue:{},defaultValue:{default:()=>[]},addOnPaste:{type:Boolean},addOnTab:{type:Boolean},addOnBlur:{type:Boolean},duplicate:{type:Boolean},disabled:{type:Boolean},delimiter:{default:","},dir:{},max:{default:0},required:{type:Boolean},name:{},id:{},convertValue:{},displayValue:{type:Function,default:o=>o.toString()},asChild:{type:Boolean},as:{}},emits:["update:modelValue","invalid"],setup(o,{emit:n}){const t=o,a=n,{addOnPaste:r,disabled:l,delimiter:i,max:s,id:u,dir:d,addOnBlur:c,addOnTab:f}=e.toRefs(t),p=ee(d),m=W(t,"modelValue",a,{defaultValue:t.defaultValue,passive:!0,deep:!0}),{forwardRef:g,currentElement:v}=_(),{focused:C}=Ei(v),y=Be(v),{getItems:x}=Mt(),h=e.ref(),b=e.ref(!1);return fh({modelValue:m,onAddValue:w=>{const B=m.value.length>0&&typeof m.value[0]=="object",k=m.value.length>0&&typeof t.defaultValue[0]=="object";if((B||k)&&typeof t.convertValue!="function")throw new Error("You must provide a `convertValue` function when using objects as values.");const E=t.convertValue?t.convertValue(w):w;if(m.value.length>=s.value&&s.value)return a("invalid",E),!1;if(t.duplicate)return m.value.push(E),!0;if(m.value.includes(E))b.value=!0;else return m.value.push(E),!0;return a("invalid",E),!1},onRemoveValue:w=>{w!==-1&&m.value.splice(w,1)},onInputKeydown:w=>{const B=w.target,k=x().map(D=>D.ref).filter(D=>D.dataset.disabled!=="");if(!k.length)return;const E=k.at(-1);switch(w.key){case"Delete":case"Backspace":{if(B.selectionStart!==0||B.selectionEnd!==0)break;if(h.value){const D=k.findIndex(S=>S===h.value);m.value.splice(D,1),h.value=h.value===E?k.at(D-1):k.at(D+1),w.preventDefault()}else w.key==="Backspace"&&(h.value=E,w.preventDefault());break}case"Home":case"End":case"ArrowRight":case"ArrowLeft":{const D=w.key==="ArrowRight"&&p.value==="ltr"||w.key==="ArrowLeft"&&p.value==="rtl",S=!D;if(B.selectionStart!==0||B.selectionEnd!==0)break;if(S&&!h.value)h.value=E,w.preventDefault();else if(D&&E&&h.value===E)h.value=void 0,w.preventDefault();else if(h.value){const R=Xe(w,h.value,void 0,{itemsArray:k,loop:!1,dir:p.value});R&&(h.value=R),w.preventDefault()}break}case"ArrowUp":case"ArrowDown":{h.value&&w.preventDefault();break}default:h.value=void 0}},selectedElement:h,isInvalidInput:b,addOnPaste:r,addOnBlur:c,addOnTab:f,dir:p,disabled:l,delimiter:i,max:s,id:u,displayValue:t.displayValue}),(w,B)=>(e.openBlock(),e.createBlock(e.unref(Ot),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(g),dir:e.unref(p),as:w.as,"as-child":w.asChild,"data-invalid":b.value?"":void 0,"data-disabled":e.unref(l)?"":void 0,"data-focused":e.unref(C)?"":void 0},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default",{modelValue:e.unref(m)}),e.unref(y)&&w.name?(e.openBlock(),e.createBlock(e.unref(uo),{key:0,name:w.name,value:e.unref(m),required:w.required,disabled:e.unref(l)},null,8,["name","value","required","disabled"])):e.createCommentVNode("",!0)]),_:3},8,["dir","as","as-child","data-invalid","data-disabled","data-focused"])]),_:3}))}}),mh=e.defineComponent({__name:"TagsInputInput",props:{placeholder:{},autoFocus:{type:Boolean},maxLength:{},asChild:{type:Boolean},as:{default:"input"}},setup(o){const n=o,t=Pn(),{forwardRef:a,currentElement:r}=_();function l(c){if(!t.addOnBlur.value)return;const f=c.target;if(!f.value)return;t.onAddValue(f.value)&&(f.value="")}function i(c){t.addOnTab.value&&s(c)}async function s(c){if(await e.nextTick(),c.defaultPrevented)return;const f=c.target;if(!f.value)return;t.onAddValue(f.value)&&(f.value=""),c.preventDefault()}function u(c){t.isInvalidInput.value=!1;const f=t.delimiter.value;if(f===c.data){const p=c.target;p.value=p.value.replaceAll(f,""),t.onAddValue(p.value)&&(p.value="")}}function d(c){if(t.addOnPaste.value){c.preventDefault();const f=c.clipboardData;if(!f)return;const p=f.getData("text");t.delimiter.value?p.split(t.delimiter.value).forEach(g=>{t.onAddValue(g)}):t.onAddValue(p)}}return e.onMounted(()=>{const c=r.value.nodeName==="INPUT"?r.value:r.value.querySelector("input");c&&setTimeout(()=>{n.autoFocus&&(c==null||c.focus())},1)}),(c,f)=>{var p;return e.openBlock(),e.createBlock(e.unref(P),{id:(p=e.unref(t).id)==null?void 0:p.value,ref:e.unref(a),type:"text",autocomplete:"off",autocorrect:"off",autocapitalize:"off",as:c.as,"as-child":c.asChild,maxlength:c.maxLength,placeholder:c.placeholder,disabled:e.unref(t).disabled.value,"data-invalid":e.unref(t).isInvalidInput.value?"":void 0,onInput:u,onKeydown:[e.withKeys(s,["enter"]),e.withKeys(i,["tab"]),e.unref(t).onInputKeydown],onBlur:l,onPaste:d},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["id","as","as-child","maxlength","placeholder","disabled","data-invalid","onKeydown"])}}}),[Vl,vh]=K("TagsInputItem"),hh=e.defineComponent({__name:"TagsInputItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,{value:t}=e.toRefs(n),a=Pn(),{forwardRef:r,currentElement:l}=_(),i=e.computed(()=>a.selectedElement.value===l.value),s=e.computed(()=>n.disabled||a.disabled.value),u=vh({value:t,isSelected:i,disabled:s,textId:"",displayValue:e.computed(()=>a.displayValue(t.value))});return(d,c)=>(e.openBlock(),e.createBlock(e.unref(yt),null,{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(r),as:d.as,"as-child":d.asChild,"aria-labelledby":e.unref(u).textId,"aria-current":i.value,"data-disabled":s.value?"":void 0,"data-state":i.value?"active":"inactive"},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["as","as-child","aria-labelledby","aria-current","data-disabled","data-state"])]),_:3}))}}),gh=e.defineComponent({__name:"TagsInputItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o,t=Vl();return _(),t.textId||(t.textId=J(void 0,"radix-vue-tags-input-item-text")),(a,r)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{id:e.unref(t).textId}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(t).displayValue.value),1)])]),_:3},16,["id"]))}}),yh=e.defineComponent({__name:"TagsInputItemDelete",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=Pn(),a=Vl(),r=e.computed(()=>{var i;return((i=a.disabled)==null?void 0:i.value)||t.disabled.value});function l(){if(r.value)return;const i=t.modelValue.value.findIndex(s=>s===a.value.value);t.onRemoveValue(i)}return(i,s)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps({tabindex:"-1"},n,{"aria-labelledby":e.unref(a).textId,"aria-current":e.unref(a).isSelected.value,"data-state":e.unref(a).isSelected.value?"active":"inactive","data-disabled":r.value?"":void 0,type:i.as==="button"?"button":void 0,onClick:l}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["aria-labelledby","aria-current","data-state","data-disabled","type"]))}}),Ch=e.defineComponent({__name:"TagsInputClear",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o;_();const t=Pn();function a(){t.disabled.value||(t.modelValue.value=[])}return(r,l)=>(e.openBlock(),e.createBlock(e.unref(P),e.mergeProps(n,{type:r.as==="button"?"button":void 0,"data-disabled":e.unref(t).disabled.value?"":void 0,onClick:a}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["type","data-disabled"]))}}),[En,bh]=K("ToastProvider"),wh=e.defineComponent({inheritAttrs:!1,__name:"ToastProvider",props:{label:{default:"Notification"},duration:{default:5e3},swipeDirection:{default:"right"},swipeThreshold:{default:50}},setup(o){const n=o,{label:t,duration:a,swipeDirection:r,swipeThreshold:l}=e.toRefs(n),i=e.ref(),s=e.ref(0),u=e.ref(!1),d=e.ref(!1);if(n.label&&typeof n.label=="string"&&!n.label.trim()){const c="Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.";throw new Error(c)}return bh({label:t,duration:a,swipeDirection:r,swipeThreshold:l,toastCount:s,viewport:i,onViewportChange(c){i.value=c},onToastAdd(){s.value++},onToastRemove(){s.value--},isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:d}),(c,f)=>e.renderSlot(c.$slots,"default")}}),xh="toast.swipeStart",Bh="toast.swipeMove",kh="toast.swipeCancel",_h="toast.swipeEnd",qn="toast.viewportPause",Yn="toast.viewportResume";function Yt(o,n,t){const a=t.originalEvent.currentTarget,r=new CustomEvent(o,{bubbles:!1,cancelable:!0,detail:t});n&&a.addEventListener(o,n,{once:!0}),a.dispatchEvent(r)}function va(o,n,t=0){const a=Math.abs(o.x),r=Math.abs(o.y),l=a>r;return n==="left"||n==="right"?l&&a>t:!l&&r>t}function Sh(o){return o.nodeType===o.ELEMENT_NODE}function Al(o){const n=[];return Array.from(o.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&n.push(a.textContent),Sh(a)){const r=a.ariaHidden||a.hidden||a.style.display==="none",l=a.dataset.radixToastAnnounceExclude==="";if(!r)if(l){const i=a.dataset.radixToastAnnounceAlt;i&&n.push(i)}else n.push(...Al(a))}}),n}const Ph=e.defineComponent({__name:"ToastAnnounce",setup(o){const n=En(),t=xi(1e3),a=e.ref(!1);return Da(()=>{a.value=!0}),(r,l)=>e.unref(t)||a.value?(e.openBlock(),e.createBlock(e.unref(Qe),{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n).label.value)+" ",1),e.renderSlot(r.$slots,"default")]),_:3})):e.createCommentVNode("",!0)}}),[Eh,Dh]=K("ToastRoot"),Rh=e.defineComponent({inheritAttrs:!1,__name:"ToastRootImpl",props:{type:{},open:{type:Boolean,default:!1},duration:{},asChild:{type:Boolean},as:{default:"li"}},emits:["close","escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r,currentElement:l}=_(),i=En(),s=e.ref(null),u=e.ref(null),d=e.computed(()=>typeof t.duration=="number"?t.duration:i.duration.value),c=e.ref(0),f=e.ref(d.value),p=e.ref(0),m=e.ref(d.value),g=Da(()=>{const x=new Date().getTime()-c.value;m.value=Math.max(f.value-x,0)},{fpsLimit:60});function v(x){x<=0||x===Number.POSITIVE_INFINITY||Ce&&(window.clearTimeout(p.value),c.value=new Date().getTime(),p.value=window.setTimeout(C,x))}function C(){var h,b;((h=l.value)==null?void 0:h.contains(document.activeElement))&&((b=i.viewport.value)==null||b.focus()),i.isClosePausedRef.value=!1,a("close")}const y=e.computed(()=>l.value?Al(l.value):null);if(t.type&&!["foreground","background"].includes(t.type)){const x="Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.";throw new Error(x)}return e.watchEffect(x=>{const h=i.viewport.value;if(h){const b=()=>{v(f.value),g.resume(),a("resume")},w=()=>{const B=new Date().getTime()-c.value;f.value=f.value-B,window.clearTimeout(p.value),g.pause(),a("pause")};return h.addEventListener(qn,w),h.addEventListener(Yn,b),()=>{h.removeEventListener(qn,w),h.removeEventListener(Yn,b)}}}),e.watch(()=>[t.open,d.value],()=>{f.value=d.value,t.open&&!i.isClosePausedRef.value&&v(d.value)},{immediate:!0}),Qn("Escape",x=>{a("escapeKeyDown",x),x.defaultPrevented||(i.isFocusedToastEscapeKeyDownRef.value=!0,C())}),e.onMounted(()=>{i.onToastAdd()}),e.onUnmounted(()=>{i.onToastRemove()}),Dh({onClose:C}),(x,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.value?(e.openBlock(),e.createBlock(Ph,{key:0,role:"status","aria-live":x.type==="foreground"?"assertive":"polite","aria-atomic":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.value),1)]),_:1},8,["aria-live"])):e.createCommentVNode("",!0),e.unref(i).viewport.value?(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:e.unref(i).viewport.value},[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(r),role:"status","aria-live":"off","aria-atomic":"",tabindex:"0","data-radix-vue-collection-item":""},x.$attrs,{as:x.as,"as-child":x.asChild,"data-state":x.open?"open":"closed","data-swipe-direction":e.unref(i).swipeDirection.value,style:{userSelect:"none",touchAction:"none"},onPointerdown:h[0]||(h[0]=e.withModifiers(b=>{s.value={x:b.clientX,y:b.clientY}},["left"])),onPointermove:h[1]||(h[1]=b=>{if(!s.value)return;const w=b.clientX-s.value.x,B=b.clientY-s.value.y,k=!!u.value,E=["left","right"].includes(e.unref(i).swipeDirection.value),D=["left","up"].includes(e.unref(i).swipeDirection.value)?Math.min:Math.max,S=E?D(0,w):0,R=E?0:D(0,B),M=b.pointerType==="touch"?10:2,A={x:S,y:R},H={originalEvent:b,delta:A};k?(u.value=A,e.unref(Yt)(e.unref(Bh),O=>a("swipeMove",O),H)):e.unref(va)(A,e.unref(i).swipeDirection.value,M)?(u.value=A,e.unref(Yt)(e.unref(xh),O=>a("swipeStart",O),H),b.target.setPointerCapture(b.pointerId)):(Math.abs(w)>M||Math.abs(B)>M)&&(s.value=null)}),onPointerup:h[2]||(h[2]=b=>{const w=u.value,B=b.target;if(B.hasPointerCapture(b.pointerId)&&B.releasePointerCapture(b.pointerId),u.value=null,s.value=null,w){const k=b.currentTarget,E={originalEvent:b,delta:w};e.unref(va)(w,e.unref(i).swipeDirection.value,e.unref(i).swipeThreshold.value)?e.unref(Yt)(e.unref(_h),D=>a("swipeEnd",D),E):e.unref(Yt)(e.unref(kh),D=>a("swipeCancel",D),E),k==null||k.addEventListener("click",D=>D.preventDefault(),{once:!0})}})}),{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default",{remaining:m.value,duration:d.value})]),_:3},16,["as","as-child","data-state","data-swipe-direction"])],8,["to"])):e.createCommentVNode("",!0)],64))}}),Th=e.defineComponent({__name:"ToastRoot",props:{defaultOpen:{type:Boolean,default:!0},forceMount:{type:Boolean},type:{default:"foreground"},open:{type:Boolean,default:void 0},duration:{},asChild:{type:Boolean},as:{default:"li"}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(o,{emit:n}){const t=o,a=n,{forwardRef:r}=_(),l=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0});return(i,s)=>(e.openBlock(),e.createBlock(e.unref(re),{present:i.forceMount||e.unref(l)},{default:e.withCtx(()=>[e.createVNode(Rh,e.mergeProps({ref:e.unref(r),open:e.unref(l),type:i.type,as:i.as,"as-child":i.asChild,duration:i.duration},i.$attrs,{onClose:s[0]||(s[0]=u=>l.value=!1),onPause:s[1]||(s[1]=u=>a("pause")),onResume:s[2]||(s[2]=u=>a("resume")),onEscapeKeyDown:s[3]||(s[3]=u=>a("escapeKeyDown",u)),onSwipeStart:s[4]||(s[4]=u=>{a("swipeStart",u),u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:s[5]||(s[5]=u=>{const{x:d,y:c}=u.detail.delta,f=u.currentTarget;f.setAttribute("data-swipe","move"),f.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),f.style.setProperty("--radix-toast-swipe-move-y",`${c}px`)}),onSwipeCancel:s[6]||(s[6]=u=>{const d=u.currentTarget;d.setAttribute("data-swipe","cancel"),d.style.removeProperty("--radix-toast-swipe-move-x"),d.style.removeProperty("--radix-toast-swipe-move-y"),d.style.removeProperty("--radix-toast-swipe-end-x"),d.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:s[7]||(s[7]=u=>{const{x:d,y:c}=u.detail.delta,f=u.currentTarget;f.setAttribute("data-swipe","end"),f.style.removeProperty("--radix-toast-swipe-move-x"),f.style.removeProperty("--radix-toast-swipe-move-y"),f.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),f.style.setProperty("--radix-toast-swipe-end-y",`${c}px`),l.value=!1})}),{default:e.withCtx(({remaining:u,duration:d})=>[e.renderSlot(i.$slots,"default",{remaining:u,duration:d,open:e.unref(l)})]),_:3},16,["open","type","as","as-child","duration"])]),_:3},8,["present"]))}}),$h=e.defineComponent({__name:"ToastPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Ml=e.defineComponent({__name:"ToastAnnounceExclude",props:{altText:{},asChild:{type:Boolean},as:{}},setup(o){return(n,t)=>(e.openBlock(),e.createBlock(e.unref(P),{as:n.as,"as-child":n.asChild,"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n.altText||void 0},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-radix-toast-announce-alt"]))}}),Ol=e.defineComponent({__name:"ToastClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Eh(),{forwardRef:a}=_();return(r,l)=>(e.openBlock(),e.createBlock(Ml,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps(n,{ref:e.unref(a),type:r.as==="button"?"button":void 0,onClick:l[0]||(l[0]=i=>e.unref(t).onClose())}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["type"])]),_:3}))}}),Ih=e.defineComponent({__name:"ToastAction",props:{altText:{},asChild:{type:Boolean},as:{}},setup(o){if(!o.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");const{forwardRef:t}=_();return(a,r)=>a.altText?(e.openBlock(),e.createBlock(Ml,{key:0,"alt-text":a.altText,"as-child":""},{default:e.withCtx(()=>[e.createVNode(Ol,{ref:e.unref(t),as:a.as,"as-child":a.asChild},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["as","as-child"])]),_:3},8,["alt-text"])):e.createCommentVNode("",!0)}}),ha=e.defineComponent({__name:"FocusProxy",emits:["focusFromOutsideViewport"],setup(o,{emit:n}){const t=n,a=En();return(r,l)=>(e.openBlock(),e.createBlock(e.unref(Qe),{"aria-hidden":"true",tabindex:"0",style:{position:"fixed"},onFocus:l[0]||(l[0]=i=>{var d;const s=i.relatedTarget;!((d=e.unref(a).viewport.value)!=null&&d.contains(s))&&t("focusFromOutsideViewport")})},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3}))}}),Vh=e.defineComponent({inheritAttrs:!1,__name:"ToastViewport",props:{hotkey:{default:()=>["F8"]},label:{type:[String,Function],default:"Notifications ({hotkey})"},asChild:{type:Boolean},as:{default:"ol"}},setup(o){const n=o,{hotkey:t,label:a}=e.toRefs(n),{forwardRef:r,currentElement:l}=_(),{createCollection:i}=ce(),s=i(l),u=En(),d=e.computed(()=>u.toastCount.value>0),c=e.ref(),f=e.ref(),p=e.computed(()=>t.value.join("+").replace(/Key/g,"").replace(/Digit/g,""));Qn(t.value,()=>{l.value.focus()}),e.onMounted(()=>{u.onViewportChange(l.value)}),e.watchEffect(g=>{const v=l.value;if(d.value&&v){const C=()=>{if(!u.isClosePausedRef.value){const w=new CustomEvent(qn);v.dispatchEvent(w),u.isClosePausedRef.value=!0}},y=()=>{if(u.isClosePausedRef.value){const w=new CustomEvent(Yn);v.dispatchEvent(w),u.isClosePausedRef.value=!1}},x=w=>{!v.contains(w.relatedTarget)&&y()},h=()=>{v.contains(document.activeElement)||y()},b=w=>{var E,D,S;const B=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!B){const R=document.activeElement,M=w.shiftKey;if(w.target===v&&M){(E=c.value)==null||E.focus();return}const O=m({tabbingDirection:M?"backwards":"forwards"}),L=O.findIndex(V=>V===R);Xt(O.slice(L+1))?w.preventDefault():M?(D=c.value)==null||D.focus():(S=f.value)==null||S.focus()}};v.addEventListener("focusin",C),v.addEventListener("focusout",x),v.addEventListener("pointermove",C),v.addEventListener("pointerleave",h),v.addEventListener("keydown",b),window.addEventListener("blur",C),window.addEventListener("focus",y),g(()=>{v.removeEventListener("focusin",C),v.removeEventListener("focusout",x),v.removeEventListener("pointermove",C),v.removeEventListener("pointerleave",h),v.removeEventListener("keydown",b),window.removeEventListener("blur",C),window.removeEventListener("focus",y)})}});function m({tabbingDirection:g}){const C=s.value.map(y=>{const x=[y,...ro(y)];return g==="forwards"?x:x.reverse()});return(g==="forwards"?C.reverse():C).flat()}return(g,v)=>(e.openBlock(),e.createBlock(e.unref(ps),{role:"region","aria-label":typeof e.unref(a)=="string"?e.unref(a).replace("{hotkey}",p.value):e.unref(a)(p.value),tabindex:"-1",style:e.normalizeStyle({pointerEvents:d.value?void 0:"none"})},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(ha,{key:0,ref:C=>{c.value=e.unref(le)(C)},onFocusFromOutsideViewport:v[0]||(v[0]=()=>{const C=m({tabbingDirection:"forwards"});e.unref(Xt)(C)})},null,512)):e.createCommentVNode("",!0),e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(r),tabindex:"-1",as:g.as,"as-child":g.asChild},g.$attrs),{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},16,["as","as-child"]),d.value?(e.openBlock(),e.createBlock(ha,{key:1,ref:C=>{f.value=e.unref(le)(C)},onFocusFromOutsideViewport:v[1]||(v[1]=()=>{const C=m({tabbingDirection:"backwards"});e.unref(Xt)(C)})},null,512)):e.createCommentVNode("",!0)]),_:3},8,["aria-label","style"]))}}),Ah=e.defineComponent({__name:"ToastTitle",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Mh=e.defineComponent({__name:"ToastDescription",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(P),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Nl=e.defineComponent({__name:"Toggle",props:{defaultValue:{type:Boolean},pressed:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},emits:["update:pressed"],setup(o,{emit:n}){const t=o,a=n;_();const r=W(t,"pressed",a,{defaultValue:t.defaultValue,passive:t.pressed===void 0});function l(){r.value=!r.value}const i=e.computed(()=>r.value?"on":"off");return(s,u)=>(e.openBlock(),e.createBlock(e.unref(P),{type:s.as==="button"?"button":void 0,"as-child":t.asChild,as:s.as,"aria-pressed":e.unref(r),"data-state":i.value,"data-disabled":s.disabled?"":void 0,disabled:s.disabled,onClick:l},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{pressed:e.unref(r)})]),_:3},8,["type","as-child","as","aria-pressed","data-state","data-disabled","disabled"]))}}),[Oh,Nh]=K("ToggleGroupRoot"),Fl=e.defineComponent({__name:"ToggleGroupRoot",props:{rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},orientation:{},dir:{},loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,{loop:r,rovingFocus:l,disabled:i,dir:s}=e.toRefs(t),u=ee(s),{forwardRef:d}=_(),{modelValue:c,changeModelValue:f,isSingle:p}=La(t,a);return Nh({isSingle:p,modelValue:c,changeModelValue:f,dir:u,orientation:t.orientation,loop:r,rovingFocus:l,disabled:i}),(m,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l)?e.unref(tt):e.unref(P)),{"as-child":"",orientation:e.unref(l)?m.orientation:void 0,dir:e.unref(u),loop:e.unref(l)?e.unref(r):void 0},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(d),role:"group","as-child":m.asChild,as:m.as},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{modelValue:e.unref(c)})]),_:3},8,["as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),zl=e.defineComponent({__name:"ToggleGroupItem",props:{value:{},defaultValue:{type:Boolean},pressed:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Oh(),a=e.computed(()=>{var s;return((s=t.disabled)==null?void 0:s.value)||n.disabled}),r=e.computed(()=>{var s;return(s=t.modelValue.value)==null?void 0:s.includes(n.value)}),l=e.computed(()=>{var s;return t.isSingle.value?t.modelValue.value===n.value:(s=t.modelValue.value)==null?void 0:s.includes(n.value)}),{forwardRef:i}=_();return(s,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t).rovingFocus.value?e.unref(nt):e.unref(P)),{"as-child":"",focusable:!a.value,active:r.value},{default:e.withCtx(()=>[e.createVNode(e.unref(Nl),e.mergeProps(n,{ref:e.unref(i),disabled:a.value,pressed:l.value,"onUpdate:pressed":u[0]||(u[0]=d=>e.unref(t).changeModelValue(s.value))}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["disabled","pressed"])]),_:3},8,["focusable","active"]))}}),[Ll,Fh]=K("ToolbarRoot"),zh=e.defineComponent({__name:"ToolbarRoot",props:{orientation:{default:"horizontal"},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,{orientation:t,dir:a}=e.toRefs(n),r=ee(a),{forwardRef:l}=_();return Fh({orientation:t,dir:r}),(i,s)=>(e.openBlock(),e.createBlock(e.unref(tt),{"as-child":"",orientation:e.unref(t),dir:e.unref(r),loop:i.loop},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{ref:e.unref(l),role:"toolbar","aria-orientation":e.unref(t),"as-child":i.asChild,as:i.as},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),Kl=e.defineComponent({__name:"ToolbarButton",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,{forwardRef:t}=_();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(nt),{"as-child":"",focusable:!a.disabled},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(t),type:a.as==="button"?"button":void 0},n),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),Lh=e.defineComponent({__name:"ToolbarLink",props:{asChild:{type:Boolean},as:{default:"a"}},setup(o){const n=o,{forwardRef:t}=_();return(a,r)=>(e.openBlock(),e.createBlock(e.unref(nt),{"as-child":"",focusable:""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps(n,{ref:e.unref(t),onKeydown:r[0]||(r[0]=l=>{var i;l.key===" "&&((i=l.currentTarget)==null||i.click())})}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)]),_:3}))}}),Kh=e.defineComponent({__name:"ToolbarToggleGroup",props:{rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=n,r=Ll(),l=ie(a);return _(),(i,s)=>(e.openBlock(),e.createBlock(e.unref(Fl),e.mergeProps({...t,...e.unref(l)},{"data-orientation":e.unref(r).orientation.value,dir:e.unref(r).dir.value,"roving-focus":!1}),{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},16,["data-orientation","dir"]))}}),Hh=e.defineComponent({__name:"ToolbarToggleItem",props:{value:{},defaultValue:{type:Boolean},pressed:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_();return(a,r)=>(e.openBlock(),e.createBlock(Kl,{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(zl),e.mergeProps(n,{ref:e.unref(t)}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)]),_:3}))}}),Wh=e.defineComponent({__name:"ToolbarSeparator",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=Ll();return _(),(a,r)=>(e.openBlock(),e.createBlock(rl,{orientation:e.unref(t).orientation.value,"as-child":n.asChild,as:a.as},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),Hl="tooltip.open",[Yo,jh]=K("TooltipProvider"),Uh=e.defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(o){const n=o,{delayDuration:t,skipDelayDuration:a,disableHoverableContent:r,disableClosingTrigger:l,ignoreNonKeyboardFocus:i,disabled:s}=e.toRefs(n);_();const u=e.ref(!0),d=e.ref(!1),{start:c,stop:f}=Jn(()=>{u.value=!0},a,{immediate:!1});return jh({isOpenDelayed:u,delayDuration:t,onOpen(){f(),u.value=!1},onClose(){c()},isPointerInTransitRef:d,disableHoverableContent:r,disableClosingTrigger:l,disabled:s,ignoreNonKeyboardFocus:i}),(p,m)=>e.renderSlot(p.$slots,"default")}}),[Dn,Gh]=K("TooltipRoot"),qh=e.defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(o,{emit:n}){const t=o,a=n;_();const r=Yo(),l=e.computed(()=>t.disableHoverableContent??r.disableHoverableContent.value),i=e.computed(()=>t.disableClosingTrigger??r.disableClosingTrigger.value),s=e.computed(()=>t.disabled??r.disabled.value),u=e.computed(()=>t.delayDuration??r.delayDuration.value),d=e.computed(()=>t.ignoreNonKeyboardFocus??r.ignoreNonKeyboardFocus.value),c=W(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0});e.watch(c,h=>{r.onClose&&(h?(r.onOpen(),document.dispatchEvent(new CustomEvent(Hl))):r.onClose())});const f=e.ref(!1),p=e.ref(),m=e.computed(()=>c.value?f.value?"delayed-open":"instant-open":"closed"),{start:g,stop:v}=Jn(()=>{f.value=!0,c.value=!0},u,{immediate:!1});function C(){v(),f.value=!1,c.value=!0}function y(){v(),c.value=!1}function x(){g()}return Gh({contentId:"",open:c,stateAttribute:m,trigger:p,onTriggerChange(h){p.value=h},onTriggerEnter(){r.isOpenDelayed.value?x():C()},onTriggerLeave(){l.value?y():v()},onOpen:C,onClose:y,disableHoverableContent:l,disableClosingTrigger:i,disabled:s,ignoreNonKeyboardFocus:d}),(h,b)=>(e.openBlock(),e.createBlock(e.unref(Ze),null,{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default",{open:e.unref(c)})]),_:3}))}}),Yh=e.defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,t=Dn(),a=Yo();t.contentId||(t.contentId=J(void 0,"radix-vue-tooltip-content"));const{forwardRef:r,currentElement:l}=_(),i=e.ref(!1),s=e.ref(!1),u=e.computed(()=>t.disabled.value?{}:{click:v,focus:m,pointermove:f,pointerleave:p,pointerdown:c,blur:g});e.onMounted(()=>{t.onTriggerChange(l.value)});function d(){setTimeout(()=>{i.value=!1},1)}function c(){i.value=!0,document.addEventListener("pointerup",d,{once:!0})}function f(C){C.pointerType!=="touch"&&!s.value&&!a.isPointerInTransitRef.value&&(t.onTriggerEnter(),s.value=!0)}function p(){t.onTriggerLeave(),s.value=!1}function m(C){var y,x;i.value||t.ignoreNonKeyboardFocus.value&&!((x=(y=C.target).matches)!=null&&x.call(y,":focus-visible"))||t.onOpen()}function g(){t.onClose()}function v(){t.disableClosingTrigger.value||t.onClose()}return(C,y)=>(e.openBlock(),e.createBlock(e.unref(Je),{"as-child":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps({ref:e.unref(r),"aria-describedby":e.unref(t).open.value?e.unref(t).contentId:void 0,"data-state":e.unref(t).stateAttribute.value,as:C.as,"as-child":n.asChild,"data-grace-area-trigger":""},e.toHandlers(u.value)),{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),Wl=e.defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(o,{emit:n}){const t=o,a=n,r=Dn(),{forwardRef:l}=_(),i=e.useSlots(),s=e.computed(()=>{var c;return(c=i.default)==null?void 0:c.call(i)}),u=e.computed(()=>{var p;if(t.ariaLabel)return t.ariaLabel;let c="";function f(m){typeof m.children=="string"&&m.type!==e.Comment?c+=m.children:Array.isArray(m.children)&&m.children.forEach(g=>f(g))}return(p=s.value)==null||p.forEach(m=>f(m)),c}),d=e.computed(()=>{const{ariaLabel:c,...f}=t;return f});return e.onMounted(()=>{pe(window,"scroll",c=>{const f=c.target;f!=null&&f.contains(r.trigger.value)&&r.onClose()}),pe(window,Hl,r.onClose)}),(c,f)=>(e.openBlock(),e.createBlock(e.unref(ze),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:f[0]||(f[0]=p=>a("escapeKeyDown",p)),onPointerDownOutside:f[1]||(f[1]=p=>{var m;e.unref(r).disableClosingTrigger.value&&((m=e.unref(r).trigger.value)!=null&&m.contains(p.target))&&p.preventDefault(),a("pointerDownOutside",p)}),onFocusOutside:f[2]||(f[2]=e.withModifiers(()=>{},["prevent"])),onDismiss:f[3]||(f[3]=p=>e.unref(r).onClose())},{default:e.withCtx(()=>[e.createVNode(e.unref(qe),e.mergeProps({ref:e.unref(l),"data-state":e.unref(r).stateAttribute.value},{...c.$attrs,...d.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default"),e.createVNode(e.unref(Qe),{id:e.unref(r).contentId,role:"tooltip"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Xh=e.defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(o){const t=Fe(o),{forwardRef:a,currentElement:r}=_(),{trigger:l,onClose:i}=Dn(),s=Yo(),{isPointerInTransit:u,onPointerExit:d}=Ia(l,r);return s.isPointerInTransitRef=u,d(()=>{i()}),(c,f)=>(e.openBlock(),e.createBlock(Wl,e.mergeProps({ref:e.unref(a)},e.unref(t)),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16))}}),Zh=e.defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(o,{emit:n}){const t=o,a=n,r=Dn(),l=ne(t,a),{forwardRef:i}=_();return(s,u)=>(e.openBlock(),e.createBlock(e.unref(re),{present:s.forceMount||e.unref(r).open.value},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(r).disableHoverableContent.value?Wl:Xh),e.mergeProps({ref:e.unref(i)},e.unref(l)),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Jh=e.defineComponent({__name:"TooltipArrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(o){const n=o;return _(),(t,a)=>(e.openBlock(),e.createBlock(e.unref(gt),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}}),Qh=e.defineComponent({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(o){const n=o;return(t,a)=>(e.openBlock(),e.createBlock(e.unref(Ee),e.normalizeProps(e.guardReactiveProps(n)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16))}});function Xo(o){return o.reduce((n,t)=>(n.push(t),t.children&&n.push(...Xo(t.children)),n),[])}const[jl,eg]=K("TreeRoot"),tg=e.defineComponent({__name:"TreeRoot",props:{modelValue:{},defaultValue:{},items:{},expanded:{},defaultExpanded:{},getKey:{},getChildren:{type:Function,default:o=>o.children},selectionBehavior:{default:"toggle"},multiple:{type:Boolean},dir:{},disabled:{type:Boolean},propagateSelect:{type:Boolean},asChild:{type:Boolean},as:{default:"ul"}},emits:["update:modelValue","update:expanded"],setup(o,{emit:n}){const t=o,a=n,{items:r,multiple:l,disabled:i,propagateSelect:s,dir:u}=e.toRefs(t),{handleTypeaheadSearch:d}=At(),c=ee(u),f=e.ref(),p=e.ref(!1),m=Pt(),g=W(t,"modelValue",a,{defaultValue:t.defaultValue??(l.value?[]:void 0),passive:t.modelValue===void 0,deep:!0}),v=W(t,"expanded",a,{defaultValue:t.defaultExpanded??[],passive:t.expanded===void 0,deep:!0}),{onSelectItem:C,handleMultipleReplace:y}=Xi(g,t),x=e.computed(()=>l.value&&Array.isArray(g.value)?g.value.map(k=>t.getKey(k)):[t.getKey(g.value??{})]);function h(k,E=1,D){return k.reduce((S,R,M)=>{const A=t.getKey(R),H=t.getChildren(R),O=v.value.includes(A),L={_id:A,value:R,index:M,level:E,parentItem:D,hasChildren:!!H,bind:{value:R,level:E,"aria-setsize":k.length,"aria-posinset":M+1}};return S.push(L),H&&O&&S.push(...h(H,E+1,R)),S},[])}const b=e.computed(()=>{const k=t.items;return v.value.map(E=>E),h(k??[])});function w(k){var E;if(p.value)m.trigger(k);else{const D=(E=f.value)==null?void 0:E.getItems().map(S=>S.ref);d(k.key,D)}}function B(k){if(p.value)return;const E=pn[k.key];e.nextTick(()=>{var D;y(E,document.activeElement,(D=f.value)==null?void 0:D.getItems,b.value.map(S=>S.value))})}return eg({modelValue:g,selectedKeys:x,onSelect:k=>{var S;const E=R=>t.getKey(R??{})===t.getKey(k),D=t.multiple&&Array.isArray(g.value)?((S=g.value)==null?void 0:S.findIndex(E))!==-1:void 0;if(C(k,E),t.propagateSelect&&t.multiple&&Array.isArray(g.value)){const R=Xo(t.getChildren(k)??[]);D?g.value=[...g.value].filter(M=>!R.some(A=>t.getKey(M??{})===t.getKey(A))):g.value=[...g.value,...R]}},expanded:v,onToggle(k){if(!(k?t.getChildren(k):void 0))return;const D=t.getKey(k)??k;v.value.includes(D)?v.value=v.value.filter(S=>S!==D):v.value.push(D)},getKey:t.getKey,getChildren:t.getChildren,items:r,expandedItems:b,disabled:i,multiple:l,dir:c,propagateSelect:s,isVirtual:p,virtualKeydownHook:m,handleMultipleReplace:y}),(k,E)=>(e.openBlock(),e.createBlock(e.unref(tt),{ref_key:"rovingFocusGroupRef",ref:f,"as-child":"",orientation:"vertical",dir:e.unref(c)},{default:e.withCtx(()=>[e.createVNode(e.unref(P),{role:"tree",as:k.as,"as-child":k.asChild,"aria-multiselectable":e.unref(l)?!0:void 0,onKeydown:[w,e.withKeys(e.withModifiers(B,["shift"]),["up","down"])]},{default:e.withCtx(()=>[e.renderSlot(k.$slots,"default",{flattenItems:b.value,modelValue:e.unref(g),expanded:e.unref(v)})]),_:3},8,["as","as-child","aria-multiselectable","onKeydown"])]),_:3},8,["dir"]))}}),ng="tree.select",og="tree.toggle",ag=e.defineComponent({inheritAttrs:!1,__name:"TreeItem",props:{value:{},level:{},asChild:{type:Boolean},as:{default:"li"}},emits:["select","toggle"],setup(o,{expose:n,emit:t}){const a=o,r=t,l=jl(),{getItems:i}=Ct(),s=e.computed(()=>!!l.getChildren(a.value)),u=e.computed(()=>{const y=l.getKey(a.value);return l.expanded.value.includes(y)}),d=e.computed(()=>{const y=l.getKey(a.value);return l.selectedKeys.value.includes(y)}),c=e.computed(()=>{if(l.propagateSelect.value&&d.value&&s.value&&Array.isArray(l.modelValue.value))return!Xo(l.getChildren(a.value)||[]).every(x=>l.modelValue.value.find(h=>l.getKey(h)===l.getKey(x)))});function f(y){if(s.value)if(u.value){const x=i().map(k=>k.ref),h=document.activeElement,b=x.indexOf(h),B=[...x].slice(b).find(k=>Number(k.getAttribute("data-indent"))===a.level+1);B&&B.focus()}else C(y)}function p(y){if(u.value)C(y);else{const x=i().map(k=>k.ref),h=document.activeElement,b=x.indexOf(h),B=[...x].slice(0,b).reverse().find(k=>Number(k.getAttribute("data-indent"))===a.level-1);B&&B.focus()}}async function m(y){r("select",y),!(y!=null&&y.defaultPrevented)&&l.onSelect(a.value)}async function g(y){r("toggle",y),!(y!=null&&y.defaultPrevented)&&l.onToggle(a.value)}async function v(y){if(!y)return;const x={originalEvent:y,value:a.value,isExpanded:u.value,isSelected:d.value};dt(ng,m,x)}async function C(y){if(!y)return;const x={originalEvent:y,value:a.value,isExpanded:u.value,isSelected:d.value};dt(og,g,x)}return n({isExpanded:u,isSelected:d,isIndeterminate:c,handleToggle:()=>l.onToggle(a.value),handleSelect:()=>l.onSelect(a.value)}),(y,x)=>(e.openBlock(),e.createBlock(e.unref(nt),{"as-child":"",value:y.value,"allow-shift-key":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P),e.mergeProps(y.$attrs,{role:"treeitem",as:y.as,"as-child":y.asChild,"aria-selected":d.value,"aria-expanded":s.value?u.value:void 0,"aria-level":y.level,"data-indent":y.level,"data-selected":d.value?"":void 0,"data-expanded":u.value?"":void 0,onKeydown:[e.withKeys(e.withModifiers(v,["self","prevent"]),["enter","space"]),x[0]||(x[0]=e.withKeys(e.withModifiers(h=>e.unref(l).dir.value==="ltr"?f(h):p(h),["prevent"]),["right"])),x[1]||(x[1]=e.withKeys(e.withModifiers(h=>e.unref(l).dir.value==="ltr"?p(h):f(h),["prevent"]),["left"]))],onClick:x[2]||(x[2]=e.withModifiers(h=>{v(h),C(h)},["stop"]))}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{isExpanded:u.value,isSelected:d.value,isIndeterminate:c.value,handleSelect:()=>e.unref(l).onSelect(y.value),handleToggle:()=>e.unref(l).onToggle(y.value)})]),_:3},16,["as","as-child","aria-selected","aria-expanded","aria-level","data-indent","data-selected","data-expanded","onKeydown"])]),_:3},8,["value"]))}}),rg=e.defineComponent({__name:"TreeVirtualizer",props:{estimateSize:{},textContent:{type:Function}},setup(o){const n=o,t=e.useSlots(),a=jl(),r=Ra(),{getItems:l}=Ct(),i=Ye("",1e3),s=e.computed(()=>{const p=m=>n.textContent?n.textContent(m):m.toString().toLowerCase();return a.expandedItems.value.map((m,g)=>({index:g,textContent:p(m.value)}))});a.isVirtual.value=!0;const u=e.computed(()=>{const p=r.value;if(p){const m=window.getComputedStyle(p);return{start:Number.parseFloat(m.paddingBlockStart||m.paddingTop),end:Number.parseFloat(m.paddingBlockEnd||m.paddingBottom)}}else return{start:0,end:0}}),d=$r({get scrollPaddingStart(){return u.value.start},get scrollPaddingEnd(){return u.value.end},get count(){return a.expandedItems.value.length??0},get horizontal(){return!1},getItemKey(p){return p+a.getKey(a.expandedItems.value[p].value)},estimateSize(){return n.estimateSize??28},getScrollElement(){return r.value},overscan:12}),c=e.computed(()=>d.value.getVirtualItems().map(p=>({item:p,is:e.cloneVNode(t.default({item:a.expandedItems.value[p.index],virtualizer:d.value,virtualItem:p})[0],{"data-index":p.index,style:{position:"absolute",top:0,left:0,transform:`translateY(${p.start}px)`,overflowAnchor:"none"}})})));function f(p){d.value.scrollToIndex(p,{align:"start"}),requestAnimationFrame(()=>{const m=r.value.querySelector(`[data-index="${p}"]`);m instanceof HTMLElement&&m.focus()})}return a.virtualKeydownHook.on(p=>{var C;const m=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!m)return;const v=pn[p.key];if(["first","last"].includes(v)){p.preventDefault();const y=v==="first"?0:a.expandedItems.value.length-1;d.value.scrollToIndex(y),requestAnimationFrame(()=>{const x=l();(v==="first"?x[0]:x[x.length-1]).ref.focus()})}else if(v==="prev"&&p.key!=="ArrowUp"){const y=document.activeElement,x=Number(y.getAttribute("data-index")),h=Number(y.getAttribute("data-indent")),w=a.expandedItems.value.slice(0,x).map((B,k)=>({...B,index:k})).reverse().find(B=>B.level===h-1);w&&f(w.index)}else if(!v&&!m){i.value+=p.key;const y=Number((C=document.activeElement)==null?void 0:C.getAttribute("data-index")),x=s.value[y].textContent,h=s.value.map(B=>B.textContent),b=oo(h,i.value,x),w=s.value.find(B=>B.textContent===b);w&&f(w.index)}e.nextTick(()=>{p.shiftKey&&v&&a.handleMultipleReplace(v,document.activeElement,l,a.expandedItems.value.map(y=>y.value))})}),(p,m)=>(e.openBlock(),e.createElementBlock("div",{"data-radix-vue-virtualizer":"",style:e.normalizeStyle({position:"relative",width:"100%",height:`${e.unref(d).getTotalSize()}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,({is:g,item:v})=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g),{key:v.key}))),128))],4))}}),lg=e.defineComponent({__name:"Viewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(o){const n=o,{forwardRef:t}=_(),{nonce:a}=e.toRefs(n),r=cn(a);return(l,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(P),e.mergeProps({...l.$attrs,...n},{ref:e.unref(t),"data-radix-viewport":"",role:"presentation",style:{position:"relative",flex:1,overflow:"auto"}}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16),e.createVNode(e.unref(P),{as:"style",nonce:e.unref(r)},{default:e.withCtx(()=>[e.createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}});exports.AccordionContent=ls;exports.AccordionHeader=is;exports.AccordionItem=rs;exports.AccordionRoot=os;exports.AccordionTrigger=ss;exports.AlertDialogAction=Hs;exports.AlertDialogCancel=zs;exports.AlertDialogContent=Ns;exports.AlertDialogDescription=Ks;exports.AlertDialogOverlay=Fs;exports.AlertDialogPortal=As;exports.AlertDialogRoot=Is;exports.AlertDialogTitle=Ls;exports.AlertDialogTrigger=Vs;exports.AspectRatio=Ws;exports.AvatarFallback=Ys;exports.AvatarImage=qs;exports.AvatarRoot=Us;exports.CalendarCell=rr;exports.CalendarCellTrigger=fr;exports.CalendarGrid=ar;exports.CalendarGridBody=dr;exports.CalendarGridHead=ur;exports.CalendarGridRow=cr;exports.CalendarHeadCell=lr;exports.CalendarHeader=nr;exports.CalendarHeading=or;exports.CalendarNext=ir;exports.CalendarPrev=sr;exports.CalendarRoot=tr;exports.CheckboxIndicator=su;exports.CheckboxRoot=iu;exports.CollapsibleContent=Fa;exports.CollapsibleRoot=Oa;exports.CollapsibleTrigger=Na;exports.ComboboxAnchor=xu;exports.ComboboxArrow=zu;exports.ComboboxCancel=ku;exports.ComboboxContent=Tu;exports.ComboboxEmpty=$u;exports.ComboboxGroup=Su;exports.ComboboxInput=wu;exports.ComboboxItem=Ou;exports.ComboboxItemIndicator=Nu;exports.ComboboxLabel=Pu;exports.ComboboxPortal=Lu;exports.ComboboxRoot=bu;exports.ComboboxSeparator=Fu;exports.ComboboxTrigger=Bu;exports.ComboboxViewport=Iu;exports.ConfigProvider=Ii;exports.ContextMenuArrow=ud;exports.ContextMenuCheckboxItem=pd;exports.ContextMenuContent=sd;exports.ContextMenuGroup=cd;exports.ContextMenuItem=dd;exports.ContextMenuItemIndicator=md;exports.ContextMenuLabel=vd;exports.ContextMenuPortal=id;exports.ContextMenuRadioGroup=hd;exports.ContextMenuRadioItem=gd;exports.ContextMenuRoot=rd;exports.ContextMenuSeparator=fd;exports.ContextMenuSub=yd;exports.ContextMenuSubContent=Cd;exports.ContextMenuSubTrigger=bd;exports.ContextMenuTrigger=ld;exports.DateFieldInput=Pr;exports.DateFieldRoot=_r;exports.DatePickerAnchor=Qd;exports.DatePickerArrow=ec;exports.DatePickerCalendar=Zd;exports.DatePickerCell=zd;exports.DatePickerCellTrigger=Gd;exports.DatePickerClose=tc;exports.DatePickerContent=oc;exports.DatePickerField=Jd;exports.DatePickerGrid=Fd;exports.DatePickerGridBody=jd;exports.DatePickerGridHead=Wd;exports.DatePickerGridRow=Ud;exports.DatePickerHeadCell=Ld;exports.DatePickerHeader=Od;exports.DatePickerHeading=Nd;exports.DatePickerInput=qd;exports.DatePickerNext=Kd;exports.DatePickerPrev=Hd;exports.DatePickerRoot=Xd;exports.DatePickerTrigger=nc;exports.DateRangeFieldInput=Dr;exports.DateRangeFieldRoot=Er;exports.DateRangePickerAnchor=bc;exports.DateRangePickerArrow=wc;exports.DateRangePickerCalendar=yc;exports.DateRangePickerCell=ic;exports.DateRangePickerCellTrigger=mc;exports.DateRangePickerClose=xc;exports.DateRangePickerContent=kc;exports.DateRangePickerField=Cc;exports.DateRangePickerGrid=lc;exports.DateRangePickerGridBody=fc;exports.DateRangePickerGridHead=cc;exports.DateRangePickerGridRow=pc;exports.DateRangePickerHeadCell=sc;exports.DateRangePickerHeader=ac;exports.DateRangePickerHeading=rc;exports.DateRangePickerInput=vc;exports.DateRangePickerNext=uc;exports.DateRangePickerPrev=dc;exports.DateRangePickerRoot=gc;exports.DateRangePickerTrigger=Bc;exports.DialogClose=so;exports.DialogContent=Ya;exports.DialogDescription=Ja;exports.DialogOverlay=Xa;exports.DialogPortal=ds;exports.DialogRoot=Ka;exports.DialogTitle=Za;exports.DialogTrigger=Ha;exports.DropdownMenuArrow=Ic;exports.DropdownMenuCheckboxItem=Oc;exports.DropdownMenuContent=$c;exports.DropdownMenuGroup=Ac;exports.DropdownMenuItem=Vc;exports.DropdownMenuItemIndicator=Nc;exports.DropdownMenuLabel=Fc;exports.DropdownMenuPortal=Tc;exports.DropdownMenuRadioGroup=zc;exports.DropdownMenuRadioItem=Lc;exports.DropdownMenuRoot=Dc;exports.DropdownMenuSeparator=Mc;exports.DropdownMenuSub=Kc;exports.DropdownMenuSubContent=Hc;exports.DropdownMenuSubTrigger=Wc;exports.DropdownMenuTrigger=Rc;exports.EditableArea=qc;exports.EditableCancelTrigger=Jc;exports.EditableEditTrigger=Qc;exports.EditableInput=Yc;exports.EditablePreview=Xc;exports.EditableRoot=Gc;exports.EditableSubmitTrigger=Zc;exports.HoverCardArrow=sf;exports.HoverCardContent=lf;exports.HoverCardPortal=af;exports.HoverCardRoot=tf;exports.HoverCardTrigger=of;exports.Label=uf;exports.ListboxContent=mf;exports.ListboxFilter=vf;exports.ListboxGroup=Mf;exports.ListboxGroupLabel=Of;exports.ListboxItem=Cf;exports.ListboxItemIndicator=bf;exports.ListboxRoot=pf;exports.ListboxVirtualizer=If;exports.MenubarArrow=jf;exports.MenubarCheckboxItem=Yf;exports.MenubarContent=Wf;exports.MenubarGroup=Gf;exports.MenubarItem=Uf;exports.MenubarItemIndicator=Xf;exports.MenubarLabel=Zf;exports.MenubarMenu=Lf;exports.MenubarPortal=Hf;exports.MenubarRadioGroup=Jf;exports.MenubarRadioItem=Qf;exports.MenubarRoot=Ff;exports.MenubarSeparator=qf;exports.MenubarSub=ep;exports.MenubarSubContent=tp;exports.MenubarSubTrigger=np;exports.MenubarTrigger=Kf;exports.NavigationMenuContent=up;exports.NavigationMenuIndicator=dp;exports.NavigationMenuItem=ip;exports.NavigationMenuLink=cp;exports.NavigationMenuList=fp;exports.NavigationMenuRoot=op;exports.NavigationMenuSub=pp;exports.NavigationMenuTrigger=vp;exports.NavigationMenuViewport=hp;exports.NumberFieldDecrement=Bp;exports.NumberFieldIncrement=xp;exports.NumberFieldInput=wp;exports.NumberFieldRoot=bp;exports.PaginationEllipsis=Sp;exports.PaginationFirst=Pp;exports.PaginationLast=Ep;exports.PaginationList=Tp;exports.PaginationListItem=$p;exports.PaginationNext=Ip;exports.PaginationPrev=Vp;exports.PaginationRoot=_p;exports.PinInputInput=Fp;exports.PinInputRoot=Np;exports.PopoverAnchor=zo;exports.PopoverArrow=No;exports.PopoverClose=Fo;exports.PopoverContent=Oo;exports.PopoverPortal=Mo;exports.PopoverRoot=Vo;exports.PopoverTrigger=Ao;exports.Primitive=P;exports.ProgressIndicator=qp;exports.ProgressRoot=Gp;exports.RadioGroupIndicator=om;exports.RadioGroupItem=nm;exports.RadioGroupRoot=Zp;exports.RangeCalendarCell=Hr;exports.RangeCalendarCellTrigger=Xr;exports.RangeCalendarGrid=Kr;exports.RangeCalendarGridBody=qr;exports.RangeCalendarGridHead=Gr;exports.RangeCalendarGridRow=Yr;exports.RangeCalendarHeadCell=Wr;exports.RangeCalendarHeader=zr;exports.RangeCalendarHeading=Lr;exports.RangeCalendarNext=jr;exports.RangeCalendarPrev=Ur;exports.RangeCalendarRoot=Fr;exports.ScrollAreaCorner=xm;exports.ScrollAreaRoot=um;exports.ScrollAreaScrollbar=Cm;exports.ScrollAreaThumb=bm;exports.ScrollAreaViewport=dm;exports.SelectArrow=Lm;exports.SelectContent=zm;exports.SelectGroup=qm;exports.SelectIcon=tv;exports.SelectItem=Wm;exports.SelectItemIndicator=jm;exports.SelectItemText=Xm;exports.SelectLabel=Ym;exports.SelectPortal=$m;exports.SelectRoot=Em;exports.SelectScrollDownButton=Qm;exports.SelectScrollUpButton=Jm;exports.SelectSeparator=Km;exports.SelectTrigger=Tm;exports.SelectValue=ev;exports.SelectViewport=Zm;exports.Separator=ll;exports.SliderRange=yv;exports.SliderRoot=mv;exports.SliderThumb=hv;exports.SliderTrack=gv;exports.Slot=sn;exports.SplitterGroup=Lv;exports.SplitterPanel=Kv;exports.SplitterResizeHandle=Wv;exports.StepperDescription=Zv;exports.StepperIndicator=Qv;exports.StepperItem=Yv;exports.StepperRoot=Gv;exports.StepperSeparator=eh;exports.StepperTitle=Jv;exports.StepperTrigger=Xv;exports.SwitchRoot=ah;exports.SwitchThumb=rh;exports.TabsContent=uh;exports.TabsIndicator=ch;exports.TabsList=sh;exports.TabsRoot=ih;exports.TabsTrigger=dh;exports.TagsInputClear=Ch;exports.TagsInputInput=mh;exports.TagsInputItem=hh;exports.TagsInputItemDelete=yh;exports.TagsInputItemText=gh;exports.TagsInputRoot=ph;exports.ToastAction=Ih;exports.ToastClose=Ol;exports.ToastDescription=Mh;exports.ToastPortal=$h;exports.ToastProvider=wh;exports.ToastRoot=Th;exports.ToastTitle=Ah;exports.ToastViewport=Vh;exports.Toggle=Nl;exports.ToggleGroupItem=zl;exports.ToggleGroupRoot=Fl;exports.ToolbarButton=Kl;exports.ToolbarLink=Lh;exports.ToolbarRoot=zh;exports.ToolbarSeparator=Wh;exports.ToolbarToggleGroup=Kh;exports.ToolbarToggleItem=Hh;exports.TooltipArrow=Jh;exports.TooltipContent=Zh;exports.TooltipPortal=Qh;exports.TooltipProvider=Uh;exports.TooltipRoot=qh;exports.TooltipTrigger=Yh;exports.TreeItem=ag;exports.TreeRoot=tg;exports.TreeVirtualizer=rg;exports.Viewport=lg;exports.VisuallyHidden=Qe;exports.createContext=K;exports.useBodyScrollLock=vt;exports.useDateFormatter=ln;exports.useEmitAsProps=ie;exports.useForwardExpose=_;exports.useForwardProps=Fe;exports.useForwardPropsEmits=ne;exports.useId=J;exports.useStateMachine=to;exports.withDefault=Zi;