/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/cart-fast@1.1.0/dist/cart-fast.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var Du=Object.defineProperty,Fu=Object.getPrototypeOf,Lu=Reflect.get,la=e=>{throw TypeError(e)},Bu=(e,t,n)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>Bu(e,"symbol"!=typeof t?t+"":t,n),Di=(e,t,n)=>t.has(e)||la("Cannot "+n),y=(e,t,n)=>(Di(e,t,"read from private field"),n?n.call(e):t.get(e)),R=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Di(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Mt=(e,t,n)=>(Di(e,t,"access private method"),n),ca=(e,t,n)=>Lu(Fu(e),n,t),go=Array.isArray,zu=Array.prototype.indexOf,Ss=Array.from,Vu=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,bl=Object.getOwnPropertyDescriptors,wl=Object.prototype,Wu=Array.prototype,yi=Object.getPrototypeOf,ua=Object.isExtensible;function Jn(e){return"function"==typeof e}const ue=()=>{};function ju(e){return e()}function jo(e){for(var t=0;t<e.length;t++)e[t]()}function Hu(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const ot=2,yl=4,xi=8,_s=16,It=32,fn=64,Ho=128,Ye=256,Uo=512,He=1024,Ot=2048,hn=4096,Et=8192,Si=16384,Uu=32768,zn=65536,Gu=1<<17,Ku=1<<19,xl=1<<20,Xi=1<<21,ht=Symbol("$state"),Sl=Symbol("legacy props"),qu=Symbol("");function _l(e){return e===this.v}function Al(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function Yu(e,t){return e!==t}function As(e){return!Al(e,this.v)}function Xu(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zu(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ju(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $u(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ed(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function td(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nd(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Vn=!1;function rd(){Vn=!0}const Es=1,Ps=2,El=4,od=8,id=16,sd=1,ad=2,ld=4,cd=8,ud=16,Pl=1,dd=2,Le=Symbol(),fd="http://www.w3.org/1999/xhtml",hd="http://www.w3.org/2000/svg",Ol="@attach",gd=[];function Cl(e,t=!1){return zo(e,new Map,"",gd)}function zo(e,t,n,r,o=null){if("object"==typeof e&&null!==e){var i=t.get(e);if(void 0!==i)return i;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(go(e)){var s=Array(e.length);t.set(e,s),null!==o&&t.set(o,s);for(var a=0;a<e.length;a+=1){var l=e[a];a in e&&(s[a]=zo(l,t,n,r))}return s}if(yi(e)===wl){for(var c in s={},t.set(e,s),null!==o&&t.set(o,s),e)s[c]=zo(e[c],t,n,r);return s}if(e instanceof Date)return structuredClone(e);if("function"==typeof e.toJSON)return zo(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}function kl(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let ge=null;function da(e){ge=e}function Go(e){return _i().get(e)}function Tl(e,t){return _i().set(e,t),t}function Il(e){return _i().has(e)}function pd(){return _i()}function oe(e,t=!1,n){var r=ge={p:ge,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Vn&&!t&&(ge.l={s:null,u:null,r1:[],r2:Ke(!1)}),Ed((()=>{r.d=!0}))}function ie(e){const t=ge;if(null!==t){const e=t.e;if(null!==e){var n=me,r=pe;t.e=null;try{for(var o=0;o<e.length;o++){var i=e[o];Yt(i.effect),pt(i.reaction),vo(i.fn)}}finally{Yt(n),pt(r)}}ge=t.p,t.m=!0}return{}}function po(){return!Vn||null!==ge&&null===ge.l}function _i(e){return null===ge&&kl(),ge.c??(ge.c=new Map(md(ge)||void 0))}function md(e){let t=e.p;for(;null!==t;){const e=t.c;if(null!==e)return e;t=t.p}return null}function Fe(e){if("object"!=typeof e||null===e||ht in e)return e;const t=yi(e);if(t!==wl&&t!==Wu)return e;var n=new Map,r=go(e),o=$(0),i=pe,s=e=>{var t=pe;pt(i);var n=e();return pt(t),n};return r&&n.set("length",$(e.length)),new Proxy(e,{defineProperty(e,t,r){(!("value"in r)||!1===r.configurable||!1===r.enumerable||!1===r.writable)&&ed();var o=n.get(t);return void 0===o?(o=s((()=>$(r.value))),n.set(t,o)):M(o,s((()=>Fe(r.value)))),!0},deleteProperty(e,t){var i=n.get(t);if(void 0===i)t in e&&(n.set(t,s((()=>$(Le)))),Fi(o));else{if(r&&"string"==typeof t){var a=n.get("length"),l=Number(t);Number.isInteger(l)&&l<a.v&&M(a,l)}M(i,Le),Fi(o)}return!0},get(t,r,o){var i;if(r===ht)return e;var a=n.get(r),l=r in t;if(void 0===a&&(!l||null!=(i=Gt(t,r))&&i.writable)&&(a=s((()=>$(Fe(l?t[r]:Le)))),n.set(r,a)),void 0!==a){var c=g(a);return c===Le?void 0:c}return Reflect.get(t,r,o)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&"value"in r){var o=n.get(t);o&&(r.value=g(o))}else if(void 0===r){var i=n.get(t),s=null==i?void 0:i.v;if(void 0!==i&&s!==Le)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,t){var r;if(t===ht)return!0;var o=n.get(t),i=void 0!==o&&o.v!==Le||Reflect.has(e,t);if((void 0!==o||null!==me&&(!i||null!=(r=Gt(e,t))&&r.writable))&&(void 0===o&&(o=s((()=>$(i?Fe(e[t]):Le))),n.set(t,o)),g(o)===Le))return!1;return i},set(e,t,i,a){var l,c=n.get(t),u=t in e;if(r&&"length"===t)for(var d=i;d<c.v;d+=1){var f=n.get(d+"");void 0!==f?M(f,Le):d in e&&(f=s((()=>$(Le))),n.set(d+"",f))}void 0===c?(!u||null!=(l=Gt(e,t))&&l.writable)&&(M(c=s((()=>$(void 0))),s((()=>Fe(i)))),n.set(t,c)):(u=c.v!==Le,M(c,s((()=>Fe(i)))));var p=Reflect.getOwnPropertyDescriptor(e,t);if(null!=p&&p.set&&p.set.call(a,i),!u){if(r&&"string"==typeof t){var h=n.get("length"),g=Number(t);Number.isInteger(g)&&g>=h.v&&M(h,g+1)}Fi(o)}return!0},ownKeys(e){g(o);var t=Reflect.ownKeys(e).filter((e=>{var t=n.get(e);return void 0===t||t.v!==Le}));for(var[r,i]of n)i.v!==Le&&!(r in e)&&t.push(r);return t},setPrototypeOf(){td()}})}function Fi(e,t=1){M(e,e.v+t)}function fa(e){try{if(null!==e&&"object"==typeof e&&ht in e)return e[ht]}catch{}return e}function vd(e,t){return Object.is(fa(e),fa(t))}function an(e){var t=2050,n=null!==pe&&2&pe.f?pe:null;return null===me||null!==n&&n.f&Ye?t|=Ye:me.f|=xl,{ctx:ge,deps:null,effects:null,equals:_l,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??me}}function F(e){const t=an(e);return ql(t),t}function Ct(e){const t=an(e);return t.equals=As,t}function Rl(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Ue(t[n])}}function bd(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return t;t=t.parent}return null}function Nl(e){var t,n=me;Yt(bd(e));try{Rl(e),t=Jl(e)}finally{Yt(n)}return t}function Ml(e){var t=Nl(e);(e.equals(t)||(e.v=t,e.wv=Xl()),Wn)||st(e,(Ut||e.f&Ye)&&null!==e.deps?hn:He)}const lr=new Map;function Ke(e,t){return{f:0,v:e,reactions:null,equals:_l,rv:0,wv:0}}function $(e,t){const n=Ke(e);return ql(n),n}function Dl(e,t=!1){var n;const r=Ke(e);return t||(r.equals=As),Vn&&null!==ge&&null!==ge.l&&((n=ge.l).s??(n.s=[])).push(r),r}function M(e,t,n=!1){return null!==pe&&!tt&&po()&&18&pe.f&&(null==ze||!ze.includes(e))&&nd(),Zi(e,n?Fe(t):t)}function Zi(e,t){if(!e.equals(t)){var n=e.v;Wn?lr.set(e,t):lr.set(e,n),e.v=t,!!(2&e.f)&&(!!(e.f&Ot)&&Nl(e),st(e,e.f&Ye?hn:He)),e.wv=Xl(),Fl(e,Ot),po()&&null!==me&&me.f&He&&!(96&me.f)&&(null===Qe?Rd([e]):Qe.push(e))}return t}function Fl(e,t){var n=e.reactions;if(null!==n)for(var r=po(),o=n.length,i=0;i<o;i++){var s=n[i],a=s.f;!(a&Ot)&&(!r&&s===me||(st(s,t),1280&a&&(2&a?Fl(s,hn):Oi(s))))}}function wd(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let yd=!1;var ha,Ll,Bl,zl;function xd(){if(void 0===ha){ha=window,Ll=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bl=Gt(t,"firstChild").get,zl=Gt(t,"nextSibling").get,ua(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ua(n)&&(n.__t=void 0)}}function mo(e=""){return document.createTextNode(e)}function At(e){return Bl.call(e)}function Ai(e){return zl.call(e)}function ce(e,t){return At(e)}function Y(e,t){var n=At(e);return n instanceof Comment&&""===n.data?Ai(n):n}function xe(e,t=1,n=!1){let r=e;for(;t--;)r=Ai(r);return r}function Sd(e){e.textContent=""}function Vl(e){null===me&&null===pe&&Ju(),null!==pe&&!!(pe.f&Ye)&&null===me&&Zu(),Wn&&Xu()}function _d(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function gn(e,t,n,r=!0){var o=me,i={ctx:ge,deps:null,nodes_start:null,nodes_end:null,f:e|Ot,first:null,fn:t,last:null,next:null,parent:o,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Ts(i),i.f|=Uu}catch(e){throw Ue(i),e}else null!==t&&Oi(i);if(!(n&&null===i.deps&&null===i.first&&null===i.nodes_start&&null===i.teardown&&!(i.f&(xl|Ho)))&&r&&(null!==o&&_d(i,o),null!==pe&&2&pe.f)){var s=pe;(s.effects??(s.effects=[])).push(i)}return i}function Ad(){return null!==pe&&!tt}function Ed(e){const t=gn(8,null,!1);return st(t,He),t.teardown=e,t}function Ie(e){if(Vl(),!(null!==me&&!!(32&me.f)&&null!==ge&&!ge.m))return vo(e);var t=ge;(t.e??(t.e=[])).push({fn:e,effect:me,reaction:pe})}function Os(e){return Vl(),Cs(e)}function Pd(e){const t=gn(64,e,!0);return()=>{Ue(t)}}function Od(e){const t=gn(64,e,!0);return(e={})=>new Promise((n=>{e.outro?ln(t,(()=>{Ue(t),n(void 0)})):(Ue(t),n(void 0))}))}function vo(e){return gn(4,e,!1)}function Cs(e){return gn(8,e,!0)}function Kt(e,t=[],n=an){const r=t.map(n);return Rt((()=>e(...r.map(g))))}function Rt(e,t=0){return gn(24|t,e,!0)}function it(e,t=!0){return gn(40,e,!0,t)}function Wl(e){var t=e.teardown;if(null!==t){const e=Wn,n=pe;ga(!0),pt(null);try{t.call(null)}finally{ga(e),pt(n)}}}function jl(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){var r=n.next;64&n.f?n.parent=null:Ue(n,t),n=r}}function Cd(e){for(var t=e.first;null!==t;){var n=t.next;!(32&t.f)&&Ue(t),t=n}}function Ue(e,t=!0){var n=!1;(t||!!(e.f&Ku))&&null!==e.nodes_start&&(kd(e.nodes_start,e.nodes_end),n=!0),jl(e,t&&!n),Xo(e,0),st(e,Si);var r=e.transitions;if(null!==r)for(const e of r)e.stop();Wl(e);var o=e.parent;null!==o&&null!==o.first&&Hl(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function kd(e,t){for(;null!==e;){var n=e===t?null:Ai(e);e.remove(),e=n}}function Hl(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ln(e,t){var n=[];ks(e,n,!0),Ul(n,(()=>{Ue(e),t&&t()}))}function Ul(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var o of e)o.out(r)}else t()}function ks(e,t,n){if(!(e.f&Et)){if(e.f^=Et,null!==e.transitions)for(const r of e.transitions)(r.is_global||n)&&t.push(r);for(var r=e.first;null!==r;){var o=r.next;ks(r,t,!!(!!(r.f&zn)||!!(32&r.f))&&n),r=o}}}function cr(e){Gl(e,!0)}function Gl(e,t){if(e.f&Et){e.f^=Et,!(e.f&He)&&(e.f^=He),bo(e)&&(st(e,Ot),Oi(e));for(var n=e.first;null!==n;){var r=n.next;Gl(n,!!(!!(n.f&zn)||!!(32&n.f))&&t),n=r}if(null!==e.transitions)for(const n of e.transitions)(n.is_global||t)&&n.in()}}let ur=[],Ji=[];function Kl(){var e=ur;ur=[],jo(e)}function Td(){var e=Ji;Ji=[],jo(e)}function Ei(e){0===ur.length&&queueMicrotask(Kl),ur.push(e)}function Id(){ur.length>0&&Kl(),Ji.length>0&&Td()}let Vo=!1,Ko=!1,qo=null,on=!1,Wn=!1;function ga(e){Wn=e}let ar=[],pe=null,tt=!1;function pt(e){pe=e}let me=null;function Yt(e){me=e}let ze=null;function ql(e){null!==pe&&pe.f&Xi&&(null===ze?ze=[e]:ze.push(e))}let Be=null,Ge=0,Qe=null;function Rd(e){Qe=e}let Yl=1,Yo=0,Ut=!1;function Xl(){return++Yl}function bo(e){var t,n=e.f;if(n&Ot)return!0;if(n&hn){var r=e.deps,o=!!(n&Ye);if(null!==r){var i,s,a=!!(n&Uo),l=o&&null!==me&&!Ut,c=r.length;if(a||l){var u=e,d=u.parent;for(i=0;i<c;i++)s=r[i],(a||null==(t=null==s?void 0:s.reactions)||!t.includes(u))&&(s.reactions??(s.reactions=[])).push(u);a&&(u.f^=Uo),l&&null!==d&&!(d.f&Ye)&&(u.f^=Ye)}for(i=0;i<c;i++)if(bo(s=r[i])&&Ml(s),s.wv>e.wv)return!0}(!o||null!==me&&!Ut)&&st(e,He)}return!1}function Nd(e,t){for(var n=t;null!==n;){if(n.f&Ho)try{return void n.fn(e)}catch{n.f^=Ho}n=n.parent}throw Vo=!1,e}function pa(e){return!(e.f&Si||null!==e.parent&&e.parent.f&Ho)}function Pi(e,t,n,r){if(Vo){if(null===n&&(Vo=!1),pa(t))throw e}else if(null!==n&&(Vo=!0),Nd(e,t),pa(t))throw e}function Zl(e,t,n=!0){var r=e.reactions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];null!=ze&&ze.includes(e)||(2&i.f?Zl(i,t,!1):t===i&&(n?st(i,Ot):!!(i.f&He)&&st(i,hn),Oi(i)))}}function Jl(e){var t,n=Be,r=Ge,o=Qe,i=pe,s=Ut,a=ze,l=ge,c=tt,u=e.f;Be=null,Ge=0,Qe=null,Ut=!!(u&Ye)&&(tt||!on||null===pe),pe=96&u?null:e,ze=null,da(e.ctx),tt=!1,Yo++,e.f|=Xi;try{var d=(0,e.fn)(),f=e.deps;if(null!==Be){var p;if(Xo(e,Ge),null!==f&&Ge>0)for(f.length=Ge+Be.length,p=0;p<Be.length;p++)f[Ge+p]=Be[p];else e.deps=f=Be;if(!Ut)for(p=Ge;p<f.length;p++)((t=f[p]).reactions??(t.reactions=[])).push(e)}else null!==f&&Ge<f.length&&(Xo(e,Ge),f.length=Ge);if(po()&&null!==Qe&&!tt&&null!==f&&!(6146&e.f))for(p=0;p<Qe.length;p++)Zl(Qe[p],e);return null!==i&&i!==e&&(Yo++,null!==Qe&&(null===o?o=Qe:o.push(...Qe))),d}finally{Be=n,Ge=r,Qe=o,pe=i,Ut=s,ze=a,da(l),tt=c,e.f^=Xi}}function Md(e,t){let n=t.reactions;if(null!==n){var r=zu.call(n,e);if(-1!==r){var o=n.length-1;0===o?n=t.reactions=null:(n[r]=n[o],n.pop())}}null===n&&2&t.f&&(null===Be||!Be.includes(t))&&(st(t,hn),!(768&t.f)&&(t.f^=Uo),Rl(t),Xo(t,0))}function Xo(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Md(e,n[r])}function Ts(e){var t=e.f;if(!(t&Si)){st(e,He);var n=me,r=ge,o=on;me=e,on=!0;try{16&t?Cd(e):jl(e),Wl(e);var i=Jl(e);e.teardown="function"==typeof i?i:null,e.wv=Yl;e.deps}catch(t){Pi(t,e,n,r||e.ctx)}finally{on=o,me=n}}}function Dd(){try{Qu()}catch(e){if(null===qo)throw e;Pi(e,qo,null)}}function Ql(){var e=on;try{var t=0;for(on=!0;ar.length>0;){t++>1e3&&Dd();var n=ar,r=n.length;ar=[];for(var o=0;o<r;o++){Fd(Ld(n[o]))}lr.clear()}}finally{Ko=!1,on=e,qo=null}}function Fd(e){var t=e.length;if(0!==t)for(var n=0;n<t;n++){var r=e[n];if(!(24576&r.f))try{bo(r)&&(Ts(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown?Hl(r):r.fn=null))}catch(e){Pi(e,r,null,r.ctx)}}}function Oi(e){Ko||(Ko=!0,queueMicrotask(Ql));for(var t=qo=e;null!==t.parent;){var n=(t=t.parent).f;if(96&n){if(!(n&He))return;t.f^=He}}ar.push(t)}function Ld(e){for(var t=[],n=e;null!==n;){var r=n.f,o=!!(96&r);if(!(o&&!!(r&He)||r&Et)){if(4&r)t.push(n);else if(o)n.f^=He;else try{bo(n)&&Ts(n)}catch(e){Pi(e,n,null,n.ctx)}var i=n.first;if(null!==i){n=i;continue}}var s=n.parent;for(n=n.next;null===n&&null!==s;)n=s.next,s=s.parent}return t}function Bd(e){for(;;){if(Id(),0===ar.length)return;Ko=!0,Ql()}}async function Is(){await Promise.resolve(),Bd()}function g(e){var t=!!(2&e.f);if(null===pe||tt){if(t&&null===e.deps&&null===e.effects){var n=e,r=n.parent;null!==r&&!(r.f&Ye)&&(n.f^=Ye)}}else if(null==ze||!ze.includes(e)){var o=pe.deps;e.rv<Yo&&(e.rv=Yo,null===Be&&null!==o&&o[Ge]===e?Ge++:null===Be?Be=[e]:(!Ut||!Be.includes(e))&&Be.push(e))}return t&&(bo(n=e)&&Ml(n)),Wn&&lr.has(e)?lr.get(e):e.v}function Je(e){var t=tt;try{return tt=!0,e()}finally{tt=t}}const zd=-7169;function st(e,t){e.f=e.f&zd|t}function Vd(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(ht in e)Qi(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&ht in n&&Qi(n)}}function Qi(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Qi(e[n],t)}catch{}const n=yi(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=bl(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function Wd(){return Symbol(Ol)}function jd(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Hd=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ud(e){return Hd.includes(e)}const Gd={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Kd(e){return e=e.toLowerCase(),Gd[e]??e}const qd=["touchstart","touchmove"];function Yd(e){return qd.includes(e)}function Xd(e,t){if(t){const t=document.body;e.autofocus=!0,Ei((()=>{document.activeElement===t&&e.focus()}))}}function Zd(e){var t=pe,n=me;pt(null),Yt(null);try{return e()}finally{pt(t),Yt(n)}}const $l=new Set,$i=new Set;function ec(e,t,n,r={}){function o(e){if(r.capture||or.call(t,e),!e.cancelBubble)return Zd((()=>null==n?void 0:n.call(this,e)))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?Ei((()=>{t.addEventListener(e,o,r)})):t.addEventListener(e,o,r),o}function be(e,t,n,r={}){var o=ec(t,e,n,r);return()=>{e.removeEventListener(t,o,r)}}function tc(e){for(var t=0;t<e.length;t++)$l.add(e[t]);for(var n of $i)n(e)}function or(e){var t,n=this,r=n.ownerDocument,o=e.type,i=(null==(t=e.composedPath)?void 0:t.call(e))||[],s=i[0]||e.target,a=0,l=e.__root;if(l){var c=i.indexOf(l);if(-1!==c&&(n===document||n===window))return void(e.__root=n);var u=i.indexOf(n);if(-1===u)return;c<=u&&(a=c)}if((s=i[a]||e.target)!==n){Vu(e,"currentTarget",{configurable:!0,get:()=>s||r});var d=pe,f=me;pt(null),Yt(null);try{for(var p,h=[];null!==s;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+o];if(null!=m&&(!s.disabled||e.target===s))if(go(m)){var[v,...b]=m;v.apply(s,[e,...b])}else m.call(s,e)}catch(e){p?h.push(e):p=e}if(e.cancelBubble||g===n||null===g)break;s=g}if(p){for(let e of h)queueMicrotask((()=>{throw e}));throw p}}finally{e.__root=n,delete e.currentTarget,pt(d),Yt(f)}}}function nc(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","\x3c!----\x3e"),t.content}function cn(e,t){var n=me;null===n.nodes_start&&(n.nodes_start=e,n.nodes_end=t)}function we(e,t){var n,r=!!(1&t),o=!!(2&t),i=!e.startsWith("<!>");return()=>{void 0===n&&(n=nc(i?e:"<!>"+e),r||(n=At(n)));var t=o||Ll?document.importNode(n,!0):n.cloneNode(!0);r?cn(At(t),t.lastChild):cn(t,t);return t}}function Jd(e,t,n="svg"){var r,o=!e.startsWith("<!>"),i=!!(1&t),s=`<${n}>${o?e:"<!>"+e}</${n}>`;return()=>{if(!r){var e=At(nc(s));if(i)for(r=document.createDocumentFragment();At(e);)r.appendChild(At(e));else r=At(e)}var t=r.cloneNode(!0);i?cn(At(t),t.lastChild):cn(t,t);return t}}function rc(e,t){return Jd(e,t,"svg")}function Qd(e=""){var t=mo(e+"");return cn(t,t),t}function J(){var e=document.createDocumentFragment(),t=document.createComment(""),n=mo();return e.append(t,n),cn(t,n),e}function z(e,t){null!==e&&e.before(t)}function wo(){var e;return(e=window.__svelte??(window.__svelte={})).uid??(e.uid=1),"c"+window.__svelte.uid++}function nt(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function oc(e,t){return $d(e,t)}const mn=new Map;function $d(e,{target:t,anchor:n,props:r={},events:o,context:i,intro:s=!0}){xd();var a=new Set,l=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!a.has(r)){a.add(r);var o=Yd(r);t.addEventListener(r,or,{passive:o});var i=mn.get(r);void 0===i?(document.addEventListener(r,or,{passive:o}),mn.set(r,1)):mn.set(r,i+1)}}};l(Ss($l)),$i.add(l);var c=void 0,u=Od((()=>{var s=n??t.appendChild(mo());return it((()=>{i&&(oe({}),ge.c=i);o&&(r.$$events=o),c=e(s,r)||{},i&&ie()})),()=>{var e;for(var r of a){t.removeEventListener(r,or);var o=mn.get(r);0==--o?(document.removeEventListener(r,or),mn.delete(r)):mn.set(r,o)}$i.delete(l),s!==n&&(null==(e=s.parentNode)||e.removeChild(s))}}));return es.set(c,u),c}let es=new WeakMap;function ef(e,t){const n=es.get(e);return n?(es.delete(e),n(t)):Promise.resolve()}function Se(e,t,[n,r]=[0,0]){var o=e,i=null,s=null,a=Le,l=!1;const c=(e,t=!0)=>{l=!0,u(t,e)},u=(e,t)=>{a!==(a=e)&&(a?(i?cr(i):t&&(i=it((()=>t(o)))),s&&ln(s,(()=>{s=null}))):(s?cr(s):t&&(s=it((()=>t(o,[n+1,r])))),i&&ln(i,(()=>{i=null}))))};Rt((()=>{l=!1,t(c),l||u(null,null)}),n>0?zn:0)}function tf(e,t,n){var r,o=e,i=Le,s=po()?Yu:Al;Rt((()=>{s(i,i=t())&&(r&&ln(r),r=it((()=>n(o))))}))}function ic(e,t){return t}function nf(e,t,n,r){for(var o=[],i=t.length,s=0;s<i;s++)ks(t[s].e,o,!0);var a=i>0&&0===o.length&&null!==n;if(a){var l=n.parentNode;Sd(l),l.append(n),r.clear(),zt(e,t[0].prev,t[i-1].next)}Ul(o,(()=>{for(var n=0;n<i;n++){var o=t[n];a||(r.delete(o.k),zt(e,o.prev,o.next)),Ue(o.e,!a)}}))}function sc(e,t,n,r,o,i=null){var s=e,a={flags:t,items:new Map,first:null};!(4&t)||(s=e.appendChild(mo()));var l=null,c=!1,u=Ct((()=>{var e=n();return go(e)?e:null==e?[]:Ss(e)}));Rt((()=>{var e=g(u),d=e.length;c&&0===d||(c=0===d,rf(e,a,s,o,t,r,n),null!==i&&(0===d?l?cr(l):l=it((()=>i(s))):null!==l&&ln(l,(()=>{l=null}))),g(u))}))}function rf(e,t,n,r,o,i,s){var a,l,c,u,d,f,p,h,g,m,v=!!(8&o),b=!!(3&o),y=e.length,w=t.items,x=t.first,k=null,A=[],$=[];if(v)for(m=0;m<y;m+=1)h=i(p=e[m],m),void 0!==(g=w.get(h))&&(null==(a=g.a)||a.measure(),(f??(f=new Set)).add(g));for(m=0;m<y;m+=1)if(h=i(p=e[m],m),void 0!==(g=w.get(h))){if(b&&of(g,p,m,o),!!(g.e.f&Et)&&(cr(g.e),v&&(null==(l=g.a)||l.unfix(),(f??(f=new Set)).delete(g))),g!==x){if(void 0!==d&&d.has(g)){if(A.length<$.length){var M,O=$[0];k=O.prev;var S=A[0],N=A[A.length-1];for(M=0;M<A.length;M+=1)ma(A[M],O,n);for(M=0;M<$.length;M+=1)d.delete($[M]);zt(t,S.prev,N.next),zt(t,k,S),zt(t,N,O),x=O,k=N,m-=1,A=[],$=[]}else d.delete(g),ma(g,x,n),zt(t,g.prev,g.next),zt(t,g,null===k?t.first:k.next),zt(t,k,g),k=g;continue}for(A=[],$=[];null!==x&&x.k!==h;)!(x.e.f&Et)&&(d??(d=new Set)).add(x),$.push(x),x=x.next;if(null===x)continue;g=x}A.push(g),k=g,x=g.next}else{k=sf(x?x.e.nodes_start:n,t,k,null===k?t.first:k.next,p,h,m,r,o,s),w.set(h,k),A=[],$=[],x=k.next}if(null!==x||void 0!==d){for(var P=void 0===d?[]:Ss(d);null!==x;)!(x.e.f&Et)&&P.push(x),x=x.next;var C=P.length;if(C>0){var E=4&o&&0===y?n:null;if(v){for(m=0;m<C;m+=1)null==(c=P[m].a)||c.measure();for(m=0;m<C;m+=1)null==(u=P[m].a)||u.fix()}nf(t,P,E,w)}}v&&Ei((()=>{var e;if(void 0!==f)for(g of f)null==(e=g.a)||e.apply()})),me.first=t.first&&t.first.e,me.last=k&&k.e}function of(e,t,n,r){!!(1&r)&&Zi(e.v,t),2&r?Zi(e.i,n):e.i=n}function sf(e,t,n,r,o,i,s,a,l,c){var u=!!(1&l)?!(16&l)?Dl(o):Ke(o):o,d=2&l?Ke(s):s,f={i:d,v:u,k:i,a:null,e:null,prev:n,next:r};try{return f.e=it((()=>a(e,u,d,c)),yd),f.e.prev=n&&n.e,f.e.next=r&&r.e,null===n?t.first=f:(n.next=f,n.e.next=f.e),null!==r&&(r.prev=f,r.e.prev=f.e),f}finally{}}function ma(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,o=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==r;){var s=Ai(i);o.before(i),i=s}}function zt(e,t,n){null===t?e.first=n:(t.next=n,t.e.next=n&&n.e),null!==n&&(n.prev=t,n.e.prev=t&&t.e)}function le(e,t,...n){var r,o=e,i=ue;Rt((()=>{i!==(i=t())&&(r&&(Ue(r),r=null),r=it((()=>i(o,...n))))}),zn)}function et(e,t,n){var r,o,i=e;Rt((()=>{r!==(r=t())&&(o&&(ln(o),o=null),r&&(o=it((()=>n(i,r)))))}),zn)}function af(e,t,n,r,o,i){var s,a,l,c=null,u=e;Rt((()=>{const e=t()||null;var n=hd;e!==s&&(l&&(null===e?ln(l,(()=>{l=null,a=null})):e===a?cr(l):Ue(l)),e&&e!==a&&(l=it((()=>{if(cn(c=document.createElementNS(n,e),c),r){var t=c.appendChild(mo());r(c,t)}me.nodes_end=c,u.before(c)}))),(s=e)&&(a=s))}),zn)}function lf(e,t){var n,r=void 0;Rt((()=>{r!==(r=t())&&(n&&(Ue(n),n=null),r&&(n=it((()=>{vo((()=>r(e)))}))))}))}function ac(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ac(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ac(e))&&(r&&(r+=" "),r+=t);return r}function cf(e){return"object"==typeof e?qt(e):e??""}const va=[..." \t\n\r\f \v\ufeff"];function uf(e,t,n){var r=null==e?"":""+e;if(n)for(var o in n)if(n[o])r=r?r+" "+o:o;else if(r.length)for(var i=o.length,s=0;(s=r.indexOf(o,s))>=0;){var a=s+i;0!==s&&!va.includes(r[s-1])||a!==r.length&&!va.includes(r[a])?s=a:r=(0===s?"":r.substring(0,s))+r.substring(a+1)}return""===r?null:r}function ba(e,t=!1){var n=t?" !important;":";",r="";for(var o in e){var i=e[o];null!=i&&""!==i&&(r+=" "+o+": "+i+n)}return r}function Li(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function df(e,t){if(t){var n,r,o="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,s=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(Li)),r&&l.push(...Object.keys(r).map(Li));var c=0,u=-1;const t=e.length;for(var d=0;d<t;d++){var f=e[d];if(a?"/"===f&&"*"===e[d-1]&&(a=!1):i?i===f&&(i=!1):"/"===f&&"*"===e[d+1]?a=!0:'"'===f||"'"===f?i=f:"("===f?s++:")"===f&&s--,!a&&!1===i&&0===s)if(":"===f&&-1===u)u=d;else if(";"===f||d===t-1){if(-1!==u){var p=Li(e.substring(c,u).trim());if(!l.includes(p))";"!==f&&d++,o+=" "+e.substring(c,d).trim()+";"}c=d+1,u=-1}}}return n&&(o+=ba(n)),r&&(o+=ba(r,!0)),""===(o=o.trim())?null:o}return null==e?null:String(e)}function ff(e,t,n,r,o,i){var s=e.__className;if(s!==n||void 0===s){var a=uf(n,r,i);null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a),e.__className=n}else if(i&&o!==i)for(var l in i){var c=!!i[l];(null==o||c!==!!o[l])&&e.classList.toggle(l,c)}return i}function Bi(e,t={},n,r){for(var o in n){var i=n[o];t[o]!==i&&(null==n[o]?e.style.removeProperty(o):e.style.setProperty(o,i,r))}}function hf(e,t,n,r){if(e.__style!==t){var o=df(t,r);null==o?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else r&&(Array.isArray(r)?(Bi(e,null==n?void 0:n[0],r[0]),Bi(e,null==n?void 0:n[1],r[1],"important")):Bi(e,n,r));return r}function ts(e,t,n){if(e.multiple){if(null==t)return;if(!go(t))return wd();for(var r of e.options)r.selected=t.includes(wa(r))}else{for(r of e.options){if(vd(wa(r),t))return void(r.selected=!0)}(!n||void 0!==t)&&(e.selectedIndex=-1)}}function gf(e,t){let n=!0;vo((()=>{t&&ts(e,Je(t),n),n=!1;var r=new MutationObserver((()=>{var t=e.__value;ts(e,t)}));return r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{r.disconnect()}}))}function wa(e){return"__value"in e?e.__value:e.value}const Qn=Symbol("class"),$n=Symbol("style"),lc=Symbol("is custom element"),cc=Symbol("is html");function pf(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function xn(e,t,n,r){var o=uc(e);o[t]!==(o[t]=n)&&("loading"===t&&(e[qu]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&dc(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function mf(e,t,n,r,o=!1){var i=uc(e),s=i[lc],a=!i[cc],l=t||{},c="OPTION"===e.tagName;for(var u in t)u in n||(n[u]=null);n.class?n.class=cf(n.class):n[Qn]&&(n.class=null),n[$n]&&(n.style??(n.style=null));var d=dc(e);for(const o in n){let u=n[o];if(c&&"value"===o&&null==u)e.value=e.__value="",l[o]=u;else if("class"!==o)if("style"!==o){var f=l[o];if(u!==f){l[o]=u;var p=o[0]+o[1];if("$$"!==p)if("on"===p){const t={},n="$$"+o;let r=o.slice(2);var h=Ud(r);if(jd(r)&&(r=r.slice(0,-7),t.capture=!0),!h&&f){if(null!=u)continue;e.removeEventListener(r,l[n],t),l[n]=null}if(null!=u)if(h)e[`__${r}`]=u,tc([r]);else{let i=function(e){l[o].call(this,e)};l[n]=ec(r,e,i,t)}else h&&(e[`__${r}`]=void 0)}else if("style"===o)xn(e,o,u);else if("autofocus"===o)Xd(e,!!u);else if(s||"__value"!==o&&("value"!==o||null==u))if("selected"===o&&c)pf(e,u);else{var g=o;a||(g=Kd(g));var m="defaultValue"===g||"defaultChecked"===g;if(null!=u||s||m)m||d.includes(g)&&(s||"string"!=typeof u)?e[g]=u:"function"!=typeof u&&xn(e,g,u);else if(i[o]=null,"value"===g||"checked"===g){let n=e;const r=void 0===t;if("value"===g){let e=n.defaultValue;n.removeAttribute(g),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(g),n.defaultChecked=e,n.checked=!!r&&e}}else e.removeAttribute(o)}else e.value=e.__value=u}}else hf(e,u,null==t?void 0:t[$n],n[$n]),l[o]=u,l[$n]=n[$n];else ff(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,u,r,null==t?void 0:t[Qn],n[Qn]),l[o]=u,l[Qn]=n[Qn]}return l}function $e(e,t,n=[],r,o=!1,i=an){const s=n.map(i);var a=void 0,l={},c="SELECT"===e.nodeName,u=!1;Rt((()=>{var n=t(...s.map(g));mf(e,a,n,r,o),u&&c&&"value"in n&&ts(e,n.value,!1);for(let e of Object.getOwnPropertySymbols(l))n[e]||Ue(l[e]);for(let t of Object.getOwnPropertySymbols(n)){var i=n[t];t.description===Ol&&(!a||i!==a[t])&&(l[t]&&Ue(l[t]),l[t]=it((()=>lf(e,(()=>i)))))}a=n})),c&&gf(e,(()=>a.value)),u=!0}function uc(e){return e.__attributes??(e.__attributes={[lc]:e.nodeName.includes("-"),[cc]:e.namespaceURI===fd})}var ya=new Map;function dc(e){var t=ya.get(e.nodeName);if(t)return t;ya.set(e.nodeName,t=[]);for(var n,r=e,o=Element.prototype;o!==r;){for(var i in n=bl(r))n[i].set&&t.push(i);r=yi(r)}return t}function xa(e,t){return e===t||(null==e?void 0:e[ht])===t}function Sa(e={},t,n,r){return vo((()=>{var r,o;return Cs((()=>{r=o,o=[],Je((()=>{e!==n(...o)&&(t(e,...o),r&&xa(n(...r),e)&&t(null,...r))}))})),()=>{Ei((()=>{o&&xa(n(...o),e)&&t(null,...o)}))}})),e}function Rs(e=!1){const t=ge,n=t.l.u;if(!n)return;let r=()=>Vd(t.s);if(e){let e=0,n={};const o=an((()=>{let r=!1;const o=t.s;for(const e in o)o[e]!==n[e]&&(n[e]=o[e],r=!0);return r&&e++,e}));r=()=>g(o)}n.b.length&&Os((()=>{_a(t,r),jo(n.b)})),Ie((()=>{const e=Je((()=>n.m.map(ju)));return()=>{for(const t of e)"function"==typeof t&&t()}})),n.a.length&&Ie((()=>{_a(t,r),jo(n.a)}))}function _a(e,t){if(e.l.s)for(const t of e.l.s)g(t);t()}function vf(e){var t=Ke(0);return function(){return 1===arguments.length?(M(t,g(t)+1),arguments[0]):(g(t),e())}}let Eo=!1;function bf(e){var t=Eo;try{return Eo=!1,[e(),Eo]}finally{Eo=t}}const wf={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter((t=>!e.exclude.includes(t)))};function Ee(e,t,n){return new Proxy({props:e,exclude:t},wf)}const yf={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(Jn(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let o=e.props[r];Jn(o)&&(o=o());const i=Gt(o,t);if(i&&i.set)return i.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(Jn(r)&&(r=r()),"object"==typeof r&&null!==r&&t in r){const e=Gt(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ht||t===Sl)return!1;for(let n of e.props)if(Jn(n)&&(n=n()),null!=n&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props)if(Jn(n)&&(n=n()),n){for(const e in n)t.includes(e)||t.push(e);for(const e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Ae(...e){return new Proxy({props:e},yf)}function Aa(e){var t;return(null==(t=e.ctx)?void 0:t.d)??!1}function A(e,t,n,r){var o,i,s=!!(1&n),a=!Vn||!!(2&n),l=!!(8&n),c=!!(16&n),u=!1;l?[i,u]=bf((()=>e[t])):i=e[t];var d,f=ht in e||Sl in e,p=l&&((null==(o=Gt(e,t))?void 0:o.set)??(f&&t in e&&(n=>e[t]=n)))||void 0,h=r,m=!0,v=!1,b=()=>(v=!0,m&&(m=!1,h=c?Je(r):r),h);if(void 0===i&&void 0!==r&&(p&&a&&$u(),i=b(),p&&p(i)),a)d=()=>{var n=e[t];return void 0===n?b():(m=!0,v=!1,n)};else{var y=(s?an:Ct)((()=>e[t]));y.f|=Gu,d=()=>{var e=g(y);return void 0!==e&&(h=void 0),void 0===e?h:e}}if(!(4&n)&&a)return d;if(p){var w=e.$$legacy;return function(e,t){return arguments.length>0?((!a||!t||w||u)&&p(t?d():e),e):d()}}var x=!1,k=Dl(i),A=an((()=>{var e=d(),t=g(k);return x?(x=!1,t):k.v=e}));return l&&g(A),s||(A.equals=As),function(e,t){if(arguments.length>0){const n=t?g(A):a&&l?Fe(e):e;if(!A.equals(n)){if(x=!0,M(k,n),v&&void 0!==h&&(h=n),Aa(A))return e;Je((()=>g(A)))}return e}return Aa(A)?A.v:g(A)}}function Ci(e){null===ge&&kl(),Vn&&null!==ge.l?xf(ge).m.push(e):Ie((()=>{const t=Je(e);if("function"==typeof t)return t}))}function xf(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const Sf="5";var pl;function _f(e){return"function"==typeof e}function yo(e){return null!==e&&"object"==typeof e}typeof window<"u"&&((pl=window.__svelte??(window.__svelte={})).v??(pl.v=new Set)).add(Sf),rd();const Af=["string","number","bigint","boolean"];function ns(e){return!(null!=e&&!Af.includes(typeof e))||(Array.isArray(e)?e.every((e=>ns(e))):"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype)}const dr=Symbol("box"),Ns=Symbol("is-writable");function Ef(e){return yo(e)&&dr in e}function Pf(e){return N.isBox(e)&&Ns in e}function N(e){let t=$(Fe(e));return{[dr]:!0,[Ns]:!0,get current(){return g(t)},set current(e){M(t,e,!0)}}}function Of(e,t){const n=F(e);return t?{[dr]:!0,[Ns]:!0,get current(){return g(n)},set current(e){t(e)}}:{[dr]:!0,get current(){return e()}}}function Cf(e){return N.isBox(e)?e:_f(e)?N.with(e):N(e)}function kf(e){return Object.entries(e).reduce(((e,[t,n])=>N.isBox(n)?(N.isWritableBox(n)?Object.defineProperty(e,t,{get:()=>n.current,set(e){n.current=e}}):Object.defineProperty(e,t,{get:()=>n.current}),e):Object.assign(e,{[t]:n})),{})}function Tf(e){return N.isWritableBox(e)?{[dr]:!0,get current(){return e.current}}:e}function fc(...e){return function(t){var n;for(const r of e)if(r){if(t.defaultPrevented)return;"function"==typeof r?r.call(this,t):null==(n=r.current)||n.call(this,t)}}}function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}N.from=Cf,N.with=Of,N.flatten=kf,N.readonly=Tf,N.isBox=Ef,N.isWritableBox=Pf;var zi,Ea,Pa,vn={};function Rf(){if(Ea)return zi;Ea=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(a,l):l}return zi=function(a,u){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];u=u||{};var d=1,f=1;function p(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=u.source}function m(e){var t=new Error(u.source+":"+d+":"+f+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=f,t.source=a,!u.silent)throw t}function v(e){var t=e.exec(a);if(t){var n=t[0];return p(n),a=a.slice(n.length),t}}function b(){v(n)}function y(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var e=h();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;l!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,l===a.charAt(t-1))return m("End of comment missing");var n=a.slice(2,t-2);return f+=2,p(n),a=a.slice(t),f+=2,e({type:"comment",comment:n})}}function x(){var t=h(),n=v(r);if(n){if(w(),!v(o))return m("property missing ':'");var a=v(i),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:a?c(a[0].replace(e,l)):l});return v(s),u}}return g.prototype.content=a,b(),function(){var e,t=[];for(y(t);e=x();)!1!==e&&(t.push(e),y(t));return t}()}}function Nf(){if(Pa)return vn;Pa=1;var e=vn&&vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var o=(0,t.default)(e),i="function"==typeof n;return o.forEach((function(e){if("declaration"===e.type){var t=e.property,o=e.value;i?n(t,o,e):o&&((r=r||{})[t]=o)}})),r};var t=e(Rf());return vn}var Mf=Nf();const Oa=If(Mf),hc=Oa.default||Oa,Df=/\d/,Ff=["-","_","/","."];function Lf(e=""){if(!Df.test(e))return e!==e.toLowerCase()}function Bf(e){const t=[];let n,r,o="";for(const i of e){const e=Ff.includes(i);if(!0===e){t.push(o),o="",n=void 0;continue}const s=Lf(i);if(!1===r){if(!1===n&&!0===s){t.push(o),o=i,n=s;continue}if(!0===n&&!1===s&&o.length>1){const e=o.at(-1);t.push(o.slice(0,Math.max(0,o.length-1))),o=e+i,n=s;continue}}o+=i,n=s,r=e}return t.push(o),t}function gc(e){return e?Bf(e).map((e=>Vf(e))).join(""):""}function zf(e){return Wf(gc(e||""))}function Vf(e){return e?e[0].toUpperCase()+e.slice(1):""}function Wf(e){return e?e[0].toLowerCase()+e.slice(1):""}function ir(e){if(!e)return{};const t={};return hc(e,(function(e,n){e.startsWith("-moz-")||e.startsWith("-webkit-")||e.startsWith("-ms-")||e.startsWith("-o-")?t[gc(e)]=n:e.startsWith("--")?t[e]=n:t[zf(e)]=n})),t}function sn(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function jf(e,t){const n=RegExp(e,"g");return e=>{if("string"!=typeof e)throw new TypeError("expected an argument of type string, but got "+typeof e);return e.match(n)?e.replace(n,t):e}}const Hf=jf(/[A-Z]/,(e=>`-${e.toLowerCase()}`));function Uf(e){if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError("expected an argument of type object, but got "+typeof e);return Object.keys(e).map((t=>`${Hf(t)}: ${e[t]};`)).join("\n")}function Ms(e={}){return Uf(e).replace("\n"," ")}const Gf={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};Ms(Gf);const Kf=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],qf=new Set(Kf);function Yf(e){return qf.has(e)}function Xe(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const e of Object.keys(r)){const n=t[e],o=r[e],i="function"==typeof n,s="function"==typeof o;if(i&&Yf(e)){const r=n,i=o;t[e]=fc(r,i)}else if(i&&s)t[e]=sn(n,o);else if("class"===e){const r=ns(n),i=ns(o);r&&i?t[e]=qt(n,o):r?t[e]=qt(n):i&&(t[e]=qt(o))}else if("style"===e){const r="object"==typeof n,i="object"==typeof o,s="string"==typeof n,a="string"==typeof o;if(r&&i)t[e]={...n,...o};else if(r&&a){const r=ir(o);t[e]={...n,...r}}else if(s&&i){const r=ir(n);t[e]={...r,...o}}else if(s&&a){const r=ir(n),i=ir(o);t[e]={...r,...i}}else r?t[e]=n:i?t[e]=o:s?t[e]=n:a&&(t[e]=o)}else t[e]=void 0!==o?o:n}for(const e of Object.getOwnPropertySymbols(r)){const n=t[e],o=r[e];t[e]=void 0!==o?o:n}}}return"object"==typeof t.style&&(t.style=Ms(t.style).replaceAll("\n"," ")),!0!==t.hidden&&(t.hidden=void 0,delete t.hidden),!0!==t.disabled&&(t.disabled=void 0,delete t.disabled),t}const pc=typeof window<"u"?window:void 0;function Xf(e){let t=e.activeElement;for(;null!=t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function yn(e){M(e,e.v+1)}var dt,ft,yt,_n,Wo;const ia=class extends Map{constructor(e){if(super(),R(this,_n),R(this,dt,new Map),R(this,ft,Ke(0)),R(this,yt,Ke(0)),e){for(var[t,n]of e)super.set(t,n);y(this,yt).v=super.size}}has(e){var t=y(this,dt),n=t.get(e);if(void 0===n){if(void 0===super.get(e))return g(y(this,ft)),!1;n=Ke(0),t.set(e,n)}return g(n),!0}forEach(e,t){Mt(this,_n,Wo).call(this),super.forEach(e,t)}get(e){var t=y(this,dt),n=t.get(e);if(void 0===n){if(void 0===super.get(e))return void g(y(this,ft));n=Ke(0),t.set(e,n)}return g(n),super.get(e)}set(e,t){var n,r=y(this,dt),o=r.get(e),i=super.get(e),s=super.set(e,t),a=y(this,ft);if(void 0===o)r.set(e,Ke(0)),M(y(this,yt),super.size),yn(a);else if(i!==t){yn(o);var l=null===a.reactions?null:new Set(a.reactions);(null===l||!(null!=(n=o.reactions)&&n.every((e=>l.has(e)))))&&yn(a)}return s}delete(e){var t=y(this,dt),n=t.get(e),r=super.delete(e);return void 0!==n&&(t.delete(e),M(y(this,yt),super.size),M(n,-1),yn(y(this,ft))),r}clear(){if(0!==super.size){super.clear();var e=y(this,dt);for(var t of(M(y(this,yt),0),e.values()))M(t,-1);yn(y(this,ft)),e.clear()}}keys(){return g(y(this,ft)),super.keys()}values(){return Mt(this,_n,Wo).call(this),super.values()}entries(){return Mt(this,_n,Wo).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return g(y(this,yt)),super.size}};dt=new WeakMap,ft=new WeakMap,yt=new WeakMap,_n=new WeakSet,Wo=function(){g(y(this,ft));var e=y(this,dt);if(y(this,yt).v!==e.size)for(var t of ca(ia.prototype,this,"keys").call(this))e.has(t)||e.set(t,Ke(0));for(var[,n]of y(this,dt))g(n)};let rs=ia;function ki(e){let t,n=0,r=Ke(0);return()=>{Ad()&&(g(r),Cs((()=>(0===n&&(t=Je((()=>e((()=>yn(r)))))),n+=1,()=>{Is().then((()=>{n-=1,0===n&&(null==t||t(),t=void 0)}))}))))}}var vr,br;class Zf{constructor(e,t){R(this,vr),R(this,br),he(this,vr,e),he(this,br,ki(t))}get current(){return y(this,br).call(this),y(this,vr).call(this)}}vr=new WeakMap,br=new WeakMap;const Jf=/\(.+\)/,Qf=new Set(["all","print","screen","and","or","not","only"]);class $f extends Zf{constructor(e,t){let n=Jf.test(e)||e.split(/[\s,]+/).some((e=>Qf.has(e.trim())))?e:`(${e})`;const r=window.matchMedia(n);super((()=>r.matches),(e=>be(r,"change",e)))}}var An,wr,ml;let eh=(ml=class{constructor(e={}){R(this,An),R(this,wr);const{window:t=pc,document:n=(null==t?void 0:t.document)}=e;void 0!==t&&(he(this,An,n),he(this,wr,ki((e=>{const n=be(t,"focusin",e),r=be(t,"focusout",e);return()=>{n(),r()}}))))}get current(){var e;return null==(e=y(this,wr))||e.call(this),y(this,An)?Xf(y(this,An)):null}},An=new WeakMap,wr=new WeakMap,ml);function th(e){return"function"==typeof e}var yr,xt,vl;new eh;let pn=(vl=class{constructor(e){R(this,yr),R(this,xt),he(this,yr,e),he(this,xt,Symbol(e))}get key(){return y(this,xt)}exists(){return Il(y(this,xt))}get(){const e=Go(y(this,xt));if(void 0===e)throw new Error(`Context "${y(this,yr)}" not found`);return e}getOr(e){const t=Go(y(this,xt));return void 0===t?e:t}set(e){return Tl(y(this,xt),e)}},yr=new WeakMap,xt=new WeakMap,vl);function nh(e,t){switch(e){case"post":Ie(t);break;case"pre":Os(t)}}function mc(e,t,n,r={}){const{lazy:o=!1}=r;let i=!o,s=Array.isArray(e)?[]:void 0;nh(t,(()=>{const t=Array.isArray(e)?e.map((e=>e())):e();if(!i)return i=!0,void(s=t);const r=Je((()=>n(t,s)));return s=t,r}))}function je(e,t,n){mc(e,"post",t,n)}function rh(e,t,n){mc(e,"pre",t,n)}function Ca(e){return th(e)?e():e}var Vt,En,Pn,On,Wt,ni,ri,Cn,kn;je.pre=rh;class oh{constructor(e,t={box:"border-box"}){R(this,Vt,{width:0,height:0}),R(this,En,!1),R(this,Pn),R(this,On),R(this,Wt),R(this,ni,F((()=>{var e;return null==(e=g(y(this,Cn)))||e(),this.getSize().width}))),R(this,ri,F((()=>{var e;return null==(e=g(y(this,Cn)))||e(),this.getSize().height}))),R(this,Cn,F((()=>{const e=Ca(y(this,On));if(e)return ki((t=>{if(!y(this,Wt))return;const n=new(y(this,Wt).ResizeObserver)((e=>{he(this,En,!0);for(const t of e){const e="content-box"===y(this,Pn).box?t.contentBoxSize:t.borderBoxSize,n=Array.isArray(e)?e:[e];y(this,Vt).width=n.reduce(((e,t)=>Math.max(e,t.inlineSize)),0),y(this,Vt).height=n.reduce(((e,t)=>Math.max(e,t.blockSize)),0)}t()}));return n.observe(e),()=>{he(this,En,!1),n.disconnect()}}))}))),he(this,Wt,t.window??pc),he(this,Pn,t),he(this,On,e),he(this,Vt,{width:0,height:0})}calculateSize(){const e=Ca(y(this,On));if(!e||!y(this,Wt))return;const t=e.offsetWidth,n=e.offsetHeight;if("border-box"===y(this,Pn).box)return{width:t,height:n};const r=y(this,Wt).getComputedStyle(e),o=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom);return{width:t-o-(parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth)),height:n-i-(parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth))}}getSize(){return y(this,En)?y(this,Vt):this.calculateSize()??y(this,Vt)}get current(){var e;return null==(e=g(y(this,Cn)))||e(),this.getSize()}get width(){return g(y(this,ni))}get height(){return g(y(this,ri))}}Vt=new WeakMap,En=new WeakMap,Pn=new WeakMap,On=new WeakMap,Wt=new WeakMap,ni=new WeakMap,ri=new WeakMap,Cn=new WeakMap;class ih{constructor(e,t){R(this,kn,$(void 0)),void 0!==t&&M(y(this,kn),t,!0),je((()=>e()),((e,t)=>{M(y(this,kn),t,!0)}))}get current(){return g(y(this,kn))}}function sh(e){Ie((()=>()=>{e()}))}function Ds(e,t){return setTimeout(t,e)}function Fs(e){Is().then(e)}kn=new WeakMap;const ah=1,lh=9,ch=11;function os(e){return yo(e)&&1===e.nodeType&&"string"==typeof e.nodeName}function vc(e){return yo(e)&&9===e.nodeType}function uh(e){var t;return yo(e)&&"VisualViewport"===(null==(t=e.constructor)?void 0:t.name)}function dh(e){return yo(e)&&void 0!==e.nodeType}function bc(e){return dh(e)&&11===e.nodeType&&"host"in e}function fh(e,t){var n;if(!(e&&t&&os(e)&&os(t)))return!1;const r=null==(n=t.getRootNode)?void 0:n.call(t);if(e===t||e.contains(t))return!0;if(r&&bc(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ls(e){return vc(e)?e:uh(e)?e.document:(null==e?void 0:e.ownerDocument)??document}function wc(e){var t;return bc(e)?wc(e.host):vc(e)?e.defaultView??window:os(e)?(null==(t=e.ownerDocument)?void 0:t.defaultView)??window:window}function hh(e){let t=e.activeElement;for(;null!=t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var xr;class Bs{constructor(e){te(this,"element"),R(this,xr,F((()=>this.element.current?this.element.current.getRootNode()??document:document))),te(this,"getDocument",(()=>Ls(this.root))),te(this,"getWindow",(()=>this.getDocument().defaultView??window)),te(this,"getActiveElement",(()=>hh(this.root))),te(this,"isActiveElement",(e=>e===this.getActiveElement())),te(this,"querySelector",(e=>this.root?this.root.querySelector(e):null)),te(this,"querySelectorAll",(e=>this.root?this.root.querySelectorAll(e):[])),te(this,"setTimeout",((e,t)=>this.getWindow().setTimeout(e,t))),te(this,"clearTimeout",(e=>this.getWindow().clearTimeout(e))),this.element="function"==typeof e?N.with(e):e}get root(){return g(y(this,xr))}set root(e){M(y(this,xr),e)}getElementById(e){return this.root.getElementById(e)}}function un(e,t){return{[Wd()]:n=>N.isBox(e)?(e.current=n,Je((()=>null==t?void 0:t(n))),()=>{e.current=null,null==t||t(null)}):(e(n),Je((()=>null==t?void 0:t(n))),()=>{e(null),null==t||t(null)})}}function zs(e){return e?"open":"closed"}function yc(e){return e?"true":"false"}function xc(e){var t;const n=null==(t=e.getVariant)?void 0:t.call(e),r=n?`data-${n}-`:`data-${e.component}-`;function o(e,t){return t?`data-${t}-${e}`:`${r}${e}`}return{...Object.fromEntries(e.parts.map((e=>[e,o(e)]))),selector:function(e,t){return`[${o(e,t)}]`},getAttr:o}}xr=new WeakMap;const Sc="Enter",gh="Escape",_c=" ",ph="Tab",Vs=typeof document<"u",ka=mh();function mh(){var e,t;return Vs&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))}function is(e){return e instanceof HTMLElement}function Ac(e){return e instanceof Element}function vh(e){return null!==e}function bh(e){return e instanceof HTMLInputElement&&"select"in e}function wh(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Oe(){}function xo(e,t){return`bits-${e}`}function yh(e,t){const n=N(e);return{state:n,dispatch:e=>{n.current=function(e){return t[n.current][e]??n.current}(e)}}}function xh(e,t){let n=$(Fe({})),r=$("none");const o=e.current?"mounted":"unmounted",i=new ih((()=>e.current)),{state:s,dispatch:a}=yh(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});function l(e){if(!t.current)return;const n=Po(t.current),r=n.includes(e.animationName)||"none"===n;e.target===t.current&&r&&a("ANIMATION_END")}function c(e){t.current&&e.target===t.current&&M(r,Po(t.current),!0)}je((()=>e.current),(()=>{if(!t.current||e.current===i.current)return;const o=g(r),s=Po(t.current);e.current?a("MOUNT"):"none"===s||"none"===g(n).display?a("UNMOUNT"):a(i&&o!==s?"ANIMATION_OUT":"UNMOUNT")})),je((()=>s.current),(()=>{if(!t.current)return;const e=Po(t.current);M(r,"mounted"===s.current?e:"none",!0)})),je((()=>t.current),(()=>{if(t.current)return M(n,getComputedStyle(t.current),!0),sn(be(t.current,"animationstart",c),be(t.current,"animationcancel",l),be(t.current,"animationend",l))}));const u=F((()=>["mounted","unmountSuspended"].includes(s.current)));return{get current(){return g(u)}}}function Po(e){return e&&getComputedStyle(e).animationName||"none"}function Ws(e,t){oe(t,!0);const n=xh(N.with((()=>t.present)),t.ref);var r=J(),o=Y(r),i=e=>{var r=J();le(Y(r),(()=>t.presence??ue),(()=>({present:n}))),z(e,r)};Se(o,(e=>{(t.forceMount||t.present||n.current)&&e(i)})),z(e,r),ie()}const Sh=xc({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]});var Sr,_r,Ar,Er,Pr,Or,Cr,kr,Tr,Ir,Rr,Nr,Mr,Dr;class _h{constructor(e){te(this,"opts"),R(this,Sr,$(null)),R(this,_r,$(null)),R(this,Ar,$(null)),R(this,Er,$(void 0)),R(this,Pr,$(void 0)),R(this,Or,$(void 0)),R(this,Cr,$(void 0)),R(this,kr,$(null)),te(this,"getBitsAttr",(e=>Sh.getAttr(e,this.opts.variant.current))),R(this,Tr,F((()=>({"data-state":zs(this.opts.open.current)})))),this.opts=e,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return g(y(this,Sr))}set triggerNode(e){M(y(this,Sr),e,!0)}get contentNode(){return g(y(this,_r))}set contentNode(e){M(y(this,_r),e,!0)}get descriptionNode(){return g(y(this,Ar))}set descriptionNode(e){M(y(this,Ar),e,!0)}get contentId(){return g(y(this,Er))}set contentId(e){M(y(this,Er),e,!0)}get titleId(){return g(y(this,Pr))}set titleId(e){M(y(this,Pr),e,!0)}get triggerId(){return g(y(this,Or))}set triggerId(e){M(y(this,Or),e,!0)}get descriptionId(){return g(y(this,Cr))}set descriptionId(e){M(y(this,Cr),e,!0)}get cancelNode(){return g(y(this,kr))}set cancelNode(e){M(y(this,kr),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return g(y(this,Tr))}set sharedProps(e){M(y(this,Tr),e)}}Sr=new WeakMap,_r=new WeakMap,Ar=new WeakMap,Er=new WeakMap,Pr=new WeakMap,Or=new WeakMap,Cr=new WeakMap,kr=new WeakMap,Tr=new WeakMap;class Ah{constructor(e,t){te(this,"opts"),te(this,"root"),R(this,Ir,F((()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":yc(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr("trigger")]:"",onkeydown:this.onkeydown,onclick:this.onclick,disabled:!!this.opts.disabled.current||void 0,...this.root.sharedProps,...un(this.opts.ref,(e=>Je((()=>{this.root.triggerNode=e,this.root.triggerId=null==e?void 0:e.id}))))})))),this.opts=e,this.root=t,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===_c||e.key===Sc)&&(e.preventDefault(),this.root.handleOpen())}get props(){return g(y(this,Ir))}set props(e){M(y(this,Ir),e)}}Ir=new WeakMap;class Eh{constructor(e,t){te(this,"opts"),te(this,"root"),R(this,Rr,F((()=>({open:this.root.opts.open.current})))),R(this,Nr,F((()=>({id:this.opts.id.current,role:"alert-dialog"===this.root.opts.variant.current?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:"alert-dialog"===this.root.opts.variant.current?"none":void 0},tabindex:"alert-dialog"===this.root.opts.variant.current?-1:void 0,...this.root.sharedProps,...un(this.opts.ref,(e=>{this.root.contentNode=e,this.root.contentId=null==e?void 0:e.id}))})))),this.opts=e,this.root=t}get snippetProps(){return g(y(this,Rr))}set snippetProps(e){M(y(this,Rr),e)}get props(){return g(y(this,Nr))}set props(e){M(y(this,Nr),e)}}Rr=new WeakMap,Nr=new WeakMap;class Ph{constructor(e,t){te(this,"opts"),te(this,"root"),R(this,Mr,F((()=>({open:this.root.opts.open.current})))),R(this,Dr,F((()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto"},...this.root.sharedProps,...un(this.opts.ref)})))),this.opts=e,this.root=t}get snippetProps(){return g(y(this,Mr))}set snippetProps(e){M(y(this,Mr),e)}get props(){return g(y(this,Dr))}set props(e){M(y(this,Dr),e)}}Mr=new WeakMap,Dr=new WeakMap;const Ti=new pn("Dialog.Root");function Oh(e){return Ti.set(new _h(e))}function Ch(e){return new Ah(e,Ti.get())}function kh(e){return new Eh(e,Ti.get())}function Th(e){return new Ph(e,Ti.get())}function Ih(e,t){var n=J();tf(Y(n),(()=>t.children),(e=>{var n=J();le(Y(n),(()=>t.children??ue)),z(e,n)})),z(e,n)}const Rh=new pn("BitsConfig");function Nh(){const e=new Mh(null,{});return Rh.getOr(e).opts}class Mh{constructor(e,t){te(this,"opts");const n=Dh(e,t);this.opts={defaultPortalTo:n((e=>e.defaultPortalTo)),defaultLocale:n((e=>e.defaultLocale))}}}function Dh(e,t){return n=>N.with((()=>{var r,o;const i=null==(r=n(t))?void 0:r.current;return void 0!==i?i:null!==e?null==(o=n(e.opts))?void 0:o.current:void 0}))}function Fh(e,t){return n=>{const r=Nh();return N.with((()=>{const o=n();if(void 0!==o)return o;const i=e(r).current;return void 0!==i?i:t}))}}const Lh=Fh((e=>e.defaultPortalTo),"body");function Ec(e,t){oe(t,!0);const n=Lh((()=>t.to)),r=pd();let o,i=F(s);function s(){if(!Vs||t.disabled)return null;let e=null;return e="string"==typeof n.current?document.querySelector(n.current):n.current,e}function a(){o&&(ef(o),o=null)}je([()=>g(i),()=>t.disabled],(([e,n])=>{if(e&&!n)return o=oc(Ih,{target:e,props:{children:t.children},context:r}),()=>{a()};a()}));var l=J(),c=Y(l),u=e=>{var n=J();le(Y(n),(()=>t.children??ue)),z(e,n)};Se(c,(e=>{t.disabled&&e(u)})),z(e,l),ie()}function Pc(e,t,n,r){const o=Array.isArray(t)?t:[t];return o.forEach((t=>e.addEventListener(t,n,r))),()=>{o.forEach((t=>e.removeEventListener(t,n,r)))}}class Oc{constructor(e,t={bubbles:!0,cancelable:!0}){te(this,"eventName"),te(this,"options"),this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){const n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return be(e,this.eventName,(e=>{t(e)}),n)}}function Ta(e,t=500){let n=null;const r=(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)};return r.destroy=()=>{null!==n&&(clearTimeout(n),n=null)},r}function Cc(e,t){return e===t||e.contains(t)}function kc(e){return(null==e?void 0:e.ownerDocument)??document}function Bh(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}var Tn,rn,jt,In,Rn,Ht,Fr,St,oi,Bn,Tc,ii,Nn,si,ai,li,ci,Lr,Ic,ui,di,fi,hi;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);class zh{constructor(e){R(this,Bn),te(this,"opts"),R(this,Tn),R(this,rn),R(this,jt,{pointerdown:!1}),R(this,In,!1),R(this,Rn,!1),R(this,Ht),R(this,Fr),R(this,St,Oe),R(this,oi,(e=>{e.defaultPrevented||this.opts.ref.current&&Fs((()=>{var t,n;!this.opts.ref.current||y(this,ci).call(this,e.target)||e.target&&!y(this,Rn)&&(null==(n=(t=y(this,Fr)).current)||n.call(t,e))}))})),R(this,ii,(e=>{let t=e;t.defaultPrevented&&(t=Ia(e)),y(this,Tn).current(e)})),R(this,Nn,Ta((e=>{if(!this.opts.ref.current)return void y(this,St).call(this);const t=this.opts.isValidEvent.current(e,this.opts.ref.current)||Hh(e,this.opts.ref.current);if(!y(this,In)||Mt(this,Bn,Ic).call(this)||!t)return void y(this,St).call(this);let n=e;n.defaultPrevented&&(n=Ia(n)),"close"===y(this,rn).current||"defer-otherwise-close"===y(this,rn).current?"touch"===e.pointerType?(y(this,St).call(this),he(this,St,Pc(y(this,Ht),"click",y(this,ii),{once:!0}))):y(this,Tn).current(n):y(this,St).call(this)}),10)),R(this,si,(e=>{y(this,jt)[e.type]=!0})),R(this,ai,(e=>{y(this,jt)[e.type]=!1})),R(this,li,(()=>{this.opts.ref.current&&he(this,In,jh(this.opts.ref.current))})),R(this,ci,(e=>!!this.opts.ref.current&&Cc(this.opts.ref.current,e))),R(this,Lr,Ta((()=>{for(const e in y(this,jt))y(this,jt)[e]=!1;he(this,In,!1)}),20)),R(this,ui,(()=>{he(this,Rn,!0)})),R(this,di,(()=>{he(this,Rn,!1)})),te(this,"props",{onfocuscapture:y(this,ui),onblurcapture:y(this,di)}),this.opts=e,he(this,rn,e.interactOutsideBehavior),he(this,Tn,e.onInteractOutside),he(this,Fr,e.onFocusOutside),Ie((()=>{he(this,Ht,kc(this.opts.ref.current))}));let t=Oe;const n=()=>{y(this,Lr).call(this),globalThis.bitsDismissableLayers.delete(this),y(this,Nn).destroy(),t()};je([()=>this.opts.enabled.current,()=>this.opts.ref.current],(()=>{if(this.opts.enabled.current&&this.opts.ref.current)return Ds(1,(()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,y(this,rn)),t(),t=Mt(this,Bn,Tc).call(this))})),n})),sh((()=>{y(this,Lr).destroy(),globalThis.bitsDismissableLayers.delete(this),y(this,Nn).destroy(),y(this,St).call(this),t()}))}}function Vh(e){return new zh(e)}function Wh(e){return e.findLast((([e,{current:t}])=>"close"===t||"ignore"===t))}function jh(e){const t=[...globalThis.bitsDismissableLayers],n=Wh(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Hh(e,t){if("button"in e&&e.button>0)return!1;const n=e.target;return!!Ac(n)&&(kc(n).documentElement.contains(n)&&!Cc(t,n)&&Bh(e,t))}function Ia(e){const t=e.currentTarget,n=e.target;let r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(r,i)=>"currentTarget"===i?t:"target"===i?n:"preventDefault"===i?()=>{o=!0,"function"==typeof r.preventDefault&&r.preventDefault()}:"defaultPrevented"===i?o:i in r?r[i]:e[i]})}function Rc(e,t){oe(t,!0);let n=A(t,"interactOutsideBehavior",3,"close"),r=A(t,"onInteractOutside",3,Oe),o=A(t,"onFocusOutside",3,Oe),i=A(t,"isValidEvent",3,(()=>!1));const s=Vh({id:N.with((()=>t.id)),interactOutsideBehavior:N.with((()=>n())),onInteractOutside:N.with((()=>r())),enabled:N.with((()=>t.enabled)),onFocusOutside:N.with((()=>o())),isValidEvent:N.with((()=>i())),ref:t.ref});var a=J();le(Y(a),(()=>t.children??ue),(()=>({props:s.props}))),z(e,a),ie()}Tn=new WeakMap,rn=new WeakMap,jt=new WeakMap,In=new WeakMap,Rn=new WeakMap,Ht=new WeakMap,Fr=new WeakMap,St=new WeakMap,oi=new WeakMap,Bn=new WeakSet,Tc=function(){return sn(be(y(this,Ht),"pointerdown",sn(y(this,si),y(this,li)),{capture:!0}),be(y(this,Ht),"pointerdown",sn(y(this,ai),y(this,Nn))),be(y(this,Ht),"focusin",y(this,oi)))},ii=new WeakMap,Nn=new WeakMap,si=new WeakMap,ai=new WeakMap,li=new WeakMap,ci=new WeakMap,Lr=new WeakMap,Ic=function(){return Object.values(y(this,jt)).some(Boolean)},ui=new WeakMap,di=new WeakMap,globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);class Uh{constructor(e){te(this,"opts"),te(this,"domContext"),R(this,fi,(()=>be(this.domContext.getDocument(),"keydown",y(this,hi),{passive:!1}))),R(this,hi,(e=>{if(e.key!==gh||!Kh(this))return;const t=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;"close"!==n&&"defer-otherwise-close"!==n||this.opts.onEscapeKeydown.current(t)})),this.opts=e,this.domContext=new Bs(this.opts.ref);let t=Oe;je((()=>e.enabled.current),(n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=y(this,fi).call(this)),()=>{t(),globalThis.bitsEscapeLayers.delete(this)})))}}function Gh(e){return new Uh(e)}function Kh(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast((([e,{current:t}])=>"close"===t||"ignore"===t));if(n)return n[0]===e;const[r]=t[0];return r===e}function Nc(e,t){oe(t,!0);let n=A(t,"escapeKeydownBehavior",3,"close"),r=A(t,"onEscapeKeydown",3,Oe);Gh({escapeKeydownBehavior:N.with((()=>n())),onEscapeKeydown:N.with((()=>r())),enabled:N.with((()=>t.enabled)),ref:t.ref});var o=J();le(Y(o),(()=>t.children??ue)),z(e,o),ie()}function Ii(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}fi=new WeakMap,hi=new WeakMap,globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});const Dt=N([]);function qh(){return{add(e){const t=Dt.current[0];t&&e.id!==t.id&&t.pause(),Dt.current=Ra(Dt.current,e),Dt.current.unshift(e)},remove(e){var t;Dt.current=Ra(Dt.current,e),null==(t=Dt.current[0])||t.resume()},get current(){return Dt.current}}}function Yh(){let e=$(!1),t=$(!1);return{id:Ii(),get paused(){return g(e)},get isHandlingFocus(){return g(t)},set isHandlingFocus(e){M(t,e,!0)},pause(){M(e,!0)},resume(){M(e,!1)}}}function Ra(e,t){return[...e].filter((e=>e.id!==t.id))}function Xh(e){return e.filter((e=>"A"!==e.tagName))}function Bt(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=Ls(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&bh(e)&&t&&e.select()}function Zh(e,{select:t=!1}={},n){const r=n();for(const o of e)if(Bt(o,{select:t}),n()!==r)return!0}function Na(e,t){for(const n of e)if(!wh(n,t))return n}function Mc(e){const t=[],n=Ls(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jh(e){const t=Mc(e);return[Na(t,e),Na(t.reverse(),e)]}
/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var Qh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],$h=Qh.join(","),Dc=typeof Element>"u",Zo=Dc?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jo=!Dc&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},eg=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},tg=function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},ng=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},rg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||tg(e))&&!ng(e)?0:e.tabIndex},Fc=function(e){return"INPUT"===e.tagName},og=function(e){return Fc(e)&&"hidden"===e.type},ig=function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))},sg=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},ag=function(e){if(!e.name)return!0;var t,n=e.form||Jo(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=sg(t,e.form);return!o||o===e},lg=function(e){return Fc(e)&&"radio"===e.type},cg=function(e){return lg(e)&&!ag(e)},ug=function(e){var t,n,r,o,i=e&&Jo(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=Jo(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a},Ma=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},dg=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Zo.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Zo.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Ma(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=Jo(e);if(s&&!s.shadowRoot&&!0===r(s))return Ma(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(ug(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},fg=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Zo.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},hg=function(e,t){return!(t.disabled||eg(t)||og(t)||dg(t,e)||ig(t)||fg(t))},gg=function(e,t){return!(cg(t)||rg(t)<0||!hg(e,t))},pg=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Zo.call(e,$h)&&gg(t,e)};const mg=new Oc("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),vg=new Oc("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),bg=new pn("FocusScope");function wg({id:e,loop:t,enabled:n,onOpenAutoFocus:r,onCloseAutoFocus:o,forceMount:i,ref:s}){const a=qh(),l=Yh(),c=bg.getOr({ignoreCloseAutoFocus:!1});let u=null;const d=new Bs(s);function f(e){if(!l.paused&&s.current&&!l.isHandlingFocus){l.isHandlingFocus=!0;try{const t=e.target;if(!is(t))return;const n=s.current.contains(t);if("focusin"===e.type)if(n)u=t;else{if(c.ignoreCloseAutoFocus)return;Bt(u,{select:!0})}else"focusout"===e.type&&!n&&!c.ignoreCloseAutoFocus&&Bt(u,{select:!0})}finally{l.isHandlingFocus=!1}}}function p(e){if(!u||!s.current)return;let t=!1;for(const n of e){if("childList"===n.type&&n.removedNodes.length>0)for(const e of n.removedNodes){if(e===u){t=!0;break}if(e.nodeType===Node.ELEMENT_NODE&&e.contains(u)){t=!0;break}}if(t)break}t&&s.current&&!s.current.contains(d.getActiveElement())&&Bt(s.current)}function h(t,o){if(t||(t=d.getElementById(e.current)),t&&n.current&&(a.add(l),!t.contains(o))){const e=mg.createEvent();r.current(e),e.defaultPrevented||Fs((()=>{t&&(Zh(Xh(Mc(t)),{select:!0},(()=>d.getActiveElement()))||Bt(t))}))}}function m(e){var t;const n=vg.createEvent();null==(t=o.current)||t.call(o,n);const r=c.ignoreCloseAutoFocus;Ds(0,(()=>{!n.defaultPrevented&&e&&!r&&Bt(pg(e)?e:d.getDocument().body,{select:!0}),a.remove(l)}))}function v(e){if(!n.current||!t.current&&!n.current||l.paused)return;const r=e.key===ph&&!e.ctrlKey&&!e.altKey&&!e.metaKey,o=d.getActiveElement();if(!r||!o)return;const i=s.current;if(!i)return;const[a,c]=Jh(i);a&&c?e.shiftKey||o!==c?e.shiftKey&&o===a&&(e.preventDefault(),t.current&&Bt(c,{select:!0})):(e.preventDefault(),t.current&&Bt(a,{select:!0})):o===i&&e.preventDefault()}je([()=>s.current,()=>n.current],(([e,t])=>{if(!e||!t)return;const n=sn(be(d.getDocument(),"focusin",f),be(d.getDocument(),"focusout",f)),r=new MutationObserver(p);return r.observe(e,{childList:!0,subtree:!0,attributes:!1}),()=>{n(),r.disconnect()}})),je([()=>i.current,()=>s.current],(([e,t])=>{if(e)return;const n=d.getActiveElement();return h(t,n),()=>{t&&m(n)}})),je([()=>i.current,()=>s.current,()=>n.current],(([e,t])=>{if(!e)return;const n=d.getActiveElement();return h(t,n),()=>{t&&m(n)}}));const b=F((()=>({id:e.current,tabindex:-1,onkeydown:v})));return{get props(){return g(b)}}}function Lc(e,t){oe(t,!0);let n=A(t,"trapFocus",3,!1),r=A(t,"loop",3,!1),o=A(t,"onCloseAutoFocus",3,Oe),i=A(t,"onOpenAutoFocus",3,Oe),s=A(t,"forceMount",3,!1);const a=wg({enabled:N.with((()=>n())),loop:N.with((()=>r())),onCloseAutoFocus:N.with((()=>o())),onOpenAutoFocus:N.with((()=>i())),id:N.with((()=>t.id)),forceMount:N.with((()=>s())),ref:t.ref});var l=J();le(Y(l),(()=>t.focusScope??ue),(()=>({props:a.props}))),z(e,l),ie()}var Mn,gi,Bc,pi,Br;globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);class yg{constructor(e){R(this,gi),te(this,"opts"),te(this,"domContext"),R(this,Mn,Oe),R(this,pi,(e=>{const t=this.opts.ref.current,n=e.target;!is(t)||!is(n)||!this.opts.enabled.current||!_g(this)||!fh(t,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&he(this,Mn,Sg(t,this.domContext.getDocument().body)))})),R(this,Br,(()=>{y(this,Mn).call(this),he(this,Mn,Oe)})),this.opts=e,this.domContext=new Bs(e.ref);let t=Oe;je((()=>this.opts.enabled.current),(e=>(e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=Mt(this,gi,Bc).call(this)),()=>{t(),y(this,Br).call(this),globalThis.bitsTextSelectionLayers.delete(this)})))}}function xg(e){return new yg(e)}Mn=new WeakMap,gi=new WeakSet,Bc=function(){return sn(be(this.domContext.getDocument(),"pointerdown",y(this,pi)),be(this.domContext.getDocument(),"pointerup",fc(y(this,Br),this.opts.onPointerUp.current)))},pi=new WeakMap,Br=new WeakMap;const Da=e=>e.style.userSelect||e.style.webkitUserSelect;function Sg(e,t){const n=Da(t),r=Da(e);return Oo(t,"none"),Oo(e,"text"),()=>{Oo(t,n),Oo(e,r)}}function Oo(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function _g(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return!!n&&n[0]===e}function zc(e,t){oe(t,!0);let n=A(t,"preventOverflowTextSelection",3,!0),r=A(t,"onPointerDown",3,Oe),o=A(t,"onPointerUp",3,Oe);xg({id:N.with((()=>t.id)),onPointerDown:N.with((()=>r())),onPointerUp:N.with((()=>o())),enabled:N.with((()=>t.enabled&&n())),ref:t.ref});var i=J();le(Y(i),(()=>t.children??ue)),z(e,i),ie()}function Ag(e){let t,n=0,r=$(void 0);return(...o)=>(n+=1,void 0===g(r)&&(t=Pd((()=>{M(r,e(...o),!0)}))),Ie((()=>()=>{n-=1,t&&n<=0&&(t(),M(r,void 0),t=void 0)})),g(r))}const Eg=Ag((()=>{const e=new rs,t=F((()=>{for(const t of e.values())if(t)return!0;return!1}));let n=$(null),r=null;return Ie((()=>{const e=g(t);return Je((()=>{if(!e)return;M(n,document.body.getAttribute("style"),!0);const t=getComputedStyle(document.body),o=window.innerWidth-document.documentElement.clientWidth,i=Number.parseInt(t.paddingRight??"0",10)+o,s=Number.parseInt(t.marginRight??"0",10);o>0&&(document.body.style.paddingRight=`${i}px`,document.body.style.marginRight=`${s}px`,document.body.style.setProperty("--scrollbar-width",`${o}px`),document.body.style.overflow="hidden"),ka&&(r=Pc(document,"touchmove",(e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())}),{passive:!1})),Fs((()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"}))}))})),Ie((()=>()=>{null==r||r()})),{get map(){return e},resetBodyStyle:function(){Vs&&(document.body.setAttribute("style",g(n)??""),document.body.style.removeProperty("--scrollbar-width"),ka&&(null==r||r()))}}}));function Pg(e,t=()=>null){const n=Ii(),r=Eg();if(!r)return;const o=F(t);r.map.set(n,e??!1);const i=N.with((()=>r.map.get(n)??!1),(e=>r.map.set(n,e)));return Ie((()=>()=>{r.map.delete(n),!Og(r.map)&&(null===g(o)?requestAnimationFrame((()=>r.resetBodyStyle())):Ds(g(o),(()=>r.resetBodyStyle())))})),i}function Og(e){for(const[t,n]of e)if(n)return!0;return!1}function Qo(e,t){oe(t,!0);let n=A(t,"preventScroll",3,!0),r=A(t,"restoreScrollDelay",3,null);Pg(n(),(()=>r())),ie()}function Cg({forceMount:e,present:t,trapFocus:n,open:r}){return e?r&&n:t&&n&&r}var kg=we("<div><!></div>");function Tg(e,t){const n=wo();oe(t,!0);let r=A(t,"id",19,(()=>xo(n))),o=A(t,"forceMount",3,!1),i=A(t,"ref",15,null),s=Ee(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=Th({id:N.with((()=>r())),ref:N.with((()=>i()),(e=>i(e)))}),l=F((()=>Xe(s,a.props))),c=F((()=>a.root.opts.open.current||o()));Ws(e,{get present(){return g(c)},get ref(){return a.opts.ref},presence:e=>{var n=J(),r=Y(n),o=e=>{var n=J(),r=Y(n),o=Ct((()=>({props:Xe(g(l)),...a.snippetProps})));le(r,(()=>t.child),(()=>g(o))),z(e,n)},i=e=>{var n=kg();$e(n,(e=>({...e})),[()=>Xe(g(l))]),le(ce(n),(()=>t.children??ue),(()=>a.snippetProps)),z(e,n)};Se(r,(e=>{t.child?e(o):e(i,!1)})),z(e,n)},$$slots:{presence:!0}}),ie()}var Ig=we("<button><!></button>");function Rg(e,t){const n=wo();oe(t,!0);let r=A(t,"id",19,(()=>xo(n))),o=A(t,"ref",15,null),i=A(t,"disabled",3,!1),s=Ee(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=Ch({id:N.with((()=>r())),ref:N.with((()=>o()),(e=>o(e))),disabled:N.with((()=>!!i()))}),l=F((()=>Xe(s,a.props)));var c=J(),u=Y(c),d=e=>{var n=J();le(Y(n),(()=>t.child),(()=>({props:g(l)}))),z(e,n)},f=e=>{var n=Ig();$e(n,(()=>({...g(l)}))),le(ce(n),(()=>t.children??ue)),z(e,n)};Se(u,(e=>{t.child?e(d):e(f,!1)})),z(e,c),ie()}const Ng=["top","right","bottom","left"],Xt=Math.min,qe=Math.max,$o=Math.round,Co=Math.floor,gt=e=>({x:e,y:e}),Mg={left:"right",right:"left",bottom:"top",top:"bottom"},Dg={start:"end",end:"start"};function ss(e,t,n){return qe(e,Xt(t,n))}function kt(e,t){return"function"==typeof e?e(t):e}function Tt(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function js(e){return"x"===e?"y":"x"}function Hs(e){return"y"===e?"height":"width"}function Pt(e){return["top","bottom"].includes(Tt(e))?"y":"x"}function Us(e){return js(Pt(e))}function Fg(e,t,n){void 0===n&&(n=!1);const r=jn(e),o=Us(e),i=Hs(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ei(s)),[s,ei(s)]}function Lg(e){const t=ei(e);return[as(e),t,as(t)]}function as(e){return e.replace(/start|end/g,(e=>Dg[e]))}function Bg(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function zg(e,t,n,r){const o=jn(e);let i=Bg(Tt(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(as)))),i}function ei(e){return e.replace(/left|right|bottom|top/g,(e=>Mg[e]))}function Vg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vc(e){return"number"!=typeof e?Vg(e):{top:e,right:e,bottom:e,left:e}}function ti(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fa(e,t,n){let{reference:r,floating:o}=e;const i=Pt(t),s=Us(t),a=Hs(s),l=Tt(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(jn(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1)}return p}const Wg=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fa(c,r,l),f=r,p={},h=0;for(let n=0;n<a.length;n++){const{name:i,fn:g}=a[n],{x:m,y:v,data:b,reset:y}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=m??u,d=v??d,p={...p,[i]:{...p[i],...b}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Fa(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}};async function fr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=kt(t,e),h=Vc(p),g=a[f?"floating"===d?"reference":"floating":d],m=ti(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ti(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:b,strategy:l}):v);return{top:(m.top-w.top+h.top)/y.y,bottom:(w.bottom-m.bottom+h.bottom)/y.y,left:(m.left-w.left+h.left)/y.x,right:(w.right-m.right+h.right)/y.x}}const jg=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=kt(e,t)||{};if(null==c)return{};const d=Vc(u),f={x:n,y:r},p=Us(o),h=Hs(p),g=await s.getDimensions(c),m="y"===p,v=m?"top":"left",b=m?"bottom":"right",y=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let A=k?k[y]:0;(!A||!await(null==s.isElement?void 0:s.isElement(k)))&&(A=a.floating[y]||i.floating[h]);const $=w/2-x/2,M=A/2-g[h]/2-1,O=Xt(d[v],M),S=Xt(d[b],M),N=O,P=A-g[h]-S,C=A/2-g[h]/2+$,E=ss(N,C,P),F=!l.arrow&&null!=jn(o)&&C!==E&&i.reference[h]/2-(C<N?O:S)-g[h]/2<0,z=F?C<N?C-N:C-P:0;return{[p]:f[p]+z,data:{[p]:E,centerOffset:C-E-z,...F&&{alignmentOffset:z}},reset:F}}}),Hg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=kt(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Tt(o),b=Pt(a),y=Tt(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!g?[ei(a)]:Lg(a)),k="none"!==h;!f&&k&&x.push(...zg(a,g,h,w));const A=[a,...x],$=await fr(t,m),M=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&M.push($[v]),d){const e=Fg(o,s,w);M.push($[e[0]],$[e[1]])}if(O=[...O,{placement:o,overflows:M}],!M.every((e=>e<=0))){var S,N;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=A[e];if(t){var P;const n="alignment"===d&&b!==Pt(t),r=(null==(P=O[0])?void 0:P.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:O},reset:{placement:t}}}let n=null==(N=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=O.filter((e=>{if(k){const t=Pt(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}};function La(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ba(e){return Ng.some((t=>e[t]>=0))}const Ug=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=kt(e,t);switch(r){case"referenceHidden":{const e=La(await fr(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ba(e)}}}case"escaped":{const e=La(await fr(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ba(e)}}}default:return{}}}}};async function Gg(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Tt(n),a=jn(n),l="y"===Pt(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=kt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Kg=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Gg(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},qg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=kt(e,t),c={x:n,y:r},u=await fr(t,l),d=Pt(Tt(o)),f=js(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=ss(p+u["y"===f?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";h=ss(h+u["y"===d?"top":"left"],h,h-u[e])}const g=a.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[d]:s}}}}}},Yg=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=kt(e,t),u={x:n,y:r},d=Pt(o),f=js(d);let p=u[f],h=u[d];const g=kt(a,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=["top","left"].includes(Tt(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=s.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Xg=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=kt(e,t),u=await fr(t,c),d=Tt(o),f=jn(o),p="y"===Pt(o),{width:h,height:g}=i.floating;let m,v;"top"===d||"bottom"===d?(m=d,v=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,m="end"===f?"top":"bottom");const b=g-u.top-u.bottom,y=h-u.left-u.right,w=Xt(g-u[m],b),x=Xt(h-u[v],y),k=!t.middlewareData.shift;let A=w,$=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&($=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(A=b),k&&!f){const e=qe(u.left,0),t=qe(u.right,0),n=qe(u.top,0),r=qe(u.bottom,0);p?$=h-2*(0!==e||0!==t?e+t:qe(u.left,u.right)):A=g-2*(0!==n||0!==r?n+r:qe(u.top,u.bottom))}await l({...t,availableWidth:$,availableHeight:A});const M=await s.getDimensions(a.floating);return h!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ri(){return typeof window<"u"}function Hn(e){return Wc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function vt(e){var t;return null==(t=(Wc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Wc(e){return!!Ri()&&(e instanceof Node||e instanceof Ze(e).Node)}function at(e){return!!Ri()&&(e instanceof Element||e instanceof Ze(e).Element)}function mt(e){return!!Ri()&&(e instanceof HTMLElement||e instanceof Ze(e).HTMLElement)}function za(e){return!(!Ri()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot)}function So(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Zg(e){return["table","td","th"].includes(Hn(e))}function Ni(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function Gs(e){const t=Ks(),n=at(e)?lt(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Jg(e){let t=Zt(e);for(;mt(t)&&!Fn(t);){if(Gs(t))return t;if(Ni(t))return null;t=Zt(t)}return null}function Ks(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fn(e){return["html","body","#document"].includes(Hn(e))}function lt(e){return Ze(e).getComputedStyle(e)}function Mi(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zt(e){if("html"===Hn(e))return e;const t=e.assignedSlot||e.parentNode||za(e)&&e.host||vt(e);return za(t)?t.host:t}function jc(e){const t=Zt(e);return Fn(t)?e.ownerDocument?e.ownerDocument.body:e.body:mt(t)&&So(t)?t:jc(t)}function hr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=jc(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ze(o);if(i){const e=ls(s);return t.concat(s,s.visualViewport||[],So(o)?o:[],e&&n?hr(e):[])}return t.concat(o,hr(o,[],n))}function ls(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hc(e){const t=lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=mt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=$o(n)!==i||$o(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function qs(e){return at(e)?e:e.contextElement}function Sn(e){const t=qs(e);if(!mt(t))return gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hc(t);let s=(i?$o(n.width):n.width)/r,a=(i?$o(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Qg=gt(0);function Uc(e){const t=Ze(e);return Ks()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qg}function $g(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ze(e))&&t}function dn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qs(e);let s=gt(1);t&&(r?at(r)&&(s=Sn(r)):s=Sn(e));const a=$g(i,n,r)?Uc(i):gt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=Ze(i),t=r&&at(r)?Ze(r):r;let n=e,o=ls(n);for(;o&&r&&t!==n;){const e=Sn(o),t=o.getBoundingClientRect(),r=lt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=Ze(o),o=ls(n)}}return ti({width:u,height:d,x:l,y:c})}function Ys(e,t){const n=Mi(e).scrollLeft;return t?t.left+n:dn(vt(e)).left+n}function Gc(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ys(e,r)),y:r.top+t.scrollTop}}function ep(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=vt(r),a=!!t&&Ni(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=gt(1);const u=gt(0),d=mt(r);if((d||!d&&!i)&&(("body"!==Hn(r)||So(s))&&(l=Mi(r)),mt(r))){const e=dn(r);c=Sn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!s||d||i?gt(0):Gc(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function tp(e){return Array.from(e.getClientRects())}function np(e){const t=vt(e),n=Mi(e),r=e.ownerDocument.body,o=qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ys(e);const a=-n.scrollTop;return"rtl"===lt(r).direction&&(s+=qe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function rp(e,t){const n=Ze(e),r=vt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Ks();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function op(e,t){const n=dn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=mt(e)?Sn(e):gt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function Va(e,t,n){let r;if("viewport"===t)r=rp(e,n);else if("document"===t)r=np(vt(e));else if(at(t))r=op(t,n);else{const n=Uc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ti(r)}function Kc(e,t){const n=Zt(e);return!(n===t||!at(n)||Fn(n))&&("fixed"===lt(n).position||Kc(n,t))}function ip(e,t){const n=t.get(e);if(n)return n;let r=hr(e,[],!1).filter((e=>at(e)&&"body"!==Hn(e))),o=null;const i="fixed"===lt(e).position;let s=i?Zt(e):e;for(;at(s)&&!Fn(s);){const t=lt(s),n=Gs(s);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||So(s)&&!n&&Kc(e,s))?r=r.filter((e=>e!==s)):o=t,s=Zt(s)}return t.set(e,r),r}function sp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ni(t)?[]:ip(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Va(t,n,o);return e.top=qe(r.top,e.top),e.right=Xt(r.right,e.right),e.bottom=Xt(r.bottom,e.bottom),e.left=qe(r.left,e.left),e}),Va(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ap(e){const{width:t,height:n}=Hc(e);return{width:t,height:n}}function lp(e,t,n){const r=mt(t),o=vt(t),i="fixed"===n,s=dn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=gt(0);function c(){l.x=Ys(o)}if(r||!r&&!i)if(("body"!==Hn(t)||So(o))&&(a=Mi(t)),r){const e=dn(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?gt(0):Gc(o,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}function Vi(e){return"static"===lt(e).position}function Wa(e,t){if(!mt(e)||"fixed"===lt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return vt(e)===n&&(n=n.ownerDocument.body),n}function qc(e,t){const n=Ze(e);if(Ni(e))return n;if(!mt(e)){let t=Zt(e);for(;t&&!Fn(t);){if(at(t)&&!Vi(t))return t;t=Zt(t)}return n}let r=Wa(e,t);for(;r&&Zg(r)&&Vi(r);)r=Wa(r,t);return r&&Fn(r)&&Vi(r)&&!Gs(r)?n:r||Jg(e)||n}const cp=async function(e){const t=this.getOffsetParent||qc,n=this.getDimensions,r=await n(e.floating);return{reference:lp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function up(e){return"rtl"===lt(e).direction}const dp={convertOffsetParentRelativeRectToViewportRelativeRect:ep,getDocumentElement:vt,getClippingRect:sp,getOffsetParent:qc,getElementRects:cp,getClientRects:tp,getDimensions:ap,getScale:Sn,isElement:at,isRTL:up};function Yc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fp(e,t){let n,r=null;const o=vt(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const h={rootMargin:-Co(d)+"px "+-Co(o.clientWidth-(u+f))+"px "+-Co(o.clientHeight-(d+p))+"px "+-Co(u)+"px",threshold:qe(0,Xt(1,l))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1===r&&!Yc(c,e.getBoundingClientRect())&&s(),g=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}function hp(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=qs(e),u=o||i?[...c?hr(c):[],...hr(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?fp(c,n):null;let f=-1,p=null;s&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let h,g=l?dn(e):null;return l&&function t(){const r=dn(e);g&&!Yc(g,r)&&n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const gp=Kg,pp=qg,mp=Hg,vp=Xg,bp=Ug,wp=jg,yp=Yg,xp=(e,t,n)=>{const r=new Map,o={platform:dp,...n},i={...o.platform,_c:r};return Wg(e,t,{...o,platform:i})};function Qt(e){return"function"==typeof e?e():e}function Xc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ja(e,t){const n=Xc(e);return Math.round(t*n)/n}function Ha(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Sp(e){const t=e.whileElementsMounted,n=F((()=>Qt(e.open)??!0)),r=F((()=>Qt(e.middleware))),o=F((()=>Qt(e.transform)??!0)),i=F((()=>Qt(e.placement)??"bottom")),s=F((()=>Qt(e.strategy)??"absolute")),a=F((()=>Qt(e.sideOffset)??0)),l=F((()=>Qt(e.alignOffset)??0)),c=e.reference;let u=$(0),d=$(0);const f=N(null);let p=$(Fe(g(s))),h=$(Fe(g(i))),m=$(Fe({})),v=$(!1);const b=F((()=>{const e=f.current?ja(f.current,g(u)):g(u),t=f.current?ja(f.current,g(d)):g(d);return g(o)?{position:g(p),left:"0",top:"0",transform:`translate(${e}px, ${t}px)`,...f.current&&Xc(f.current)>=1.5&&{willChange:"transform"}}:{position:g(p),left:`${e}px`,top:`${t}px`}}));let y;function w(){null===c.current||null===f.current||xp(c.current,f.current,{middleware:g(r),placement:g(i),strategy:g(s)}).then((e=>{if(!g(n)&&0!==g(u)&&0!==g(d)){const t=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(e.x<=t&&e.y<=t)return}M(u,e.x,!0),M(d,e.y,!0),M(p,e.strategy,!0),M(h,e.placement,!0),M(m,e.middlewareData,!0),M(v,!0)}))}function x(){"function"==typeof y&&(y(),y=void 0)}return Ie(w),Ie((function(){x(),void 0!==t?null===c.current||null===f.current||(y=t(c.current,f.current,w)):w()})),Ie((function(){g(n)||M(v,!1)})),Ie((()=>x)),{floating:f,reference:c,get strategy(){return g(p)},get placement(){return g(h)},get middlewareData(){return g(m)},get isPositioned(){return g(v)},get floatingStyles(){return g(b)},get update(){return w}}}const _p={top:"bottom",right:"left",bottom:"top",left:"right"};class Ua{constructor(){te(this,"anchorNode",N(null)),te(this,"customAnchorNode",N(null)),te(this,"triggerNode",N(null)),Ie((()=>{this.customAnchorNode.current?"string"==typeof this.customAnchorNode.current?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current}))}}var zr,mi,Vr,vi,Wr,bi,jr,Hr,Ur,Gr,Kr,qr,Yr,Xr,Zr,Jr,Qr,$r,eo,to,no,ro,oo,io;class Ga{constructor(e,t){te(this,"opts"),te(this,"root"),te(this,"contentRef",N(null)),te(this,"wrapperRef",N(null)),te(this,"arrowRef",N(null)),te(this,"arrowId",N(Ii())),R(this,zr,F((()=>"string"==typeof this.opts.style?ir(this.opts.style):this.opts.style?void 0:{}))),R(this,mi),R(this,Vr,new oh((()=>this.arrowRef.current??void 0))),R(this,vi,F((()=>{var e;return(null==(e=y(this,Vr))?void 0:e.width)??0}))),R(this,Wr,F((()=>{var e;return(null==(e=y(this,Vr))?void 0:e.height)??0}))),R(this,bi,F((()=>{var e;return(null==(e=this.opts.side)?void 0:e.current)+("center"!==this.opts.align.current?`-${this.opts.align.current}`:"")}))),R(this,jr,F((()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]))),R(this,Hr,F((()=>g(y(this,jr)).length>0))),R(this,Ur,F((()=>({padding:this.opts.collisionPadding.current,boundary:g(y(this,jr)).filter(vh),altBoundary:this.hasExplicitBoundaries})))),R(this,Gr,$(void 0)),R(this,Kr,$(void 0)),R(this,qr,$(void 0)),R(this,Yr,$(void 0)),R(this,Xr,F((()=>[gp({mainAxis:this.opts.sideOffset.current+g(y(this,Wr)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&pp({mainAxis:!0,crossAxis:!1,limiter:"partial"===this.opts.sticky.current?yp():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&mp({...this.detectOverflowOptions}),vp({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{const{width:r,height:o}=e.reference;M(y(this,Gr),t,!0),M(y(this,Kr),n,!0),M(y(this,qr),r,!0),M(y(this,Yr),o,!0)}}),this.arrowRef.current&&wp({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Op({arrowWidth:g(y(this,vi)),arrowHeight:g(y(this,Wr))}),this.opts.hideWhenDetached.current&&bp({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)))),te(this,"floating"),R(this,Zr,F((()=>Cp(this.floating.placement)))),R(this,Jr,F((()=>kp(this.floating.placement)))),R(this,Qr,F((()=>{var e;return(null==(e=this.floating.middlewareData.arrow)?void 0:e.x)??0}))),R(this,$r,F((()=>{var e;return(null==(e=this.floating.middlewareData.arrow)?void 0:e.y)??0}))),R(this,eo,F((()=>{var e;return 0!==(null==(e=this.floating.middlewareData.arrow)?void 0:e.centerOffset)}))),R(this,to,$()),R(this,no,F((()=>_p[this.placedSide]))),R(this,ro,F((()=>{var e,t,n;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${null==(e=this.floating.middlewareData.transformOrigin)?void 0:e.x} ${null==(t=this.floating.middlewareData.transformOrigin)?void 0:t.y}`,"--bits-floating-available-width":`${g(y(this,Gr))}px`,"--bits-floating-available-height":`${g(y(this,Kr))}px`,"--bits-floating-anchor-width":`${g(y(this,qr))}px`,"--bits-floating-anchor-height":`${g(y(this,Yr))}px`,...(null==(n=this.floating.middlewareData.hide)?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...g(y(this,zr))},dir:this.opts.dir.current,...un(this.wrapperRef)}}))),R(this,oo,F((()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Ms({...g(y(this,zr))}),...un(this.contentRef)})))),R(this,io,F((()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})))),this.opts=e,this.root=t,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),je((()=>e.customAnchor.current),(e=>{this.root.customAnchorNode.current=e})),this.floating=Sp({strategy:()=>this.opts.strategy.current,placement:()=>g(y(this,bi)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>{var t;return hp(...e,{animationFrame:"always"===(null==(t=y(this,mi))?void 0:t.current)})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Ie((()=>{var e;this.floating.isPositioned&&(null==(e=this.opts.onPlaced)||e.current())})),je((()=>this.contentRef.current),(e=>{if(!e)return;const t=wc(e);this.contentZIndex=t.getComputedStyle(e).zIndex})),Ie((()=>{this.floating.floating.current=this.wrapperRef.current}))}get hasExplicitBoundaries(){return g(y(this,Hr))}set hasExplicitBoundaries(e){M(y(this,Hr),e)}get detectOverflowOptions(){return g(y(this,Ur))}set detectOverflowOptions(e){M(y(this,Ur),e)}get middleware(){return g(y(this,Xr))}set middleware(e){M(y(this,Xr),e)}get placedSide(){return g(y(this,Zr))}set placedSide(e){M(y(this,Zr),e)}get placedAlign(){return g(y(this,Jr))}set placedAlign(e){M(y(this,Jr),e)}get arrowX(){return g(y(this,Qr))}set arrowX(e){M(y(this,Qr),e)}get arrowY(){return g(y(this,$r))}set arrowY(e){M(y(this,$r),e)}get cannotCenterArrow(){return g(y(this,eo))}set cannotCenterArrow(e){M(y(this,eo),e)}get contentZIndex(){return g(y(this,to))}set contentZIndex(e){M(y(this,to),e,!0)}get arrowBaseSide(){return g(y(this,no))}set arrowBaseSide(e){M(y(this,no),e)}get wrapperProps(){return g(y(this,ro))}set wrapperProps(e){M(y(this,ro),e)}get props(){return g(y(this,oo))}set props(e){M(y(this,oo),e)}get arrowStyle(){return g(y(this,io))}set arrowStyle(e){M(y(this,io),e)}}zr=new WeakMap,mi=new WeakMap,Vr=new WeakMap,vi=new WeakMap,Wr=new WeakMap,bi=new WeakMap,jr=new WeakMap,Hr=new WeakMap,Ur=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,qr=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,$r=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,ro=new WeakMap,oo=new WeakMap,io=new WeakMap;class Ka{constructor(e,t){te(this,"opts"),te(this,"root"),this.opts=e,this.root=t,e.virtualEl&&e.virtualEl.current?t.triggerNode=N.from(e.virtualEl.current):t.triggerNode=e.ref}}const Xs=new pn("Floating.Root"),qa=new pn("Floating.Content"),Zs=new pn("Floating.Root");function Ap(e=!1){return e?Zs.set(new Ua):Xs.set(new Ua)}function Ep(e,t=!1){return t?qa.set(new Ga(e,Zs.get())):qa.set(new Ga(e,Xs.get()))}function Pp(e,t=!1){return new Ka(e,t?Zs.get():Xs.get())}function Op(e){return{name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:s,middlewareData:a}=t,l=0!==(null==(n=a.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,f]=Js(i),p={start:"0%",center:"50%",end:"100%"}[f],h=((null==(r=a.arrow)?void 0:r.x)??0)+c/2,g=((null==(o=a.arrow)?void 0:o.y)??0)+u/2;let m="",v="";return"bottom"===d?(m=l?p:`${h}px`,v=-u+"px"):"top"===d?(m=l?p:`${h}px`,v=`${s.floating.height+u}px`):"right"===d?(m=-u+"px",v=l?p:`${g}px`):"left"===d&&(m=`${s.floating.width+u}px`,v=l?p:`${g}px`),{data:{x:m,y:v}}}}}function Js(e){const[t,n="center"]=e.split("-");return[t,n]}function Cp(e){return Js(e)[0]}function kp(e){return Js(e)[1]}function Tp(e,t){oe(t,!0),Ap(A(t,"tooltip",3,!1)());var n=J();le(Y(n),(()=>t.children??ue)),z(e,n),ie()}function Ip(e,t){oe(t,!0);let n=A(t,"tooltip",3,!1);Pp({id:N.with((()=>t.id)),virtualEl:N.with((()=>t.virtualEl)),ref:t.ref},n());var r=J();le(Y(r),(()=>t.children??ue)),z(e,r),ie()}function Rp(e,t){oe(t,!0);let n=A(t,"side",3,"bottom"),r=A(t,"sideOffset",3,0),o=A(t,"align",3,"center"),i=A(t,"alignOffset",3,0),s=A(t,"arrowPadding",3,0),a=A(t,"avoidCollisions",3,!0),l=A(t,"collisionBoundary",19,(()=>[])),c=A(t,"collisionPadding",3,0),u=A(t,"hideWhenDetached",3,!1),d=A(t,"onPlaced",3,(()=>{})),f=A(t,"sticky",3,"partial"),p=A(t,"updatePositionStrategy",3,"optimized"),h=A(t,"strategy",3,"fixed"),m=A(t,"dir",3,"ltr"),v=A(t,"style",19,(()=>({}))),b=A(t,"wrapperId",19,Ii),y=A(t,"customAnchor",3,null),w=A(t,"tooltip",3,!1);const x=Ep({side:N.with((()=>n())),sideOffset:N.with((()=>r())),align:N.with((()=>o())),alignOffset:N.with((()=>i())),id:N.with((()=>t.id)),arrowPadding:N.with((()=>s())),avoidCollisions:N.with((()=>a())),collisionBoundary:N.with((()=>l())),collisionPadding:N.with((()=>c())),hideWhenDetached:N.with((()=>u())),onPlaced:N.with((()=>d())),sticky:N.with((()=>f())),updatePositionStrategy:N.with((()=>p())),strategy:N.with((()=>h())),dir:N.with((()=>m())),style:N.with((()=>v())),enabled:N.with((()=>t.enabled)),wrapperId:N.with((()=>b())),customAnchor:N.with((()=>y()))},w()),k=F((()=>Xe(x.wrapperProps,{style:{pointerEvents:"auto"}})));var $=J();le(Y($),(()=>t.content??ue),(()=>({props:x.props,wrapperProps:g(k)}))),z(e,$),ie()}function Np(e,t){oe(t,!0),Ci((()=>{var e;null==(e=t.onPlaced)||e.call(t)}));var n=J();le(Y(n),(()=>t.content??ue),(()=>({props:{},wrapperProps:{}}))),z(e,n),ie()}function Mp(e,t){let n=A(t,"isStatic",3,!1),r=Ee(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=J(),i=Y(o),s=e=>{Np(e,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=e=>{Rp(e,Ae({get content(){return t.content},get onPlaced(){return t.onPlaced}},(()=>r)))};Se(i,(e=>{n()?e(s):e(a,!1)})),z(e,o)}var Dp=we("<!> <!>",1);function Zc(e,t){oe(t,!0);let n=A(t,"interactOutsideBehavior",3,"close"),r=A(t,"trapFocus",3,!0),o=A(t,"isValidEvent",3,(()=>!1)),i=A(t,"customAnchor",3,null),s=A(t,"isStatic",3,!1),a=A(t,"tooltip",3,!1),l=Ee(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip"]);Mp(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(e,i)=>{var s=Dp(),a=Y(s),c=e=>{Qo(e,{get preventScroll(){return t.preventScroll}})},u=(e,n)=>{var r=e=>{Qo(e,{get preventScroll(){return t.preventScroll}})};Se(e,(e=>{t.forceMount||e(r)}),n)};Se(a,(e=>{t.forceMount&&t.enabled?e(c):e(u,!1)}));var d=xe(a,2);const f=F((()=>t.enabled&&r()));Lc(d,{get id(){return t.id},get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get trapFocus(){return g(f)},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(e,r)=>{Nc(e,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,s)=>{{const s=(e,n)=>{zc(e,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,o)=>{var s=J(),a=Y(s),c=Ct((()=>({props:Xe(l,null==i?void 0:i().props,null==n?void 0:n().props,null==r?void 0:r().props,{style:{pointerEvents:"auto"}}),wrapperProps:null==i?void 0:i().wrapperProps})));le(a,(()=>t.popper??ue),(()=>g(c))),z(e,s)},$$slots:{default:!0}})};Rc(e,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},isValidEvent:o(),get enabled(){return t.enabled},get ref(){return t.ref},children:s,$$slots:{default:!0}})}},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),z(e,s)},$$slots:{content:!0}}),ie()}function Fp(e,t){let n=A(t,"interactOutsideBehavior",3,"close"),r=A(t,"trapFocus",3,!0),o=A(t,"isValidEvent",3,(()=>!1)),i=A(t,"customAnchor",3,null),s=A(t,"isStatic",3,!1),a=Ee(t,["$$slots","$$events","$$legacy","popper","present","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref"]);Ws(e,{get present(){return t.present},get ref(){return t.ref},presence:e=>{Zc(e,Ae({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.present},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},isValidEvent:o(),get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},(()=>a)))},$$slots:{presence:!0}})}function Lp(e,t){let n=A(t,"interactOutsideBehavior",3,"close"),r=A(t,"trapFocus",3,!0),o=A(t,"isValidEvent",3,(()=>!1)),i=A(t,"customAnchor",3,null),s=A(t,"isStatic",3,!1),a=Ee(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Zc(e,Ae({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},isValidEvent:o(),get onFocusOutside(){return t.onFocusOutside}},(()=>a),{forceMount:!0}))}const cs=xc({component:"popover",parts:["root","trigger","content","close"]});var so,ao,wi,Jc,lo,co,uo;class Bp{constructor(e){te(this,"opts"),R(this,so,$(null)),R(this,ao,$(null)),this.opts=e}get contentNode(){return g(y(this,so))}set contentNode(e){M(y(this,so),e,!0)}get triggerNode(){return g(y(this,ao))}set triggerNode(e){M(y(this,ao),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}}so=new WeakMap,ao=new WeakMap;class zp{constructor(e,t){R(this,wi),te(this,"opts"),te(this,"root"),R(this,lo,F((()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":yc(this.root.opts.open.current),"data-state":zs(this.root.opts.open.current),"aria-controls":Mt(this,wi,Jc).call(this),[cs.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,...un(this.opts.ref,(e=>this.root.triggerNode=e))})))),this.opts=e,this.root=t,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||0===e.button&&this.root.toggleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===Sc||e.key===_c)&&(e.preventDefault(),this.root.toggleOpen())}get props(){return g(y(this,lo))}set props(e){M(y(this,lo),e)}}wi=new WeakSet,Jc=function(){var e,t;if(this.root.opts.open.current&&null!=(e=this.root.contentNode)&&e.id)return null==(t=this.root.contentNode)?void 0:t.id},lo=new WeakMap;class Vp{constructor(e,t){te(this,"opts"),te(this,"root"),te(this,"onInteractOutside",(e=>{this.opts.onInteractOutside.current(e),!e.defaultPrevented&&Ac(e.target)&&e.target.closest(cs.selector("trigger"))!==this.root.triggerNode&&this.root.handleClose()})),te(this,"onEscapeKeydown",(e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()})),te(this,"onCloseAutoFocus",(e=>{var t;this.opts.onCloseAutoFocus.current(e),!e.defaultPrevented&&(e.preventDefault(),null==(t=this.root.triggerNode)||t.focus())})),R(this,co,F((()=>({open:this.root.opts.open.current})))),R(this,uo,F((()=>({id:this.opts.id.current,tabindex:-1,"data-state":zs(this.root.opts.open.current),[cs.content]:"",style:{pointerEvents:"auto"},...un(this.opts.ref,(e=>this.root.contentNode=e))})))),te(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onCloseAutoFocus:this.onCloseAutoFocus}),this.opts=e,this.root=t}get snippetProps(){return g(y(this,co))}set snippetProps(e){M(y(this,co),e)}get props(){return g(y(this,uo))}set props(e){M(y(this,uo),e)}}co=new WeakMap,uo=new WeakMap;const Qs=new pn("Popover.Root");function Wp(e){return Qs.set(new Bp(e))}function jp(e){return new zp(e,Qs.get())}function Hp(e){return new Vp(e,Qs.get())}var Up=we("<div><div><!></div></div>"),Gp=we("<div><div><!></div></div>");function Kp(e,t){const n=wo();oe(t,!0);let r=A(t,"ref",15,null),o=A(t,"id",19,(()=>xo(n))),i=A(t,"forceMount",3,!1),s=A(t,"onCloseAutoFocus",3,Oe),a=A(t,"onEscapeKeydown",3,Oe),l=A(t,"onInteractOutside",3,Oe),c=A(t,"trapFocus",3,!0),u=A(t,"preventScroll",3,!1),d=Ee(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll"]);const f=Hp({id:N.with((()=>o())),ref:N.with((()=>r()),(e=>r(e))),onInteractOutside:N.with((()=>l())),onEscapeKeydown:N.with((()=>a())),onCloseAutoFocus:N.with((()=>s()))}),p=F((()=>Xe(d,f.props)));var h=J(),m=Y(h),v=e=>{Lp(e,Ae((()=>g(p)),(()=>f.popperProps),{get ref(){return f.opts.ref},get enabled(){return f.root.opts.open.current},get id(){return o()},get trapFocus(){return c()},get preventScroll(){return u()},loop:!0,forceMount:!0,popper:(e,n)=>{let r=()=>null==n?void 0:n().wrapperProps;var o=J();const i=F((()=>Xe(null==n?void 0:n().props,{style:Ha("popover")})));var s=Y(o),a=e=>{var n=J(),o=Y(n),s=Ct((()=>({props:g(i),wrapperProps:r(),...f.snippetProps})));le(o,(()=>t.child),(()=>g(s))),z(e,n)},l=e=>{var n=Up();$e(n,(()=>({...r()})));var o=ce(n);$e(o,(()=>({...g(i)}))),le(ce(o),(()=>t.children??ue)),z(e,n)};Se(s,(e=>{t.child?e(a):e(l,!1)})),z(e,o)},$$slots:{popper:!0}}))},b=(e,n)=>{var r=e=>{Fp(e,Ae((()=>g(p)),(()=>f.popperProps),{get ref(){return f.opts.ref},get present(){return f.root.opts.open.current},get id(){return o()},get trapFocus(){return c()},get preventScroll(){return u()},loop:!0,forceMount:!1,popper:(e,n)=>{let r=()=>null==n?void 0:n().wrapperProps;var o=J();const i=F((()=>Xe(null==n?void 0:n().props,{style:Ha("popover")})));var s=Y(o),a=e=>{var n=J(),o=Y(n),s=Ct((()=>({props:g(i),wrapperProps:r(),...f.snippetProps})));le(o,(()=>t.child),(()=>g(s))),z(e,n)},l=e=>{var n=Gp();$e(n,(()=>({...r()})));var o=ce(n);$e(o,(()=>({...g(i)}))),le(ce(o),(()=>t.children??ue)),z(e,n)};Se(s,(e=>{t.child?e(a):e(l,!1)})),z(e,o)},$$slots:{popper:!0}}))};Se(e,(e=>{i()||e(r)}),n)};Se(m,(e=>{i()?e(v):e(b,!1)})),z(e,h),ie()}var qp=we("<button><!></button>");function Yp(e,t){const n=wo();oe(t,!0);let r=A(t,"id",19,(()=>xo(n))),o=A(t,"ref",15,null),i=A(t,"type",3,"button"),s=A(t,"disabled",3,!1),a=Ee(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled"]);const l=jp({id:N.with((()=>r())),ref:N.with((()=>o()),(e=>o(e))),disabled:N.with((()=>!!s()))}),c=F((()=>Xe(a,l.props,{type:i()})));Ip(e,{get id(){return r()},get ref(){return l.opts.ref},children:(e,n)=>{var r=J(),o=Y(r),i=e=>{var n=J();le(Y(n),(()=>t.child),(()=>({props:g(c)}))),z(e,n)},s=e=>{var n=qp();$e(n,(()=>({...g(c)}))),le(ce(n),(()=>t.children??ue)),z(e,n)};Se(o,(e=>{t.child?e(i):e(s,!1)})),z(e,r)},$$slots:{default:!0}}),ie()}function Xp(e,t){oe(t,!0);let n=A(t,"open",15,!1),r=A(t,"onOpenChange",3,Oe);Oh({variant:N.with((()=>"dialog")),open:N.with((()=>n()),(e=>{n(e),r()(e)}))});var o=J();le(Y(o),(()=>t.children??ue)),z(e,o),ie()}var Zp=we("<!> <!>",1),Jp=we("<!> <div><!></div>",1);function Qp(e,t){const n=wo();oe(t,!0);let r=A(t,"id",19,(()=>xo(n))),o=A(t,"ref",15,null),i=A(t,"forceMount",3,!1),s=A(t,"onCloseAutoFocus",3,Oe),a=A(t,"onOpenAutoFocus",3,Oe),l=A(t,"onEscapeKeydown",3,Oe),c=A(t,"onInteractOutside",3,Oe),u=A(t,"trapFocus",3,!0),d=A(t,"preventScroll",3,!0),f=A(t,"restoreScrollDelay",3,null),p=Ee(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const h=kh({id:N.with((()=>r())),ref:N.with((()=>o()),(e=>o(e)))}),m=F((()=>Xe(p,h.props))),v=F((()=>h.root.opts.open.current||i()));Ws(e,Ae((()=>g(m)),{get forceMount(){return i()},get present(){return g(v)},get ref(){return h.opts.ref},presence:e=>{const n=F((()=>Cg({forceMount:i(),present:h.root.opts.open.current,trapFocus:u(),open:h.root.opts.open.current})));Lc(e,{get ref(){return h.opts.ref},loop:!0,get trapFocus(){return g(n)},get onOpenAutoFocus(){return a()},get id(){return r()},onCloseAutoFocus:e=>{var t;s()(e),!e.defaultPrevented&&(null==(t=h.root.triggerNode)||t.focus())},focusScope:(e,n)=>{let r=()=>null==n?void 0:n().props;Nc(e,Ae((()=>g(m)),{get enabled(){return h.root.opts.open.current},get ref(){return h.opts.ref},onEscapeKeydown:e=>{l()(e),!e.defaultPrevented&&h.root.handleClose()},children:(e,n)=>{Rc(e,Ae((()=>g(m)),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},onInteractOutside:e=>{c()(e),!e.defaultPrevented&&h.root.handleClose()},children:(e,n)=>{zc(e,Ae((()=>g(m)),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},children:(e,n)=>{var o=J(),i=Y(o),s=e=>{var n=Zp(),o=Y(n),i=e=>{Qo(e,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};Se(o,(e=>{h.root.opts.open.current&&e(i)}));var s=xe(o,2),a=Ct((()=>({props:Xe(g(m),r()),...h.snippetProps})));le(s,(()=>t.child),(()=>g(a))),z(e,n)},a=e=>{var n=Jp(),o=Y(n);Qo(o,{get preventScroll(){return d()}});var i=xe(o,2);$e(i,(e=>({...e})),[()=>Xe(g(m),r())]),le(ce(i),(()=>t.children??ue)),z(e,n)};Se(i,(e=>{t.child?e(s):e(a,!1)})),z(e,o)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})},$$slots:{presence:!0}})),ie()}function $p(e,t){oe(t,!0);let n=A(t,"open",15,!1),r=A(t,"onOpenChange",3,Oe);Wp({open:N.with((()=>n()),(e=>{n(e),r()(e)}))}),Tp(e,{children:(e,n)=>{var r=J();le(Y(r),(()=>t.children??ue)),z(e,r)},$$slots:{default:!0}}),ie()}function em(e){return"function"==typeof e}function tm(e){return null!==e&&"object"==typeof e}const nm=["string","number","bigint","boolean"];function us(e){return!(null!=e&&!nm.includes(typeof e))||(Array.isArray(e)?e.every((e=>us(e))):"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype)}const gr=Symbol("box"),$s=Symbol("is-writable");function rm(e){return tm(e)&&gr in e}function om(e){return Z.isBox(e)&&$s in e}function Z(e){let t=$(Fe(e));return{[gr]:!0,[$s]:!0,get current(){return g(t)},set current(e){M(t,e,!0)}}}function im(e,t){const n=F(e);return t?{[gr]:!0,[$s]:!0,get current(){return g(n)},set current(e){t(e)}}:{[gr]:!0,get current(){return e()}}}function sm(e){return Z.isBox(e)?e:em(e)?Z.with(e):Z(e)}function am(e){return Object.entries(e).reduce(((e,[t,n])=>Z.isBox(n)?(Z.isWritableBox(n)?Object.defineProperty(e,t,{get:()=>n.current,set(e){n.current=e}}):Object.defineProperty(e,t,{get:()=>n.current}),e):Object.assign(e,{[t]:n})),{})}function lm(e){return Z.isWritableBox(e)?{[gr]:!0,get current(){return e.current}}:e}function cm(...e){return function(t){var n;for(const r of e)if(r){if(t.defaultPrevented)return;"function"==typeof r?r.call(this,t):null==(n=r.current)||n.call(this,t)}}}Z.from=sm,Z.with=im,Z.flatten=am,Z.readonly=lm,Z.isBox=rm,Z.isWritableBox=om;const um=/\d/,dm=["-","_","/","."];function fm(e=""){if(!um.test(e))return e!==e.toLowerCase()}function hm(e){const t=[];let n,r,o="";for(const i of e){const e=dm.includes(i);if(!0===e){t.push(o),o="",n=void 0;continue}const s=fm(i);if(!1===r){if(!1===n&&!0===s){t.push(o),o=i,n=s;continue}if(!0===n&&!1===s&&o.length>1){const e=o.at(-1);t.push(o.slice(0,Math.max(0,o.length-1))),o=e+i,n=s;continue}}o+=i,n=s,r=e}return t.push(o),t}function Qc(e){return e?hm(e).map((e=>pm(e))).join(""):""}function gm(e){return mm(Qc(e||""))}function pm(e){return e?e[0].toUpperCase()+e.slice(1):""}function mm(e){return e?e[0].toLowerCase()+e.slice(1):""}function ko(e){if(!e)return{};const t={};return hc(e,(function(e,n){e.startsWith("-moz-")||e.startsWith("-webkit-")||e.startsWith("-ms-")||e.startsWith("-o-")?t[Qc(e)]=n:e.startsWith("--")?t[e]=n:t[gm(e)]=n})),t}function vm(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function bm(e,t){const n=RegExp(e,"g");return e=>{if("string"!=typeof e)throw new TypeError("expected an argument of type string, but got "+typeof e);return e.match(n)?e.replace(n,t):e}}const wm=bm(/[A-Z]/,(e=>`-${e.toLowerCase()}`));function ym(e){if(!e||"object"!=typeof e||Array.isArray(e))throw new TypeError("expected an argument of type object, but got "+typeof e);return Object.keys(e).map((t=>`${wm(t)}: ${e[t]};`)).join("\n")}function $c(e={}){return ym(e).replace("\n"," ")}const xm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};function Sm(e){var t;return e.length>2&&e.startsWith("on")&&e[2]===(null==(t=e[2])?void 0:t.toLowerCase())}function eu(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];for(const e in r){const n=t[e],o=r[e],i="function"==typeof n,s="function"==typeof o;if(i&&Sm(e)){const r=n,i=o;t[e]=cm(r,i)}else if(i&&s)t[e]=vm(n,o);else if("class"===e){const r=us(n),i=us(o);r&&i?t[e]=qt(n,o):r?t[e]=qt(n):i&&(t[e]=qt(o))}else if("style"===e){const r="object"==typeof n,i="object"==typeof o,s="string"==typeof n,a="string"==typeof o;if(r&&i)t[e]={...n,...o};else if(r&&a){const r=ko(o);t[e]={...n,...r}}else if(s&&i){const r=ko(n);t[e]={...r,...o}}else if(s&&a){const r=ko(n),i=ko(o);t[e]={...r,...i}}else r?t[e]=n:i?t[e]=o:s?t[e]=n:a&&(t[e]=o)}else t[e]=void 0!==o?o:n}}return"object"==typeof t.style&&(t.style=$c(t.style).replaceAll("\n"," ")),!0!==t.hidden&&(t.hidden=void 0,delete t.hidden),!0!==t.disabled&&(t.disabled=void 0,delete t.disabled),t}$c(xm);const _m=typeof window<"u"?window:void 0;function Am(e){let t=e.activeElement;for(;null!=t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Dn,fo,ho,_t;class Em{constructor(e={}){R(this,Dn),R(this,fo);const{window:t=_m,document:n=(null==t?void 0:t.document)}=e;void 0!==t&&(he(this,Dn,n),he(this,fo,ki((e=>{const n=be(t,"focusin",e),r=be(t,"focusout",e);return()=>{n(),r()}}))))}get current(){var e;return null==(e=y(this,fo))||e.call(this),y(this,Dn)?Am(y(this,Dn)):null}}function Pm(e,t){switch(e){case"post":Ie(t);break;case"pre":Os(t)}}function tu(e,t,n,r={}){const{lazy:o=!1}=r;let i=!o,s=Array.isArray(e)?[]:void 0;Pm(t,(()=>{const t=Array.isArray(e)?e.map((e=>e())):e();if(!i)return i=!0,void(s=t);const r=Je((()=>n(t,s)));return s=t,r}))}function rt(e,t,n){tu(e,"post",t,n)}function Om(e,t,n){tu(e,"pre",t,n)}Dn=new WeakMap,fo=new WeakMap,new Em,rt.pre=Om;class Cm{constructor(e){R(this,ho),R(this,_t),he(this,ho,e),he(this,_t,Symbol(e))}get key(){return y(this,_t)}exists(){return Il(y(this,_t))}get(){const e=Go(y(this,_t));if(void 0===e)throw new Error(`Context "${y(this,ho)}" not found`);return e}getOr(e){const t=Go(y(this,_t));return void 0===t?e:t}set(e){return Tl(y(this,_t),e)}}function km(e){Ie((()=>()=>{e()}))}function nu({id:e,ref:t,deps:n=()=>!0,onRefChange:r,getRootNode:o}){rt([()=>e.current,n],(([e])=>{const n=(null==o?void 0:o())??document,i=null==n?void 0:n.getElementById(e);t.current=i||null,null==r||r(t.current)})),km((()=>{t.current=null,null==r||r(null)}))}function Tm(e,t){return setTimeout(t,e)}function Im(e){Is().then(e)}function ke(){}ho=new WeakMap,_t=new WeakMap;const _e={DURATION:.5,EASE:[.32,.72,0,1]},ru=.4,Rm=.25,Nm=100,ou=8,To=16,ds=26,Wi="vaul-dragging",iu=new WeakMap;function Me(e,t,n=!1){if(!(e&&e instanceof HTMLElement))return;let r={};Object.entries(t).forEach((([t,n])=>{t.startsWith("--")?e.style.setProperty(t,n):(r[t]=e.style[t],e.style[t]=n)})),!n&&iu.set(e,r)}function Mm(e,t){if(!(e&&e instanceof HTMLElement))return;let n=iu.get(e);n&&(e.style[t]=n[t])}const Te=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Io(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Te(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Te(t)?5:4]):null)}function Dm(e){return 8*(Math.log(e+1)-2)}function ji(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Fm(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Lm({snapPoints:e,drawerNode:t,overlayNode:n,fadeFromIndex:r,setOpenTime:o,direction:i,container:s,snapToSequentialPoint:a,activeSnapPoint:l,open:c,isReleasing:u}){let d=$(Fe(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0));Ci((()=>be(window,"resize",(function(){M(d,{innerWidth:window.innerWidth,innerHeight:window.innerHeight},!0)}))));const f=F((()=>{var t;return l.current===(null==(t=e.current)?void 0:t[e.current.length-1])||null})),p=F((()=>{var t;return null==(t=e.current)?void 0:t.findIndex((e=>e===l.current))})),h=F((()=>e.current&&e.current.length>0&&(r.current||0===r.current)&&!Number.isNaN(r.current)&&e.current[r.current]===l.current||!e.current)),m=F((()=>{var t;c.current;const n=s.current?{width:s.current.getBoundingClientRect().width,height:s.current.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return(null==(t=e.current)?void 0:t.map((e=>{const t="string"==typeof e;let r=0;if(t&&(r=parseInt(e,10)),Te(i.current)){const o=t?r:g(d)?e*n.height:0;return g(d)?"bottom"===i.current?n.height-o:-n.height+o:o}const o=t?r:g(d)?e*n.width:0;return g(d)?"right"===i.current?n.width-o:-n.width+o:o})))??[]})),v=F((()=>null!==g(p)&&void 0!==g(p)?g(m)[g(p)]:null));function b(s){var a,c;const u=(null==(a=g(m))?void 0:a.findIndex((e=>e===s)))??null;(function(t){e.current&&t===g(m).length-1&&o(new Date)})(u),Me(t(),{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:Te(i.current)?`translate3d(0, ${s}px, 0)`:`translate3d(${s}px, 0, 0)`}),g(m)&&u!==g(m).length-1&&void 0!==r.current&&u!==r.current&&u<r.current?Me(n(),{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"0"}):Me(n(),{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),l.current=null==(c=e.current)?void 0:c[Math.max(u,0)]}return rt([()=>l.current,()=>c.current],(()=>{var t;const n=u();if(!l.current||n)return;const r=(null==(t=e.current)?void 0:t.findIndex((e=>e===l.current)))??-1;if(g(m)&&-1!==r&&"number"==typeof g(m)[r]){if(g(m)[r]===l.current)return;b(g(m)[r])}})),{get isLastSnapPoint(){return g(f)},get shouldFade(){return g(h)},get activeSnapPointIndex(){return g(p)},get snapPointsOffset(){return Cl(g(m))},getPercentageDragged:function(t,n){if(!e.current||"number"!=typeof g(p)||!g(m)||void 0===r.current)return null;const o=g(p)===r.current-1;if(g(p)>=r.current&&n)return 0;if(o&&!n)return 1;if(!g(h)&&!o)return null;const i=o?g(p)+1:g(p)-1,s=o?g(m)[i]-g(m)[i-1]:g(m)[i+1]-g(m)[i],a=t/Math.abs(s);return o?1-a:a},onRelease:function({draggedDistance:t,closeDrawer:o,velocity:s,dismissible:l}){var c;if(void 0===r.current)return;const u=i.current,d="bottom"===u||"right"===u?(g(v)??0)-t:(g(v)??0)+t,h=g(p)===r.current-1,y=0===g(p),w=t>0;if(h&&Me(n(),{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),!a.current&&s>2&&!w)return void(l?o():b(g(m)[0]));if(!a.current&&s>2&&w&&g(m)&&e.current)return void b(g(m)[e.current.length-1]);const x=null==(c=g(m))?void 0:c.reduce(((e,t)=>"number"!=typeof e||"number"!=typeof t?e:Math.abs(t-d)<Math.abs(e-d)?t:e)),k=Te(u)?window.innerHeight:window.innerWidth;if(s>ru&&Math.abs(t)<.4*k){const t=w?1:-1;if(t>0&&g(f)&&e.current)return void b(g(m)[e.current.length-1]);if(y&&t<0&&l&&o(),null===g(p))return;b(g(m)[g(p)+t])}else b(x)},onDrag:function({draggedDistance:e}){if(null===g(v))return;const n=i.current,r=Hi(n)?g(v)-e:g(v)+e,o=g(m)[g(m).length-1];Hi(n)&&r<o||!Hi(n)&&r>o||Me(t(),{transform:Te(n)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`})}}}function Hi(e){return"bottom"===e||"right"===e}const Bm=typeof document<"u";function zm(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Vm(){return ea(/^Mac/)}function Wm(){return ea(/^iPhone/)}function Ya(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function jm(){return ea(/^iPad/)||Vm()&&navigator.maxTouchPoints>1}function su(){return Wm()||jm()}function ea(e){return typeof window<"u"&&null!=window.navigator?e.test(window.navigator.platform):void 0}const Hm=24;function Xa(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const Ui=Bm&&window.visualViewport;function Za(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function au(e){for(Za(e)&&(e=e.parentElement);e&&!Za(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const Um=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let No,Ro=0;function Gm(e){rt(e.isDisabled,(()=>{if(!e.isDisabled())return Ro++,1===Ro&&su()&&(No=Km()),()=>{Ro--,0===Ro&&(null==No||No())}}))}function Km(){let e,t=0;let n=window.pageXOffset,r=window.pageYOffset,o=Xa(qm(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"));window.scrollTo(0,0);let i=Xa(be(document,"touchstart",(n=>{e=au(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),be(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),be(document,"touchend",(e=>{let t=e.target;fs(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),be(document,"focus",(e=>{let t=e.target;fs(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Ui&&(Ui.height<window.innerHeight?requestAnimationFrame((()=>{Ja(t)})):Ui.addEventListener("resize",(()=>Ja(t)),{once:!0}))})))}),{capture:!0}),be(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}function qm(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ja(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=au(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+24&&(t.scrollTop+=r-n)}e=t.parentElement}}function fs(e){return e instanceof HTMLInputElement&&!Um.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let er=null;function Ym({open:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){let s=$(Fe(typeof window<"u"?window.location.href:"")),a=0;function l(){if(Ya()&&null!==er&&!i.current){const e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,er),window.requestAnimationFrame((()=>{o.current&&g(s)!==window.location.href?M(s,window.location.href,!0):window.scrollTo(t,e)})),er=null}}return Ci((()=>{function e(){a=window.scrollY}return e(),be(window,"scroll",e)})),rt([()=>t.current,()=>g(s)],(()=>{if(t.current)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||l()}})),rt([()=>e.current,()=>r(),()=>g(s),()=>t.current,()=>n.current],(()=>{n.current||!r()||(e.current?(!window.matchMedia("(display-mode: standalone)").matches&&function(){if(Ya()&&null===er&&e.current&&!i.current){er={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:e,innerHeight:t}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:-a+"px",left:-e+"px",right:"0px",height:"auto"}),window.setTimeout((()=>window.requestAnimationFrame((()=>{const e=t-window.innerHeight;e&&a>=t&&(document.body.style.top=-(a+e)+"px")}))),300)}}(),t.current||window.setTimeout((()=>{l()}),500)):l())})),{restorePositionSetting:l}}const _o=new Cm("Drawer.Root");function Xm(e){let t=$(!1),n=$(!1),r=$(!1),o=$(null),i=$(null),s=null,a=null,l=null,c=null,u=!1,d=null,f=0,p=Z(!1),h=$(!e.open.current),m=0,v=0,b=0,y=0,w=!1;const x=Lm({snapPoints:e.snapPoints,drawerNode:()=>g(i),activeSnapPoint:e.activeSnapPoint,container:e.container,direction:e.direction,fadeFromIndex:e.fadeFromIndex,overlayNode:()=>g(o),setOpenTime:e=>{s=e},snapToSequentialPoint:e.snapToSequentialPoint,open:e.open,isReleasing:()=>w});Gm({isDisabled:()=>!e.open.current||g(n)||!e.modal.current||g(r)||!g(t)||!e.repositionInputs.current||!e.disablePreventScroll.current});const{restorePositionSetting:k}=Ym({...e,hasBeenOpened:()=>g(t)});function A(){return(window.innerWidth-26)/window.innerWidth}function O(t,n){var r;let o=t;const a=null==(r=window.getSelection())?void 0:r.toString(),l=g(i)?Io(g(i),e.direction.current):null,u=new Date;if("SELECT"===o.tagName||o.hasAttribute("data-vaul-no-drag")||o.closest("[data-vaul-no-drag]"))return!1;if("right"===e.direction.current||"left"===e.direction.current)return!0;if(s&&u.getTime()-s.getTime()<500)return!1;if(null!==l&&("bottom"===e.direction.current?l>0:l<0))return!0;if(a&&a.length>0)return!1;if(c&&u.getTime()-c.getTime()<e.scrollLockTimeout.current&&0===l||n)return c=u,!1;for(;o;){if(o.scrollHeight>o.clientHeight){if(0!==o.scrollTop)return c=new Date,!1;if("dialog"===o.getAttribute("role"))return!0}o=o.parentNode}return!0}function S(){var t;if(!g(i)||!e.repositionInputs.current)return;if(fs(document.activeElement)||p.current){const n=(null==(t=window.visualViewport)?void 0:t.height)||0,r=window.innerHeight;let o=r-n;const s=g(i).getBoundingClientRect().height||0,a=s>.8*r;y||(y=s);const l=g(i).getBoundingClientRect().top;if(Math.abs(m-o)>60&&(p.current=!p.current),e.snapPoints.current&&e.snapPoints.current.length>0&&x.snapPointsOffset&&x.activeSnapPointIndex){o+=x.snapPointsOffset[x.activeSnapPointIndex]||0}if(m=o,s>n||p.current){const t=g(i).getBoundingClientRect().height;let r=t;t>n&&(r=n-(a?l:26)),e.fixed.current?g(i).style.height=t-Math.max(o,0)+"px":g(i).style.height=`${Math.max(r,n-l)}px`}else zm()||(g(i).style.height=`${y}px`);e.snapPoints.current&&e.snapPoints.current.length>0&&!p.current?g(i).style.bottom="0px":g(i).style.bottom=`${Math.max(o,0)}px`}}function N(t){var r;!g(n)||!g(i)||(g(i).classList.remove(Wi),u=!1,M(n,!1),l=new Date),null==(r=e.onClose)||r.current(),t||(E(!1),e.open.current=!1),window.setTimeout((()=>{e.snapPoints.current&&e.snapPoints.current.length>0&&(e.activeSnapPoint.current=e.snapPoints.current[0])}),1e3*_e.DURATION)}function P(){if(!g(i))return;const t=document.querySelector("[data-vaul-drawer-wrapper]"),n=Io(g(i),e.direction.current);Me(g(i),{transform:"translate3d(0, 0, 0)",transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`}),Me(g(o),{transition:`opacity ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,opacity:"1"}),e.shouldScaleBackground.current&&n&&n>0&&e.open.current&&Me(t,{borderRadius:"8px",overflow:"hidden",...Te(e.direction.current)?{transform:`scale(${A()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${A()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`},!0)}let C;function E(t){var n,r;null==(r=(n=e.onOpenChange).current)||r.call(n,t),t&&!e.nested.current?C=document.body.style.cssText:!t&&!e.nested.current&&Tm(1e3*_e.DURATION,(()=>{document.body.style.cssText=C})),!t&&!e.nested.current&&k(),setTimeout((()=>{var n,r;null==(r=(n=e.onAnimationEnd).current)||r.call(n,t)}),1e3*_e.DURATION),t&&!e.modal.current&&typeof window<"u"&&window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"})),t||(document.body.style.pointerEvents="auto")}return Ie((()=>{window.requestAnimationFrame((()=>{M(h,!0)}))})),rt([()=>x.activeSnapPointIndex,()=>e.snapPoints.current,()=>x.snapPointsOffset,()=>g(i)],(()=>{if(window.visualViewport)return be(window.visualViewport,"resize",S)})),rt((()=>e.open.current),(()=>(e.open.current&&(Me(document.documentElement,{scrollBehavior:"auto"}),s=new Date),()=>{Mm(document.documentElement,"scrollBehavior")}))),rt((()=>e.modal.current),(()=>{e.modal.current||window.requestAnimationFrame((()=>{document.body.style.pointerEvents="auto"}))})),_o.set({...e,keyboardIsOpen:p,closeDrawer:N,setDrawerNode:function(e){M(i,e,!0)},setOverlayNode:function(e){M(o,e,!0)},onDrag:function(t){var r,s;if(!g(i)||!g(n))return;const a="bottom"===e.direction.current||"right"===e.direction.current?1:-1,l=(f-(Te(e.direction.current)?t.pageY:t.pageX))*a,c=l>0,d=e.snapPoints.current&&!e.dismissible.current&&!c;if(d&&0===x.activeSnapPointIndex)return;const p=Math.abs(l),h=document.querySelector("[data-vaul-drawer-wrapper]");let m=p/("bottom"===e.direction.current||"top"===e.direction.current?v:b);const y=x.getPercentageDragged(p,c);if(null!==y&&(m=y),d&&m>=1||!u&&!O(t.target,c))return;if(g(i).classList.add(Wi),u=!0,Me(g(i),{transition:"none"}),Me(g(o),{transition:"none"}),e.snapPoints.current&&x.onDrag({draggedDistance:l}),c&&!e.snapPoints.current){const t=Dm(l),n=Math.min(-1*t,0)*a;return void Me(g(i),{transform:Te(e.direction.current)?`translate3d(0, ${n}px, 0)`:`translate3d(${n}px, 0, 0)`})}const w=1-m;if((x.shouldFade||e.fadeFromIndex.current&&x.activeSnapPointIndex===e.fadeFromIndex.current-1)&&(null==(s=(r=e.onDrag).current)||s.call(r,t,m),Me(g(o),{opacity:`${w}`,transition:"none"},!0)),h&&g(o)&&e.shouldScaleBackground.current){const t=Math.min(A()+m*(1-A()),1),n=8-8*m,r=Math.max(0,14-14*m);Me(h,{borderRadius:`${n}px`,transform:Te(e.direction.current)?`scale(${t}) translate3d(0, ${r}px, 0)`:`scale(${t}) translate3d(${r}px, 0, 0)`,transition:"none"},!0)}if(!e.snapPoints.current){const t=p*a;Me(g(i),{transform:Te(e.direction.current)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}},onNestedDrag:function(t,n){if(n<0)return;const r=(window.innerWidth-16)/window.innerWidth,o=r+n*(1-r),s=16*n-16;Me(g(i),{transform:Te(e.direction.current)?`scale(${o}) translate3d(0, ${s}px, 0)`:`scale(${o}) translate3d(${s}px, 0, 0)`,transition:"none"})},onNestedOpenChange:function(t){const n=t?(window.innerWidth-16)/window.innerWidth:1,r=t?-16:0;d&&window.clearTimeout(d),Me(g(i),{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:Te(e.direction.current)?`scale(${n}) translate3d(0, ${r}px, 0)`:`scale(${n}) translate3d(${r}px, 0, 0)`}),!t&&g(i)&&(d=window.setTimeout((()=>{const t=Io(g(i),e.direction.current);Me(g(i),{transition:"none",transform:Te(e.direction.current)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}),500))},onNestedRelease:function(t,n){const r=Te(e.direction.current)?window.innerHeight:window.innerWidth,o=n?(r-16)/r:1,s=n?-16:0;n&&Me(g(i),{transition:`transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,transform:Te(e.direction.current)?`scale(${o}) translate3d(0, ${s}px, 0)`:`scale(${o}) translate3d(${s}px, 0, 0)`})},onRelease:function(t){w=!0,function(t){var o,s,c,d,p,h,m,v,b,y;if(!g(n)||!g(i))return;g(i).classList.remove(Wi),u=!1,M(n,!1),l=new Date;const w=Io(g(i),e.direction.current);if(!t||t.target&&!O(t.target,!1)||!w||Number.isNaN(w)||null===a)return;const k=l.getTime()-a.getTime(),A=f-(Te(e.direction.current)?t.pageY:t.pageX),$=Math.abs(A)/k;if($>.05&&(M(r,!0),setTimeout((()=>{M(r,!1)}),200)),e.snapPoints.current){const n="bottom"===e.direction.current||"right"===e.direction.current?1:-1;return x.onRelease({draggedDistance:A*n,closeDrawer:N,velocity:$,dismissible:e.dismissible.current}),void(null==(s=(o=e.onRelease).current)||s.call(o,t,!0))}if("bottom"===e.direction.current||"right"===e.direction.current?A>0:A<0)return P(),void(null==(d=(c=e.onRelease).current)||d.call(c,t,!0));if($>ru)return N(),void(null==(h=(p=e.onRelease).current)||h.call(p,t,!1));const S=Math.min(g(i).getBoundingClientRect().height??0,window.innerHeight),C=Math.min(g(i).getBoundingClientRect().width??0,window.innerWidth),E="left"===e.direction.current||"right"===e.direction.current;if(Math.abs(w)>=(E?C:S)*e.closeThreshold.current)return N(),void(null==(v=(m=e.onRelease).current)||v.call(m,t,!1));null==(y=(b=e.onRelease).current)||y.call(b,t,!0),P()}(t),Im((()=>{w=!1}))},onPress:function(t){var r,o;!e.dismissible.current&&!e.snapPoints.current||g(i)&&!g(i).contains(t.target)||(v=(null==(r=g(i))?void 0:r.getBoundingClientRect().height)||0,b=(null==(o=g(i))?void 0:o.getBoundingClientRect().width)||0,M(n,!0),a=new Date,su()&&be(window,"touchend",(()=>u=!1),{once:!0}),t.target.setPointerCapture(t.pointerId),f=Te(e.direction.current)?t.pageY:t.pageX)},onDialogOpenChange:function(n){!e.dismissible.current&&!n||(n?M(t,!0):N(!0),e.open.current=n)},get shouldAnimate(){return g(h)},get isDragging(){return g(n)},get overlayNode(){return g(o)},get drawerNode(){return g(i)},get snapPointsOffset(){return x.snapPointsOffset},get shouldFade(){return x.shouldFade},restorePositionSetting:k,handleOpenChange:E})}function Zm(e,t){oe(t,!0);let n=A(t,"open",15,!1),r=A(t,"onOpenChange",3,ke),o=A(t,"onDrag",3,ke),i=A(t,"onRelease",3,ke),s=A(t,"shouldScaleBackground",3,!1),a=A(t,"setBackgroundColorOnScale",3,!0),l=A(t,"closeThreshold",3,Rm),c=A(t,"scrollLockTimeout",3,Nm),u=A(t,"dismissible",3,!0),d=A(t,"handleOnly",3,!1),f=A(t,"fadeFromIndex",19,(()=>t.snapPoints&&t.snapPoints.length-1)),p=A(t,"activeSnapPoint",15,null),h=A(t,"onActiveSnapPointChange",3,ke),g=A(t,"fixed",3,!1),m=A(t,"modal",3,!0),v=A(t,"onClose",3,ke),b=A(t,"nested",3,!1),y=A(t,"noBodyStyles",3,!1),w=A(t,"direction",3,"bottom"),x=A(t,"snapToSequentialPoint",3,!1),k=A(t,"preventScrollRestoration",3,!1),$=A(t,"repositionInputs",3,!0),M=A(t,"onAnimationEnd",3,ke),O=A(t,"container",3,null),S=A(t,"autoFocus",3,!1),N=A(t,"disablePreventScroll",3,!0),P=Ee(t,["$$slots","$$events","$$legacy","open","onOpenChange","onDrag","onRelease","snapPoints","shouldScaleBackground","setBackgroundColorOnScale","closeThreshold","scrollLockTimeout","dismissible","handleOnly","fadeFromIndex","activeSnapPoint","onActiveSnapPointChange","fixed","modal","onClose","nested","noBodyStyles","direction","snapToSequentialPoint","preventScrollRestoration","repositionInputs","onAnimationEnd","container","autoFocus","disablePreventScroll"]);const C=Xm({open:Z.with((()=>n()),(e=>{n(e),C.handleOpenChange(e)})),closeThreshold:Z.with((()=>l())),scrollLockTimeout:Z.with((()=>c())),snapPoints:Z.with((()=>t.snapPoints)),fadeFromIndex:Z.with((()=>f())),nested:Z.with((()=>b())),shouldScaleBackground:Z.with((()=>s())),activeSnapPoint:Z.with((()=>p()),(e=>{p(e),h()(e)})),onRelease:Z.with((()=>i())),onDrag:Z.with((()=>o())),onClose:Z.with((()=>v())),dismissible:Z.with((()=>u())),direction:Z.with((()=>w())),fixed:Z.with((()=>g())),modal:Z.with((()=>m())),handleOnly:Z.with((()=>d())),noBodyStyles:Z.with((()=>y())),preventScrollRestoration:Z.with((()=>k())),setBackgroundColorOnScale:Z.with((()=>a())),repositionInputs:Z.with((()=>$())),autoFocus:Z.with((()=>S())),snapToSequentialPoint:Z.with((()=>x())),container:Z.with((()=>O())),disablePreventScroll:Z.with((()=>N())),onOpenChange:Z.with((()=>r())),onAnimationEnd:Z.with((()=>M()))});var E=J(),F=Y(E);et(F,(()=>Xp),((e,t)=>{t(e,Ae({get open(){return C.open.current},set open(e){(e=>{C.onDialogOpenChange(e)})(e)}},(()=>P)))})),z(e,E),ie()}function lu(e="vaul-svelte"){return globalThis.vaulIdCounter.current++,`${e}-${globalThis.vaulIdCounter.current}`}function Jm(){const e=_o.get();let t=null;const n=typeof document<"u"?document.body.style.backgroundColor:"";function r(){return(window.innerWidth-26)/window.innerWidth}rt([()=>e.open.current,()=>e.shouldScaleBackground.current,()=>e.setBackgroundColorOnScale.current],(()=>{if(e.open.current&&e.shouldScaleBackground.current){t&&clearTimeout(t);const o=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[data-vaul-drawer-wrapper]");if(!o)return;Fm(e.setBackgroundColorOnScale.current&&!e.noBodyStyles.current?ji(document.body,{background:"black"}):ke,ji(o,{transformOrigin:Te(e.direction.current)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${_e.DURATION}s`,transitionTimingFunction:`cubic-bezier(${_e.EASE.join(",")})`}));const i=ji(o,{borderRadius:"8px",overflow:"hidden",...Te(e.direction.current)?{transform:`scale(${r()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${r()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{i(),t=window.setTimeout((()=>{n?document.body.style.background=n:document.body.style.removeProperty("background")}),1e3*_e.DURATION)}}}))}function Qm(e){const t=_o.get();let n=$(!1);nu({id:e.id,ref:e.ref,deps:()=>[g(n),t.open.current],onRefChange:e=>{g(n)?t.setDrawerNode(e):t.setDrawerNode(null)}});let r=$(!1),o=null,i=null,s=!1;const a=F((()=>t.snapPoints.current&&t.snapPoints.current.length>0));function l(e){o=null,s=!1,t.onRelease(e)}function c(n){var r,i;t.handleOnly.current||(null==(i=(r=e.onpointerdown).current)||i.call(r,n),o={x:n.pageX,y:n.pageY},t.onPress(n))}function u(n){var r,o;null==(o=(r=e.onOpenAutoFocus).current)||o.call(r,n),t.autoFocus.current||n.preventDefault()}function d(n){var r,o;null==(o=(r=e.onInteractOutside).current)||o.call(r,n),t.modal.current&&!n.defaultPrevented?t.keyboardIsOpen.current&&(t.keyboardIsOpen.current=!1):n.preventDefault()}function f(e){t.modal.current||e.preventDefault()}function p(n){var r,a;if(i=n,t.handleOnly.current||(null==(a=(r=e.onpointermove).current)||a.call(r,n),!o))return;const l=n.pageY-o.y,c=n.pageX-o.x,u="touch"===n.pointerType?10:2;!function(e,t,n=0){if(s)return!0;const r=Math.abs(e.y),o=Math.abs(e.x),i=o>r,a=["bottom","right"].includes(t)?1:-1;if("left"===t||"right"===t){if(!(e.x*a<0)&&o>=0&&o<=n)return i}else if(!(e.y*a<0)&&r>=0&&r<=n)return!i;return s=!0,!0}({x:c,y:l},t.direction.current,u)?(Math.abs(c)>u||Math.abs(l)>u)&&(o=null):t.onDrag(n)}function h(n){var r,i;null==(i=(r=e.onpointerup).current)||i.call(r,n),o=null,s=!1,t.onRelease(n)}function m(t){var n,r;null==(r=(n=e.onpointerout).current)||r.call(n,t),l(i)}function v(t){var n,r;null==(r=(n=e.oncontextmenu).current)||r.call(n,t),i&&l(i)}Jm(),rt([()=>g(a),()=>t.open.current],(()=>{g(a)&&t.open.current?window.requestAnimationFrame((()=>{M(r,!0)})):M(r,!1)}));const b=F((()=>({id:e.id.current,"data-vaul-drawer-direction":t.direction.current,"data-vaul-drawer":"","data-vaul-delayed-snap-points":g(r)?"true":"false","data-vaul-snap-points":t.open.current&&g(a)?"true":"false","data-vaul-custom-container":t.container.current?"true":"false","data-vaul-animate":t.shouldAnimate?"true":"false",onpointerdown:c,onOpenAutoFocus:u,onInteractOutside:d,onFocusOutside:f,onpointerup:h,onpointermove:p,onpointerout:m,oncontextmenu:v,preventScroll:t.modal.current})));return{get props(){return g(b)},ctx:t,setMounted:e=>{M(n,e,!0)}}}function cu(e,t){oe(t,!0),Ci((()=>(t.onMounted(!0),()=>{t.onMounted(!1)}))),ie()}globalThis.vaulIdCounter??(globalThis.vaulIdCounter={current:0});var $m=we("<!> <!>",1);function ev(e,t){oe(t,!0);let n=A(t,"id",19,lu),r=A(t,"ref",15,null),o=A(t,"onOpenAutoFocus",3,ke),i=A(t,"onInteractOutside",3,ke),s=A(t,"onFocusOutside",3,ke),a=A(t,"oncontextmenu",3,ke),l=A(t,"onpointerdown",3,ke),c=A(t,"onpointerup",3,ke),u=A(t,"onpointerout",3,ke),d=A(t,"onpointermove",3,ke),f=Ee(t,["$$slots","$$events","$$legacy","id","ref","onOpenAutoFocus","onInteractOutside","onFocusOutside","oncontextmenu","onpointerdown","onpointerup","onpointerout","onpointermove","children"]);const p=Qm({id:Z.with((()=>n())),ref:Z.with((()=>r()),(e=>r(e))),oncontextmenu:Z.with((()=>a()??ke)),onInteractOutside:Z.with((()=>i())),onpointerdown:Z.with((()=>l()??ke)),onpointermove:Z.with((()=>d()??ke)),onpointerout:Z.with((()=>u()??ke)),onpointerup:Z.with((()=>c()??ke)),onOpenAutoFocus:Z.with((()=>o())),onFocusOutside:Z.with((()=>s()))}),h=Cl(p.ctx.snapPointsOffset),m=F((()=>h&&h.length>0?{"--snap-point-height":`${h[p.ctx.activeSnapPointIndex??0]}px`}:{})),v=F((()=>eu(f,p.props,{style:g(m)})));var b=J();et(Y(b),(()=>Qp),((e,n)=>{n(e,Ae((()=>g(v)),{children:(e,n)=>{var r=$m(),o=Y(r);le(o,(()=>t.children??ue)),cu(xe(o,2),{get onMounted(){return p.setMounted}}),z(e,r)},$$slots:{default:!0}}))})),z(e,b),ie()}function tv(e){const t=_o.get();let n=$(!1);nu({id:e.id,ref:e.ref,deps:()=>g(n),onRefChange:e=>{g(n)?t.setOverlayNode(e):t.setOverlayNode(null)}});const r=F((()=>t.snapPoints.current&&t.snapPoints.current.length>0)),o=F((()=>t.modal.current)),i=F((()=>({id:e.id.current,onmouseup:t.onRelease,"data-vaul-overlay":"","data-vaul-snap-points":t.open.current&&g(r)?"true":"false","data-vaul-snap-points-overlay":t.open.current&&t.shouldFade?"true":"false","data-vaul-animate":t.shouldAnimate?"true":"false"})));return{get props(){return g(i)},get shouldRender(){return g(o)},setMounted:e=>{M(n,e,!0)}}}var nv=we("<!> <!>",1);function rv(e,t){oe(t,!0);let n=A(t,"id",19,lu),r=A(t,"ref",15,null),o=Ee(t,["$$slots","$$events","$$legacy","id","ref","children"]);const i=tv({id:Z.with((()=>n())),ref:Z.with((()=>r()),(e=>r(e)))}),s=F((()=>eu(o,i.props)));var a=J(),l=Y(a),c=e=>{var n=J();et(Y(n),(()=>Tg),((e,n)=>{n(e,Ae((()=>g(s)),{children:(e,n)=>{var r=nv(),o=Y(r);cu(o,{get onMounted(){return i.setMounted}}),le(xe(o,2),(()=>t.children??ue)),z(e,r)},$$slots:{default:!0}}))})),z(e,n)};Se(l,(e=>{i.shouldRender&&e(c)})),z(e,a),ie()}function ov(e,t){oe(t,!0);const n=_o.get();let r=A(t,"to",19,(()=>n.container.current??void 0)),o=Ee(t,["$$slots","$$events","$$legacy","to"]);var i=J();et(Y(i),(()=>Ec),((e,t)=>{t(e,Ae({get to(){return r()}},(()=>o)))})),z(e,i),ie()}const iv=Rg;function sv(e,t){oe(t,!0);let n=A(t,"shouldScaleBackground",3,!0),r=A(t,"open",15,!1),o=A(t,"activeSnapPoint",15,null),i=Ee(t,["$$slots","$$events","$$legacy","shouldScaleBackground","open","activeSnapPoint"]);var s=J();et(Y(s),(()=>Zm),((e,t)=>{t(e,Ae({get shouldScaleBackground(){return n()}},(()=>i),{get open(){return r()},set open(e){r(e)},get activeSnapPoint(){return o()},set activeSnapPoint(e){o(e)}}))})),z(e,s),ie()}const ta="-",av=e=>{const t=cv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split(ta);return""===n[0]&&1!==n.length&&n.shift(),uu(n,t)||lv(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},uu=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?uu(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const s=e.join(ta);return null==(n=t.validators.find((({validator:e})=>e(s))))?void 0:n.classGroupId},Qa=/^\[(.+)\]$/,lv=e=>{if(Qa.test(e)){const t=Qa.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cv=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)hs(n[e],r,e,t);return r},hs=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return uv(e)?void hs(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{hs(o,$a(t,e),n,r)}))}else{(""===e?t:$a(t,e)).classGroupId=n}}))},$a=(e,t)=>{let n=e;return t.split(ta).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},uv=e=>e.isThemeGetter,dv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},gs="!",ps=":",fv=1,hv=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(a===ps){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=gv(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+ps,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},gv=e=>e.endsWith(gs)?e.substring(0,e.length-1):e.startsWith(gs)?e.substring(1):e,pv=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},mv=e=>({cache:dv(e.cacheSize),parseClassName:hv(e),sortModifiers:pv(e),...av(e)}),vv=/\s+/,bv=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(vv);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!p,g=r(h?f.substring(0,p):f);if(!g){if(!h){l=t+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=t+(l.length>0?" "+l:l);continue}h=!1}const m=i(u).join(":"),v=d?m+gs:m,b=v+g;if(s.includes(b))continue;s.push(b);const y=o(g,h);for(let e=0;e<y.length;++e){const t=y[e];s.push(v+t)}l=t+(l.length>0?" "+l:l)}return l};function wv(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=du(e))&&(r&&(r+=" "),r+=t);return r}const du=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=du(e[r]))&&(n&&(n+=" "),n+=t);return n};function yv(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=mv(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=bv(e,n);return o(e,i),i}return function(){return i(wv.apply(null,arguments))}}const Ne=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},fu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xv=/^\d+\/\d+$/,Sv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_v=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Av=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ev=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=e=>xv.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Ft=e=>!!e&&Number.isInteger(Number(e)),Gi=e=>e.endsWith("%")&&se(e.slice(0,-1)),bt=e=>Sv.test(e),Ov=()=>!0,Cv=e=>_v.test(e)&&!Av.test(e),gu=()=>!1,kv=e=>Ev.test(e),Tv=e=>Pv.test(e),Iv=e=>!U(e)&&!G(e),Rv=e=>Un(e,vu,gu),U=e=>fu.test(e),$t=e=>Un(e,bu,Cv),Ki=e=>Un(e,Lv,se),el=e=>Un(e,pu,gu),Nv=e=>Un(e,mu,Tv),Mo=e=>Un(e,wu,kv),G=e=>hu.test(e),tr=e=>Gn(e,bu),Mv=e=>Gn(e,Bv),tl=e=>Gn(e,pu),Dv=e=>Gn(e,vu),Fv=e=>Gn(e,mu),Do=e=>Gn(e,wu,!0),Un=(e,t,n)=>{const r=fu.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},Gn=(e,t,n=!1)=>{const r=hu.exec(e);return!!r&&(r[1]?t(r[1]):n)},pu=e=>"position"===e||"percentage"===e,mu=e=>"image"===e||"url"===e,vu=e=>"length"===e||"size"===e||"bg-size"===e,bu=e=>"length"===e,Lv=e=>"number"===e,Bv=e=>"family-name"===e,wu=e=>"shadow"===e,zv=()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),o=Ne("tracking"),i=Ne("leading"),s=Ne("breakpoint"),a=Ne("container"),l=Ne("spacing"),c=Ne("radius"),u=Ne("shadow"),d=Ne("inset-shadow"),f=Ne("text-shadow"),p=Ne("drop-shadow"),h=Ne("blur"),g=Ne("perspective"),m=Ne("aspect"),v=Ne("ease"),b=Ne("animate"),y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",G,U],w=()=>[G,U,l],x=()=>[bn,"full","auto",...w()],k=()=>[Ft,"none","subgrid",G,U],A=()=>["auto",{span:["full",Ft,G,U]},Ft,G,U],$=()=>[Ft,"auto",G,U],M=()=>["auto","min","max","fr",G,U],O=()=>["auto",...w()],S=()=>[bn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],N=()=>[e,G,U],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",tl,el,{position:[G,U]}],C=()=>["auto","cover","contain",Dv,Rv,{size:[G,U]}],E=()=>[Gi,tr,$t],F=()=>["","none","full",c,G,U],z=()=>["",se,tr,$t],T=()=>[se,Gi,tl,el],I=()=>["","none",h,G,U],R=()=>["none",se,G,U],W=()=>["none",se,G,U],D=()=>[se,G,U],_=()=>[bn,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bt],breakpoint:[bt],color:[Ov],container:[bt],"drop-shadow":[bt],ease:["in","out","in-out"],font:[Iv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bt],shadow:[bt],spacing:["px",se],text:[bt],"text-shadow":[bt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bn,U,G,m]}],container:["container"],columns:[{columns:[se,U,G,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[Ft,"auto",G,U]}],basis:[{basis:[bn,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,bn,"auto","initial","none",U]}],grow:[{grow:["",se,G,U]}],shrink:[{shrink:["",se,G,U]}],order:[{order:[Ft,"first","last","none",G,U]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",n,tr,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,G,Ki]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gi,U]}],"font-family":[{font:[Mv,U,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,U]}],"line-clamp":[{"line-clamp":[se,"none",G,Ki]}],leading:[{leading:[i,...w()]}],"list-image":[{"list-image":["none",G,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",G,$t]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[se,"auto",G,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ft,G,U],radial:["",G,U],conic:[Ft,G,U]},Fv,Nv]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:E()}],"gradient-via-pos":[{via:E()}],"gradient-to-pos":[{to:E()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[se,G,U]}],"outline-w":[{outline:["",se,tr,$t]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",u,Do,Mo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Do,Mo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[se,$t]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,Do,Mo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[se,G,U]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[G,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,U]}],filter:[{filter:["","none",G,U]}],blur:[{blur:I()}],brightness:[{brightness:[se,G,U]}],contrast:[{contrast:[se,G,U]}],"drop-shadow":[{"drop-shadow":["","none",p,Do,Mo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",se,G,U]}],"hue-rotate":[{"hue-rotate":[se,G,U]}],invert:[{invert:["",se,G,U]}],saturate:[{saturate:[se,G,U]}],sepia:[{sepia:["",se,G,U]}],"backdrop-filter":[{"backdrop-filter":["","none",G,U]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[se,G,U]}],"backdrop-contrast":[{"backdrop-contrast":[se,G,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,G,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,G,U]}],"backdrop-invert":[{"backdrop-invert":["",se,G,U]}],"backdrop-opacity":[{"backdrop-opacity":[se,G,U]}],"backdrop-saturate":[{"backdrop-saturate":[se,G,U]}],"backdrop-sepia":[{"backdrop-sepia":["",se,G,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",G,U]}],ease:[{ease:["linear","initial",v,G,U]}],delay:[{delay:[se,G,U]}],animate:[{animate:["none",b,G,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,G,U]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:D()}],"skew-x":[{"skew-x":D()}],"skew-y":[{"skew-y":D()}],transform:[{transform:[G,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_()}],"translate-x":[{"translate-x":_()}],"translate-y":[{"translate-y":_()}],"translate-z":[{"translate-z":_()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,U]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[se,tr,$t,Ki]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Vv=yv(zv);function Ln(...e){return Vv(qt(e))}function Wv(e,t){oe(t,!0);let n=A(t,"ref",15,null),r=Ee(t,["$$slots","$$events","$$legacy","ref","class"]);var o=J(),i=Y(o);const s=F((()=>Ln("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class)));et(i,(()=>rv),((e,t)=>{t(e,Ae({"data-slot":"drawer-overlay",get class(){return g(s)}},(()=>r),{get ref(){return n()},set ref(e){n(e)}}))})),z(e,o),ie()}var jv=we('<div class="bg-zinc-300 mx-auto hidden h-1 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"></div> <!>',1),Hv=we("<!> <!>",1);function Uv(e,t){oe(t,!0);let n=A(t,"ref",15,null),r=Ee(t,["$$slots","$$events","$$legacy","ref","class","portalProps","children"]);var o=J();et(Y(o),(()=>ov),((e,o)=>{o(e,Ae((()=>t.portalProps),{children:(e,o)=>{var i=Hv(),s=Y(i);Wv(s,{});var a=xe(s,2);const l=F((()=>Ln("group/drawer-content bg-popover fixed z-50 flex h-auto flex-col gap-2 p-4","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",t.class)));et(a,(()=>ev),((e,o)=>{o(e,Ae({"data-slot":"drawer-content",get class(){return g(l)}},(()=>r),{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var r=jv();le(xe(Y(r),2),(()=>t.children??ue)),z(e,r)},$$slots:{default:!0}}))})),z(e,i)},$$slots:{default:!0}}))})),z(e,o),ie()}function Gv(e,t){oe(t,!0);let n=A(t,"ref",15,null),r=Ee(t,["$$slots","$$events","$$legacy","ref"]);var o=J();et(Y(o),(()=>iv),((e,t)=>{t(e,Ae({"data-slot":"drawer-trigger"},(()=>r),{get ref(){return n()},set ref(e){n(e)}}))})),z(e,o),ie()}function Kv(e,t){oe(t,!0);let n=A(t,"ref",15,null),r=A(t,"sideOffset",3,4),o=A(t,"align",3,"center"),i=Ee(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);var s=J();et(Y(s),(()=>Ec),((e,s)=>{s(e,Ae((()=>t.portalProps),{children:(e,s)=>{var a=J(),l=Y(a);const c=F((()=>Ln("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--bits-popover-content-transform-origin) outline-hidden z-50 w-72 rounded-md border p-4 shadow-md",t.class)));et(l,(()=>Kp),((e,t)=>{t(e,Ae({"data-slot":"popover-content",get sideOffset(){return r()},get align(){return o()},get class(){return g(c)}},(()=>i),{get ref(){return n()},set ref(e){n(e)}}))})),z(e,a)},$$slots:{default:!0}}))})),z(e,s),ie()}function qv(e,t){oe(t,!0);let n=A(t,"ref",15,null),r=Ee(t,["$$slots","$$events","$$legacy","ref","class"]);var o=J(),i=Y(o);const s=F((()=>Ln("relative",t.class)));et(i,(()=>Yp),((e,t)=>{t(e,Ae({"data-slot":"popover-trigger",get class(){return g(s)}},(()=>r),{get ref(){return n()},set ref(e){n(e)}}))})),z(e,o),ie()}const Yv=$p;let pr=null;function Xv(e){pr=e}function nl(e,t=()=>{}){pr&&typeof window<"u"&&window.localStorage&&pr.triggerEvent(e,t)}function nr(e,t){Array.isArray(t)&&(t=t.map((e=>JSON.stringify(e)))),"object"==typeof t&&!Array.isArray(t)&&(t=JSON.stringify(t)),pr&&typeof window<"u"&&window.localStorage&&pr.publishState(e,t)}const rl="cart-fast";function Zv(){let e=null;const t=Fe({lineItems:[],currency:"USD",taxName:"Sales Tax",taxInclusive:!1,showTax:!0,buttonType:"default",buttonText:"Checkout",itemsIndicator:"default",isCartOpen:!1}),n=F((()=>t.lineItems.map((e=>{const n=(Number(e.unitAmount)||0)*(e.units||1),r=e.taxPercentage||0;if(t.taxInclusive){const t=n-n/(1+r),o=n-t;return{...e,subtotal:o,tax:t,total:n}}{const t=n*r;return{...e,subtotal:n,tax:t,total:n+t}}})))),r=F((()=>g(n).reduce(((e,t)=>e+t.subtotal),0))),o=F((()=>g(n).reduce(((e,t)=>e+t.tax),0))),i=F((()=>g(n).reduce(((e,t)=>e+t.total),0))),s=F((()=>t.lineItems.length)),a=F((()=>0===g(s)));function l(){if(typeof window<"u"&&window.localStorage)try{const e={lineItems:t.lineItems};localStorage.setItem(rl,JSON.stringify(e))}catch(e){console.warn("Failed to save cart to localStorage:",e)}}function c(){if(!e)return;const n={subtotal:g(r),tax:g(o),total:g(i),lineItems:t.lineItems};nr("cart_total",g(i)),nr("cart_subtotal",g(r)),nr("cart_tax",g(o)),nr("cart_line_items",t.lineItems),nr("cart",n),nl("cart_updated")}return{get lineItems(){return t.lineItems},get currency(){return t.currency},get taxName(){return t.taxName},get taxInclusive(){return t.taxInclusive},get showTax(){return t.showTax},get buttonType(){return t.buttonType},get buttonText(){return t.buttonText},get itemsIndicator(){return t.itemsIndicator},get isCartOpen(){return t.isCartOpen},get subtotal(){return g(r)},get tax(){return g(o)},get total(){return g(i)},get itemCount(){return g(s)},get isEmpty(){return g(a)},actions:{init(n){n.bubbleInstance&&(e=n.bubbleInstance,Xv(n.bubbleInstance)),t.currency=n.currency??"USD",t.taxName=n.taxName??"Sales Tax",t.taxInclusive=n.taxInclusive??!1,t.showTax=n.showTax??!0,t.buttonType=n.buttonType??"default",t.buttonText=n.buttonText??"Checkout",t.itemsIndicator=n.itemsIndicator??"default",function(){if(typeof window<"u"&&window.localStorage)try{const e=localStorage.getItem(rl);if(e){const n=JSON.parse(e);t.lineItems=n.lineItems||[]}}catch(e){console.warn("Failed to load cart from localStorage:",e)}}(),c()},addItem(e){if(!e.id)return void console.warn("Item must have an id");const n=t.lineItems.find((t=>t.id===e.id));n?this.incrementItem(n):t.lineItems=[...t.lineItems,{...e,units:e.units||1}],t.isCartOpen=!0,l(),c()},incrementItem(e){const n=e.id;t.lineItems=t.lineItems.map((e=>e.id===n?{...e,units:(e.units||0)+1}:e)),l(),c()},decrementItem(e){const n=e.id;t.lineItems=t.lineItems.map((e=>e.id===n&&e.units>1?{...e,units:e.units-1}:e)),l(),c()},removeItem(e){const n=e.id;t.lineItems=t.lineItems.filter((e=>e.id!==n)),l(),c()},clearCart(){t.lineItems=[],l(),c()},updateItemQuantity(e,n){if(n<=0)return void this.removeItem(e);const r=e.id;t.lineItems=t.lineItems.map((e=>e.id===r?{...e,units:n}:e)),l(),c()},toggleCart(){t.isCartOpen=!t.isCartOpen},openCart(){t.isCartOpen=!0},closeCart(){t.isCartOpen=!1},completeCheckout(){nl("cart_button_clicked"),this.closeCart()}}}}const ve=Zv();var Jv=we('<div class="flex justify-between items-center font-normal text-sm text-muted-foreground"><span>Subtotal</span> <span> </span></div> <div class="flex justify-between items-center font-normal text-sm text-muted-foreground"><span> </span> <span> </span></div>',1),Qv=we('<footer class="flex flex-col gap-3"><div class="flex flex-col"><!> <div class="flex justify-between items-center text-base/6 font-semibold"><span>Total</span> <span> </span></div></div> <button class="btn w-full">Checkout</button></footer>');function $v(e,t){oe(t,!1),Rs();var n=Qv(),r=ce(n),o=ce(r),i=e=>{var t=Jv(),n=Y(t),r=xe(ce(n),2),o=ce(r),i=ce(xe(n,2)),s=ce(i),a=ce(xe(i,2));Kt(((e,t)=>{nt(o,e),nt(s,ve.taxName),nt(a,t)}),[()=>Intl.NumberFormat("en-US",{style:"currency",currency:ve.currency}).format(ve.subtotal)||"0.00",()=>Intl.NumberFormat("en-US",{style:"currency",currency:ve.currency}).format(ve.tax)||"0.00"],Ct),z(e,t)};Se(o,(e=>{ve.showTax&&e(i)}));var s=xe(o,2),a=xe(ce(s),2),l=ce(a);xe(r,2).__click=function(...e){var t;null==(t=ve.actions.completeCheckout)||t.apply(this,e)},Kt((e=>nt(l,e)),[()=>Intl.NumberFormat("en-US",{style:"currency",currency:ve.currency}).format(ve.total)||"0.00"],Ct),z(e,n),ie()}tc(["click"]);var ol=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,We=e=>!e||"object"!=typeof e||0===Object.keys(e).length,eb=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function yu(e,t){e.forEach((function(e){Array.isArray(e)?yu(e,t):t.push(e)}))}function xu(e){let t=[];return yu(e,t),t}var Su=(...e)=>xu(e).filter(Boolean),_u=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let r=e[i],o=t[i];Array.isArray(r)||Array.isArray(o)?n[i]=Su(o,r):n[i]="object"==typeof r&&"object"==typeof o?_u(r,o):o+" "+r}else n[i]=e[i];for(let e of o)r.includes(e)||(n[e]=t[e]);return n},il=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e;const na="-",tb=e=>{const t=rb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split(na);return""===n[0]&&1!==n.length&&n.shift(),Au(n,t)||nb(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Au=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?Au(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const s=e.join(na);return null==(n=t.validators.find((({validator:e})=>e(s))))?void 0:n.classGroupId},sl=/^\[(.+)\]$/,nb=e=>{if(sl.test(e)){const t=sl.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rb=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)ms(n[e],r,e,t);return r},ms=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return ob(e)?void ms(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{ms(o,al(t,e),n,r)}))}else{(""===e?t:al(t,e)).classGroupId=n}}))},al=(e,t)=>{let n=e;return t.split(na).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},ob=e=>e.isThemeGetter,ib=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},vs="!",bs=":",sb=1,ab=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(0===r&&0===o){if(a===bs){t.push(e.slice(i,s)),i=s+1;continue}if("/"===a){n=s;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.substring(i),a=lb(s);return{modifiers:t,hasImportantModifier:a!==s,baseClassName:a,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+bs,n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},lb=e=>e.endsWith(vs)?e.substring(0,e.length-1):e.startsWith(vs)?e.substring(1):e,cb=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},ub=e=>({cache:ib(e.cacheSize),parseClassName:ab(e),sortModifiers:cb(e),...tb(e)}),db=/\s+/,fb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(db);let l="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!p,g=r(h?f.substring(0,p):f);if(!g){if(!h){l=t+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=t+(l.length>0?" "+l:l);continue}h=!1}const m=i(u).join(":"),v=d?m+vs:m,b=v+g;if(s.includes(b))continue;s.push(b);const y=o(g,h);for(let e=0;e<y.length;++e){const t=y[e];s.push(v+t)}l=t+(l.length>0?" "+l:l)}return l};function hb(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Eu(e))&&(r&&(r+=" "),r+=t);return r}const Eu=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Eu(e[r]))&&(n&&(n+=" "),n+=t);return n};function ws(e,...t){let n,r,o,i=function(a){const l=t.reduce(((e,t)=>t(e)),e());return n=ub(l),r=n.cache.get,o=n.cache.set,i=s,s(a)};function s(e){const t=r(e);if(t)return t;const i=fb(e,n);return o(e,i),i}return function(){return i(hb.apply(null,arguments))}}const De=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Pu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ou=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gb=/^\d+\/\d+$/,pb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wn=e=>gb.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),en=e=>!!e&&Number.isInteger(Number(e)),ll=e=>e.endsWith("%")&&ae(e.slice(0,-1)),Lt=e=>pb.test(e),yb=()=>!0,xb=e=>mb.test(e)&&!vb.test(e),ra=()=>!1,Sb=e=>bb.test(e),_b=e=>wb.test(e),Ab=e=>!K(e)&&!q(e),Eb=e=>Kn(e,Tu,ra),K=e=>Pu.test(e),tn=e=>Kn(e,Iu,xb),qi=e=>Kn(e,Fb,ae),Pb=e=>Kn(e,Cu,ra),Ob=e=>Kn(e,ku,_b),Cb=e=>Kn(e,ra,Sb),q=e=>Ou.test(e),Fo=e=>qn(e,Iu),kb=e=>qn(e,Lb),Tb=e=>qn(e,Cu),Ib=e=>qn(e,Tu),Rb=e=>qn(e,ku),Nb=e=>qn(e,Bb,!0),Kn=(e,t,n)=>{const r=Pu.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},qn=(e,t,n=!1)=>{const r=Ou.exec(e);return!!r&&(r[1]?t(r[1]):n)},Cu=e=>"position"===e,Mb=new Set(["image","url"]),ku=e=>Mb.has(e),Db=new Set(["length","size","percentage"]),Tu=e=>Db.has(e),Iu=e=>"length"===e,Fb=e=>"number"===e,Lb=e=>"family-name"===e,Bb=e=>"shadow"===e,ys=()=>{const e=De("color"),t=De("font"),n=De("text"),r=De("font-weight"),o=De("tracking"),i=De("leading"),s=De("breakpoint"),a=De("container"),l=De("spacing"),c=De("radius"),u=De("shadow"),d=De("inset-shadow"),f=De("drop-shadow"),p=De("blur"),h=De("perspective"),g=De("aspect"),m=De("ease"),v=De("animate"),b=()=>[q,K,l],y=()=>[wn,"full","auto",...b()],w=()=>[en,"none","subgrid",q,K],x=()=>["auto",{span:["full",en,q,K]},q,K],k=()=>[en,"auto",q,K],A=()=>["auto","min","max","fr",q,K],$=()=>["auto",...b()],M=()=>[wn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],O=()=>[e,q,K],S=()=>[ll,tn],N=()=>["","none","full",c,q,K],P=()=>["",ae,Fo,tn],C=()=>["","none",p,q,K],E=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q,K],F=()=>["none",ae,q,K],z=()=>["none",ae,q,K],T=()=>[ae,q,K],I=()=>[wn,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lt],breakpoint:[Lt],color:[yb],container:[Lt],"drop-shadow":[Lt],ease:["in","out","in-out"],font:[Ab],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lt],shadow:[Lt],spacing:["px",ae],text:[Lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wn,K,q,g]}],container:["container"],columns:[{columns:[ae,K,q,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",K,q]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[en,"auto",q,K]}],basis:[{basis:[wn,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,wn,"auto","initial","none",K]}],grow:[{grow:["",ae,q,K]}],shrink:[{shrink:["",ae,q,K]}],order:[{order:[en,"first","last","none",q,K]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:x()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:x()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","stretch","baseline"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","stretch","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[a,"screen",...M()]}],"min-w":[{"min-w":[a,"screen","none",...M()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen",...M()]}],"min-h":[{"min-h":["screen","none",...M()]}],"max-h":[{"max-h":["screen",...M()]}],"font-size":[{text:["base",n,Fo,tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,qi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ll,K]}],"font-family":[{font:[kb,K,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,q,K]}],"line-clamp":[{"line-clamp":[ae,"none",q,qi]}],leading:[{leading:[i,...b()]}],"list-image":[{"list-image":["none",q,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",q,tn]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[ae,"auto",q,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Tb,Pb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Ib,Eb]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},en,q,K],radial:["",q,K],conic:[en,q,K]},Rb,Ob]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[ae,q,K]}],"outline-w":[{outline:["",ae,Fo,tn]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",u,Nb,Cb]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",q,K,d]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[ae,tn]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":O()}],opacity:[{opacity:[ae,q,K]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none",q,K]}],blur:[{blur:C()}],brightness:[{brightness:[ae,q,K]}],contrast:[{contrast:[ae,q,K]}],"drop-shadow":[{"drop-shadow":["","none",f,q,K]}],grayscale:[{grayscale:["",ae,q,K]}],"hue-rotate":[{"hue-rotate":[ae,q,K]}],invert:[{invert:["",ae,q,K]}],saturate:[{saturate:[ae,q,K]}],sepia:[{sepia:["",ae,q,K]}],"backdrop-filter":[{"backdrop-filter":["","none",q,K]}],"backdrop-blur":[{"backdrop-blur":C()}],"backdrop-brightness":[{"backdrop-brightness":[ae,q,K]}],"backdrop-contrast":[{"backdrop-contrast":[ae,q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,q,K]}],"backdrop-invert":[{"backdrop-invert":["",ae,q,K]}],"backdrop-opacity":[{"backdrop-opacity":[ae,q,K]}],"backdrop-saturate":[{"backdrop-saturate":[ae,q,K]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,q,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",q,K]}],ease:[{ease:["linear","initial",m,q,K]}],delay:[{delay:[ae,q,K]}],animate:[{animate:["none",v,q,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,q,K]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":["scale-3d"],skew:[{skew:T()}],"skew-x":[{"skew-x":T()}],"skew-y":[{"skew-y":T()}],transform:[{transform:[q,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,K]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[ae,Fo,tn,qi]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},zb=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(sr(e,"cacheSize",t),sr(e,"prefix",n),sr(e,"experimentalParseClassName",r),Lo(e.theme,i.theme),Lo(e.classGroups,i.classGroups),Lo(e.conflictingClassGroups,i.conflictingClassGroups),Lo(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),sr(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Bo(e.theme,o.theme),Bo(e.classGroups,o.classGroups),Bo(e.conflictingClassGroups,o.conflictingClassGroups),Bo(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ru(e,o,"orderSensitiveModifiers"),e),sr=(e,t,n)=>{void 0!==n&&(e[t]=n)},Lo=(e,t)=>{if(t)for(const n in t)sr(e,n,t[n])},Bo=(e,t)=>{if(t)for(const n in t)Ru(e,t,n)},Ru=(e,t,n)=>{const r=t[n];void 0!==r&&(e[n]=e[n]?e[n].concat(r):r)},Vb=(e,...t)=>"function"==typeof e?ws(ys,e,...t):ws((()=>zb(ys(),e)),...t),Wb=ws(ys);var jb={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Nu=e=>e||void 0,mr=(...e)=>Nu(xu(e).filter(Boolean).join(" ")),Yi=null,wt={},xs=!1,rr=(...e)=>t=>t.twMerge?((!Yi||xs)&&(xs=!1,Yi=We(wt)?Wb:Vb({...wt,extend:{theme:wt.theme,classGroups:wt.classGroups,conflictingClassGroupModifiers:wt.conflictingClassGroupModifiers,conflictingClassGroups:wt.conflictingClassGroups,...wt.extend}})),Nu(Yi(mr(e)))):mr(e),cl=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=mr(e[n],t[n]):e[n]=t[n];return e},Hb=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...jb,...t},c=null!=n&&n.base?mr(n.base,null==e?void 0:e.base):null==e?void 0:e.base,u=null!=n&&n.variants&&!We(n.variants)?_u(o,n.variants):o,d=null!=n&&n.defaultVariants&&!We(n.defaultVariants)?{...n.defaultVariants,...a}:a;!We(l.twMergeConfig)&&!eb(l.twMergeConfig,wt)&&(xs=!0,wt=l.twMergeConfig);let f=We(null==n?void 0:n.slots),p=We(r)?{}:{base:mr(null==e?void 0:e.base,f&&(null==n?void 0:n.base)),...r},h=f?p:cl({...null==n?void 0:n.slots},We(p)?{base:null==e?void 0:e.base}:p),g=We(null==n?void 0:n.compoundVariants)?i:Su(null==n?void 0:n.compoundVariants,i),m=e=>{if(We(u)&&We(r)&&f)return rr(c,null==e?void 0:e.class,null==e?void 0:e.className)(l);if(g&&!Array.isArray(g))throw new TypeError('The "compoundVariants" prop must be an array. Received: '+typeof g);if(s&&!Array.isArray(s))throw new TypeError('The "compoundSlots" prop must be an array. Received: '+typeof s);let t=(e,t,n=[],r)=>{let o=n;if("string"==typeof t)o=o.concat(il(t).split(" ").map((t=>`${e}:${t}`)));else if(Array.isArray(t))o=o.concat(t.reduce(((t,n)=>t.concat(`${e}:${n}`)),[]));else if("object"==typeof t&&"string"==typeof r)for(let n in t)if(t.hasOwnProperty(n)&&n===r){let i=t[n];if(i&&"string"==typeof i){let t=il(i);o[r]?o[r]=o[r].concat(t.split(" ").map((t=>`${e}:${t}`))):o[r]=t.split(" ").map((t=>`${e}:${t}`))}else Array.isArray(i)&&i.length>0&&(o[r]=i.reduce(((t,n)=>t.concat(`${e}:${n}`)),[]))}return o},n=(n,r=u,o=null,i=null)=>{var s;let a=r[n];if(!a||We(a))return null;let c=null!=(s=null==i?void 0:i[n])?s:null==e?void 0:e[n];if(null===c)return null;let f=ol(c),p=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||!0===l.responsiveVariants,h=null==d?void 0:d[n],g=[];if("object"==typeof f&&p)for(let[e,n]of Object.entries(f)){let r=a[n];"initial"!==e?Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(e)||(g=t(e,r,g,o)):h=n}let m=a[(null!=f&&"object"!=typeof f?f:ol(h))||"false"];return"object"==typeof g&&"string"==typeof o&&g[o]?cl(g,m):g.length>0?(g.push(m),"base"===o?g.join(" "):g):m},o=(e,t)=>{if(!u||"object"!=typeof u)return null;let r=new Array;for(let o in u){let i=n(o,u,e,t),s="base"===e&&"string"==typeof i?i:i&&i[e];s&&(r[r.length]=s)}return r},i={};for(let t in e)void 0!==e[t]&&(i[t]=e[t]);let a=(t,n)=>{var r;let o="object"==typeof(null==e?void 0:e[t])?{[t]:null==(r=e[t])?void 0:r.initial}:{};return{...d,...i,...o,...n}},p=(e=[],t)=>{let n=[];for(let{class:r,className:o,...i}of e){let e=!0;for(let[n,r]of Object.entries(i)){let o=a(n,t)[n];if(Array.isArray(r)){if(!r.includes(o)){e=!1;break}}else{let t=e=>null==e||!1===e;if(t(r)&&t(o))continue;if(o!==r){e=!1;break}}}e&&(r&&n.push(r),o&&n.push(o))}return n},m=e=>{let t=p(g,e);if(!Array.isArray(t))return t;let n={};for(let e of t)if("string"==typeof e&&(n.base=rr(n.base,e)(l)),"object"==typeof e)for(let[t,r]of Object.entries(e))n[t]=rr(n[t],r)(l);return n},v=e=>{if(s.length<1)return null;let t={};for(let{slots:n=[],class:r,className:o,...i}of s){if(!We(i)){let t=!0;for(let n of Object.keys(i)){let r=a(n,e)[n];if(void 0===r||(Array.isArray(i[n])?!i[n].includes(r):i[n]!==r)){t=!1;break}}if(!t)continue}for(let e of n)t[e]=t[e]||[],t[e].push([r,o])}return t};if(!We(r)||!f){let e={};if("object"==typeof h&&!We(h))for(let t of Object.keys(h))e[t]=e=>{var n,r;return rr(h[t],o(t,e),(null!=(n=m(e))?n:[])[t],(null!=(r=v(e))?r:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(l)};return e}return rr(c,u?Object.keys(u).map((e=>n(e,u))):null,p(g),null==e?void 0:e.class,null==e?void 0:e.className)(l)};return m.variantKeys=(()=>{if(u&&"object"==typeof u)return Object.keys(u)})(),m.extend=n,m.base=c,m.slots=h,m.variants=u,m.defaultVariants=d,m.compoundSlots=s,m.compoundVariants=g,m};const ul=Hb({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap hover:cursor-pointer rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9",iconLg:"size-10",iconSm:"size-8",iconXs:"size-6 rounded-sm [&_svg]:!size-3"}},defaultVariants:{variant:"default",size:"default"}});var Ub=we("<a><!></a>"),Gb=we("<button><!></button>");function dl(e,t){oe(t,!0);let n=A(t,"variant",3,"default"),r=A(t,"size",3,"default"),o=A(t,"ref",15,null),i=A(t,"href",3,void 0),s=A(t,"type",3,"button"),a=Ee(t,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var l=J(),c=Y(l),u=e=>{var s=Ub();$e(s,(e=>({"data-slot":"button",class:e,href:t.disabled?void 0:i(),"aria-disabled":t.disabled,role:t.disabled?"link":void 0,tabindex:t.disabled?-1:void 0,...a})),[()=>Ln(ul({variant:n(),size:r()}),t.class)]),le(ce(s),(()=>t.children??ue)),Sa(s,(e=>o(e)),(()=>o())),z(e,s)},d=e=>{var i=Gb();$e(i,(e=>({"data-slot":"button",class:e,type:s(),disabled:t.disabled,...a})),[()=>Ln(ul({variant:n(),size:r()}),t.class)]),le(ce(i),(()=>t.children??ue)),Sa(i,(e=>o(e)),(()=>o())),z(e,i)};Se(c,(e=>{i()?e(u):e(d,!1)})),z(e,l),ie()}
/**
 * @license @lucide/svelte v0.511.0 - ISC
 *
 * ISC License
 * 
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 * 
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * 
 */const Kb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var qb=rc("<svg><!><!></svg>");function oa(e,t){oe(t,!0);const n=A(t,"color",3,"currentColor"),r=A(t,"size",3,24),o=A(t,"strokeWidth",3,2),i=A(t,"absoluteStrokeWidth",3,!1),s=A(t,"iconNode",19,(()=>[])),a=Ee(t,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var l=qb();$e(l,(e=>({...Kb,...a,width:r(),height:r(),stroke:n(),"stroke-width":e,class:["lucide-icon lucide",t.name&&`lucide-${t.name}`,t.class]})),[()=>i()?24*Number(o())/Number(r()):o()]);var c=ce(l);sc(c,17,s,ic,((e,t)=>{var n=F((()=>Hu(g(t),2)));var r=J();af(Y(r),(()=>g(n)[0]),!0,((e,t)=>{$e(e,(()=>({...g(n)[1]})))})),z(e,r)})),le(xe(c),(()=>t.children??ue)),z(e,l),ie()}function Yb(e,t){oe(t,!0);let n=Ee(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M5 12h14"}]];oa(e,Ae({name:"minus"},(()=>n),{get iconNode(){return r},children:(e,n)=>{var r=J();le(Y(r),(()=>t.children??ue)),z(e,r)},$$slots:{default:!0}})),ie()}function Xb(e,t){oe(t,!0);let n=Ee(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];oa(e,Ae({name:"plus"},(()=>n),{get iconNode(){return r},children:(e,n)=>{var r=J();le(Y(r),(()=>t.children??ue)),z(e,r)},$$slots:{default:!0}})),ie()}function Zb(e,t){oe(t,!0);let n=Ee(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M3 6h18"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17"}]];oa(e,Ae({name:"trash-2"},(()=>n),{get iconNode(){return r},children:(e,n)=>{var r=J();le(Y(r),(()=>t.children??ue)),z(e,r)},$$slots:{default:!0}})),ie()}var Jb=we('<img class="rounded-sm object-cover"/>'),Qb=we('<div class="flex items-center gap-3"><!> <div class="flex flex-col flex-1"><p class="text-sm font-medium line-clamp-1"> </p> <p class="text-sm text-gray-500"> </p></div> <div class="flex items-center gap-2"><!> <span class="text-sm"> </span> <!></div></div>');function $b(e,t){oe(t,!0);let n=A(t,"item",27,(()=>Fe({}))),r=F((()=>1===n().units)),o=F((()=>n().units));var i=Qb(),s=ce(i),a=e=>{var t=Jb();xn(t,"width",40),xn(t,"height",40),Kt((()=>{xn(t,"src",n().image),xn(t,"alt",n().name)})),z(e,t)};Se(s,(e=>{n().image&&e(a)}));var l=xe(s,2),c=ce(l),u=ce(c),d=ce(xe(c,2)),f=ce(xe(l,2));const p=F((()=>g(r)?"destructive":"outline"));dl(f,{size:"iconXs",class:"rounded-full",get variant(){return g(p)},onclick:function(){1===n().units?ve.actions.removeItem(n()):ve.actions.decrementItem(n())},children:(e,t)=>{var n=J(),o=Y(n),i=e=>{Zb(e,{size:16})},s=e=>{Yb(e,{size:16})};Se(o,(e=>{g(r)?e(i):e(s,!1)})),z(e,n)},$$slots:{default:!0}});var h=xe(f,2),m=ce(h);dl(xe(h,2),{class:"rounded-full",size:"iconXs",variant:"outline",onclick:()=>ve.actions.incrementItem(n()),children:(e,t)=>{Xb(e,{size:16})},$$slots:{default:!0}}),Kt((e=>{nt(u,n().name||"Unnamed Item"),nt(d,e),nt(m,g(o))}),[()=>Intl.NumberFormat("en-US",{style:"currency",currency:ve.currency}).format(Number(n().unitAmount)||0)||"0.00"]),z(e,i),ie()}var nn=vf((()=>ve)),ew=we('<div class="flex flex-col gap-2"></div>'),tw=we('<div class="flex items-center justify-center text-sm min-h-14 text-muted-foreground">This cart is empty</div>'),nw=we('<div class="flex gap-4 flex-col"><header class="border-none"><h2 class="text-lg font-semibold"> </h2></header> <!> <!></div>');function fl(e,t){oe(t,!1),Rs();var n=nw(),r=ce(n),o=ce(r),i=ce(o),s=xe(r,2),a=e=>{var t=ew();sc(t,5,(()=>nn().lineItems),ic,((e,t,n)=>{$b(e,{get item(){return nn().lineItems[n]},set item(e){nn(nn().lineItems[n]=e)},$$legacy:!0})})),z(e,t)},l=e=>{z(e,tw())};Se(s,(e=>{nn().isEmpty?e(l,!1):e(a)}));var c=xe(s,2),u=e=>{$v(e,{})};Se(c,(e=>{nn().isEmpty||e(u)})),Kt((()=>nt(i,`Cart (${nn().itemCount??""})`))),z(e,n),ie()}var rw=we(" <!>",1),ow=we('<span class="absolute top-1 right-[15px] text-xs"> </span>'),iw=rc('<svg width="24" height="24" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 27C13 27.3956 12.8827 27.7822 12.6629 28.1111C12.4432 28.44 12.1308 28.6964 11.7654 28.8478C11.3999 28.9991 10.9978 29.0387 10.6098 28.9616C10.2219 28.8844 9.86549 28.6939 9.58579 28.4142C9.30608 28.1345 9.1156 27.7781 9.03843 27.3902C8.96126 27.0022 9.00087 26.6001 9.15224 26.2346C9.30362 25.8692 9.55996 25.5568 9.88886 25.3371C10.2178 25.1173 10.6044 25 11 25C11.5304 25 12.0391 25.2107 12.4142 25.5858C12.7893 25.9609 13 26.4696 13 27ZM24 25C23.6044 25 23.2178 25.1173 22.8889 25.3371C22.56 25.5568 22.3036 25.8692 22.1522 26.2346C22.0009 26.6001 21.9613 27.0022 22.0384 27.3902C22.1156 27.7781 22.3061 28.1345 22.5858 28.4142C22.8655 28.6939 23.2219 28.8844 23.6098 28.9616C23.9978 29.0387 24.3999 28.9991 24.7654 28.8478C25.1308 28.6964 25.4432 28.44 25.6629 28.1111C25.8827 27.7822 26 27.3956 26 27C26 26.4696 25.7893 25.9609 25.4142 25.5858C25.0391 25.2107 24.5304 25 24 25ZM29.9638 9.2675L26.7588 20.8025C26.5825 21.4326 26.2056 21.9881 25.6852 22.3846C25.1648 22.7812 24.5293 22.9973 23.875 23H11.52C10.8638 22.9997 10.2257 22.7848 9.703 22.388C9.18031 21.9913 8.80174 21.4345 8.625 20.8025L4.24 5H2C1.73478 5 1.48043 4.89464 1.29289 4.70711C1.10536 4.51957 1 4.26522 1 4C1 3.73478 1.10536 3.48043 1.29289 3.29289C1.48043 3.10536 1.73478 3 2 3H5C5.21863 2.99996 5.43124 3.07156 5.6053 3.20386C5.77936 3.33615 5.90527 3.52184 5.96375 3.7325L7.705 10L28.5 8.04696C28.6542 8.04693 29.3062 8.03558 29.4444 8.10406C29.5825 8.17254 29.7029 8.27202 29.7962 8.39474C29.8895 8.51746 29.9532 8.66009 29.9823 8.81149C30.0113 8.96289 30.005 9.11895 29.9638 9.2675ZM28.5 8.04696L7.705 10L10.5562 20.2675C10.6147 20.4782 10.7406 20.6638 10.9147 20.7961C11.0888 20.9284 11.3014 21 11.52 21H23.875C24.0936 21 24.3062 20.9284 24.4803 20.7961C24.6544 20.6638 24.7803 20.4782 24.8388 20.2675L28.5 8.04696Z" fill="currentColor"></path></svg><!>',1);function hl(e,t){oe(t,!0);let n=F((()=>ve.buttonType.toLowerCase()));var r=J(),o=Y(r),i=e=>{var t=rw(),n=Y(t),r=xe(n),o=e=>{var t=Qd();Kt((()=>nt(t,`(${ve.itemCount??""})`))),z(e,t)};Se(r,(e=>{ve.itemsIndicator&&e(o)})),Kt((()=>nt(n,`${ve.buttonText??""} `))),z(e,t)},s=e=>{var t=iw(),n=xe(Y(t)),r=e=>{var t=ow(),n=ce(t);Kt((()=>nt(n,ve.itemCount))),z(e,t)};Se(n,(e=>{ve.itemsIndicator&&e(r)})),z(e,t)};Se(o,(e=>{"text"===g(n)?e(i):e(s,!1)})),z(e,r),ie()}const sw=640;class aw extends $f{constructor(){super("max-width: 639px")}}var lw=we('<div class="mx-auto w-full"><!></div>'),cw=we("<!> <!>",1),uw=we("<!> <!>",1);function dw(e,t){oe(t,!1);const n=new aw;function r(e){e?ve.actions.openCart():ve.actions.closeCart()}const o="flex items-center justify-center grow h-full w-full p-2 cursor-pointer";Rs();var i=J(),s=Y(i),a=e=>{sv(e,{get open(){return ve.isCartOpen},onOpenChange:r,children:(e,t)=>{var n=cw(),r=Y(n);Gv(r,{class:o,children:(e,t)=>{hl(e,{})},$$slots:{default:!0}}),Uv(xe(r,2),{children:(e,t)=>{var n=lw();fl(ce(n),{}),z(e,n)},$$slots:{default:!0}}),z(e,n)},$$slots:{default:!0}})},l=e=>{Yv(e,{get open(){return ve.isCartOpen},onOpenChange:r,children:(e,t)=>{var n=uw(),r=Y(n);qv(r,{class:o,children:(e,t)=>{hl(e,{})},$$slots:{default:!0}}),Kv(xe(r,2),{interactOutsideBehavior:"ignore",align:"end",class:"min-w-80",children:(e,t)=>{fl(e,{})},$$slots:{default:!0}}),z(e,n)},$$slots:{default:!0}})};Se(s,(e=>{n.current?e(a):e(l,!1)})),z(e,i),ie()}function fw(e){dw(e,{})}let gl;function hw(e,t={}){const n=e||document.querySelector("#app");n?(gl||(gl=oc(fw,{target:n})),ve.actions.init(t)):console.warn("ShoppingCart target element not found.")}const vw={renderCart:hw,...ve.actions};export{vw as CartFast};
//# sourceMappingURL=/sm/c4b9053b111ebb7d073affb3f19e6ed6c675bf37a75fc27dd61a0ad63197763d.map