From 3f4af40d0dddaf90c3e3eb26f61caabff7e9fea7 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 7 Jul 2026 12:59:34 +0800 Subject: [PATCH] feat: show telegram group names in manager --- front/src/App.vue | 2 +- web/api.py | 29 ++- web/static/assets/index-Cwa1Xd8Y.js | 328 ++++++++++++++++++++++++++++ web/static/index.html | 2 +- 4 files changed, 355 insertions(+), 6 deletions(-) create mode 100644 web/static/assets/index-Cwa1Xd8Y.js diff --git a/front/src/App.vue b/front/src/App.vue index 0c640ad..113b366 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -273,7 +273,7 @@ onBeforeUnmount(() => {

Telegram 群组安全管理面板

- + {{ sseConnected ? '实时连接' : '连接中' }} 重启Bot 重启服务 diff --git a/web/api.py b/web/api.py index 38abf2f..562a6d0 100644 --- a/web/api.py +++ b/web/api.py @@ -167,10 +167,31 @@ async def api_actions(limit: int = Query(default=100, ge=1, le=500)): @app.get("/api/groups") async def api_groups(): - rows = await Message.all().distinct().values("chat_id") - extra = await LotteryEvent.all().distinct().values("chat_id") - ids = sorted({int(r["chat_id"]) for r in rows + extra if r.get("chat_id")}) - return JSONResponse([{"chat_id": x, "name": str(x)} for x in ids]) + import config + from telegram import Bot + from telegram.request import HTTPXRequest + + sources = [] + for model in (Message, Ban, Action, GameScore, LotteryEvent, ShopItem): + try: + sources.extend(await model.all().distinct().values("chat_id")) + except Exception: + pass + ids = sorted({int(r["chat_id"]) for r in sources if r.get("chat_id")}) + if config.TG_CHAT_ID and config.TG_CHAT_ID not in ids: + ids.insert(0, config.TG_CHAT_ID) + + bot = Bot(token=config.TG_BOT_TOKEN, request=HTTPXRequest(proxy=getattr(config, "TG_PROXY_URL", config.PROXY_URL), connect_timeout=10.0, read_timeout=10.0)) + result = [] + for chat_id in ids: + name = str(chat_id) + try: + chat = await bot.get_chat(chat_id=chat_id) + name = chat.title or chat.full_name or chat.username or str(chat_id) + except Exception: + pass + result.append({"chat_id": chat_id, "name": name, "label": f"{name} ({chat_id})"}) + return JSONResponse(result) @app.get("/api/shop-items") diff --git a/web/static/assets/index-Cwa1Xd8Y.js b/web/static/assets/index-Cwa1Xd8Y.js new file mode 100644 index 0000000..7a1ffb5 --- /dev/null +++ b/web/static/assets/index-Cwa1Xd8Y.js @@ -0,0 +1,328 @@ +(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),E=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ee=/-\w/g,D=E(e=>e.replace(ee,e=>e.slice(1).toUpperCase())),te=/\B([A-Z])/g,O=E(e=>e.replace(te,`-$1`).toLowerCase()),ne=E(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=E(e=>e?`on${ne(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},A=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe,se=()=>oe||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ce(e){if(d(e)){let t={};for(let n=0;n{if(e){let n=e.split(ue);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n_e(e,t))}var ye=e=>!!(e&&e.__v_isRef===!0),N=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ye(e)?N(e.value):JSON.stringify(e,be,2):String(e),be=(e,t)=>ye(t)?be(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[xe(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>xe(e))}:_(t)?xe(t):v(t)&&!d(t)&&!C(t)?String(t):t,xe=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,Se,Ce=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Se&&(Se.active?(this.parent=Se,this.index=(Se.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e0&&--this._on===0){if(Se===this)Se=this.prevScope;else{let e=Se;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(je){let e=je;for(je=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ae;){let t=Ae;for(Ae=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ie(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ze(r),Be(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Le(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Re(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Re(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ke)||(e.globalVersion=Ke,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Le(e))))return;e.flags|=2;let t=e.dep,n=Ee,r=Ve;Ee=e,Ve=!0;try{Fe(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Ee=n,Ve=r,Ie(e),e.flags&=-3}}function ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Be(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ve=!0,He=[];function Ue(){He.push(Ve),Ve=!1}function We(){let e=He.pop();Ve=e===void 0?!0:e}function Ge(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Ee;Ee=void 0;try{t()}finally{Ee=e}}}var Ke=0,qe=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Je=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ee||!Ve||Ee===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Ee)t=this.activeLink=new qe(Ee,this),Ee.deps?(t.prevDep=Ee.depsTail,Ee.depsTail.nextDep=t,Ee.depsTail=t):Ee.deps=Ee.depsTail=t,Ye(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ee.depsTail,t.nextDep=void 0,Ee.depsTail.nextDep=t,Ee.depsTail=t,Ee.deps===t&&(Ee.deps=e)}return t}trigger(e){this.version++,Ke++,this.notify(e)}notify(e){Ne();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Pe()}}};function Ye(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ye(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Xe=new WeakMap,Ze=Symbol(``),Qe=Symbol(``),$e=Symbol(``);function et(e,t,n){if(Ve&&Ee){let t=Xe.get(e);t||Xe.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Je),r.map=t,r.key=n),r.track()}}function tt(e,t,n,r,i,a){let o=Xe.get(e);if(!o){Ke++;return}let s=e=>{e&&e.trigger()};if(Ne(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===$e||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get($e)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ze)),f(e)&&s(o.get(Qe)));break;case`delete`:i||(s(o.get(Ze)),f(e)&&s(o.get(Qe)));break;case`set`:f(e)&&s(o.get(Ze));break}}Pe()}function nt(e){let t=Kt(e);return t===e?t:(et(t,`iterate`,$e),Wt(e)?t:t.map(Jt))}function rt(e){return et(e=Kt(e),`iterate`,$e),e}function it(e,t){return Ut(e)?Yt(Ht(e)?Jt(t):t):Jt(t)}var at={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,e=>it(this,e))},concat(...e){return nt(this).concat(...e.map(e=>d(e)?nt(e):e))},entries(){return ot(this,`entries`,e=>(e[1]=it(this,e[1]),e))},every(e,t){return ct(this,`every`,e,t,void 0,arguments)},filter(e,t){return ct(this,`filter`,e,t,e=>e.map(e=>it(this,e)),arguments)},find(e,t){return ct(this,`find`,e,t,e=>it(this,e),arguments)},findIndex(e,t){return ct(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ct(this,`findLast`,e,t,e=>it(this,e),arguments)},findLastIndex(e,t){return ct(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ct(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ut(this,`includes`,e)},indexOf(...e){return ut(this,`indexOf`,e)},join(e){return nt(this).join(e)},lastIndexOf(...e){return ut(this,`lastIndexOf`,e)},map(e,t){return ct(this,`map`,e,t,void 0,arguments)},pop(){return dt(this,`pop`)},push(...e){return dt(this,`push`,e)},reduce(e,...t){return lt(this,`reduce`,e,t)},reduceRight(e,...t){return lt(this,`reduceRight`,e,t)},shift(){return dt(this,`shift`)},some(e,t){return ct(this,`some`,e,t,void 0,arguments)},splice(...e){return dt(this,`splice`,e)},toReversed(){return nt(this).toReversed()},toSorted(e){return nt(this).toSorted(e)},toSpliced(...e){return nt(this).toSpliced(...e)},unshift(...e){return dt(this,`unshift`,e)},values(){return ot(this,`values`,e=>it(this,e))}};function ot(e,t,n){let r=rt(e),i=r[t]();return r!==e&&!Wt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var st=Array.prototype;function ct(e,t,n,r,i,a){let o=rt(e),s=o!==e&&!Wt(e),c=o[t];if(c!==st[t]){let t=c.apply(e,a);return s?Jt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,it(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function lt(e,t,n,r){let i=rt(e),a=i!==e&&!Wt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=it(e,t)),n.call(this,t,it(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?it(e,c):c}function ut(e,t,n){let r=Kt(e);et(r,`iterate`,$e);let i=r[t](...n);return(i===-1||i===!1)&&Gt(n[0])?(n[0]=Kt(n[0]),r[t](...n)):i}function dt(e,t,n=[]){Ue(),Ne();let r=Kt(e)[t].apply(e,n);return Pe(),We(),r}var ft=e(`__proto__,__v_isRef,__isVue`),pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function mt(e){_(e)||(e=String(e));let t=Kt(this);return et(t,`has`,e),t.hasOwnProperty(e)}var ht=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Ft:Pt:i?Nt:Mt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=at[t]))return e;if(t===`hasOwnProperty`)return mt}let o=Reflect.get(e,t,Xt(e)?e:n);if((_(t)?pt.has(t):ft(t))||(r||et(e,`get`,t),i))return o;if(Xt(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?zt(e):e}return v(o)?r?zt(o):Lt(o):o}},gt=class extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Ut(i);if(!Wt(n)&&!Ut(n)&&(i=Kt(i),n=Kt(n)),!a&&Xt(i)&&!Xt(n))return e||(i.value=n),!0}let o=a?Number(t)e,Ct=e=>Reflect.getPrototypeOf(e);function wt(e,t,n){return function(...r){let i=this.__v_raw,a=Kt(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?St:t?Yt:Jt;return!t&&et(a,`iterate`,l?Qe:Ze),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Tt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Et(e,t){let n={get(n){let r=this.__v_raw,i=Kt(r),a=Kt(n);e||(k(n,a)&&et(i,`get`,n),et(i,`get`,a));let{has:o}=Ct(i),s=t?St:e?Yt:Jt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&et(Kt(t),`iterate`,Ze),t.size},has(t){let n=this.__v_raw,r=Kt(n),i=Kt(t);return e||(k(t,i)&&et(r,`has`,t),et(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=Kt(a),s=t?St:e?Yt:Jt;return!e&&et(o,`iterate`,Ze),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Tt(`add`),set:Tt(`set`),delete:Tt(`delete`),clear:Tt(`clear`)}:{add(e){let n=Kt(this),r=Ct(n),i=Kt(e),a=!t&&!Wt(e)&&!Ut(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),tt(n,`add`,a,a)),this},set(e,n){!t&&!Wt(n)&&!Ut(n)&&(n=Kt(n));let r=Kt(this),{has:i,get:a}=Ct(r),o=i.call(r,e);o||=(e=Kt(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&tt(r,`set`,e,n,s):tt(r,`add`,e,n),this},delete(e){let t=Kt(this),{has:n,get:r}=Ct(t),i=n.call(t,e);i||=(e=Kt(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&tt(t,`delete`,e,void 0,a),o},clear(){let e=Kt(this),t=e.size!==0,n=e.clear();return t&&tt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=wt(r,e,t)}),n}function Dt(e,t){let n=Et(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Ot={get:Dt(!1,!1)},kt={get:Dt(!1,!0)},At={get:Dt(!0,!1)},jt={get:Dt(!0,!0)},Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap;function It(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Lt(e){return Ut(e)?e:Vt(e,!1,vt,Ot,Mt)}function Rt(e){return Vt(e,!1,bt,kt,Nt)}function zt(e){return Vt(e,!0,yt,At,Pt)}function Bt(e){return Vt(e,!0,xt,jt,Ft)}function Vt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=It(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Ht(e){return Ut(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function Wt(e){return!!(e&&e.__v_isShallow)}function Gt(e){return e?!!e.__v_raw:!1}function Kt(e){let t=e&&e.__v_raw;return t?Kt(t):e}function qt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&ae(e,`__v_skip`,!0),e}var Jt=e=>v(e)?Lt(e):e,Yt=e=>v(e)?zt(e):e;function Xt(e){return e?e.__v_isRef===!0:!1}function Zt(e){return Qt(e,!1)}function P(e){return Qt(e,!0)}function Qt(e,t){return Xt(e)?e:new $t(e,t)}var $t=class{constructor(e,t){this.dep=new Je,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Kt(e),this._value=t?e:Jt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Wt(e)||Ut(e);e=n?e:Kt(e),k(e,t)&&(this._rawValue=e,this._value=n?e:Jt(e),this.dep.trigger())}};function F(e){return Xt(e)?e.value:e}function en(e){return h(e)?e():F(e)}var tn={get:(e,t,n)=>t===`__v_raw`?e:F(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Xt(i)&&!Xt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function nn(e){return Ht(e)?e:new Proxy(e,tn)}var rn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new Je,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function an(e){return new rn(e)}var on=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Je(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ee!==this)return Me(this,!0),!0}get value(){let e=this.dep.track();return Re(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function sn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new on(r,i,n)}var cn={},ln=new WeakMap,un=void 0;function dn(e,t=!1,n=un){if(n){let t=ln.get(n);t||ln.set(n,t=[]),t.push(e)}}function fn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Wt(e)||o===!1||o===0?pn(e,1):pn(e),m,g,_,v,y=!1,b=!1;if(Xt(e)?(g=()=>e.value,y=Wt(e)):Ht(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Ht(e)||Wt(e)),g=()=>e.map(e=>{if(Xt(e))return e.value;if(Ht(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Ue();try{_()}finally{We()}}let t=un;un=m;try{return f?f(e,3,[v]):e(v)}finally{un=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>pn(e(),t)}let x=we(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(cn):cn,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=un;un=m;try{let e=[t,C===cn?void 0:b&&C[0]===cn?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{un=e}}}else m.run()};return u&&u(w),m=new Oe(g),m.scheduler=l?()=>l(w,!1):w,v=e=>dn(e,!1,m),_=m.onStop=()=>{let e=ln.get(m);if(e){if(f)f(e,4);else for(let t of e)t();ln.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function pn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xt(e))pn(e.value,t,n);else if(d(e))for(let r=0;r{pn(e,t,n)});else if(C(e)){for(let r in e)pn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pn(e[r],t,n)}return e}function mn(e,t,n,r){try{return r?e(...r):e()}catch(e){gn(e,t,n)}}function hn(e,t,n,r){if(h(e)){let i=mn(e,t,n,r);return i&&y(i)&&i.catch(e=>{gn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a>>1,i=vn[r],a=Mn(i);a=Mn(n)?vn.push(e):vn.splice(En(t),0,e),e.flags|=1,On()}}function On(){wn||=Cn.then(Nn)}function kn(e){d(e)?bn.push(...e):xn&&e.id===-1?xn.splice(Sn+1,0,e):e.flags&1||(bn.push(e),e.flags|=1),On()}function An(e,t,n=yn+1){for(;nMn(e)-Mn(t));if(bn.length=0,xn){xn.push(...e);return}for(xn=e,Sn=0;Sne.id==null?e.flags&2?-1:1/0:e.id;function Nn(e){try{for(yn=0;yn{r._d&&xa(-1);let i=In(t),a;try{a=e(...n)}finally{In(i),r._d&&xa(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Ln(e,n){if(Pn===null)return e;let r=to(Pn),i=e.dirs||=[];for(let e=0;e1)return n&&h(t)?t.call(r&&r.proxy):t}}var Vn=Symbol.for(`v-scx`),Hn=()=>Bn(Vn);function Un(e,t){return Kn(e,null,t)}function Wn(e,t){return Kn(e,null,{flush:`post`})}function Gn(e,t,n){return Kn(e,t,n)}function Kn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Ka){if(c===`sync`){let e=Hn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=za;u.call=(e,t,n)=>hn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{ea(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Dn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=fn(e,n,u);return Ka&&(f?f.push(h):d&&h()),h}function qn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Jn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=Ua(this),s=Kn(i,a.bind(r),n);return o(),s}function Jn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Qn=e=>e&&(e.disabled||e.disabled===``),$n=e=>e&&(e.defer||e.defer===``),er=e=>typeof SVGElement<`u`&&e instanceof SVGElement,tr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,nr=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},rr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Qn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Qn(e.props),r=e.target=nr(e.props,m),a=cr(r,e,h,p);r&&(o!==`svg`&&er(r)?o=`svg`:o!==`mathml`&&tr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),sr(e,!1)))},S=e=>{let t=()=>{if(Yn.get(e)===t){if(Yn.delete(e),Qn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),sr(e,!0)}x(e)}};Yn.set(e,t),ea(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),$n(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),sr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Yn.get(e);if(u){u.flags|=8,Yn.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Qn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||er(p)?o=`svg`:(o===`mathml`||tr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),oa(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ir(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=nr(t.props,m);e&&(t.target=e,ir(t,e,null,l,0))}else g&&ir(t,p,h,l,1);sr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Qn(f),m=a||!p,h=Yn.get(e);if(h&&(h.flags|=8,Yn.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{let t=e.subTree;return t.component?dr(t.component):t};function fr(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function pr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=fr(n,e),C=(e,t)=>{e&&hn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[lr]&&t[lr](!0);let i=S[x];i&&wa(e,i)&&i.el[lr]&&i.el[lr](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[ur]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[ur]=void 0)};let c=t[ur].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[ur]&&t[ur](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[lr]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[lr]=void 0,S[i]===e&&delete S[i])};let o=t[lr].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=pr(e,t,n,r,i);return i&&i(a),a}};return T}function mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;er.value,set:e=>r.value=e})}return r}function yr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var br=new WeakMap;function xr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>xr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Cr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&xr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?to(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=Kt(v),b=v===t?i:e=>yr(_,e)?!1:u(y,e),x=(e,t)=>!(t&&yr(_,t));if(m!=null&&m!==p){if(Sr(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(Xt(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p)){Ue();try{mn(p,f,12,[l,_])}finally{We()}}else{let t=g(p),n=Xt(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),br.delete(e)};t.id=-1,br.set(e,t),ea(t,r)}else Sr(e),i()}}}function Sr(e){let t=br.get(e);t&&(t.flags|=8,br.delete(e))}se().requestIdleCallback,se().cancelIdleCallback;var Cr=e=>!!e.type.__asyncLoader,wr=e=>e.type.__isKeepAlive;function Tr(e,t){Dr(e,`a`,t)}function Er(e,t){Dr(e,`da`,t)}function Dr(e,t,n=za){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(kr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)wr(e.parent.vnode)&&Or(r,t,n,e),e=e.parent}}function Or(e,t,n,r){let i=kr(t,e,r,!0);Ir(()=>{c(r[t],i)},n)}function kr(e,t,n=za,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ue();let i=Ua(n),a=hn(t,n,e,r);return i(),We(),a};return r?i.unshift(a):i.push(a),a}}var Ar=e=>(t,n=za)=>{(!Ka||e===`sp`)&&kr(e,(...e)=>t(...e),n)},jr=Ar(`bm`),Mr=Ar(`m`),Nr=Ar(`bu`),Pr=Ar(`u`),Fr=Ar(`bum`),Ir=Ar(`um`),Lr=Ar(`sp`),Rr=Ar(`rtg`),zr=Ar(`rtc`);function Br(e,t=za){kr(`ec`,e,t)}var Vr=`components`,Hr=Symbol.for(`v-ndc`);function Ur(e){return g(e)?Wr(Vr,e,!1)||e:e||Hr}function Wr(e,t,n=!0,r=!1){let i=Pn||za;if(i){let n=i.type;if(e===Vr){let e=no(n,!1);if(e&&(e===t||e===D(t)||e===ne(D(t))))return n}let a=Gr(i[e]||n[e],t)||Gr(i.appContext[e],t);return!a&&r?n:a}}function Gr(e,t){return e&&(e[t]||e[D(t)]||e[ne(D(t))])}function Kr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Ht(e),r=!1,s=!1;n&&(r=!Wt(e),s=Ut(e),e=rt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function R(e,t,n={},r,i){if(Pn.ce||Pn.parent&&Cr(Pn.parent)&&Pn.parent.ce){let e=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),V(pa,null,[U(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),z();let o=a&&Jr(a(n)),s=n.key||o&&o.key,c=V(pa,{key:(s&&!_(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function Jr(e){return e.some(e=>Ca(e)?!(e.type===ha||e.type===pa&&!Jr(e.children)):!0)?e:null}function Yr(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:re(r)]=e[r];return n}var Xr=e=>e?Ga(e)?to(e):Xr(e.parent):null,Zr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xr(e.parent),$root:e=>Xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ui(e),$forceUpdate:e=>e.f||=()=>{Dn(e.update)},$nextTick:e=>e.n||=Tn.bind(e.proxy),$watch:e=>qn.bind(e)}),Qr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),$r={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Qr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else ai&&(s[n]=0)}let d=Zr[n],f,p;if(d)return n===`$attrs`&&et(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Qr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Qr(n,c)||u(o,c)||u(i,c)||u(Zr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function ei(){return ni(`useSlots`).slots}function ti(){return ni(`useAttrs`).attrs}function ni(e){let t=Ba();return t.setupContext||=eo(t)}function ri(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function ii(e,t){let n=ri(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?d(r)||h(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}var ai=!0;function oi(e){let t=ui(e),n=e.proxy,i=e.ctx;ai=!1,t.beforeCreate&&ci(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:ee,errorCaptured:D,serverPrefetch:te,expose:O,inheritAttrs:ne,components:re,directives:k,filters:ie}=t;if(u&&si(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Lt(t))}if(ai=!0,o)for(let e in o){let t=o[e],a=G({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)li(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{zn(t,e[t])})}f&&ci(f,e,`c`);function ae(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ae(jr,p),ae(Mr,m),ae(Nr,g),ae(Pr,_),ae(Tr,y),ae(Er,b),ae(Br,D),ae(zr,E),ae(Rr,ee),ae(Fr,S),ae(Ir,w),ae(Lr,te),d(O))if(O.length){let t=e.exposed||={};O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===r&&(e.render=T),ne!=null&&(e.inheritAttrs=ne),re&&(e.components=re),k&&(e.directives=k),te&&_r(e)}function si(e,t,n=r){d(e)&&(e=hi(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Bn(r.from||n,r.default,!0):Bn(r.from||n):Bn(r),Xt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ci(e,t,n){hn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function li(e,t,n,r){let i=r.includes(`.`)?Jn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Gn(i,n)}else if(h(e))Gn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>li(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Gn(i,r,e)}}function ui(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>di(c,e,o,!0)),di(c,t,o)),v(t)&&a.set(t,c),c}function di(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&di(e,a,n,!0),i&&i.forEach(t=>di(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=fi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var fi={data:pi,props:vi,emits:vi,methods:_i,computed:_i,beforeCreate:gi,created:gi,beforeMount:gi,mounted:gi,beforeUpdate:gi,updated:gi,beforeDestroy:gi,beforeUnmount:gi,destroyed:gi,unmounted:gi,activated:gi,deactivated:gi,errorCaptured:gi,serverPrefetch:gi,components:_i,directives:_i,watch:yi,provide:pi,inject:mi};function pi(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function mi(e,t){return _i(hi(e),hi(t))}function hi(e){if(d(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${D(t)}Modifiers`]||e[`${O(t)}Modifiers`];function Ti(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&wi(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(A)));let c,l=i[c=re(n)]||i[c=re(D(n))];!l&&o&&(l=i[c=re(O(n))]),l&&hn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,hn(u,e,6,a)}}var Ei=new WeakMap;function Di(e,t,n=!1){let r=n?Ei:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Di(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Oi(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,O(t))||u(e,t))}function ki(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=In(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ma(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Ma(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Ai(c)}}catch(t){_a.length=0,gn(t,e,1),v=U(ha)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=ji(y,a)),b=ka(b,y,!1,!0))}return n.dirs&&(b=ka(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&mr(b,n.transition),v=b,In(_),v}var Ai=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},ji=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Mi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Ni(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Ii),Ri=e=>Object.getPrototypeOf(e)===Ii;function zi(e,t,n,r=!1){let i={},a=Li();e.propsDefaults=Object.create(null),Vi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Rt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function Bi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Kt(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{p=!0;let[t,n]=Wi(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,qi=e=>d(e)?e.map(Ma):[Ma(e)],Ji=(e,t,n)=>{if(t._n)return t;let r=I((...e)=>qi(t(...e)),n);return r._c=!1,r},Yi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ki(n))continue;let i=e[n];if(h(i))t[n]=Ji(n,i,r);else if(i!=null){let e=qi(i);t[n]=()=>e}}},Xi=(e,t)=>{let n=qi(t);e.slots.default=()=>n},Zi=(e,t,n)=>{for(let r in t)(n||!Ki(r))&&(e[r]=t[r])},Qi=(e,t,n)=>{let r=e.slots=Li();if(e.vnode.shapeFlag&32){let e=t._;e?(Zi(r,t,n),n&&ae(r,`_`,e,!0)):Yi(t,r)}else t&&Xi(e,t)},$i=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Zi(a,n,r):(o=!n.$stable,Yi(n,a)),s=n}else n&&(Xi(e,n),s={default:1});if(o)for(let e in a)!Ki(e)&&s[e]==null&&delete a[e]},ea=fa;function ta(e){return na(e)}function na(e,i){let a=se();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!wa(e,t)&&(r=ge(e),j(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case ma:y(e,t,n,r);break;case ha:b(e,t,n,r);break;case ga:e??x(t,n,r,o);break;case pa:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ye)}u!=null&&i?xr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&xr(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)E(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),te(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},E=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&D(e.children,d,null,r,i,ra(e,a),s,u),_&&Rn(e,null,r,`created`),ee(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Fa(f,r,e)}_&&Rn(e,null,r,`beforeMount`);let v=aa(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&ea(()=>{try{f&&Fa(f,r,e),v&&g.enter(d),_&&Rn(e,null,r,`mounted`)}finally{}},i)},ee=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&ia(r,!1),(g=h.onVnodeBeforeUpdate)&&Fa(g,r,n,e),f&&Rn(n,e,r,`beforeUpdate`),r&&ia(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?O(e.dynamicChildren,d,l,r,i,ra(n,a),o):s||le(e,n,l,null,r,i,ra(n,a),o,!1),u>0){if(u&16)ne(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t{g&&Fa(g,r,n,e),f&&Rn(n,e,r,`updated`)},i)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),D(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(O(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&oa(e,t,!0)):le(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):A(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=Ra(e,r,i);if(wr(e)&&(s.ctx.renderer=ye),qa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=U(ha);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},A=(e,t,n)=>{let r=t.component=e.component;if(Mi(e,t,n))if(r.asyncDep&&!r.asyncResolved){ce(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ca(e);if(n){t&&(t.el=c.el,ce(e,t,o)),n.asyncDep.then(()=>{ea(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;ia(e,!1),t?(t.el=c.el,ce(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Fa(d,s,t,c),ia(e,!0);let f=ki(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ge(p),e,i,a),t.el=f.el,u===null&&Fi(e,f.el),r&&ea(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ea(()=>Fa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Cr(t);if(ia(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Fa(o,d,t),ia(e,!0),s&&be){let t=()=>{e.subTree=ki(e),be(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ki(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ea(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ea(()=>Fa(o,d,e),i)}(t.shapeFlag&256||d&&Cr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ea(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Oe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Dn(u),ia(e,!0),l()},ce=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Bi(e,t.props,r,n),$i(e,t.children,n),Ue(),An(e),We()},le=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){de(l,d,n,r,i,a,o,s,c);return}else if(f&256){ue(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&he(l,i,a),d!==l&&p(n,d)):u&16?m&16?de(l,d,n,r,i,a,o,s,c):he(l,i,a,!0):(u&8&&p(n,``),m&16&&D(d,n,r,i,a,o,s,c))},ue=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;pd?he(e,a,o,!0,!1,f):D(t,r,i,a,o,s,c,l,f)},de=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Na(t[u]):Ma(t[u]);if(wa(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Na(t[p]):Ma(t[p]);if(wa(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=ep)for(;u<=f;)j(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Na(t[u]):Ma(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u=b){j(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&wa(n,t[_])){i=_;break}i===void 0?j(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?sa(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){fe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,ye);return}if(c===pa){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[lr];a._isLeaving&&a[lr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},j=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ue(),xr(s,null,n,e,!0),We()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Cr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Fa(_,t,e),u&6)me(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Rn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ye,r):l&&!l.hasOnce&&(a!==pa||d>0&&d&64)?he(l,t,n,!1,!0):(a===pa&&d&384||!i&&u&16)&&he(c,t,n),r&&M(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ea(()=>{_&&Fa(_,t,e),h&&Rn(e,null,t,`unmounted`),v&&(e.el=null)},n)},M=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===pa){pe(n,r);return}if(t===ga){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},pe=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},me=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;la(c),la(l),r&&ie(r),i.stop(),a&&(a.flags|=8,j(o,e,t,n)),s&&ea(s,t),ea(()=>{e.isUnmounted=!0},t)},he=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return ge(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Xn];return n?h(n):t},_e=!1,ve=(e,t,n)=>{let r;e==null?t._vnode&&(j(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,_e||=(_e=!0,An(r),jn(),!1)},ye={p:v,um:j,m:fe,r:M,mt:ae,mc:D,pc:le,pbc:O,n:ge,o:e},N,be;return i&&([N,be]=i(ye)),{render:ve,hydrate:N,createApp:Si(ve,N)}}function ra({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ia({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function oa(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ca(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ca(t)}function la(e){if(e)for(let t=0;te.__isSuspense;function fa(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):kn(e)}var pa=Symbol.for(`v-fgt`),ma=Symbol.for(`v-txt`),ha=Symbol.for(`v-cmt`),ga=Symbol.for(`v-stc`),_a=[],va=null;function z(e=!1){_a.push(va=e?null:[])}function ya(){_a.pop(),va=_a[_a.length-1]||null}var ba=1;function xa(e,t=!1){ba+=e,e<0&&va&&t&&(va.hasOnce=!0)}function Sa(e){return e.dynamicChildren=ba>0?va||n:null,ya(),ba>0&&va&&va.push(e),e}function B(e,t,n,r,i,a){return Sa(H(e,t,n,r,i,a,!0))}function V(e,t,n,r,i){return Sa(U(e,t,n,r,i,!0))}function Ca(e){return e?e.__v_isVNode===!0:!1}function wa(e,t){return e.type===t.type&&e.key===t.key}var Ta=({key:e})=>e??null,Ea=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||Xt(e)||h(e)?{i:Pn,r:e,k:t,f:!!n}:e);function H(e,t=null,n=null,r=0,i=null,a=e===pa?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ta(t),ref:t&&Ea(t),scopeId:Fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pn};return s?(Pa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),ba>0&&!o&&va&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&va.push(c),c}var U=Da;function Da(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Hr)&&(e=ha),Ca(e)){let r=ka(e,t,!0);return n&&Pa(r,n),ba>0&&!a&&va&&(r.shapeFlag&6?va[va.indexOf(e)]=r:va.push(r)),r.patchFlag=-2,r}if(ro(e)&&(e=e.__vccOpts),t){t=Oa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=j(e)),v(n)&&(Gt(n)&&!d(n)&&(n=s({},n)),t.style=ce(n))}let o=g(e)?1:da(e)?128:Zn(e)?64:v(e)?4:h(e)?2:0;return H(e,t,n,r,i,o,a,!0)}function Oa(e){return e?Gt(e)||Ri(e)?s({},e):e:null}function ka(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?W(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ta(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Ea(t)):[a,Ea(t)]:Ea(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pa?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ka(e.ssContent),ssFallback:e.ssFallback&&ka(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mr(u,c.clone(u)),u}function Aa(e=` `,t=0){return U(ma,null,e,t)}function ja(e=``,t=!1){return t?(z(),V(ha,null,e)):U(ha,null,e)}function Ma(e){return e==null||typeof e==`boolean`?U(ha):d(e)?U(pa,null,e.slice()):Ca(e)?Na(e):U(ma,null,String(e))}function Na(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ka(e)}function Pa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Pa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!Ri(t)?t._ctx=Pn:r===3&&Pn&&(Pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){Pa(e,{default:t});return}t={default:t,_ctx:Pn},n=32}else t=String(t),r&64?(n=16,t=[Aa(t)]):n=8;e.children=t,e.shapeFlag|=n}function W(...e){let t={};for(let n=0;nza||Pn,Va,Ha;{let e=se(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Va=t(`__VUE_INSTANCE_SETTERS__`,e=>za=e),Ha=t(`__VUE_SSR_SETTERS__`,e=>Ka=e)}var Ua=e=>{let t=za;return Va(e),e.scope.on(),()=>{e.scope.off(),Va(t)}},Wa=()=>{za&&za.scope.off(),Va(null)};function Ga(e){return e.vnode.shapeFlag&4}var Ka=!1;function qa(e,t=!1,n=!1){t&&Ha(t);let{props:r,children:i}=e.vnode,a=Ga(e);zi(e,r,a,t),Qi(e,i,n||t);let o=a?Ja(e,t):void 0;return t&&Ha(!1),o}function Ja(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$r);let{setup:r}=n;if(r){Ue();let n=e.setupContext=r.length>1?eo(e):null,i=Ua(e),a=mn(r,e,0,[e.props,n]),o=y(a);if(We(),i(),(o||e.sp)&&!Cr(e)&&_r(e),o){if(a.then(Wa,Wa),t)return a.then(n=>{Ya(e,n,t)}).catch(t=>{gn(t,e,0)});e.asyncDep=a}else Ya(e,a,t)}else Qa(e,t)}function Ya(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=nn(t)),Qa(e,n)}var Xa,Za;function Qa(e,t,n){let i=e.type;if(!e.render){if(!t&&Xa&&!i.render){let t=i.template||ui(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Xa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,Za&&Za(e)}{let t=Ua(e);Ue();try{oi(e)}finally{We(),t()}}}var $a={get(e,t){return et(e,`get`,``),e[t]}};function eo(e){return{attrs:new Proxy(e.attrs,$a),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function to(e){return e.exposed?e.exposeProxy||=new Proxy(nn(qt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zr)return Zr[n](e)},has(e,t){return t in e||t in Zr}}):e.proxy}function no(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function ro(e){return h(e)&&`__vccOpts`in e}var G=(e,t)=>sn(e,t,Ka);function io(e,t,n){try{xa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Ca(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ca(n)&&(n=[n]),U(e,t,n))}finally{xa(1)}}var ao=`3.5.39`,oo=void 0,so=typeof window<`u`&&window.trustedTypes;if(so)try{oo=so.createPolicy(`vue`,{createHTML:e=>e})}catch{}var co=oo?e=>oo.createHTML(e):e=>e,lo=`http://www.w3.org/2000/svg`,uo=`http://www.w3.org/1998/Math/MathML`,fo=typeof document<`u`?document:null,po=fo&&fo.createElement(`template`),mo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?fo.createElementNS(lo,e):t===`mathml`?fo.createElementNS(uo,e):n?fo.createElement(e,{is:n}):fo.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>fo.createTextNode(e),createComment:e=>fo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fo.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{po.innerHTML=co(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=po.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ho=Symbol(`_vtc`);function go(e,t,n){let r=e[ho];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var _o=Symbol(`_vod`),vo=Symbol(`_vsh`),yo=Symbol(``),bo=/(?:^|;)\s*display\s*:/;function xo(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Co(r,t,``)}else for(let e in t)n[e]??Co(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Co(r,i,``):Do(e,i,!g(t)&&t?t[i]:void 0,o)||Co(r,i,o)}}else if(i){if(t!==n){let e=r[yo];e&&(n+=`;`+e),r.cssText=n,a=bo.test(n)}}else t&&e.removeAttribute(`style`);_o in e&&(e[_o]=a?r.display:``,e[vo]&&(r.display=`none`))}var So=/\s*!important$/;function Co(e,t,n){if(d(n))n.forEach(n=>Co(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Eo(e,t);So.test(n)?e.setProperty(O(r),n.replace(So,``),`important`):e[r]=n}}var wo=[`Webkit`,`Moz`,`ms`],To={};function Eo(e,t){let n=To[t];if(n)return n;let r=D(t);if(r!==`filter`&&r in e)return To[t]=r;r=ne(r);for(let n=0;nRo||=(zo.then(()=>Ro=0),Date.now());function Vo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?go(e,r,c):t===`style`?xo(e,n,r):a(t)?o(t)||Po(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Wo(e,t,r,c))?(Ao(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&ko(e,t,r,c,s,t!==`value`)):e._isVueCE&&(Go(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?Ao(e,D(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),ko(e,t,r,c))};function Wo(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ho(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ho(t)&&g(n)?!1:t in e}function Go(e,t){let n=e._def.props;if(!n)return!1;let r=D(t);return Array.isArray(n)?n.some(e=>D(e)===r):Object.keys(n).some(e=>D(e)===r)}var Ko=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>ie(t,e):t},qo=Symbol(`_assign`),Jo={deep:!0,created(e,t,n){e[qo]=Ko(n),jo(e,`change`,()=>{let t=e._modelValue,n=Qo(e),r=e.checked,i=e[qo];if(d(t)){let e=ve(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i($o(e,r))})},mounted:Yo,beforeUpdate(e,t,n){e[qo]=Ko(n),Yo(e,t,n)}};function Yo(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=ve(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=_e(t,$o(e,!0))}e.checked!==i&&(e.checked=i)}var Xo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=p(t);jo(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?A(Qo(e)):Qo(e));e[qo](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Tn(()=>{e._assigning=!1})}),e[qo]=Ko(r)},mounted(e,{value:t}){Zo(e,t)},beforeUpdate(e,t,n){e[qo]=Ko(n)},updated(e,{value:t}){e._assigning||Zo(e,t)}};function Zo(e,t){let n=e.multiple,r=d(t);if(!(n&&!r&&!p(t))){for(let i=0,a=e.options.length;iString(e)===String(o)):a.selected=ve(t,o)>-1}else a.selected=t.has(o);else if(_e(Qo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qo(e){return`_value`in e?e._value:e.value}function $o(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var es=[`ctrl`,`shift`,`alt`,`meta`],ts={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>es.some(n=>e[`${n}Key`]&&!t.includes(n))},ns=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let t=as().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=cs(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ss(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function ss(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function cs(e){return g(e)?document.querySelector(e):e}var ls=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),ds=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),fs=`-`,ps=[],ms=`arbitrary..`,hs=e=>{let t=vs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return _s(e);let n=e.split(fs);return gs(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ls(i,t):t:i||ps}return n[e]||ps}}},gs=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=gs(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(fs):e.slice(t).join(fs),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ms+r:void 0})(),vs=e=>{let{theme:t,classGroups:n}=e;return ys(n,t)},ys=(e,t)=>{let n=ds();for(let r in e){let i=e[r];bs(i,n,r,t)}return n},bs=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Ss(e,t,n);return}if(typeof e==`function`){Cs(e,t,n,r);return}ws(e,t,n,r)},Ss=(e,t,n)=>{let r=e===``?t:Ts(t,e);r.classGroupId=n},Cs=(e,t,n,r)=>{if(Es(e)){bs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(us(n,e))},ws=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(fs),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,Ds=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Os=`!`,ks=`:`,As=[],js=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ms=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return js(t,l,c,u)};if(t){let e=t+ks,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):js(As,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ns=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ps=e=>({cache:Ds(e.cacheSize),parseClassName:Ms(e),sortModifiers:Ns(e),postfixLookupClassGroupIds:Fs(e),...hs(e)}),Fs=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Is),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Os:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},Rs=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=Ps(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ls(e,n);return i(e,a),a};return a=o,(...e)=>a(Rs(...e))},Vs=[],Hs=e=>{let t=t=>t[e]||Vs;return t.isThemeGetter=!0,t},Us=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ws=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gs=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ks=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qs=/\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$/,Js=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ys=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zs=e=>Gs.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),Qs=e=>!!e&&Number.isInteger(Number(e)),$s=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),ec=e=>Ks.test(e),tc=()=>!0,nc=e=>qs.test(e)&&!Js.test(e),rc=()=>!1,ic=e=>Ys.test(e),ac=e=>Xs.test(e),oc=e=>!q(e)&&!J(e),sc=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),cc=e=>Cc(e,Dc,rc),q=e=>Us.test(e),lc=e=>Cc(e,Oc,nc),uc=e=>Cc(e,kc,K),dc=e=>Cc(e,jc,tc),fc=e=>Cc(e,Ac,rc),pc=e=>Cc(e,Tc,rc),mc=e=>Cc(e,Ec,ac),hc=e=>Cc(e,Mc,ic),J=e=>Ws.test(e),gc=e=>wc(e,Oc),_c=e=>wc(e,Ac),vc=e=>wc(e,Tc),yc=e=>wc(e,Dc),bc=e=>wc(e,Ec),xc=e=>wc(e,Mc,!0),Sc=e=>wc(e,jc,!0),Cc=(e,t,n)=>{let r=Us.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},wc=(e,t,n=!1)=>{let r=Ws.exec(e);return r?r[1]?t(r[1]):n:!1},Tc=e=>e===`position`||e===`percentage`,Ec=e=>e===`image`||e===`url`,Dc=e=>e===`length`||e===`size`||e===`bg-size`,Oc=e=>e===`length`,kc=e=>e===`number`,Ac=e=>e===`family-name`,jc=e=>e===`number`||e===`weight`,Mc=e=>e===`shadow`,Nc=Bs(()=>{let e=Hs(`color`),t=Hs(`font`),n=Hs(`text`),r=Hs(`font-weight`),i=Hs(`tracking`),a=Hs(`leading`),o=Hs(`breakpoint`),s=Hs(`container`),c=Hs(`spacing`),l=Hs(`radius`),u=Hs(`shadow`),d=Hs(`inset-shadow`),f=Hs(`text-shadow`),p=Hs(`drop-shadow`),m=Hs(`blur`),h=Hs(`perspective`),g=Hs(`aspect`),_=Hs(`ease`),v=Hs(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[Zs,`full`,`auto`,...w()],E=()=>[Qs,`none`,`subgrid`,J,q],ee=()=>[`auto`,{span:[`full`,Qs,J,q]},Qs,J,q],D=()=>[Qs,`auto`,J,q],te=()=>[`auto`,`min`,`max`,`fr`,J,q],O=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ne=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],re=()=>[`auto`,...w()],k=()=>[Zs,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ie=()=>[Zs,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[Zs,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,J,q],oe=()=>[...b(),vc,pc,{position:[J,q]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,yc,cc,{size:[J,q]}],le=()=>[$s,gc,lc],ue=()=>[``,`none`,`full`,l,J,q],de=()=>[``,K,gc,lc],fe=()=>[`solid`,`dashed`,`dotted`,`double`],j=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],M=()=>[K,$s,vc,pc],pe=()=>[``,`none`,m,J,q],me=()=>[`none`,K,J,q],he=()=>[`none`,K,J,q],ge=()=>[K,J,q],_e=()=>[Zs,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ec],breakpoint:[ec],color:[tc],container:[ec],"drop-shadow":[ec],ease:[`in`,`out`,`in-out`],font:[oc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ec],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ec],shadow:[ec],spacing:[`px`,K],text:[ec],"text-shadow":[ec],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Zs,q,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,q]}],"container-named":[sc],columns:[{columns:[K,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Qs,`auto`,J,q]}],basis:[{basis:[Zs,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,Zs,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,K,J,q]}],shrink:[{shrink:[``,K,J,q]}],order:[{order:[Qs,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...O(),`normal`]}],"justify-items":[{"justify-items":[...ne(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ne()]}],"align-content":[{content:[`normal`,...O()]}],"align-items":[{items:[...ne(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ne(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...ne(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ne()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...ie()]}],"min-inline-size":[{"min-inline":[`auto`,...ie()]}],"max-inline-size":[{"max-inline":[`none`,...ie()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,...k()]}],"font-size":[{text:[`base`,n,gc,lc]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Sc,dc]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,$s,q]}],"font-family":[{font:[_c,fc,t]}],"font-features":[{"font-features":[q]}],"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:[i,J,q]}],"line-clamp":[{"line-clamp":[K,`none`,J,uc]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...fe(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,J,lc]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[K,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Qs,J,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],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`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Qs,J,q],radial:[``,J,q],conic:[Qs,J,q]},bc,mc]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":de()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...fe(),`hidden`,`none`]}],"divide-style":[{divide:[...fe(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...fe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,J,q]}],"outline-w":[{outline:[``,K,gc,lc]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,xc,hc]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,xc,hc]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:de()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[K,lc]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,xc,hc]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[K,J,q]}],"mix-blend":[{"mix-blend":[...j(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":j()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:pe()}],brightness:[{brightness:[K,J,q]}],contrast:[{contrast:[K,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,xc,hc]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,K,J,q]}],"hue-rotate":[{"hue-rotate":[K,J,q]}],invert:[{invert:[``,K,J,q]}],saturate:[{saturate:[K,J,q]}],sepia:[{sepia:[``,K,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[K,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[K,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,K,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[K,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[K,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,J,q]}],"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`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[K,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":[`scale-3d`],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":[`translate-none`],zoom:[{zoom:[Qs,J,q]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"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`,J,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"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-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":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`,J,q]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[K,gc,lc,uc]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Pc=Symbol.for(`@soybeanjs/cva.metadata`),Fc=[];function Ic(e,t){return Object.defineProperty(e,Pc,{configurable:!1,enumerable:!1,value:t,writable:!1}),e}function Lc(){return Fc[Fc.length-1]}function Rc(e,t){Fc.push(e);try{return t()}finally{Fc.pop()}}function zc(e){if(typeof e==`function`)return e[Pc]}function Bc(e){let t=zc(e);return t?.kind===`cv`?t:void 0}function Vc(e){let t=zc(e);return t?.kind===`scv`?t:void 0}function Hc(e,t){return t[e]??e}function Uc(e,t,n){if(n.length===0)return;let r=e[t];if(r){r.push(...n);return}e[t]=[...n]}function Wc(e,t){let n={};for(let[r,i]of Object.entries(e))Uc(n,Hc(r,t),i);return n}function Gc(e,t,n,r){let i=t.indexOf(n);i>=0&&t.splice(i,1),t.push(n),e[n]=r}function Kc(e,t,n){let r=[],i={};for(let a of e)Gc(i,r,Hc(a,n),t[a]);return{slotOrder:r,slotPlan:i}}function qc(e,t){let n=Kc(e.slotOrder,e.slotPlan,t);return{inheritedShared:Wc(e.inheritedShared,t),inheritedUnique:Wc(e.inheritedUnique,t),localShared:Wc(e.localShared,t),localUnique:Wc(e.localUnique,t),slotOrder:n.slotOrder,slotPlan:n.slotPlan}}function Jc(e,t){let n={};for(let[r,i]of Object.entries(e))n[Hc(r,t)]=i;return n}function Yc(e){let t={};for(let[n,r]of Object.entries(e))t[r]=n;return t}function Xc(e,t){let n={};for(let[r,i]of Object.entries(e))n[Hc(r,t)]=i;return n}function Zc(e,t){let n=Vc(e);if(!n)throw TypeError(`alias only accepts scv results.`);let r=Object.fromEntries(Object.entries(t).filter(e=>typeof e[1]==`string`)),i=Yc(r),a=Kc(n.slotOrder,n.slotPlan,r);return Ic((t,...n)=>Jc(e(t,...n.filter(Boolean).map(e=>Xc(e,i))),r),{...n,resolveRaw:e=>qc(n.resolveRaw(e),r),slotOrder:a.slotOrder,slotPlan:a.slotPlan})}function Qc(e){if(typeof e==`string`)return e;if(typeof e==`number`)return String(e);if(e==null||typeof e==`boolean`)return``;let t=``;if(Array.isArray(e)){let n=0,r,i;for(;n[e,Object.fromEntries(Object.entries(n).map(([e,n])=>[e,t(n)]))]))}function nl(e){if(e!=null){if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`||typeof e==`string`)return String(e)}}function rl(e){let t={};for(let[n,r]of Object.entries(e??{})){let e=nl(r);e!==void 0&&(t[n]=e)}return t}function il(e){let t={};for(let[n,r]of Object.entries(e??{}))nl(r)!==void 0&&(t[n]=r);return t}function al(e){let t={};for(let[n,r]of Object.entries(e)){if(n===`class`||n===`className`)continue;let e=Array.isArray(r)?r.map(e=>nl(e)).filter(e=>e!==void 0):[nl(r)].filter(e=>e!==void 0);e.length>0&&(t[n]=e)}return t}function ol(e,t){let n={...t};if(!e)return n;for(let[t,r]of Object.entries(e)){let e=nl(r);e!==void 0&&(n[t]=e)}return n}function sl(e,t,n){let r={...t};for(let[t,n]of Object.entries(e??{}))n!=null&&(r[t]=n);for(let[e,t]of Object.entries(n))e in r||(r[e]=t);return r}function cl(e,t){for(let[n,r]of Object.entries(t)){let t=e[n];if(!t||!r.includes(t))return!1}return!0}function ll(e,t){let n={};for(let t of e)for(let[e,r]of Object.entries(t.defaultVariants))n[e]=r;for(let[e,r]of Object.entries(rl(t)))n[e]=r;return n}function ul(e,t){let n={};for(let t of e)for(let[e,r]of Object.entries(t.runtimeDefaultVariants))n[e]=r;for(let[e,r]of Object.entries(il(t)))n[e]=r;return n}function dl(e){let t=[];for(let n of e??[]){let e=Bc(n);if(!e)throw TypeError(`cv.extend only accepts cv results.`);t.push(e)}return t}function fl(e){let t=e.extend,n=dl(t),r=$c(e.base),i=e.extendBase,a=ll(n,e.defaultVariants),o=ul(n,e.defaultVariants),s=tl(e.variants,e=>$c(e)),c=(e.compoundVariants??[]).map(e=>({className:$c(e.class??e.className),conditions:al(e)})),l={config:e,defaultVariants:a,runtimeDefaultVariants:o,kind:`cv`,resolveRaw:e=>{let t=ol(e,a),l=sl(e,o,t),u=[];for(let e of n)u.push(...e.resolveRaw(l));let d=Rc(l,()=>$c(i?.(l)));d&&u.push(d),r&&u.push(r);for(let[e,n]of Object.entries(s)){let r=t[e];if(!r)continue;let i=n[r];i&&u.push(i)}for(let e of c)cl(t,e.conditions)&&e.className&&u.push(e.className);return u}};return Ic((e,...t)=>{let n=e??Lc(),r=l.resolveRaw(n);if(t.length===0)return $c(r);let i=[...r];for(let e of t){let t=$c(e);t&&i.push(t)}return el(i)},l)}function pl(e,t){let n={...e};for(let[e,r]of Object.entries(t??{}))r!=null&&(n[e]=r);return n}function ml(e,t){let n=pl(void 0,t);return pl(n,e(n))}function hl(e,t,n){return Ic((t,...r)=>e(ml(n,t??Lc()),...r),{...t,resolveRaw:e=>t.resolveRaw(ml(n,e))})}function gl(e,t,n){return Ic((t,...r)=>e(ml(n,t??Lc()),...r),{...t,resolveRaw:e=>t.resolveRaw(ml(n,e))})}function _l(e,t){let n=Bc(e);if(n)return hl(e,n,t);let r=Vc(e);if(r)return gl(e,r,t);throw TypeError(`derive only accepts cv or scv results.`)}function vl(e,t,n){if(n.length===0)return;let r=e[t];if(r){r.push(...n);return}e[t]=[...n]}function yl(e,t,n,r){let i=t.indexOf(n);i>=0&&t.splice(i,1),t.push(n),e[n]=r}function bl(e){let t=[],n={};for(let r of e)if(r.kind===`scv`)for(let e of r.meta.slotOrder)yl(n,t,e,r.meta.slotPlan[e]);return{slotOrder:t,slotPlan:n}}function xl(e,t,n){let{slotOrder:r,slotPlan:i}=bl(t),a=[...e];for(let e of n)a.includes(e)||a.push(e);a.length===0&&r.length===0&&t.some(e=>e.kind===`cv`)&&a.push(`root`);let o={},s=[];for(let e of a)s.push(e),o[e]={};let c=[],l={};for(let e of r)c.push(e),l[e]=i[e];for(let e of s)yl(l,c,e,o[e]);return c.length===0&&(c.push(`root`),l.root={}),{slotOrder:c,slotPlan:l}}function Sl(e,t){return{inheritedShared:{},inheritedUnique:{},localShared:{},localUnique:{},slotOrder:e,slotPlan:t}}function Cl(e,t){for(let[n,r]of Object.entries(t.inheritedShared))vl(e.inheritedShared,n,r);for(let[n,r]of Object.entries(t.localShared))vl(e.inheritedShared,n,r);for(let[n,r]of Object.entries(t.inheritedUnique))n in e.slotPlan&&vl(e.inheritedUnique,n,r);for(let[n,r]of Object.entries(t.localUnique))n in e.slotPlan&&vl(e.inheritedUnique,n,r)}function wl(e,t,n){vl(e,t,n)}function Tl(e){let t={};for(let[n,r]of Object.entries(e??{})){let e=$c(r);e&&(t[n]=[e])}return{slots:t}}function El(e,t,n){let r=n===`inherited`?e.inheritedShared:e.localShared;for(let[n,i]of Object.entries(t.slots))n in e.slotPlan&&wl(r,n,i)}function Dl(e,t){let n={};for(let t of e){let e=t.meta.defaultVariants;for(let[t,r]of Object.entries(e))n[t]=r}for(let[e,r]of Object.entries(rl(t)))n[e]=r;return n}function Ol(e,t){let n={};for(let t of e){let e=t.meta.runtimeDefaultVariants;for(let[t,r]of Object.entries(e))n[t]=r}for(let[e,r]of Object.entries(il(t)))n[e]=r;return n}function kl(e){let t=[];for(let n of e??[]){let e=Vc(n);if(e){t.push({kind:`scv`,meta:e});continue}if(Bc(n))throw TypeError(`scv.extend does not accept cv results directly. Map them to a slot key, for example { root: recipe }.`);for(let[e,r]of Object.entries(n)){let n=Bc(r);n&&t.push({kind:`cv`,meta:n,slot:e})}}return t}function Al(e){let t=[];for(let n of e??[])if(!Vc(n)){if(Bc(n))throw TypeError(`scv.extend does not accept cv results directly. Map them to a slot key, for example { root: recipe }.`);for(let e of Object.keys(n))t.includes(e)||t.push(e)}return t}function jl(e,t){let n={};if(!e)return n;for(let r of e)if(r)for(let[e,i]of Object.entries(r)){if(!(e in t))continue;let r=n[e]??[];r.push($c(i)),n[e]=r}return n}function Ml(e){return Object.keys(e??{})}function Y(e){let t=e.extend,n=Ml(e.slots),r=e.extendBase,i=Al(t),{slotOrder:a,slotPlan:o}=xl(n,kl(t),i),s=new Set(e.extendIgnore??[]),c=Tl(e.slots),l=tl(e.variants,e=>Tl(e)),u=(e.compoundVariants??[]).map(e=>({classParts:Tl(e.class??e.className),conditions:al(e)})),d=kl(t),f=Dl(d,e.defaultVariants),p=Ol(d,e.defaultVariants),m={config:e,defaultVariants:f,runtimeDefaultVariants:p,kind:`scv`,preparedExtends:d,resolveRaw:e=>{let t=Sl(a,o),n=ol(e,f),i=sl(e,p,n);for(let e of d){if(e.kind===`scv`){Cl(t,e.meta.resolveRaw(i));continue}let n=e.meta.resolveRaw(i);wl(t.inheritedShared,e.slot,n)}El(t,Rc(i,()=>Tl(r?.(i))),`local`),El(t,c,`local`);for(let[e,r]of Object.entries(l)){let i=n[e];if(!i)continue;let a=r[i];a&&El(t,a,`local`)}for(let e of u)cl(n,e.conditions)&&El(t,e.classParts,`local`);for(let e of a){let n=s.has(e)?[]:[...t.inheritedShared[e]??[]],r=[...t.localShared[e]??[]];t.localUnique[e]=[...n,...r],s.has(e)&&(delete t.inheritedShared[e],delete t.inheritedUnique[e])}return t},slotOrder:a,slotPlan:o};return Ic((e,...t)=>{let n=e??Lc(),r=m.resolveRaw(n),i=t.length===0?void 0:jl(t,r.slotPlan),a=r.slotOrder.map(e=>{let t=r.localUnique[e]??[],n=i?[...t,...i[e]??[]]:t;return[e,i?el(n):$c(n)]});return Object.fromEntries(a)},m)}function Nl(e,t){let n={...e};for(let[e,r]of Object.entries(t??{}))r!=null&&(n[e]=r);return n}function Pl(e,t){return{...e,...rl(t)}}function Fl(e,t){return{...e,...il(t)}}function Il(e,t,n){let r=Pl(t.defaultVariants,n),i=Fl(t.runtimeDefaultVariants,n);return Ic((t,...n)=>e(Nl(i,t??Lc()),...n),{...t,config:{...t.config,defaultVariants:i},defaultVariants:r,runtimeDefaultVariants:i,resolveRaw:e=>t.resolveRaw(Nl(i,e))})}function Ll(e,t,n){let r=Pl(t.defaultVariants,n),i=Fl(t.runtimeDefaultVariants,n);return Ic((t,...n)=>e(Nl(i,t??Lc()),...n),{...t,config:{...t.config,defaultVariants:i},defaultVariants:r,runtimeDefaultVariants:i,resolveRaw:e=>t.resolveRaw(Nl(i,e))})}function Rl(e,t){let n=Bc(e);if(n)return Il(e,n,t);let r=Vc(e);if(r)return Ll(e,r,t);throw TypeError(`defaults only accepts cv or scv results.`)}Y({slots:{root:``,item:`border-b`,header:`flex`,content:[`overflow-hidden transition will-change-auto`,`data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`],description:`m-0`,trigger:[`flex-1 flex items-center justify-start font-medium transition-all-200 bg-transparent`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`hover:underline [&[data-state=open]>.trigger-icon]:rotate-180`],triggerLeadingIcon:`shrink-0`,triggerIcon:`trigger-icon ms-auto shrink-0 text-muted-foreground transition-transform-200`},variants:{size:{xs:{root:`text-2xs`,description:`pb-3`,trigger:`py-3 gap-2.5`},sm:{root:`text-xs`,description:`pb-3.5`,trigger:`py-3.5 gap-3`},md:{root:`text-sm`,description:`pb-4`,trigger:`py-4 gap-3.5`},lg:{root:`text-base`,description:`pb-4.5`,trigger:`py-4.5 gap-4`},xl:{root:`text-lg`,description:`pb-5`,trigger:`py-5 gap-4.5`},"2xl":{root:`text-2xl`,description:`pb-6`,trigger:`py-6 gap-5`}}},defaultVariants:{size:`md`}});function zl(e){let t=typeof e;return t===`string`||t===`number`||t===`boolean`||Hl(e)}function Bl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Vl(e){return typeof e==`object`&&Array.isArray(e)}function Hl(e){return e==null}function Ul(e){return typeof e==`string`?`'${e}'`:new Wl().serialize(e)}var Wl=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;ethis.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function Gl(e,t){return e===t||Ul(e)===Ul(t)}function Kl(e,t){let n={};for(let r in e){let i=r;t.includes(i)||(n[i]=e[i])}return n}function ql(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Jl(e,t,n){if(!e?.length||!t)return;let r=t.length>1&&t[0]?.repeat(t.length)===t?t[0]:t,i=r.toLowerCase(),a=r.length===1,o=n?e.indexOf(n):-1,s=Math.max(o,0),c=e.length;for(let t=0;tGl(e,t)),i=e.findIndex(e=>Gl(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}function Xl(e){return e?e.reduce((e,t)=>(e.push(t),t.children&&e.push(...Xl(t.children)),e),[]):[]}function Zl(e){return e===`indeterminate`}function Ql(e){return Zl(e)?`indeterminate`:e?`checked`:`unchecked`}function $l(e){return e?`open`:`closed`}function eu(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function tu(e,t){let n=e,r=t.toString(),i=r.indexOf(`.`),a=i>=0?r.length-i:0;if(a>0){let e=10**a;n=Math.round(n*e)/e}return n}function nu(e,t,n,r){let i=Number(t),a=Number(n),o=(e-(Number.isNaN(i)?0:i))%r,s=tu(Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return Number.isNaN(i)?!Number.isNaN(a)&&s>a&&(s=Math.floor(tu(a/r,r))*r):sa&&(s=i+Math.floor(tu((a-i)/r,r))*r),s=tu(s,r),s}function X(e,t){let n=typeof e==`string`?e:e.name,r=typeof e==`string`?Symbol(e):e.key;return[(...e)=>{let n=t?.(...e)??e[0];return zn(r,n),n},(e,t)=>{let i=Bn(r,t)??null;if(e!=null&&i===null)throw Error(`\`${e}\` must be used within \`${n}\``);return i}]}function ru(e,t){return Hl(e)||Hl(t)?!1:Array.isArray(e)?e.includes(t):e===t}var iu={grad:360/400,turn:360,rad:360/(Math.PI*2)},au={x:.95047,y:1,z:1.08883},ou={x:.96422,y:1,z:.82521},su=[[.4122214708,.5363325363,.0514459929],[.2119034982,.6806995451,.1073969566],[.0883024619,.2817188376,.6299787005]],cu=[[4.076741661347993,-3.3077115904081937,.2309699287294278],[-1.2684380040921763,2.609757400663372,-.3413193963102196],[-.0041960865418371,-.7034186144594495,1.7076147009309446]],lu=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],uu=[[.9999999984505198,.3963377921737678,.2158037580607588],[1.0000000088817607,-.1055613423236563,-.0638541747717059],[1.0000000546724108,-.0894841820949657,-1.2914855378640917]],du=[[.4124564391,.3575760776,.1804374833],[.2126728514,.7151521552,.0721749934],[.0193338956,.1191920259,.9503040785]],fu=[[3.2404541621,-1.5371385127,-.4985314095],[-.9692660305,1.8760108454,.0415560175],[.055643431,-.2040259135,1.0572251882]],pu=[[1.0478112,.0228866,-.050127],[.0295424,.9904844,-.0170491],[-.0092345,.0150436,.7521316]],mu=[[.9555766,-.0230393,.0631636],[-.0282895,1.0099416,.0210077],[.0122982,-.020483,1.3299098]],hu=e=>typeof e==`string`?e.length>0:typeof e==`number`,gu=(e,t=0)=>{let n=10**t;return Math.round(n*e)/n+0},_u=(e,t=0,n=1)=>e>n?n:e{let t=Number.isFinite(e)?e%360:0;return t>0?t:t+360},yu=(e,t=`deg`)=>Number.parseFloat(e)*(iu[t]||1);function bu(e,t){return[e[0][0]*t[0]+e[0][1]*t[1]+e[0][2]*t[2],e[1][0]*t[0]+e[1][1]*t[1]+e[1][2]*t[2],e[2][0]*t[0]+e[2][1]*t[1]+e[2][2]*t[2]]}function xu(e){if(!e)return 1;let t=Number.parseFloat(e);return e.endsWith(`%`)&&(t/=100),t}function Su(e){let t=Number.parseFloat(e);return e.endsWith(`%`)||t>1?_u(t/100):_u(t)}var Cu=e=>{let{r:t,g:n,b:r,alpha:i}=e;return{r:_u(t,0,255),g:_u(n,0,255),b:_u(r,0,255),alpha:_u(i)}},wu=e=>{let{r:t,g:n,b:r,alpha:i}=e;return{r:gu(t,2),g:gu(n,2),b:gu(r,2),alpha:gu(i,3)}},Tu=e=>{let{r:t,g:n,b:r,alpha:i}=e;return{r:_u(t),g:_u(n),b:_u(r),alpha:_u(i)}},Eu=({r:e,g:t,b:n,alpha:r=1})=>!hu(e)||!hu(t)||!hu(n)?null:Cu({r:Number(e),g:Number(t),b:Number(n),alpha:Number(r)}),Du=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4};function Ou(e){return(e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055)*255}function ku(e){return{r:Du(e.r),g:Du(e.g),b:Du(e.b),alpha:e.alpha}}function Au(e){return{r:Ou(e.r),g:Ou(e.g),b:Ou(e.b),alpha:e.alpha}}var ju=/^rgb?\(\s*([\d.]+%?)\s*[, ]\s*([\d.]+%?)\s*[, ]\s*([\d.]+%?)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/i,Mu=e=>{let t=ju.exec(e);if(!t)return null;let[n,r,i,a,o]=t;return Cu({r:Nu(r),g:Nu(i),b:Nu(a),alpha:xu(o)})};function Nu(e){if(e.endsWith(`%`)){let t=Number.parseFloat(e.slice(0,-1));return Math.round(t/100*255)}return Number.parseFloat(e)}var Pu=e=>{let{r:t,g:n,b:r,alpha:i}=wu(e);return i<1?`rgb(${t} ${n} ${r} / ${i})`:`rgb(${t} ${n} ${r})`},Fu=e=>({h:vu(e.h),s:_u(e.s,0,100),v:_u(e.v,0,100),alpha:_u(e.alpha)}),Iu=e=>({h:gu(e.h,3),s:gu(e.s,3),v:gu(e.v,3),alpha:gu(e.alpha,3)}),Lu=e=>{let t=e.h/360*6,n=e.s/100,r=e.v/100,i=Math.floor(t),a=r*(1-n),o=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:[r,o,a,a,s,r][c]*255,g:[s,r,r,o,a,a][c]*255,b:[a,a,s,r,r,o][c]*255,alpha:e.alpha}},Ru=({h:e,s:t,v:n,alpha:r=1})=>!hu(e)||!hu(t)||!hu(n)?null:Lu(Fu({h:Number(e),s:Number(t),v:Number(n),alpha:Number(r)})),zu=({r:e,g:t,b:n,alpha:r})=>{let i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=0;return a&&(o=i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a),{h:60*(o<0?o+6:o),s:i?a/i*100:0,v:i/255*100,alpha:r}},Bu=e=>{let{x:t,y:n,z:r,alpha:i}=e;return{x:_u(t,0,au.x*1.2),y:_u(n,0,au.y*1.2),z:_u(r,0,au.z*1.2),alpha:_u(i)}},Vu=e=>{let{x:t,y:n,z:r,alpha:i}=e,[a,o,s]=bu(fu,[t,n,r]);return Cu(Au({r:a,g:o,b:s,alpha:i}))},Hu=e=>{let{r:t,g:n,b:r,alpha:i}=ku(e),[a,o,s]=bu(du,[t,n,r]);return Bu({x:a,y:o,z:s,alpha:i})},Uu=216/24389,Wu=24389/27,Gu=e=>{let{l:t,a:n,b:r,alpha:i}=e;return{l:_u(t,0,100),a:_u(n,-160,160),b:_u(r,-160,160),alpha:_u(i)}},Ku=e=>{let{l:t,a:n,b:r,alpha:i}=e;return{l:gu(t,3),a:gu(n,3),b:gu(r,3),alpha:gu(i,3)}},qu=e=>{let t=Hu(e),{alpha:n}=t,[r,i,a]=bu(pu,[t.x,t.y,t.z]);return Qu({x:r,y:i,z:a,alpha:n})},Ju=e=>{let t=$u(e),[n,r,i]=bu(mu,[t.x,t.y,t.z]);return Vu({x:n,y:r,z:i,alpha:e.alpha})},Yu=(e,t=.01)=>e.r>=-t&&e.r<=255+t&&e.g>=-t&&e.g<=255+t&&e.b>=-t&&e.b<=255+t,Xu=(e,t,n)=>{let r=0,i=150;if(Yu(Ju({l:e,a:i*Math.cos(t),b:i*Math.sin(t),alpha:n})))return i;for(;i-r>.01;){let a=(r+i)/2;Yu(Ju({l:e,a:a*Math.cos(t),b:a*Math.sin(t),alpha:n}))?r=a:i=a}return r},Zu=e=>{let{l:t,a:n,b:r,alpha:i}=e,a=Ju(e);if(!Yu(a)&&Math.sqrt(n*n+r*r)>1e-4){let e=Math.atan2(r,n),o=Xu(t,e,i);a=Ju({l:t,a:o*Math.cos(e),b:o*Math.sin(e),alpha:i})}return Cu(a)};function Qu(e){let{x:t,y:n,z:r,alpha:i}=e,a=t/ou.x,o=n/ou.y,s=r/ou.z,c=e=>e>Uu?Math.cbrt(e):(Wu*e+16)/116,l=c(a),u=c(o),d=c(s);return{l:116*u-16,a:500*(l-u),b:200*(u-d),alpha:i}}function $u(e){let{l:t,a:n,b:r,alpha:i}=e,a=(t+16)/116,o=n/500+a,s=a-r/200,c=e=>e*e*e>Uu?e*e*e:(116*e-16)/Wu,l=c(o),u=t>Wu*Uu?((t+16)/116)**3:t/Wu,d=c(s);return{x:l*ou.x,y:u*ou.y,z:d*ou.z,alpha:i}}var ed=({l:e,a:t,b:n,alpha:r=1})=>!hu(e)||!hu(t)||!hu(n)?null:Gu({l:Number(e),a:Number(t),b:Number(n),alpha:Number(r)}),td=e=>{let t=ed(e);return t?Zu(t):null},nd=/^lab\(\s*([+-]?[\d.]+)%?\s+([+-]?[\d.]+)\s+([+-]?[\d.]+)(?:\s*\/\s*([+-]?[\d.]+%?))?\s*\)$/i,rd=e=>{let t=nd.exec(e);if(!t)return null;let[n,r,i,a,o]=t;return Gu({l:Number.parseFloat(r),a:Number.parseFloat(i),b:Number.parseFloat(a),alpha:xu(o)})},id=e=>{let t=rd(e);return t?Zu(t):null},ad=e=>{let{l:t,a:n,b:r,alpha:i}=Ku(e);return i<1?`lab(${t}% ${n} ${r} / ${i})`:`lab(${t}% ${n} ${r})`},od=e=>ad(qu(e)),sd=e=>{if(!e||e.format!==`lab`)return null;let{input:t}=e;return typeof t==`string`?rd(t):typeof t==`object`?ed(t):null},cd=e=>{let t=sd(e);return t?ad(t):null},ld=e=>{let{h:t,s:n,l:r,alpha:i}=e;return{h:vu(t),s:_u(n,0,100),l:_u(r,0,100),alpha:_u(i)}},ud=e=>{let{h:t,s:n,l:r,alpha:i}=e;return{h:gu(t,3),s:gu(n,3),l:gu(r,3),alpha:gu(i,3)}},dd=e=>{let{h:t,l:n,alpha:r}=e,i=e.s*(n<50?n:100-n)/100;return{h:t,s:i>0?2*i/(n+i)*100:0,v:n+i,alpha:r}},fd=({h:e,s:t,v:n,alpha:r})=>{let i=(200-t)*n/100;return{h:e,s:i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,alpha:r}},pd=e=>Lu(dd(e)),md=e=>fd(zu(e)),hd=({h:e,s:t,l:n,alpha:r=1})=>!hu(e)||!hu(t)||!hu(n)?null:pd(ld({h:Number(e),s:Number(t),l:Number(n),alpha:Number(r)})),gd=e=>{let{h:t,s:n,l:r,alpha:i}=ud(md(e));return i<1?`hsl(${t} ${n}% ${r}% / ${i})`:`hsl(${t} ${n}% ${r}%)`},_d=/^hsl?\(\s*([+-]?[\d.]+)(deg|grad|rad|turn)?\s*[, ]\s*([+-]?[\d.]+)%\s*[, ]\s*([+-]?[\d.]+)%(?:\s*\/\s*([+-]?[\d.]+%?))?\s*\)$/i,vd=e=>{let t=_d.exec(e);if(!t)return null;let[,n,r,i,a,o]=t;return pd(ld({h:yu(n,r),s:Number.parseFloat(i),l:Number.parseFloat(a),alpha:xu(o)}))},yd=(e,t)=>({r:e.r,g:e.g,b:e.b,alpha:t}),bd=e=>({r:255-e.r,g:255-e.g,b:255-e.b,alpha:e.alpha}),xd=(e,t)=>{let n=md(e);return{h:n.h,s:n.s,l:_u(n.l+t*100,0,100),alpha:n.alpha}},Sd=(e,t)=>{let{h:n,s:r,l:i,alpha:a}=md(e);return{h:n,s:_u(r+t*100,0,100),l:i,alpha:a}},Cd=e=>(e.r*299+e.g*587+e.b*114)/1e3/255;function wd(e,t){let{l:n,a:r,b:i}=e,{l:a,a:o,b:s}=t,c=180/Math.PI,l=Math.PI/180,u=((r**2+i**2)**.5+(o**2+s**2)**.5)/2,d=(n+a)/2,f=u**7,p=.5*(1-(f/(f+25**7))**.5),m=r*(1+p),h=o*(1+p),g=(m**2+i**2)**.5,_=(h**2+s**2)**.5,v=(g+_)/2,y=m===0&&i===0?0:Math.atan2(i,m)*c,b=h===0&&s===0?0:Math.atan2(s,h)*c;y<0&&(y+=360),b<0&&(b+=360);let x=b-y,S=Math.abs(b-y);S>180&&b<=y?x+=360:S>180&&b>y&&(x-=360);let C=y+b;S<=180?C/=2:C=(y+b<360?C+360:C-360)/2;let w=1-.17*Math.cos(l*(C-30))+.24*Math.cos(l*2*C)+.32*Math.cos(l*(3*C+6))-.2*Math.cos(l*(4*C-63)),T=a-n,E=_-g,ee=2*Math.sin(l*x/2)*(g*_)**.5,D=1+.015*(d-50)**2/(20+(d-50)**2)**.5,te=1+.045*v,O=1+.015*v*w,ne=30*Math.exp(-1*((C-275)/25)**2),re=-(2*(f/(f+25**7))**.5)*Math.sin(l*2*ne);return((T/1/D)**2+(E/1/te)**2+(ee/1/O)**2+re*E*ee/(1*te*1*O))**.5}function Td(e){return Object.keys(e)}var Ed=/^#([0-9a-f]{3,8})$/i,Dd=e=>{let t=Ed.exec(e);if(!t)return null;let n=t[1];return n.length<=4?{r:Number.parseInt(n[0]+n[0],16),g:Number.parseInt(n[1]+n[1],16),b:Number.parseInt(n[2]+n[2],16),alpha:n.length===4?gu(Number.parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),alpha:n.length===8?gu(Number.parseInt(n.slice(6,8),16)/255,2):1}:null},Od=e=>{let t=Math.round(e).toString(16);return t.length<2?`0${t}`:t},kd=e=>{let{r:t,g:n,b:r,alpha:i}=wu(e),a=i<1?Od(gu(i*255)):``;return`#${Od(t)}${Od(n)}${Od(r)}${a}`},Ad=e=>{let{l:t,c:n,h:r,alpha:i}=e;return{l:_u(t,0,1),c:_u(n,0,.37),h:vu(r),alpha:_u(i)}},jd=e=>{let{l:t,c:n,h:r,alpha:i}=e;return{l:gu(t,3),c:gu(n,3),h:gu(r,3),alpha:gu(i,3)}},Md=e=>{let{l:t,c:n,h:r,alpha:i}=e,a=r*Math.PI/180,[o,s,c]=bu(cu,bu(uu,[t,n*Math.cos(a),n*Math.sin(a)]).map(e=>e*e*e));return{r:o,g:s,b:c,alpha:i}},Nd=(e,t=1e-6)=>e.r>=-t&&e.r<=1+t&&e.g>=-t&&e.g<=1+t&&e.b>=-t&&e.b<=1+t,Pd=(e,t,n)=>{let r=0,i=.37,a=1e-5;if(Nd(Md({l:e,c:i,h:t,alpha:n}),a))return i;for(;i-r>a;){let o=(r+i)/2;Nd(Md({l:e,c:o,h:t,alpha:n}),a)?r=o:i=o}return r},Fd=e=>{let{l:t,h:n,alpha:r}=e,i=Md(e);return Nd(i)||(i=Md({l:t,c:Pd(t,n,r),h:n,alpha:r})),i=Tu(i),Cu(Au(i))},Id=e=>{let t=ku(e),[n,r,i]=bu(lu,bu(su,[t.r,t.g,t.b]).map(e=>Math.cbrt(e))),a=Math.sqrt(r*r+i*i),o;return a<1e-4?o=0:(o=180/Math.PI*Math.atan2(i,r),o<0&&(o+=360)),Ad({l:n,c:a,h:o,alpha:e.alpha})},Ld=({l:e,c:t,h:n,alpha:r=1})=>!hu(e)||!hu(t)||!hu(n)?null:Ad({l:Number(e),c:Number(t),h:Number(n),alpha:Number(r)}),Rd=e=>{let t=Ld(e);return t?Fd(t):null},zd=/^oklch\(\s*([+-]?[\d.]+)%?\s+([+-]?[\d.]+)\s+([+-]?[\d.]+)(deg|grad|rad|turn)?(?:\s*\/\s*([+-]?[\d.]+%?))?\s*\)$/i,Bd=e=>{let t=zd.exec(e);if(!t)return null;let[n,r,i,a,o,s]=t;return Ad({l:Su(r),c:Number.parseFloat(i),h:yu(a,o),alpha:xu(s)})},Vd=e=>{let t=Bd(e);return t?Fd(t):null},Hd=e=>{let{l:t,c:n,h:r,alpha:i}=jd(e),a=gu(t*100,1);return i<1?`oklch(${a}% ${n} ${r} / ${i})`:`oklch(${a}% ${n} ${r})`},Ud=e=>Hd(Id(e)),Wd=e=>{if(!e||e.format!==`oklch`)return null;let{input:t}=e;return typeof t==`string`?Bd(t):typeof t==`object`?Ld(t):null},Gd=e=>{let t=Wd(e);return t?Hd(t):null},Kd={string:[[Dd,`hex`],[Mu,`rgb`],[vd,`hsl`],[Vd,`oklch`]],object:[[Eu,`rgb`],[hd,`hsl`],[Ru,`hsv`],[Rd,`oklch`]]},qd=(e,t)=>{for(let n=0;ntypeof e==`string`?qd(e.trim(),Kd.string):typeof e==`object`&&e?qd(e,Kd.object):[null,void 0],Yd=e=>e instanceof Xd?e:new Xd(e),Xd=class{parsed;rgb;source;constructor(e){let[t,n]=Jd(e);this.parsed=t,this.rgb=this.parsed||{r:0,g:0,b:0,alpha:1},n&&this.parsed&&(this.source={format:n,input:e})}getSource(){return this.source}isValid(){return this.parsed!==null}brightness(){return gu(Cd(this.rgb),2)}isDark(){return Cd(this.rgb)<.5}isLight(){return Cd(this.rgb)>=.5}toHex(){return kd(this.rgb)}toRgb(){return wu(this.rgb)}toRgbString(){return Pu(this.rgb)}toHsl(){return ud(md(this.rgb))}toHslString(){return gd(this.rgb)}toHsv(){return Iu(zu(this.rgb))}toOklch(){return jd(Wd(this.getSource())||Id(this.rgb))}toOklchString(){return Gd(this.getSource())||Ud(this.rgb)}invert(){return Yd(bd(this.rgb))}saturate(e=.1){return Yd(Sd(this.rgb,e))}desaturate(e=.1){return Yd(Sd(this.rgb,-e))}grayscale(){return Yd(Sd(this.rgb,-1))}lighten(e=.1){return Yd(xd(this.rgb,e))}darken(e=.1){return Yd(xd(this.rgb,-e))}rotate(e=15){return this.hue(this.hue()+e)}alpha(e){return typeof e==`number`?Yd(yd(this.rgb,e)):gu(this.rgb.alpha,3)}hue(e){let t=md(this.rgb);return typeof e==`number`?Yd({h:e,s:t.s,l:t.l,alpha:t.alpha}):gu(t.h)}isEqual(e){return this.toHex()===Yd(e).toHex()}},Zd=[],Qd=e=>{e.forEach(e=>{Zd.includes(e)||(e(Xd,Kd),Zd.push(e))})};function $d(e,...t){return t.reduce((e,t)=>`${e}[${String(t)}]`,e)}function ef(e,t){return[{name:e,value:t}]}function tf(e,t){return t.flatMap((t,n)=>Bl(t)?Object.entries(t).map(([t,r])=>({name:$d(e,n,t),value:r})):{name:$d(e,n),value:t})}function nf(e,t){return Object.entries(t).map(([t,n])=>({name:$d(e,t),value:n}))}function rf(e,t){return e?zl(t)?ef(e,t):Vl(t)?tf(e,t):Bl(t)?nf(e,t):t==null?[]:[{name:e,value:String(t)}]:[]}var af=`data-soybean-collection-item`;function of(e){return e.filter(e=>e.tagName!==`A`)}function sf(){let e=document.activeElement;if(e===null)return null;for(;e!==null&&e.shadowRoot!==null&&e.shadowRoot.activeElement!==null;)e=e.shadowRoot.activeElement;return e}function cf(e,t){return[e.getAttribute(t),e.getAttribute(`data-${t}`)].some(e=>e===``||e===`true`)}function lf(e){return Array.from(e.querySelectorAll(`[${af}]`))}var uf={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`},df=[`Enter`,` `];function ff(e,{select:t=!1}={}){let n=sf();for(let r of e)if(yf(r,{select:t}),sf()!==n)return}function pf(e,t=!1){let n=sf();return e.some(e=>e===n?!0:(e.focus({preventScroll:t}),sf()!==n))}function mf(e){let t=hf(e);return[gf(t,e),gf(t.slice().reverse(),e)]}function hf(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){let t=e.tagName===`INPUT`&&e.type===`hidden`;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 gf(e,t){return e.find(e=>!_f(e,{upTo:t}))}function _f(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;let n=e;for(;n;){if(t!==void 0&&n===t)return!1;if(getComputedStyle(n).display===`none`)return!0;n=n.parentElement}return!1}function vf(e){return e instanceof HTMLInputElement&&`select`in e}function yf(e,{select:t=!1}={}){if(!e||!e.focus)return;let n=sf();e.focus({preventScroll:!0}),t&&e!==n&&vf(e)&&e.select()}function bf(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function xf(e,t,n){let r=bf(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return uf[r]}var Sf={KEYED_FRAGMENT:128,BAIL:-2};function Cf(e){let t=[],n=0;for(let r=0;r1)for(let e=0;e(t[n]=G(()=>typeof e[n]==`function`?e[n]():e[n]),t),{})}function Ef(e){return e?`classList`in e&&e.classList.contains(`form`):!0}var Df=typeof window<`u`&&typeof document<`u`,Of=null;function kf(){return!Df||!window?.navigator?.userAgent?!1:/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window.navigator.maxTouchPoints>2&&/iPad|Macintosh/.test(window.navigator.userAgent)}function Af(){return Of===null&&(Of=kf()),Of}function jf(e,t,n){let r=n.originalEvent.target;if(!r)return;let i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Mf(e,t){if(!t)return!1;let{clientX:n,clientY:r}=e;return Nf({x:n,y:r},t)}function Nf(e,t){let{x:n,y:r}=e;if(t.length<3)return!1;let{x:i,y:a}=t[0],{x:o,y:s}=t[0];for(let e=1;eo||rs)return!1;let c=0;for(let e=0;er!=u>r&&n0&&t===Yf()&&!Xf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=tp(e,t);return Qf(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var ep=new Map;function tp(e,t){let n=ep.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),ep.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var np=864e5;function rp(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>ip(e,t,n))}function ip(e,t,n){let r=tp(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function ap(e,t,n=`compatible`){let r=cp(e);if(t===`UTC`)return Zf(r);if(t===Yf()&&n===`compatible`&&!Xf()){r=lp(r,new Hf);let e=new Date,t=zf(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=Zf(r),a=$f(i-np,t),o=$f(i+np,t),s=rp(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function op(e,t,n=`compatible`){return new Date(ap(e,t,n))}function sp(e,t){let n=$f(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new Up(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function cp(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Hp(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function lp(e,t){if(Uf(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,yp(r),r}function up(e,t,n){return e instanceof Up?e.timeZone===t?e:fp(e,t):sp(ap(e,t,n),t)}function dp(e){let t=Zf(e)-e.offset;return new Date(t)}function fp(e,t){return lp(sp(Zf(e)-e.offset,t),e.calendar)}var pp=36e5;function mp(e,t){let n=e.copy(),r=`hour`in n?Dp(n,t):0;hp(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,gp(n),vp(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,_p(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let e=n.calendar.isInverseEra?.(n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function hp(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function gp(e){for(;e.month<1;)hp(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,hp(e,1)}function _p(e){for(;e.day<1;)e.month--,gp(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,gp(e)}function vp(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function yp(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),vp(e)}function bp(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function xp(e,t){return mp(e,bp(t))}function Sp(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),yp(n),n}function Cp(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Tp(n),n}function wp(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ep(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ep(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ep(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ep(e.hour,24),t}function Tp(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ep(e,t){let n=e%t;return n<0&&(n+=t),n}function Dp(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,wp(e)}function Op(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=Ap(a,n,0,t.length-1,r?.round),i.era=t[a],yp(i);break}case`year`:i.calendar.isInverseEra?.(i)&&(n=-n),i.year=Ap(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=Ap(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=Ap(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),yp(i),i}function kp(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=Ap(t,n,a,o,r?.round);break}case`minute`:i.minute=Ap(e.minute,n,0,59,r?.round);break;case`second`:i.second=Ap(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=Ap(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function Ap(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,er&&(e=n+(e-r-1));return e}function jp(e,t){let n;return n=t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0?ap(mp(cp(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):Zf(e)-e.offset,n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5,lp(sp(n,e.timeZone),e.calendar)}function Mp(e,t){return jp(e,bp(t))}function Np(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=cp(e),o=lp(Cp(a,{hour:t}),new Hf),s=[ap(o,e.timeZone,`earlier`),ap(o,e.timeZone,`later`)].filter(t=>sp(t,e.timeZone).day===o.day)[0],c=lp(Cp(a,{hour:i}),new Hf),l=[ap(c,e.timeZone,`earlier`),ap(c,e.timeZone,`later`)].filter(t=>sp(t,e.timeZone).day===c.day).pop(),u=Zf(e)-e.offset,d=Math.floor(u/pp),f=u%pp;return u=Ap(d,n,Math.floor(s/pp),Math.floor(l/pp),r?.round)*pp+f,lp(sp(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return kp(e,t,n,r);case`era`:case`year`:case`month`:case`day`:return lp(sp(ap(Op(cp(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error(`Unsupported field `+t)}}function Pp(e,t,n){let r=cp(e),i=Cp(Sp(r,t),t);return i.compare(r)===0?e:lp(sp(ap(i,e.timeZone,n),e.timeZone),e.calendar)}function Fp(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function Ip(e){let t=lp(e,new Hf),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function Lp(e){return`${Ip(e)}T${Fp(e)}`}function Rp(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`;return i!==0&&(a+=`:${String(i).padStart(2,`0`)}`),a}function zp(e){return`${Lp(e)}${Rp(e.offset)}[${e.timeZone}]`}function Bp(e){let t=typeof e[0]==`object`?e.shift():new Hf,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Vp=class e{constructor(...e){let[t,n,r,i,a]=Bp(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,yp(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return mp(this,e)}subtract(e){return xp(this,e)}set(e){return Sp(this,e)}cycle(e,t,n){return Op(this,e,t,n)}toDate(e){return op(this,e)}toString(){return Ip(this)}compare(e){return Wf(this,e)}},Hp=class e{constructor(...e){let[t,n,r,i,a]=Bp(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,yp(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return mp(this,e)}subtract(e){return xp(this,e)}set(e){return Sp(Cp(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return Op(this,e,t,n);default:return kp(this,e,t,n)}}toDate(e,t){return op(this,e,t)}toString(){return Lp(this)}compare(e){let t=Wf(this,e);return t===0?Gf(this,cp(e)):t}},Up=class e{constructor(...e){let[t,n,r,i,a]=Bp(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,yp(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return jp(this,e)}subtract(e){return Mp(this,e)}set(e,t){return Pp(this,e,t)}cycle(e,t,n){return Np(this,e,t,n)}toDate(){return dp(this)}toString(){return zp(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-up(e,this.timeZone).toDate().getTime()}};function Wp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ff(3*(r+1),7)<3&&(r+=1),r}var Gp=null;function Kp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function qp(e,t,n=`.`,r){if(!Kp(t))return qp(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Kp(a)&&Kp(i[t])?i[t]=qp(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Jp(e){return(...t)=>t.reduce((t,n)=>qp(t,n,``,e),{})}var Yp=Jp(),Xp=[`day`,`month`,`year`],Zp=[`hour`,`minute`,`second`,`dayPeriod`],Qp=[`literal`,`timeZoneName`];[...Xp,...Zp,...Qp].filter(e=>e!==`literal`);var $p={name:`English`,key:`en`,dir:`ltr`,messages:{pagination:{firstPage:`First page`,prevPage:`Previous page`,nextPage:`Next page`,lastPage:`Last page`},table:{emptyTitle:`No data`,emptyDescription:`There is no data to display.`,selectAllRows:`Select all rows`,sortByColumn:`Sort by {column}`,sortByColumnAsc:`Sort by {column}, currently ascending`,sortByColumnDesc:`Sort by {column}, currently descending`,resizeColumn:`Resize {column} column`,expandRow:`Expand row {row}`,collapseRow:`Collapse row {row}`,selectRow:`Select row {row}`},calendar:{prevPage:`Previous page`,nextPage:`Next page`,selectMonth:`Select month`,selectYear:`Select year`},layout:{toggleSidebar:`Toggle Sidebar`},inputNumber:{increment:`Increase`,decrement:`Decrease`,clear:`Clear value`},textarea:{clear:`Clear textarea`},tagsInput:{addTag:`Add tag`,clear:`Clear tags`},progress:{loading:`Loading`},anchor:{nav:`Anchor`},breadcrumb:{nav:`breadcrumb`},stepper:{step:`Step {step}`},editable:{cancel:`Cancel`,edit:`Edit`,submit:`Submit`},combobox:{clearInput:`Clear input`,noResults:`No results found.`,search:`Search`,options:`Options`},autocomplete:{toggleSuggestions:`Toggle suggestions`,clearInput:`Clear input`,noResults:`No results found.`},command:{noResults:`No results found.`},dialog:{cancel:`Cancel`,confirm:`Confirm`},slider:{valueN:`Value {index} of {total}`,minimum:`Minimum`,maximum:`Maximum`},password:{clearInput:`Clear input`,showPassword:`Show password`,hidePassword:`Hide password`},date:{daySegment:`day,`,monthSegment:`month, `,yearSegment:`year, `,hourSegment:`hour, `,minuteSegment:`minute, `,secondSegment:`second, `,dayPeriodSegment:`AM/PM, `,timeZoneSegment:`time zone, `,empty:`Empty`,placeholder:{year:`yyyy`,month:`mm`,day:`dd`,time:`––`}}}},em={name:`简体中文`,key:`zh-CN`,dir:`ltr`,messages:{pagination:{firstPage:`第一页`,prevPage:`上一页`,nextPage:`下一页`,lastPage:`最后一页`},table:{emptyTitle:`暂无数据`,emptyDescription:`当前没有可显示的数据。`,selectAllRows:`全选`,sortByColumn:`按{column}排序`,sortByColumnAsc:`按{column}排序,当前升序`,sortByColumnDesc:`按{column}排序,当前降序`,resizeColumn:`调整{column}列宽`,expandRow:`展开行 {row}`,collapseRow:`收起行 {row}`,selectRow:`选择行 {row}`},calendar:{prevPage:`上一页`,nextPage:`下一页`,selectMonth:`选择月份`,selectYear:`选择年份`},layout:{toggleSidebar:`切换侧边栏`},inputNumber:{increment:`增加`,decrement:`减少`,clear:`清除数值`},textarea:{clear:`清除文本域`},tagsInput:{addTag:`添加标签`,clear:`清除标签`},progress:{loading:`加载中`},anchor:{nav:`锚点导航`},breadcrumb:{nav:`面包屑`},stepper:{step:`第 {step} 步`},editable:{cancel:`取消`,edit:`编辑`,submit:`提交`},combobox:{clearInput:`清除输入`,noResults:`无匹配结果。`,search:`搜索`,options:`选项`},autocomplete:{toggleSuggestions:`切换建议列表`,clearInput:`清除输入`,noResults:`无匹配结果。`},command:{noResults:`无匹配结果。`},dialog:{cancel:`取消`,confirm:`确认`},slider:{valueN:`第 {index} 个值,共 {total} 个`,minimum:`最小值`,maximum:`最大值`},password:{clearInput:`清除输入`,showPassword:`显示密码`,hidePassword:`隐藏密码`},date:{daySegment:`日,`,monthSegment:`月, `,yearSegment:`年, `,hourSegment:`时, `,minuteSegment:`分, `,secondSegment:`秒, `,dayPeriodSegment:`上午/下午, `,timeZoneSegment:`时区, `,empty:`空`,placeholder:{year:`年`,month:`月`,day:`日`,time:`––`}}}},tm={[$p.key]:$p,[em.key]:em};function nm(e){return e?tm[e]??$p:$p}function rm(e){return nm(e).messages}function im(e){return e?tm[e]?.dir??`ltr`:`ltr`}var[am,om]=X(`ConfigProvider`);function sm(e){let t=om();return G(()=>en(e)||t?.dir?.value||`ltr`)}function cm(e){let t=om();return G(()=>en(e)||t?.locale?.value||`en`)}function lm(){let e=om();return G(()=>{let t=rm(e?.locale?.value??`en`),n=e?.messages?.value;return n?Yp(n,t):t})}function um(e){let t=P();function n(n){let r=wf(n);r&&(t.value=r,e?.(r))}return[t,n]}function Z(e,t=e=>e){let[n,r]=X(e,t);return[n,e=>{let t=r();return G(e?()=>t?.value?.[e]:()=>t?.value??{})}]}var dm={ArrowRight:`right`,ArrowLeft:`left`,ArrowUp:`up`,ArrowDown:`down`,Home:`home`,End:`end`};function fm(e,t,n){let{goForward:r,loop:i=!0}=n,a=e.length;if(a===0)return null;let o=e.indexOf(t);if(o===-1)return(r?e[0]:e[a-1])||null;let s=0,c=o;for(;s=a))return null;c<0?c=a-1:c>=a&&(c=0);let t=e[c];if(t){let e=t.getAttribute(`disabled`);if(!(e!==null&&e!==`false`))return t}s++}return null}var pm=`data-scroll-lock`,mm=`scroll-lock-styles`,hm={BODY:`scroll-lock-body`,BODY_WITH_SCROLLBAR:`scroll-lock-body-with-scrollbar`,HTML:`scroll-lock-html`},gm=` + .${hm.BODY} { + position: fixed !important; + overflow-x: hidden !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + height: auto !important; + } + + .${hm.BODY_WITH_SCROLLBAR} { + overflow-y: scroll !important; + } + + .${hm.HTML} { + scroll-behavior: auto !important; + } +`;function _m(){if(!Df)return()=>{};let e=document.body;if(e.hasAttribute(pm))return()=>{};Tm();let t=window.scrollY;vm(e,t,bm());let n=Af()?xm():void 0;return()=>ym(e,t,n)}function vm(e,t,n){e.style.top=`-${t}px`,e.classList.add(hm.BODY),n&&e.classList.add(hm.BODY_WITH_SCROLLBAR),document.documentElement.classList.add(hm.HTML),e.setAttribute(pm,`true`)}function ym(e,t,n){e.classList.remove(hm.BODY,hm.BODY_WITH_SCROLLBAR),document.documentElement.classList.remove(hm.HTML),e.style.top=``,e.removeAttribute(pm),window.scrollTo(0,t),n?.()}function bm(){return document.body.scrollHeight>window.innerHeight}function xm(){let e=e=>{Sm(e)&&e.preventDefault()};return document.addEventListener(`touchmove`,e,{passive:!1}),()=>{document.removeEventListener(`touchmove`,e)}}function Sm(e){if(e.touches.length>1)return!1;let t=e.target;return!Cm(t)}function Cm(e){let t=e;for(;t&&t.tagName!==`BODY`;){if(wm(window.getComputedStyle(t),t))return!0;t=t.parentElement}return!1}function wm(e,t){let n=e.overflowX===`scroll`||e.overflowY===`scroll`,r=e.overflowX===`auto`&&t.clientWidthObject.keys(e),Dm=e=>e==null,Om=e=>e.filter(e=>!Dm(e)),km=e=>e.replace(/(^\w|[-_]\w)/g,e=>e.replace(/[-_]/,``).toUpperCase());function Am(e){let[t,n]=X(km(`${e}Collection`),()=>{let e=P(),t=t=>{e.value=t},n=Zt(new Map),r=(t=!0)=>{if(!e.value)return[];let r=lf(e.value),i=[];for(let e of r){let r=n.value.get(e);r&&(!t||!cf(e,`disabled`))&&i.push(r)}return i};return Fr(()=>{n.value.clear()}),{containerElement:e,onContainerElementChange:t,itemRegistry:n,getOrderedItems:r,getOrderedElements:(e=!0)=>r(e).map(e=>e.element)}});return{provideCollectionContext:t,useCollectionContext:n,useCollectionItem:(t={})=>{let{itemRegistry:r}=n(km(`${e}Item`)),i=P(),a=e=>{i.value&&i.value!==e&&r.value.delete(i.value),i.value=e};return Wn(()=>{i.value&&r.value.set(i.value,{element:i.value,data:en(t)}),dn(()=>{i.value&&=(r.value.delete(i.value),void 0)})}),{itemElement:i,onItemElementChange:a,setItemElement:e=>{let t=wf(e);t&&a(t)}}}}}function jm(e,t,n,r){let i=e();if(i!==void 0)return G({get:()=>e(),set:e=>{t?.(e)}});let a=P(i??n),o=!1;return Gn(e,e=>{o||e===void 0&&!r||(o=!0,a.value=e,Tn(()=>{o=!1}))}),Gn(a,e=>{!o&&(e!==void 0||r)&&t?.(e)}),a}var Mm=[],Nm;function Pm(e,t){Wn(()=>{let n=en(e);if(!n)return;let r=Mm.length===0,i=Nm!==n;(r||i)&&(i&&Nm&&Nm.removeEventListener(`keydown`,Fm),Nm=n,n.addEventListener(`keydown`,Fm)),Mm.includes(t)||Mm.push(t),dn(()=>{Mm=Mm.filter(e=>e!==t),Mm.length===0&&(Nm?.removeEventListener(`keydown`,Fm),Nm=void 0)})})}function Fm(e){let t=e;if(t.key===`Escape`)for(let e of Mm.slice())e(t)}var Im=`data-dismissable-layer`,Lm={layers:Rt(new Set),layersWithOutsidePointerEventsDisabled:Rt(new Set),branches:Rt(new Set)},Rm;function zm(e,t={}){let{disableOutsidePointerEvents:n,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s}=t,c=()=>e.value?.ownerDocument??globalThis?.document,l=G(()=>e.value?Array.from(Lm.layers).indexOf(e.value):-1),u=G(()=>Lm.layersWithOutsidePointerEventsDisabled.size>0),d=G(()=>{let e=Array.from(Lm.layers),[t]=[...Lm.layersWithOutsidePointerEventsDisabled].slice(-1),n=t?e.indexOf(t):-1;return l.value>=n}),f=G(()=>{if(u.value)return d.value?`auto`:`none`});return Bm(e,e=>{if(!d.value)return;let t=e.target;[...Lm.branches].some(e=>e.contains(t))||(i?.(e),o?.(e),e.defaultPrevented||s?.())}),Vm(e,e=>{let t=e.target;[...Lm.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())}),Pm(c,e=>{l.value===Lm.layers.size-1&&(r?.(e),e.defaultPrevented||(e.preventDefault(),s?.()))}),Gn(e,e=>{if(!e)return;let t=c(),r=en(n);r&&(Lm.layersWithOutsidePointerEventsDisabled.size===0&&(Rm=t.body.style.pointerEvents,t.body.style.pointerEvents=`none`),Lm.layersWithOutsidePointerEventsDisabled.add(e)),Lm.layers.add(e),dn(()=>{r&&Lm.layersWithOutsidePointerEventsDisabled.size===1&&(Rm?t.body.style.pointerEvents=Rm:t.body.style.removeProperty(`pointer-events`)),Lm.layers.delete(e),Lm.layersWithOutsidePointerEventsDisabled.delete(e)})}),{pointerEvents:f}}function Bm(e,t,n=!0){let r=!1,i=()=>{};return Un(()=>{if(!Df||!en(n)||!e.value)return;let a=e.value.ownerDocument;async function o(n){if(!e.value)return;let o=n.target;if(r=Hm(e.value,o),o&&!r){let e={originalEvent:n};function r(){jf(`dismissableLayer.pointerDownOutside`,t,e)}n.pointerType===`touch`?(a.removeEventListener(`click`,i),i=r,a.addEventListener(`click`,i,{once:!0})):r()}else a.removeEventListener(`click`,i);r=!1}let s=window.setTimeout(()=>{a.addEventListener(`pointerdown`,o)},0);dn(()=>{window.clearTimeout(s),a.removeEventListener(`pointerdown`,o),a.removeEventListener(`click`,i)})}),{onPointerdownCapture:()=>{en(n)&&(r=!0)}}}function Vm(e,t,n=!0){let r=!1,i=n=>{if(!e.value||r)return;let i=n.target;i instanceof HTMLElement&&(r=Hm(e.value,i),r||jf(`dismissableLayer.focusOutside`,t,{originalEvent:n}))};return Un(()=>{if(!Df||!en(n)||!e.value)return;let t=e.value.ownerDocument;t.addEventListener(`focusin`,i),dn(()=>{t.removeEventListener(`focusin`,i)})}),{onFocusCapture:()=>{en(n)&&(r=!0)},onBlurCapture:()=>{en(n)&&(r=!1)}}}function Hm(e,t){if(!e)return!1;if(e.contains(t))return!0;let n=Um(e),r=t.closest(`[${Im}]`);if(!n||!r)return!1;if(n===r)return!0;let i=Array.from(n.ownerDocument.querySelectorAll(`[${Im}]`));return i.indexOf(n)({x:e,y:e}),Xm={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Zm(e,t,n){return Km(e,Gm(t,n))}function Qm(e,t){return typeof e==`function`?e(t):e}function $m(e){return e.split(`-`)[0]}function eh(e){return e.split(`-`)[1]}function th(e){return e===`x`?`y`:`x`}function nh(e){return e===`y`?`height`:`width`}function rh(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ih(e){return th(rh(e))}function ah(e,t,n){n===void 0&&(n=!1);let r=eh(e),i=ih(e),a=nh(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=mh(o)),[o,mh(o)]}function oh(e){let t=mh(e);return[sh(e),t,sh(t)]}function sh(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ch=[`left`,`right`],lh=[`right`,`left`],uh=[`top`,`bottom`],dh=[`bottom`,`top`];function fh(e,t,n){switch(e){case`top`:case`bottom`:return n?t?lh:ch:t?ch:lh;case`left`:case`right`:return t?uh:dh;default:return[]}}function ph(e,t,n,r){let i=eh(e),a=fh($m(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(sh)))),a}function mh(e){let t=$m(e);return Xm[t]+e.slice(t.length)}function hh(e){return{top:0,right:0,bottom:0,left:0,...e}}function gh(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hh(e)}function _h(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vh(e,t,n){let{reference:r,floating:i}=e,a=rh(t),o=ih(t),s=nh(o),c=$m(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.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-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(eh(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function yh(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Qm(t,e),p=gh(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_h(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_h(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var bh=50,xh=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:yh},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vh(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Qm(e,t)||{};if(l==null)return{};let d=gh(u),f={x:n,y:r},p=ih(i),m=nh(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Gm(d[_],T),ee=Gm(d[v],T),D=E,te=C-h[m]-ee,O=C/2-h[m]/2+w,ne=Zm(D,O,te),re=!c.arrow&&eh(i)!=null&&O!==ne&&a.reference[m]/2-(Oe<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==rh(t))||T.every(e=>rh(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=rh(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function wh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Th(e){return Wm.some(t=>e[t]>=0)}var Eh=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Qm(e,t);switch(i){case`referenceHidden`:{let e=wh(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Th(e)}}}case`escaped`:{let e=wh(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Th(e)}}}default:return{}}}}},Dh=new Set([`left`,`top`]);async function Oh(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$m(n),s=eh(n),c=rh(n)===`y`,l=Dh.has(o)?-1:1,u=a&&c?-1:1,d=Qm(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var kh=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Oh(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ah=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Qm(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=rh($m(i)),p=th(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Zm(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Zm(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},jh=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Qm(e,t),u={x:n,y:r},d=rh(i),f=th(d),p=u[f],m=u[d],h=Qm(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Dh.has($m(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Mh=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Qm(e,t),u=await o.detectOverflow(t,l),d=$m(i),f=eh(i),p=rh(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Gm(h-u[g],v),x=Gm(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Km(u.left,0),t=Km(u.right,0),n=Km(u.top,0),r=Km(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Km(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Km(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Nh(){return typeof window<`u`}function Ph(e){return Lh(e)?(e.nodeName||``).toLowerCase():`#document`}function Fh(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ih(e){return((Lh(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Lh(e){return Nh()?e instanceof Node||e instanceof Fh(e).Node:!1}function Rh(e){return Nh()?e instanceof Element||e instanceof Fh(e).Element:!1}function zh(e){return Nh()?e instanceof HTMLElement||e instanceof Fh(e).HTMLElement:!1}function Bh(e){return!Nh()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Fh(e).ShadowRoot}function Vh(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Qh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Hh(e){return/^(table|td|th)$/.test(Ph(e))}function Uh(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Wh=/transform|translate|scale|rotate|perspective|filter/,Gh=/paint|layout|strict|content/,Kh=e=>!!e&&e!==`none`,qh;function Jh(e){let t=Rh(e)?Qh(e):e;return Kh(t.transform)||Kh(t.translate)||Kh(t.scale)||Kh(t.rotate)||Kh(t.perspective)||!Xh()&&(Kh(t.backdropFilter)||Kh(t.filter))||Wh.test(t.willChange||``)||Gh.test(t.contain||``)}function Yh(e){let t=eg(e);for(;zh(t)&&!Zh(t);){if(Jh(t))return t;if(Uh(t))return null;t=eg(t)}return null}function Xh(){return qh??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),qh}function Zh(e){return/^(html|body|#document)$/.test(Ph(e))}function Qh(e){return Fh(e).getComputedStyle(e)}function $h(e){return Rh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eg(e){if(Ph(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Bh(e)&&e.host||Ih(e);return Bh(t)?t.host:t}function tg(e){let t=eg(e);return Zh(t)?e.ownerDocument?e.ownerDocument.body:e.body:zh(t)&&Vh(t)?t:tg(t)}function ng(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=tg(e),i=r===e.ownerDocument?.body,a=Fh(r);if(i){let e=rg(a);return t.concat(a,a.visualViewport||[],Vh(r)?r:[],e&&n?ng(e):[])}else return t.concat(r,ng(r,[],n))}function rg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ig(e){let t=Qh(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=zh(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=qm(n)!==a||qm(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ag(e){return Rh(e)?e:e.contextElement}function og(e){let t=ag(e);if(!zh(t))return Ym(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ig(t),o=(a?qm(n.width):n.width)/r,s=(a?qm(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var sg=Ym(0);function cg(e){let t=Fh(e);return!Xh()||!t.visualViewport?sg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lg(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fh(e)?!1:t}function ug(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ag(e),o=Ym(1);t&&(r?Rh(r)&&(o=og(r)):o=og(e));let s=lg(a,n,r)?cg(a):Ym(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Fh(a),t=r&&Rh(r)?Fh(r):r,n=e,i=rg(n);for(;i&&r&&t!==n;){let e=og(i),t=i.getBoundingClientRect(),r=Qh(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Fh(i),i=rg(n)}}return _h({width:u,height:d,x:c,y:l})}function dg(e,t){let n=$h(e).scrollLeft;return t?t.left+n:ug(Ih(e)).left+n}function fg(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-dg(e,n),y:n.top+t.scrollTop}}function pg(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ih(r),s=t?Uh(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ym(1),u=Ym(0),d=zh(r);if((d||!d&&!a)&&((Ph(r)!==`body`||Vh(o))&&(c=$h(r)),d)){let e=ug(r);l=og(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?fg(o,c):Ym(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function mg(e){return Array.from(e.getClientRects())}function hg(e){let t=Ih(e),n=$h(e),r=e.ownerDocument.body,i=Km(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Km(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+dg(e),s=-n.scrollTop;return Qh(r).direction===`rtl`&&(o+=Km(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var gg=25;function _g(e,t){let n=Fh(e),r=Ih(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Xh();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=dg(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=gg&&(a-=o)}else l<=gg&&(a+=l);return{width:a,height:o,x:s,y:c}}function vg(e,t){let n=ug(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=zh(e)?og(e):Ym(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function yg(e,t,n){let r;if(t===`viewport`)r=_g(e,n);else if(t===`document`)r=hg(Ih(e));else if(Rh(t))r=vg(t,n);else{let n=cg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _h(r)}function bg(e,t){let n=eg(e);return n===t||!Rh(n)||Zh(n)?!1:Qh(n).position===`fixed`||bg(n,t)}function xg(e,t){let n=t.get(e);if(n)return n;let r=ng(e,[],!1).filter(e=>Rh(e)&&Ph(e)!==`body`),i=null,a=Qh(e).position===`fixed`,o=a?eg(e):e;for(;Rh(o)&&!Zh(o);){let t=Qh(o),n=Jh(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Vh(o)&&!n&&bg(e,o))?r=r.filter(e=>e!==o):i=t,o=eg(o)}return t.set(e,r),r}function Sg(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Uh(t)?[]:xg(t,this._c):[].concat(n),r],o=yg(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!jg(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}var Ng=kh,Pg=Ah,Fg=Ch,Ig=Mh,Lg=Eh,Rg=Sh,zg=jh,Bg=(e,t,n)=>{let r=new Map,i={platform:Ag,...n},a={...i.platform,_c:r};return xh(e,t,{...i,platform:a})};function Vg(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hg(e,t){let n=Vg(e);return Math.round(t*n)/n}var Ug=0,Wg=`data-soybean-focus-guard`;function Gg(){Wn(()=>{if(!Df)return;let e=document.querySelectorAll(`[${Wg}]`);if(Ug===0||e.length===0){let t=e[0]??Kg(),n=e[1]??Kg();t.parentNode||document.body.insertAdjacentElement(`afterbegin`,t),n.parentNode||document.body.insertAdjacentElement(`beforeend`,n)}Ug++,dn(()=>{Ug--,Ug===0&&document.querySelectorAll(`[${Wg}]`).forEach(e=>e.remove())})})}function Kg(){let e=document.createElement(`span`);return e.setAttribute(Wg,``),e.tabIndex=0,Object.assign(e.style,{outline:`none`,opacity:`0`,position:`fixed`,pointerEvents:`none`}),e}var qg=`focusScope.autoFocusOnOpen`,Jg=`focusScope.autoFocusOnClose`,Yg={bubbles:!1,cancelable:!0},Xg=Qg();function Zg(e,t){let{loop:n,trapped:r,onOpenAutoFocus:i,onCloseAutoFocus:a}=t||{},o,s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}};if(Df){function t(t){if(s.paused||!e.value)return;let n=t.target;e.value.contains(n)?o=n:yf(o,{select:!0})}function n(t){if(s.paused||!e.value)return;let n=t.relatedTarget;n!==null&&(e.value.contains(n)||yf(o,{select:!0}))}function c(){e.value?.contains(o)||yf(e.value)}Un(()=>{if(!en(r))return;document.addEventListener(`focusin`,t),document.addEventListener(`focusout`,n);let i=new MutationObserver(c);e.value&&i.observe(e.value,{childList:!0,subtree:!0}),dn(()=>{document.removeEventListener(`focusin`,t),document.removeEventListener(`focusout`,n),i.disconnect()})}),Gn(e,async(e,t,n)=>{if(await Tn(),!e)return;Xg.add(s);let r=sf(),o=e.contains(r);if(i&&e.addEventListener(qg,i),a&&e.addEventListener(Jg,a),!o){let t=new CustomEvent(qg,Yg);e.dispatchEvent(t),t.defaultPrevented||(ff(of(hf(e)),{select:!0}),sf()===r&&yf(e))}n(()=>{i&&e.removeEventListener(qg,i);let t=new CustomEvent(Jg,Yg);e.dispatchEvent(t),window.setTimeout(()=>{t.defaultPrevented||yf(r??document.body,{select:!0}),a&&e.removeEventListener(Jg,a),Xg.remove(s)},0)})})}function c(e){let t=en(n),i=en(r);if(!t&&!i||s.paused)return;let a=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=sf();if(!a||!o)return;let c=e.currentTarget,[l,u]=mf(c);l&&u?!e.shiftKey&&o===u?(e.preventDefault(),t&&yf(l,{select:!0})):e.shiftKey&&o===l&&(e.preventDefault(),t&&yf(u,{select:!0})):o===c&&e.preventDefault()}return{onKeydown:c}}function Qg(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=ql(e,t),e.unshift(t)},remove(t){e=ql(e,t),e[0]?.resume()}}}function $g(e){let t=Ba()?.type?.emits||[],n={};return t.forEach(t=>{n[t]=(...n)=>{e(t,...n)}}),n}function e_(e){return Array.isArray?Array.isArray(e):u_(e)===`[object Array]`}function t_(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function n_(e){return e==null?``:t_(e)}function r_(e){return typeof e==`string`}function i_(e){return typeof e==`number`}function a_(e){return e===!0||e===!1||s_(e)&&u_(e)==`[object Boolean]`}function o_(e){return typeof e==`object`}function s_(e){return o_(e)&&e!==null}function c_(e){return e!=null}function l_(e){return!e.trim().length}function u_(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var d_=`Incorrect 'index' type`,f_=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,p_=e=>`Invalid value for key ${e}`,m_=e=>`Pattern length exceeds max of ${e}.`,h_=e=>`Missing ${e} property in key`,g_=e=>`Property 'weight' in key '${e}' must be a positive integer`,__=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,v_=Object.prototype.hasOwnProperty,y_=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=b_(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function b_(e){let t=null,n=null,r=null,i=1,a=null;if(r_(e)||e_(e))r=e,t=x_(e),n=S_(e);else{if(!v_.call(e,`name`))throw Error(h_(`name`));let o=e.name;if(r=o,v_.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(g_(S_(o)));t=x_(o),n=S_(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function x_(e){return e_(e)?e:e.split(`.`)}function S_(e){return e_(e)?e.join(`.`):e}function C_(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(c_(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!c_(s))return;if(a===t.length-1&&(r_(s)||i_(s)||a_(s)||typeof s==`bigint`))n.push(o===void 0?n_(s):{v:n_(s),i:o});else if(e_(s)){r=!0;for(let e=0,n=s.length;ee.score===t.score?e.idx{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(r_(this.docs[0]))for(let n=0;ne&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t>>1;n[i]t),records:this.records}}};function A_(e,t,{getFn:n=Q.getFn,fieldNormWeight:r=Q.fieldNormWeight}={}){let i=new k_({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(b_)),i.setSources(t),i.create(),i}function j_(e,{getFn:t=Q.getFn,fieldNormWeight:n=Q.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new k_({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function M_(e=[],t=Q.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function N_(e,t,n,{location:r=Q.location,distance:i=Q.distance,threshold:a=Q.threshold,findAllMatches:o=Q.findAllMatches,minMatchCharLength:s=Q.minMatchCharLength,includeMatches:c=Q.includeMatches,ignoreLocation:l=Q.ignoreLocation}={}){if(t.length>32)throw Error(m_(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=M_(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function P_(e){let t={};for(let n=0,r=e.length;ne[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;ne.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(L_,e=>I_[e]):e=>e,z_=class{constructor(e,{location:t=Q.location,threshold:n=Q.threshold,distance:r=Q.distance,includeMatches:i=Q.includeMatches,findAllMatches:a=Q.findAllMatches,minMatchCharLength:o=Q.minMatchCharLength,isCaseSensitive:s=Q.isCaseSensitive,ignoreDiacritics:c=Q.ignoreDiacritics,ignoreLocation:l=Q.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?R_(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:P_(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e{let{isMatch:m,score:h,indices:g}=N_(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=F_(u)),p}},B_=new Set([`fuzzy`,`include`]);function V_(e){return e.startsWith(`inverse`)}var H_=[{type:`exact`,multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:`exact`,search(t){let n=t===e;return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`include`,multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:`include`,search(t){let n=0,r,i=[],a=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+a,i.push([r,n-1]);let o=!!i.length;return{isMatch:o,score:+!o,indices:i}}})},{type:`prefix-exact`,multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:`prefix-exact`,search(t){let n=t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,e.length-1]}}})},{type:`inverse-prefix-exact`,multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:`inverse-prefix-exact`,search(t){let n=!t.startsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`inverse-suffix-exact`,multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:`inverse-suffix-exact`,search(t){let n=!t.endsWith(e);return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`suffix-exact`,multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:`suffix-exact`,search(t){let n=t.endsWith(e);return{isMatch:n,score:+!n,indices:[t.length-e.length,t.length-1]}}})},{type:`inverse-exact`,multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:`inverse-exact`,search(t){let n=t.indexOf(e)===-1;return{isMatch:n,score:+!n,indices:[0,t.length-1]}}})},{type:`fuzzy`,multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let n=new z_(e,{location:t.location??Q.location,threshold:t.threshold??Q.threshold,distance:t.distance??Q.distance,includeMatches:t.includeMatches??Q.includeMatches,findAllMatches:t.findAllMatches??Q.findAllMatches,minMatchCharLength:t.minMatchCharLength??Q.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Q.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Q.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Q.ignoreLocation});return{type:`fuzzy`,search(e){return n.searchIn(e)}}}}],U_=H_.length,W_=`\0`,G_=`|`;function K_(e){let t=[],n=e.length,r=0;for(;r=n)break;let i=r;for(;i=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i{let n=K_(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e!!(e[$_.AND]||e[$_.OR]),nv=e=>!!e[ev.PATH],rv=e=>!e_(e)&&o_(e)&&!tv(e),iv=e=>({[$_.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function av(e,t,{auto:n=!0}={}){let r=e=>{if(r_(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Q_(e,t)),r}let i=Object.keys(e),a=nv(e);if(!a&&i.length>1&&!tv(e))return r(iv(e));if(rv(e)){let r=a?e[ev.PATH]:i[0],o=a?e[ev.PATTERN]:e[r];if(!r_(o))throw Error(p_(r));let s={keyId:S_(r),pattern:o};return n&&(s.searcher=Q_(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];e_(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return tv(e)||(e=iv(e)),r(e)}function ov(e,{ignoreFieldNorm:t=Q.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function sv(e,{ignoreFieldNorm:t=Q.ignoreFieldNorm}){e.forEach(e=>{e.score=ov(e.matches,{ignoreFieldNorm:t})})}var cv=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(it[r].score&&(r=i),at[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function lv(e){let t=[];return e.matches.forEach(e=>{if(!c_(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function uv(e,t,{includeMatches:n=Q.includeMatches,includeScore:r=Q.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=lv(e)),r&&(a.score=e.score),a})}var dv=/[\p{L}\p{M}\p{N}_]+/gu,fv=new WeakSet;function pv(e){fv.has(e)||(fv.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function mv(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||pv(e),t=>t.match(e)||[]):e=>e.match(dv)||[]}function hv({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=mv(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=R_(n)),r(n)}}}var gv=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=hv({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new z_(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}this.combineAll=t.tokenMatch===`all`,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0,a=0,o=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(c.indices=F_(t)),this.combineAll&&(this.useMask?c.matchedMask=a:c.matchedTerms=o,c.termCount=this.numTerms),c}};function _v(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function vv(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0){_v(e,a,i,r);return}if(o)for(let t=0;te-t);for(let t of n)xv(e,t);let r=e=>{let t=0,r=n.length;for(;t>>1;n[i]i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var Cv=class{constructor(e,t,n){this.options={...Q,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new y_(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Q_(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof k_))throw Error(d_);if(this._myIndex=t||A_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=hv({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=yv(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!c_(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=hv({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});bv(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(f_);this._invertedIndex&&Sv(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(r_(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return i_(n)&&n>-1&&(e=e.slice(0,n)),e}let c=i_(n)&&n>0&&r_(e),l;if(c){let t=new cv(n);r_(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=r_(e)?r_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),sv(l,{ignoreFieldNorm:s}),a&&l.sort(o),i_(n)&&n>-1&&(l=l.slice(0,n));return uv(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!c_(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=ov(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}}),o}_searchLogical(e){let t=av(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e{if(c_(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{keys:a,records:o}=this._myIndex,s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!c_(e))return;let c=[],l=!1,u=!1;if(a.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:o,item:e,matches:c};t?(r.score=ov(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!c_(t))return[];let r=[];if(e_(t))t.forEach(({v:t,i,n:a})=>{if(!c_(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;tZ_(e))};function wv(e,t){return we()?(Te(e,t),!0):!1}function Tv(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return wv(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}var Ev=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Dv=Object.prototype.toString,Ov=e=>Dv.call(e)===`[object Object]`,kv=()=>{};function Av(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function jv(e,t={}){let n,r,i=kv,a=e=>{clearTimeout(e),i(),i=kv},o;return s=>{let c=en(e),l=en(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function Mv(e){return Array.isArray(e)?e:[e]}function Nv(e){return e||Ba()}function Pv(e){return Lt(Xt(e)?new Proxy({},{get(t,n,r){return F(Reflect.get(e.value,n,r))},set(t,n,r){return Xt(e.value[n])&&!Xt(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function Fv(e){return Pv(G(e))}function Iv(e,t=1e4){return an((n,r)=>{let i=en(e),a,o=()=>setTimeout(()=>{i=en(e),r()},en(t));return wv(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function Lv(e,t=200,n={}){return Av(jv(t,n),e)}function Rv(e,t=!0,n){Nv(n)?Mr(e,n):t?e():Tn(e)}function zv(e,t,n){return Gn(e,t,{...n,immediate:!0})}var Bv=Ev?window:void 0,Vv=Ev?window.document:void 0;Ev&&window.navigator,Ev&&window.location;function Hv(e){let t=en(e);return t?.$el??t}function Uv(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=G(()=>{let t=Mv(en(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return zv(()=>[n.value?.map(e=>Hv(e))??[Bv].filter(e=>e!=null),Mv(en(n.value?e[1]:e[0])),Mv(F(n.value?e[2]:e[1])),en(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=Ov(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function Wv(){let e=P(!1),t=Ba();return t&&Mr(()=>{e.value=!0},t),e}function Gv(e){let t=Wv();return G(()=>(t.value,!!e()))}function Kv(e={}){let{document:t=Vv}=e;if(!t)return P(`visible`);let n=P(t.visibilityState);return Uv(t,`visibilitychange`,()=>{n.value=t.visibilityState},{passive:!0}),n}function qv(e,t,n={}){let{window:r=Bv,...i}=n,a,o=Gv(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=Gn(G(()=>{let t=en(e);return Array.isArray(t)?t.map(e=>Hv(e)):[Hv(t)]}),e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return wv(l),{isSupported:o,stop:l}}function Jv(e,t={width:0,height:0},n={}){let{window:r=Bv,box:i=`content-box`}=n,a=G(()=>{var t;return(t=Hv(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=P(t.width),s=P(t.height),{stop:c}=qv(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=Hv(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=Mv(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);Rv(()=>{let n=Hv(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let l=Gn(()=>Hv(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function u(){c(),l()}return{width:o,height:s,stop:u}}var Yv=0;function Xv(e,t={}){let n=P(!1),{document:r=Vv,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++Yv}`}=t,s=P(e),c=()=>{},l=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(c=Gn(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(c(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return i&&!a&&Rv(l),a||wv(u),{id:o,css:s,unload:u,load:l,isLoaded:Bt(n)}}var Zv=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Qv=new WeakMap,$v=new WeakMap,ey={},ty=0,ny=function(e){return e&&(e.host||ny(e.parentNode))},ry=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ny(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},iy=function(e,t,n,r){var i=ry(t,Array.isArray(e)?e:[e]);ey[n]||(ey[n]=new WeakMap);var a=ey[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Qv.get(e)||0)+1,l=(a.get(e)||0)+1;Qv.set(e,c),a.set(e,l),o.push(e),c===1&&i&&$v.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ty++,function(){o.forEach(function(e){var t=Qv.get(e)-1,i=a.get(e)-1;Qv.set(e,t),a.set(e,i),t||($v.has(e)||e.removeAttribute(r),$v.delete(e)),i||e.removeAttribute(n)}),ty--,ty||(Qv=new WeakMap,Qv=new WeakMap,$v=new WeakMap,ey={})}},ay=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Zv(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),iy(r,i,n,`aria-hidden`)):function(){return null}};function oy(e,t=!0){Wn(()=>{if(!Df)return;let n=en(e),r=Om(Array.isArray(n)?n:[n]);if(r.length===0||r.some(e=>e.closest(`[popover]:not(:popover-open)`))||!en(t))return;let i=ay(r);dn(()=>{i()})})}var sy=P(!1);function cy(e){let{modal:t,triggerElement:n}=e,r=!1,i=!1;return{onPointerDownOutside:e=>{if(!t.value||e.defaultPrevented)return;let n=e.detail.originalEvent,r=n.button===0&&n.ctrlKey===!0;(n.button===2||r)&&e.preventDefault()},onFocusOutside:e=>{t.value&&e.preventDefault()},onInteractOutside:e=>{if(t.value)return;e.defaultPrevented||(r=!0,e.detail.originalEvent.type===`pointerdown`&&(i=!0));let a=e.target;n.value?.contains(a)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&i&&e.preventDefault()},onCloseAutoFocus:e=>{if(t.value){e.defaultPrevented||(e.preventDefault(),n.value?.focus());return}e.defaultPrevented||(r||n.value?.focus(),e.preventDefault()),r=!1,i=!1}}}function ly(e,t){let n=P(e);function r(e){return t[n.value][e]??n.value}function i(e){n.value=r(e)}return[n,i]}function uy(e,t,n){let r={},i=`none`,[a,o]=ly(en(t)?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),s=G(()=>[`mounted`,`unmountSuspended`].includes(a.value)),c=t=>{let n=dy(r).includes(CSS.escape(t.animationName));t.target===e.value&&n&&o(`ANIMATION_END`)},l=t=>{t.target===e.value&&(i=dy(r))};return Wn(()=>{let e=dy(r);i=a.value===`mounted`?e:`none`}),Wn(()=>{let e=en(t);n?.(!!e);let a=dy(r);e?o(`MOUNT`):a===`none`||r?.display===`none`?o(`UNMOUNT`):o(i===a?`UNMOUNT`:`ANIMATION_OUT`)}),Wn(()=>{let t=e.value;t?(r=getComputedStyle(t),t.addEventListener(`animationstart`,l),t.addEventListener(`animationcancel`,c),t.addEventListener(`animationend`,c),dn(()=>{t.removeEventListener(`animationstart`,l),t.removeEventListener(`animationcancel`,c),t.removeEventListener(`animationend`,c)})):o(`ANIMATION_END`)}),s}function dy(e){return e?.animationName||`none`}function fy(e,t,...n){return G(()=>({...Kl(e,t),...py(...n)}))}function py(...e){return e.length===0?{}:e.map(e=>en(e)||{}).reduce((e,t)=>({...e,...t}),{})}function my(e){let t=Iv(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(t.value+=n,e){e(n);return}let i=sf(),a=r.map(e=>({...e,textValue:e.data?.textValue??e.element.textContent?.trim()??``})),o=a.find(e=>e.element===i),s=Jl(a.map(e=>e.textValue),t.value,o?.textValue),c=a.find(e=>e.textValue===s);return c&&c.element.focus(),c?.element},resetTypeahead:()=>{t.value=``}}}var[hy,gy]=X(`CollapsibleRoot`,e=>{let{open:t,disabled:n,unmountOnHide:r}=e,i=()=>{n.value||(t.value=!t.value)},a=P(``),o=`soybean-collapsible-content-${gr()}`;return{open:t,disabled:n,unmountOnHide:r,onOpenToggle:i,contentId:a,initContentId:()=>{a.value||=o},dataDisabled:G(()=>n.value?``:void 0),dataState:G(()=>$l(t.value))}}),[_y,vy]=Z(`CollapsibleUi`),[yy,by]=X(`AccordionRoot`),[xy,Sy]=X(`AccordionItem`,e=>{let{open:t,disabled:n}=e,[r,i]=um(),a=P(``),o=`soybean-accordion-trigger-${gr()}`,s=()=>{a.value||=o},c=G(()=>n.value?``:void 0),l=G(()=>$l(t.value));return{...e,triggerElement:r,setTriggerElement:i,triggerId:a,initTriggerId:s,dataDisabled:c,dataState:l}}),[Cy,wy]=Z(`AccordionUi`,e=>(_y(G(()=>({root:e.value?.item,trigger:e.value?.trigger,content:e.value?.content}))),e)),Ty={width:`--soybean-collapsible-content-width`,height:`--soybean-collapsible-content-height`},Ey=L((e,{slots:t,attrs:n})=>()=>{if(!t.default)return null;let e=Cf(t.default());if(!e?.length)return null;let r=e.find(e=>e.type!==ha);return r?ka(r,n,!0):null},{name:`Slot`}),Dy=new Set([`area`,`input`,`img`]),Oy=L((e,{slots:t,attrs:n})=>{let r=e.asChild?`template`:e.as;return typeof r==`string`&&Dy.has(r)?()=>io(r,n):r===`template`?()=>io(Ey,n,{default:t.default}):()=>io(e.as||`div`,n,{default:t.default})},{name:`Primitive`,inheritAttrs:!1,props:[`as`,`asChild`]}),ky=L({name:`CollapsibleContent`,__name:`collapsible-content`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){let t=e,[n,r]=um(),{contentId:i,initContentId:a,open:o,dataDisabled:s,dataState:c,unmountOnHide:l}=gy(`CollapsibleContent`),u=vy(`content`),d=t.forceMount?P(!0):uy(n,o,_),f={[Ty.width]:`0px`,[Ty.height]:`0px`},p=G(()=>d.value||o.value),m=o.value,h,g=G(()=>{if(!p.value)return l.value?``:`until-found`});function _(){let e=n.value;if(!e)return;let t=e.style;h||={transitionDuration:t.transitionDuration,animationName:t.animationName},t.transitionDuration=`0s`,t.animationName=`none`;let r=e.getBoundingClientRect();t.setProperty(Ty.width,`${r.width}px`),t.setProperty(Ty.height,`${r.height}px`),m||(t.transitionDuration=h.transitionDuration,t.animationName=h.animationName)}return Gn(p,async()=>{await Tn(),_()},{immediate:!0,flush:`post`}),a(),Mr(()=>{requestAnimationFrame(()=>{m=!1})}),(t,n)=>(z(),V(F(Oy),{id:F(i),ref:F(r),as:e.as,"as-child":e.asChild,"data-soybean-collapsible-content":``,class:j(F(u)),"data-disabled":F(s),"data-state":F(c),hidden:g.value,style:f},{default:I(()=>[!F(l)||p.value?R(t.$slots,`default`,{key:0}):ja(`v-if`,!0)]),_:3},8,[`id`,`as`,`as-child`,`class`,`data-disabled`,`data-state`,`hidden`]))}}),Ay=L({name:`CollapsibleRoot`,__name:`collapsible-root`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=n,a=fy(r,[`open`,`defaultOpen`,`disabled`,`unmountOnHide`]),o=vy(`root`),s=jm(()=>r.open,e=>{i(`update:open`,e)},r.defaultOpen),{dataDisabled:c,dataState:l}=hy({open:s,...Tf(r,[`disabled`,`unmountOnHide`])});return t({open:s}),(e,t)=>(z(),V(F(Oy),W(F(a),{"data-soybean-collapsible-root":``,class:F(o),"data-disabled":F(c),"data-state":F(l)}),{default:I(()=>[R(e.$slots,`default`,{open:F(s)})]),_:3},16,[`class`,`data-disabled`,`data-state`]))}}),jy=L({name:`Button`,__name:`button`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=fy(n,[`disabled`,`type`]),a=G(()=>n.as===`button`?n.disabled:void 0),o=G(()=>n.disabled?``:void 0),s=G(()=>n.disabled?void 0:``),c=G(()=>n.disabled?!0:void 0),l=G(()=>{if(n.as===`button`)return n.type??`button`}),u=e=>{if(n.disabled){e.preventDefault(),e.stopPropagation();return}r(`click`,e)};return(e,t)=>(z(),V(F(Oy),W(F(i),{"data-soybean-button":``,disabled:a.value,"aria-disabled":c.value,"data-disabled":o.value,"data-normal":s.value,tabindex:a.value?`-1`:void 0,type:l.value,onClick:u}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16,[`disabled`,`aria-disabled`,`data-disabled`,`data-normal`,`tabindex`,`type`]))}}),My=L({name:`Icon`,__name:`icon`,props:{icon:{}},setup(e){let t=e,n=om(),r=G(()=>n?.iconRender?.(t.icon));return(e,t)=>r.value?(z(),V(Ur(r.value),{key:0})):ja(`v-if`,!0)}});Y({slots:{root:``,placeholder:``,content:`data-[state=fixed]:z-50`}});var[Ny,Py]=X(`AffixRoot`,e=>{let[t,n]=um();return{...e,contentElement:t,setContentElement:n}}),[Fy,Iy]=Z(`AffixUi`),Ly={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24},Ry={xs:`xs`,sm:`xs`,md:`sm`,lg:`md`,xl:`lg`,"2xl":`xl`};Object.fromEntries(Object.entries(Ly).map(([e,t])=>[e,t/Ly.md]));var zy=fl({base:[`inline-flex items-center justify-center font-medium transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],variants:{color:{primary:`focus-visible:ring-primary/30`,destructive:`focus-visible:ring-destructive/30`,success:`focus-visible:ring-success/30`,warning:`focus-visible:ring-warning/30`,info:`focus-visible:ring-info/30`,carbon:`focus-visible:ring-carbon/30`,secondary:`focus-visible:ring-secondary-foreground/20`,accent:`focus-visible:ring-accent-foreground/20`},variant:{solid:`bg-primary text-primary-foreground data-[normal]:hover:bg-primary/80 data-[normal]:active:bg-primary-600`,pure:`border border-border bg-background text-accent-foreground data-[normal]:hover:bg-accent/60 data-[normal]:active:bg-accent`,plain:`border border-border bg-background text-foreground`,outline:`border bg-background`,dashed:`border border-dashed bg-background`,soft:`bg-primary/10 data-[normal]:hover:bg-primary/10 data-[normal]:active:bg-primary/20`,ghost:`bg-transparent`,link:`bg-transparent underline-offset-4 data-[normal]:hover:underline`},size:{xs:`gap-1 text-2xs`,sm:`gap-2 text-xs`,md:`gap-3 text-sm`,lg:`gap-4 text-base`,xl:`gap-5 text-lg`,"2xl":`gap-6 text-xl`},shape:{auto:`rounded-md`,rounded:`rounded-full`,square:`h-8 w-8 p-0 gap-0 rounded-md`,circle:`h-8 w-8 p-0 gap-0 rounded-full`},shadow:{none:`shadow-none`,sm:`shadow-sm`,md:`shadow-md`,lg:`shadow-lg`},fitContent:{true:`w-fit h-fit`,false:``}},compoundVariants:[{color:`destructive`,variant:`solid`,class:`bg-destructive text-destructive-foreground data-[normal]:hover:bg-destructive/80 data-[normal]:active:bg-destructive-600`},{color:`success`,variant:`solid`,class:`bg-success text-success-foreground data-[normal]:hover:bg-success/80 data-[normal]:active:bg-success-600`},{color:`warning`,variant:`solid`,class:`bg-warning text-warning-foreground data-[normal]:hover:bg-warning/80 data-[normal]:active:bg-warning-600`},{color:`info`,variant:`solid`,class:`bg-info text-info-foreground data-[normal]:hover:bg-info/80 data-[normal]:active:bg-info-600`},{color:`carbon`,variant:`solid`,class:`bg-carbon text-carbon-foreground data-[normal]:hover:bg-carbon/80 data-[normal]:active:bg-carbon-600`},{color:`secondary`,variant:`solid`,class:`bg-secondary text-secondary-foreground data-[normal]:hover:bg-secondary/80 data-[normal]:active:bg-secondary-foreground/20`},{color:`accent`,variant:`solid`,class:`bg-accent text-accent-foreground data-[normal]:hover:bg-accent/80 data-[normal]:active:bg-accent-foreground/20`},{color:`primary`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-primary`},{color:`destructive`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-destructive`},{color:`success`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-success`},{color:`warning`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-warning`},{color:`info`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-info`},{color:`carbon`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-carbon`},{color:`secondary`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-secondary-foreground`},{color:`accent`,variant:[`outline`,`dashed`,`soft`,`ghost`,`link`],class:`text-accent-foreground`},{color:`primary`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-primary/10 data-[normal]:active:bg-primary/20`},{color:`destructive`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-destructive/10 data-[normal]:active:bg-destructive/20`},{color:`success`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-success/10 data-[normal]:active:bg-success/20`},{color:`warning`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-warning/10 data-[normal]:active:bg-warning/20`},{color:`info`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-info/10 data-[normal]:active:bg-info/20`},{color:`carbon`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-carbon/10 data-[normal]:active:bg-carbon/20`},{color:`secondary`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-secondary-foreground/10 data-[normal]:active:bg-secondary-foreground/20`},{color:`accent`,variant:[`outline`,`dashed`,`ghost`],class:`data-[normal]:hover:bg-accent-foreground/10 data-[normal]:active:bg-accent-foreground/20`},{color:`primary`,variant:`plain`,class:`data-[normal]:hover:border-primary data-[normal]:hover:text-primary`},{color:`destructive`,variant:`plain`,class:`data-[normal]:hover:border-destructive data-[normal]:hover:text-destructive`},{color:`success`,variant:`plain`,class:`data-[normal]:hover:border-success data-[normal]:hover:text-success`},{color:`warning`,variant:`plain`,class:`data-[normal]:hover:border-warning data-[normal]:hover:text-warning`},{color:`info`,variant:`plain`,class:`data-[normal]:hover:border-info data-[normal]:hover:text-info`},{color:`carbon`,variant:`plain`,class:`data-[normal]:hover:border-carbon data-[normal]:hover:text-carbon`},{color:`secondary`,variant:`plain`,class:`data-[normal]:hover:border-secondary-foreground data-[normal]:hover:text-secondary-foreground`},{color:`accent`,variant:`plain`,class:`data-[normal]:hover:border-accent-foreground data-[normal]:hover:text-accent-foreground`},{color:`primary`,variant:[`outline`,`dashed`],class:`border-primary`},{color:`destructive`,variant:[`outline`,`dashed`],class:`border-destructive`},{color:`success`,variant:[`outline`,`dashed`],class:`border-success`},{color:`warning`,variant:[`outline`,`dashed`],class:`border-warning`},{color:`info`,variant:[`outline`,`dashed`],class:`border-info`},{color:`carbon`,variant:[`outline`,`dashed`],class:`border-carbon`},{color:`secondary`,variant:[`outline`,`dashed`],class:`border-secondary-foreground`},{color:`accent`,variant:[`outline`,`dashed`],class:`border-accent-foreground`},{color:`destructive`,variant:`soft`,class:`bg-destructive/10 data-[normal]:hover:bg-destructive/10 data-[normal]:active:bg-destructive/20`},{color:`success`,variant:`soft`,class:`bg-success/10 data-[normal]:hover:bg-success/10 data-[normal]:active:bg-success/20`},{color:`warning`,variant:`soft`,class:`bg-warning/10 data-[normal]:hover:bg-warning/10 data-[normal]:active:bg-warning/20`},{color:`info`,variant:`soft`,class:`bg-info/10 data-[normal]:hover:bg-info/10 data-[normal]:active:bg-info/20`},{color:`carbon`,variant:`soft`,class:`bg-carbon/10 data-[normal]:hover:bg-carbon/10 data-[normal]:active:bg-carbon/20`},{color:`secondary`,variant:`soft`,class:`bg-secondary-foreground/10 data-[normal]:hover:bg-secondary-foreground/10 data-[normal]:active:bg-secondary-foreground/20`},{color:`accent`,variant:`soft`,class:`bg-accent-foreground/10 data-[normal]:hover:bg-accent-foreground/10 data-[normal]:active:bg-accent-foreground/20`},{size:`xs`,fitContent:!0,class:`p-0.75`},{size:`sm`,fitContent:!0,class:`p-0.875`},{size:`md`,fitContent:!0,class:`p-1`},{size:`lg`,fitContent:!0,class:`p-1.25`},{size:`xl`,fitContent:!0,class:`p-1.5`},{size:`2xl`,fitContent:!0,class:`p-1.75`},{size:`xs`,fitContent:!1,class:`h-6 px-1.5`},{size:`sm`,fitContent:!1,class:`h-7 px-2`},{size:`md`,fitContent:!1,class:`h-8 px-4`},{size:`lg`,fitContent:!1,class:`h-9 px-6`},{size:`xl`,fitContent:!1,class:`h-10 px-8`},{size:`2xl`,fitContent:!1,class:`h-12 px-10`},{size:`xs`,fitContent:!1,shape:[`square`,`circle`],class:`w-6`},{size:`sm`,fitContent:!1,shape:[`square`,`circle`],class:`w-7`},{size:`lg`,fitContent:!1,shape:[`square`,`circle`],class:`w-9`},{size:`xl`,fitContent:!1,shape:[`square`,`circle`],class:`w-10`},{size:`2xl`,fitContent:!1,shape:[`square`,`circle`],class:`w-12`},{variant:[`ghost`,`link`],shadow:[`sm`,`md`,`lg`],class:`shadow-none`},{variant:`plain`,shadow:`sm`,class:`active:shadow-md`},{variant:`plain`,shadow:`md`,class:`active:shadow-lg`},{variant:`plain`,shadow:`lg`,class:`active:shadow-xl`},{variant:`pure`,shadow:`sm`,class:`active:shadow-sm`},{variant:`pure`,shadow:`md`,class:`active:shadow-md`},{variant:`pure`,shadow:`lg`,class:`active:shadow-lg`}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`,shape:`auto`,shadow:`sm`,fitContent:!1}});fl({base:`[&>*]:relative focus-visible:[&>*]:z-2 not-first:not-last:[&>*]:rounded-0`,variants:{orientation:{horizontal:`inline-flex not-last:[&>*]:border-e-0 focus-visible:[&>*]:border-e first:[&>*]:rounded-e-0 last:[&>*]:rounded-s-0`,vertical:`flex flex-col not-last:[&>*]:border-b-0 focus-visible:[&>*]:border-b first:[&>*]:rounded-b-0 last:[&>*]:rounded-t-0`}},defaultVariants:{orientation:`horizontal`}});var By=Rl(zy,{size:`md`,color:`accent`,variant:`ghost`,shape:`square`,fitContent:!0}),Vy=_l(zy,e=>({...e,size:Ry[e.size??`md`]})),Hy=_l(By,e=>({...e,size:Ry[e.size??`md`]}));Y({extendBase:e=>({close:Hy({size:e.size})}),slots:{root:`relative flex w-full rounded-lg border`,content:`flex-1 flex flex-col`,icon:`shrink-0`,title:`font-medium tracking-tight m-0`,description:`[&_p]:leading-relaxed m-0`,close:`absolute`},variants:{color:{primary:{root:`border-primary text-primary`,icon:`text-primary`},destructive:{root:`border-destructive text-destructive`,icon:`text-destructive`},success:{root:`border-success text-success`,icon:`text-success`},warning:{root:`border-warning text-warning`,icon:`text-warning`},info:{root:`border-info text-info`,icon:`text-info`},carbon:{root:`border-carbon text-carbon`,icon:`text-carbon`},secondary:{root:`border-secondary-foreground/50 text-secondary-foreground`,icon:`text-secondary-foreground`},accent:{root:`border-accent-foreground/50 text-accent-foreground`,icon:`text-accent-foreground`}},variant:{solid:{root:``},pure:{root:`bg-background text-foreground border-border`},outline:{root:`bg-background`},soft:{root:`border-transparent`},ghost:{root:``}},size:{xs:{root:`gap-2 px-2 py-1.75 text-2xs`,content:`gap-0.75`,title:`text-xs leading-3.125`,close:`top-1.25 end-1.25`},sm:{root:`gap-2.5 px-3 py-2.5 text-xs`,content:`gap-1`,title:`text-sm leading-3.75`,close:`top-1.875 end-1.875`},md:{root:`gap-3 px-4 py-3 text-sm`,content:`gap-1`,title:`text-base leading-4.375`,close:`top-2.25 end-2.25`},lg:{root:`gap-3.5 px-5 py-3.5 text-base`,content:`gap-1.25`,title:`text-lg leading-5`,close:`top-2.5 end-2.5`},xl:{root:`gap-4 px-6 py-4 text-lg`,content:`gap-1.5`,title:`text-xl leading-5.625`,close:`top-2.75 end-2.75`},"2xl":{root:`gap-4.5 px-7 py-4.5 text-xl`,content:`gap-2`,title:`text-2xl leading-6.25`,close:`top-3 end-3`}}},compoundVariants:[{color:`primary`,variant:`solid`,class:{root:`bg-primary text-primary-foreground`,icon:`text-primary-foreground`,close:`text-primary-foreground`}},{color:`destructive`,variant:`solid`,class:{root:`bg-destructive text-destructive-foreground`,icon:`text-destructive-foreground`,close:`text-destructive-foreground`}},{color:`success`,variant:`solid`,class:{root:`bg-success text-success-foreground`,icon:`text-success-foreground`,close:`text-success-foreground`}},{color:`warning`,variant:`solid`,class:{root:`bg-warning text-warning-foreground`,icon:`text-warning-foreground`,close:`text-warning-foreground`}},{color:`info`,variant:`solid`,class:{root:`bg-info text-info-foreground`,icon:`text-info-foreground`,close:`text-info-foreground`}},{color:`carbon`,variant:`solid`,class:{root:`bg-carbon text-carbon-foreground`,icon:`text-carbon-foreground`,close:`text-carbon-foreground`}},{color:`secondary`,variant:`solid`,class:{root:`bg-secondary text-secondary-foreground`,icon:`text-secondary-foreground`,close:`text-secondary-foreground`}},{color:`accent`,variant:`solid`,class:{root:`bg-accent text-accent-foreground`,icon:`text-accent-foreground`,close:`text-accent-foreground`}},{color:`primary`,variant:[`soft`,`ghost`],class:{root:`bg-primary/10`}},{color:`destructive`,variant:[`soft`,`ghost`],class:{root:`bg-destructive/10`}},{color:`success`,variant:[`soft`,`ghost`],class:{root:`bg-success/10`}},{color:`warning`,variant:[`soft`,`ghost`],class:{root:`bg-warning/10`}},{color:`info`,variant:[`soft`,`ghost`],class:{root:`bg-info/10`}},{color:`carbon`,variant:[`soft`,`ghost`],class:{root:`bg-carbon/10`}},{color:`secondary`,variant:[`soft`,`ghost`],class:{root:`bg-secondary-foreground/5`}},{color:`accent`,variant:[`soft`,`ghost`],class:{root:`bg-accent-foreground/5`}}],defaultVariants:{color:`primary`,variant:`ghost`,size:`md`}});var[Uy,Wy]=X(`AlertRoot`,e=>{let{open:t}=e;return{open:t,onOpenChange:e=>{t.value=e}}}),[Gy,Ky]=Z(`AlertUi`);Y({slots:{root:`relative flex flex-col gap-1 text-sm`,link:[`group inline-flex w-full items-center gap-2 rounded-md px-3 py-2 text-muted-foreground outline-none transition-colors`,`hover:bg-accent/60 hover:text-accent-foreground`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,`data-[state=active]:bg-accent data-[state=active]:text-foreground`],sub:`ms-4 flex flex-col gap-1 border-s border-border/60 ps-3`,item:`flex flex-col gap-1`,indicator:`size-1.5 shrink-0 rounded-full bg-primary opacity-0 transition-opacity group-data-[state=active]:opacity-100`,title:`min-w-0 truncate`},variants:{color:{primary:{indicator:`bg-primary`,link:`data-[state=active]:bg-primary/10 data-[state=active]:text-primary`},destructive:{indicator:`bg-destructive`,link:`data-[state=active]:bg-destructive/10 data-[state=active]:text-destructive`},success:{indicator:`bg-success`,link:`data-[state=active]:bg-success/10 data-[state=active]:text-success`},warning:{indicator:`bg-warning`,link:`data-[state=active]:bg-warning/10 data-[state=active]:text-warning`},info:{indicator:`bg-info`,link:`data-[state=active]:bg-info/10 data-[state=active]:text-info`},carbon:{indicator:`bg-carbon`,link:`data-[state=active]:bg-carbon/10 data-[state=active]:text-carbon`},secondary:{indicator:`bg-secondary-foreground/50`,link:`data-[state=active]:bg-secondary-foreground/10 data-[state=active]:text-secondary-foreground`},accent:{indicator:`bg-accent-foreground/50`,link:`data-[state=active]:bg-accent-foreground/10 data-[state=active]:text-accent-foreground`}},orientation:{vertical:{},horizontal:{root:`flex-row flex-wrap items-start gap-2`,item:`min-w-36 flex-1`,sub:`ms-0 mt-2 border-s-0 border-t ps-0 pt-2`}},size:{xs:{link:`px-2 py-1.5 text-3xs`},sm:{link:`px-2.5 py-1.5 text-2xs`},md:{link:`px-3 py-2 text-xs`},lg:{link:`px-3.5 py-2.5 text-sm`,indicator:`size-2`},xl:{link:`px-4 py-3 text-base`,indicator:`size-2`},"2xl":{link:`px-4.5 py-3.5 text-lg`,indicator:`size-2`}},sticky:{true:{root:`sticky self-start top-[var(--soybean-anchor-offset-top,0px)] max-h-[calc(100vh-var(--soybean-anchor-offset-top,0px))] overflow-auto pe-1`},false:{}}},defaultVariants:{color:`primary`,orientation:`vertical`,size:`md`,sticky:!0}});var[qy,Jy]=X(`AnchorRoot`,e=>{let t=sm(()=>e.dir.value);return{...e,dir:t}}),[Yy,Xy]=Z(`AnchorUi`);Y({slots:{root:`relative flex shrink-0 overflow-hidden rounded-full`,fallback:`flex justify-center items-center w-full h-full rounded-full bg-muted font-medium`,image:`aspect-square w-full h-full object-cover m-0`},variants:{size:{xs:{root:`size-6`},sm:{root:`size-8`},md:{root:`size-10`},lg:{root:`size-12`},xl:{root:`size-14`},"2xl":{root:`size-16`}}},defaultVariants:{size:`md`}});var[Zy,Qy]=X(`AvatarRoot`,()=>{let e=P(`idle`);return{imageLoadingStatus:e,updateImageLoadingStatus:t=>{e.value=t}}}),[$y,eb]=Z(`AvatarUi`),[tb,nb]=X(`UiConfigProvider`),rb=/^[a-z0-9]+(-[a-z0-9]+)*$/,ib=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!ab(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!ab(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!ab(e,n)?null:e}return null},ab=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function ob(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var sb=Object.freeze({left:0,top:0,width:16,height:16}),cb=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),lb=Object.freeze({...sb,...cb}),ub=Object.freeze({...lb,body:``,hidden:!1});function db(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function fb(e,t){let n=db(e,t);for(let r in ub)r in cb?r in e&&!(r in n)&&(n[r]=cb[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function pb(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=fb(r[e]||i[e],a)}return o(t),n.forEach(o),fb(e,a)}function mb(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=ob(e);for(let i in r){let a=r[i];a&&(t(i,pb(e,i,a)),n.push(i))}return n}var hb={provider:``,aliases:{},not_found:{},...sb};function gb(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _b(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!gb(e,hb))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!gb(t,ub))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!gb(t,ub))return null}return t}var vb=Object.create(null);function yb(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function bb(e,t){let n=vb[e]||(vb[e]=Object.create(null));return n[t]||(n[t]=yb(e,t))}function xb(e,t){return _b(t)?mb(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function Sb(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var Cb=!1;function wb(e){return typeof e==`boolean`&&(Cb=e),Cb}function Tb(e){let t=typeof e==`string`?ib(e,!0,Cb):e;if(t){let e=bb(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Eb(e,t){let n=ib(e,!0,Cb);if(!n)return!1;let r=bb(n.provider,n.prefix);return t?Sb(r,n.name,t):(r.missing.add(n.name),!0)}function Db(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),Cb&&!t&&!e.prefix){let t=!1;return _b(e)&&(e.prefix=``,mb(e,(e,n)=>{Eb(e,n)&&(t=!0)})),t}let n=e.prefix;return ab({prefix:n,name:`a`})?!!xb(bb(t,n),e):!1}var Ob=Object.freeze({width:null,height:null}),kb=Object.freeze({...Ob,...cb}),Ab=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Mb(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(Ab);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=jb.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Nb(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(``,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Pb(e,t){return e?``+e+``+t:t}function Fb(e,t,n){let r=Nb(e);return Pb(r.defs,t+r.content+n)}var Ib=e=>e===`unset`||e===`undefined`||e===`none`;function Lb(e,t){let n={...lb,...e},r={...kb,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Fb(a,``,``))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Mb(d,c/l)):(u=o===`auto`?c:o,d=s===null?Mb(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{Ib(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Rb=/\sid="(\S+)"/g,zb=new Map;function Bb(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=zb.get(e)||0;return zb.set(e,t+1),t?`${e}${t}`:e}function Vb(e){let t=[],n;for(;n=Rb.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=Bb(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var Hb=Object.create(null);function Ub(e,t){Hb[e]=t}function Wb(e){return Hb[e]||Hb[``]}function Gb(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var Kb=Object.create(null),qb=[`https://api.simplesvg.com`,`https://api.unisvg.com`],Jb=[];qb.length>0;)qb.length===1||Math.random()>.5?Jb.push(qb.shift()):Jb.push(qb.pop());Kb[``]=Gb({resources:[`https://api.iconify.design`].concat(Jb)});function Yb(e,t){let n=Gb(t);return n===null?!1:(Kb[e]=n,!0)}function Xb(e){return Kb[e]}var Zb=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function Qb(e,t){let n=Xb(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function $b(e){return e===404}var ex=(e,t,n)=>{let r=[],i=Qb(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function tx(e){if(typeof e==`string`){let t=Xb(e);if(t)return t.path}return`/`}var nx={prepare:ex,send:(e,t,n)=>{if(!Zb){n(`abort`,424);return}let r=tx(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;Zb(e+r).then(e=>{let t=e.status;if(t!==200){setTimeout(()=>{n($b(t)?`abort`:`next`,t)});return}return i=501,e.json()}).then(e=>{if(typeof e!=`object`||!e){setTimeout(()=>{e===404?n(`abort`,e):n(`next`,i)});return}setTimeout(()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function rx(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function ix(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||rx([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var ax=0;function ox(e,t,n){let r=ax++,i=rx.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function sx(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=bb(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function cx(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?ib(e,t,n):e;i&&r.push(i)}),r}var lx={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ux(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`){u=r,v();return}if(i){u=r,f.length||(o.length?x():v());return}if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function dx(e){let t={...lx,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=ux(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function fx(){}var px=Object.create(null);function mx(e){if(!px[e]){let t=Xb(e);if(!t)return;px[e]={config:t,redundancy:dx(t)}}return px[e]}function hx(e,t,n){let r,i;if(typeof e==`string`){let t=Wb(e);if(!t)return n(void 0,424),fx;i=t.send;let a=mx(e);a&&(r=a.redundancy)}else{let t=Gb(e);if(t){r=dx(t);let n=Wb(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),fx):r.query(t,i,n)().abort}function gx(){}function _x(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ix(e)}))}function vx(e){let t=[],n=[];return e.forEach(e=>{(e.match(rb)?t:n).push(e)}),{valid:t,invalid:n}}function yx(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!xb(e,n).length){r();return}}catch(e){console.error(e)}r(),_x(e)}function bx(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function xx(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){bx(e.loadIcons(r,n,t),t=>{yx(e,r,t)});return}if(i){r.forEach(r=>{bx(i(r,n,t),t=>{yx(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=vx(r);if(o.length&&yx(e,o,null),!a.length)return;let s=n.match(rb)?Wb(t):null;if(!s){yx(e,a,null);return}s.prepare(t,n,a).forEach(n=>{hx(t,n,t=>{yx(e,n.icons,t)})})}))}var Sx=(e,t)=>{let n=sx(cx(e,!0,wb()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,gx)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(bb(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=bb(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&xx(e,t)}),t?ox(t,n,i):gx};function Cx(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in Ob?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var wx=/[\s,]+/;function Tx(e,t){t.split(wx).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0;break}})}function Ex(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}else if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function Dx(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return``+e+``}function Ox(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(//g,`%3E`).replace(/\s+/g,` `)}function kx(e){return`data:image/svg+xml,`+Ox(e)}function Ax(e){return`url("`+kx(e)+`")`}var jx={...kb,inline:!1},Mx={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},Nx={display:`inline-block`},Px={backgroundColor:`currentColor`},Fx={backgroundColor:`transparent`},Ix={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},Lx={webkitMask:Px,mask:Px,background:Fx};for(let e in Lx){let t=Lx[e];for(let n in Ix)t[e+n]=Ix[n]}var Rx={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;Rx[e+`-flip`]=t,Rx[e.slice(0,1)+`-flip`]=t,Rx[e+`Flip`]=t});function zx(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var Bx=(e,t)=>{let n=Cx(jx,t),r={...Mx},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:typeof i==`string`&&Tx(n,i);break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=Ex(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=Rx[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):jx[e]===void 0&&(r[e]=i)}}}let c=Lb(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=Vb(c.body),io(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||(i===`bg`?!1:u.indexOf(`currentColor`)!==-1),m=Dx(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":Ax(m),width:zx(l.width),height:zx(l.height),...Nx,...p?Px:Fx,...s},io(`span`,r)};if(wb(!0),Ub(``,nx),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!Db(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;Yb(e,r)||console.error(n)}catch{console.error(n)}}}}var Vx={...lb,body:``},Hx=L((e,{emit:t})=>{let n=Zt(null);function r(){n.value&&=(n.value.abort?.(),null)}let i=Zt(!!e.ssr),a=Zt(``),o=P(null);function s(){let i=e.icon;if(typeof i==`object`&&i&&typeof i.body==`string`)return a.value=``,{data:i};let o;if(typeof i!=`string`||(o=ib(i,!1,!0))===null)return null;let s=Tb(o);if(!s){let e=n.value;return(!e||e.name!==i)&&(s===null?n.value={name:i}:n.value={name:i,abort:Sx([o],c)}),null}r(),a.value!==i&&(a.value=i,Tn(()=>{t(`load`,i)}));let l=e.customise;if(l){s=Object.assign({},s);let e=l(s.body,o.name,o.prefix,o.provider);typeof e==`string`&&(s.body=e)}let u=[`iconify`];return o.prefix!==``&&u.push(`iconify--`+o.prefix),o.provider!==``&&u.push(`iconify--`+o.provider),{data:s,classes:u}}function c(){let e=s();e?e.data!==o.value?.data&&(o.value=e):o.value=null}return i.value?c():Mr(()=>{i.value=!0,c()}),Gn(()=>e.icon,c),Ir(r),()=>{let t=o.value;if(!t)return Bx(Vx,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),Bx({...lb,...t.data},n)}},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`],emits:[`load`]}),Ux=L({name:`SIcon`,__name:`icon`,props:{icon:{},ssr:{type:Boolean},customise:{type:Function},id:{},style:{},title:{},mode:{},color:{},flip:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},rotate:{},hFlip:{type:Boolean},vFlip:{type:Boolean},width:{},height:{},inline:{type:Boolean},ariaHidden:{type:Boolean}},setup(e){let t=e,n=nb(),r=G(()=>{let{width:e,height:r}=t,i=n?.iconify?.value||{};return{width:e||i.width,height:r||i.height}}),i=G(()=>({...t,...r.value})),a=G(()=>o(t.icon)?{...i.value,icon:t.icon}:null);function o(e){return e?typeof e==`string`||typeof e==`object`&&`body`in e:!1}return(t,n)=>a.value?(z(),V(F(Hx),W({key:0},a.value,{style:{"flex-shrink":`0`}}),null,16)):e.icon?(z(),V(Ur(e.icon),{key:1,style:ce([{"flex-shrink":`0`},{width:r.value.width,height:r.value.height}])},null,8,[`style`])):ja(`v-if`,!0)}});fl({extend:[zy],base:`fixed z-50`,variants:{size:{xs:`bottom-4 end-4`,sm:`bottom-5 end-5`,md:`bottom-6 end-6`,lg:`bottom-7 end-7`,xl:`bottom-8 end-8`,"2xl":`bottom-10 end-10`}},defaultVariants:{size:`md`}}),Y({slots:{root:`flex w-full flex-col`,anchor:[`group flex w-full items-center rounded-md border border-input bg-background text-foreground shadow-xs transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],inputRoot:`flex min-w-0 grow items-center gap-2 bg-transparent`,inputControl:`min-w-0 grow border-0 bg-transparent px-0 outline-none placeholder:text-muted-foreground`,inputIcon:`shrink-0 text-muted-foreground`,inputClearable:[`flex shrink-0 items-center justify-center rounded-sm text-muted-foreground opacity-70 outline-none transition-opacity`,`hover:opacity-100 focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1`,`disabled:cursor-not-allowed disabled:opacity-40`],trigger:`flex shrink-0 items-center justify-center text-muted-foreground outline-none disabled:cursor-not-allowed`,triggerIcon:`size-1em`,popup:[`relative z-50 min-w-[--soybean-popper-anchor-width] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],viewport:`max-h-80 overflow-y-auto overflow-x-hidden p-1`,empty:`py-6 text-center text-sm text-muted-foreground`,group:`overflow-hidden`,groupLabel:`px-2 py-1.5 text-xs font-medium text-muted-foreground`,item:[`relative flex w-full items-center rounded-sm outline-none select-none`,`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`],itemIcon:`shrink-0 text-muted-foreground`,itemText:`grow truncate text-start`,itemIndicator:`ms-auto shrink-0 text-muted-foreground`,separator:`-mx-1 my-1 h-px bg-border`},variants:{size:{xs:{anchor:`min-h-6 gap-1 px-1.5 text-2xs`,inputRoot:`gap-1`,popup:`text-2xs`,viewport:`max-h-70 p-0.75`,groupLabel:`px-1 py-1 text-3xs`,item:`gap-1 px-1 py-1`,separator:`-mx-0.75 my-0.75`},sm:{anchor:`min-h-7 gap-1.5 px-2 text-xs`,inputRoot:`gap-1.5`,popup:`text-xs`,viewport:`max-h-75 p-0.875`,groupLabel:`px-1.5 py-1.25 text-2xs`,item:`gap-1.5 px-1.5 py-1.25`,separator:`-mx-0.875 my-0.875`},md:{anchor:`min-h-8 gap-2 px-2.5 text-sm`,inputRoot:`gap-2`,popup:`text-sm`,viewport:`max-h-80 p-1`,groupLabel:`px-2 py-1.5 text-xs`,item:`gap-2 px-2 py-1.5`,separator:`-mx-1 my-1`},lg:{anchor:`min-h-9 gap-2.5 px-3 text-base`,inputRoot:`gap-2.5`,popup:`text-base`,viewport:`max-h-90 p-1.25`,groupLabel:`px-2.5 py-1.75 text-sm`,item:`gap-2.5 px-2.5 py-1.75`,separator:`-mx-1.25 my-1.25`},xl:{anchor:`min-h-10 gap-3 px-3.5 text-lg`,inputRoot:`gap-3`,popup:`text-lg`,viewport:`max-h-100 p-1.5`,groupLabel:`px-3 py-2 text-base`,item:`gap-3 px-3 py-2`,separator:`-mx-1.5 my-1.5`},"2xl":{anchor:`min-h-12 gap-3.5 px-4 text-xl`,inputRoot:`gap-3.5`,popup:`text-xl`,viewport:`max-h-115 p-1.75`,groupLabel:`px-3.5 py-2.5 text-lg`,item:`gap-3.5 px-3.5 py-2.5`,separator:`-mx-1.75 my-1.75`}}},defaultVariants:{size:`md`}});var[Wx,Gx]=X(`InputRoot`),[Kx,qx]=Z(`InputUi`),{provideCollectionContext:Jx,useCollectionContext:Yx,useCollectionItem:Xx}=Am(`Listbox`),[Zx,Qx]=X(`ListboxRoot`,e=>{let[t,n]=um(),{getOrderedItems:r,getOrderedElements:i}=Jx(),{handleTypeaheadSearch:a}=my(),{modelValue:o,orientation:s,selectionBehavior:c,isMultiple:l,onModelValueChange:u,onHighlight:d,onEntryFocus:f}=e,p=sm(e.dir),m=P(),h=P(!1),g=P(!0),_=P(null),v=P(null),y=P(!1),b=P(!1),x=Tv(),S=Tv(),C=Tv(),w=e=>{h.value=!0,l.value&&c.value===`replace`&&(m.value=e),u(e),setTimeout(()=>{h.value=!1},1)},T=(e,t=!0)=>{e&&(_.value=e,g.value&&_.value.focus(),t&&_.value.scrollIntoView({block:`nearest`}),d(r().find(t=>t.element===e)))},E=e=>{if(y.value)C.trigger(e);else{let t=r().find(t=>t.data.value===e);t&&(_.value=t.element,T(t.element))}},ee=e=>{_.value?.isConnected&&(e.preventDefault(),e.stopPropagation(),!b.value&&_.value.click())},D=e=>{if(h.value=!0,y.value)S.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey,n=r();if(t&&e.key===`a`&&l.value){o.value=[...n.map(e=>e.data.value)],e.preventDefault();let t=n[n.length-1]?.element;t&&T(t)}else if(!t){let t=a(e.key,n);t&&T(t)}}setTimeout(()=>{h.value=!1},1)},te=()=>{b.value=!0},O=()=>{Tn(()=>{b.value=!1})},ne=t=>{let n=_.value;n?.isConnected&&(v.value=n),_.value=null,e.onLeave(t)},re=e=>{let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),f(t),!t.defaultPrevented)if(v.value)T(v.value);else{let e=i()?.[0];e&&T(e)}},k=e=>{let t=xf(e,s.value,p.value);if(!t)return;let n=i();if(_.value){if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let e=n.indexOf(_.value);n=n.slice(e+1)}let r=n[0];r&&ae(e,r)}if(n.length){let e=!_.value&&t===`prev`?n.length-1:0,r=n[e];r&&T(r)}y.value&&S.trigger(e)},ie=()=>{Tn(()=>{k(new KeyboardEvent(`keydown`,{key:`PageUp`}))})};function ae(e,t){if(y.value||c.value!==`replace`||!l.value||!Array.isArray(o.value)||(e.altKey||e.ctrlKey||e.metaKey)&&!e.shiftKey||!e.shiftKey)return;let n=r(),i=n.find(e=>e.element===t)?.data?.value;e.key===`End`?i=n[n.length-1]?.data?.value:e.key===`Home`&&(i=n[0]?.data?.value),!(!i||!m.value)&&(o.value=Yl(n.map(e=>e.data.value),m.value,i))}let A=async e=>{if(await Tn(),y.value)x.trigger(e);else{let e=i(),t=e.find(e=>e.dataset.state===`checked`);t?T(t):e[0]&&T(e[0])}},oe=async e=>{let n=e.relatedTarget||e.target;await Tn(),!(!_.value||t.value?.contains(n))&&ne(e)};return{...e,rootElement:t,setRootElement:n,isUserAction:h,isVirtual:y,virtualFocusHook:x,virtualKeydownHook:S,virtualHighlightHook:C,firstValue:m,focusable:g,onModelValueChange:w,onLeave:ne,onEnter:re,highlightedElement:_,changeHighlight:T,highlightItem:E,highlightSelected:A,highlightFirstItem:ie,onKeydownEnter:ee,onKeydownNavigation:k,onKeydownTypeahead:D,onCompositionStart:te,onCompositionEnd:O,onFocusOut:oe,getItems:r}}),[$x,eS]=X(`ListboxGroup`,()=>({id:`soybean-listbox-group-${gr()}`})),[tS,nS]=X(`ListboxItem`,e=>e),[rS,iS]=Z(`ListboxUi`,e=>(Kx(G(()=>({root:e.value?.filterRoot,control:e.value?.filterControl}))),e)),[aS,oS]=X(`PopperRoot`,e=>{let t=P(),n=e=>{t.value=e},r=P(),i=e=>{r.value=e};return{...e,popupElement:t,onPopupElementChange:n,anchorElement:r,onAnchorElementChange:i}}),[sS,cS]=X(`PopperPositioner`,e=>{let t=P(null),n=e=>{t.value=e??null};return{...e,arrowElement:t,onArrowElementChange:n}}),[lS,uS]=Z(`PopperUi`),dS=L({name:`Portal`,__name:`portal`,props:{to:{default:`body`},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(e){let t=P(!1);return Mr(()=>{t.value=!0}),(n,r)=>t.value||e.forceMount?(z(),V(or,{key:0,to:e.to,disabled:e.disabled,defer:e.defer},[R(n.$slots,`default`)],8,[`to`,`disabled`,`defer`])):ja(`v-if`,!0)}}),[fS,pS]=X(`ComboboxRoot`),[mS,hS]=X(`ComboboxContent`),[gS,_S]=Z(`ComboboxUi`,e=>{let t=G(()=>({...e.value,content:e.value?.viewport,filterRoot:e.value?.inputRoot,filterControl:e.value?.inputControl}));return lS(e),rS(t),e}),vS={transformOrigin:`--soybean-popper-transform-origin`,availableWidth:`--soybean-popper-available-width`,availableHeight:`--soybean-popper-available-height`,anchorWidth:`--soybean-popper-anchor-width`,anchorHeight:`--soybean-popper-anchor-height`};function yS(){return{placement:void 0,side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionPadding:0,collisionBoundary:()=>[],sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1}}var bS={start:`0%`,center:`50%`,end:`100%`},xS={bottom:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({arrowHeight:e})=>`${-e}px`},top:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({floatingHeight:e,arrowHeight:t})=>`${e+t}px`},right:{getX:({arrowHeight:e})=>`${-e}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`},left:{getX:({floatingWidth:e,arrowHeight:t})=>`${e+t}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`}};function SS(e){let{collisionPadding:t,collisionBoundary:n}=e,r={top:1,right:1,bottom:1,left:1};typeof t==`number`?(r.top+=t,r.right+=t,r.bottom+=t,r.left+=t):t&&(r.top+=t.top??0,r.right+=t.right??0,r.bottom+=t.bottom??0,r.left+=t.left??0);let i=Array.isArray(n)?n:[n],a=i.length>0;return{padding:r,boundary:i.filter(e=>!Hl(e)),altBoundary:a}}ii({placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},yS());var CS=L({name:`VisuallyHidden`,__name:`visually-hidden`,props:{feature:{default:`focusable`},asChild:{type:Boolean},as:{default:`span`}},setup(e){return(t,n)=>(z(),V(F(Oy),{as:e.as,"as-child":e.asChild,"data-soybean-visually-hidden":``,"aria-hidden":e.feature===`focusable`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,top:`-1px`,left:`-1px`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,border:`0`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,"clip-path":`inset(50%)`,"white-space":`nowrap`,"word-wrap":`normal`}},{default:I(()=>[R(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),wS=L({name:`VisuallyHiddenInputBubble`,__name:`visually-hidden-input-bubble`,props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:`fully-hidden`}},setup(e){let t=e,[n,r]=um();return Gn(G(()=>t.checked??t.value),(e,t)=>{let r=n.value;if(!r||e===t)return;let i=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(i,`value`)?.set;if(!a)return;let o=new Event(`input`,{bubbles:!0}),s=new Event(`change`,{bubbles:!0});a.call(r,e),r.dispatchEvent(o),r.dispatchEvent(s)}),(t,n)=>(z(),V(CS,{ref:F(r),as:`input`,"data-soybean-visually-hidden-input-bubble":``,feature:e.feature,name:e.name,value:e.value,checked:e.checked,required:e.required,disabled:e.disabled},null,8,[`feature`,`name`,`value`,`checked`,`required`,`disabled`]))}}),TS=L({name:`VisuallyHiddenInput`,inheritAttrs:!1,__name:`visually-hidden-input`,props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:`fully-hidden`}},setup(e){let t=e,n=ti(),r=G(()=>{let{value:e,name:n}=t;return rf(n,e)}),i=G(()=>t.required&&Vl(t.value)&&t.value.length===0);return(a,o)=>(z(),B(pa,null,[ja(` We render single input if it's required `),i.value?(z(),V(wS,W({key:e.name},{...t,...F(n)},{"data-soybean-visually-hidden-input":``,name:e.name,value:e.value}),null,16,[`name`,`value`])):(z(!0),B(pa,{key:1},Kr(r.value,e=>(z(),V(wS,W({key:e.name},{ref_for:!0},{...t,...F(n)},{"data-soybean-visually-hidden-input":``,name:e.name,value:e.value}),null,16,[`name`,`value`]))),128))],2112))}}),ES=[`aria-disabled`,`data-disabled`,`data-readonly`,`disabled`,`readonly`,`value`],DS=L({name:`InputControl`,__name:`input-control`,setup(e){let{modelValue:t,disabled:n,readonly:r,inputAttrs:i}=Gx(`InputControl`),a=qx(`control`),o=e=>{t.value=e.target.value};return(e,s)=>(z(),B(`input`,W(F(i),{"data-soybean-input-control":``,class:F(a),"aria-disabled":F(n)??void 0,"aria-roledescription":`Input`,autocorrect:`off`,"data-disabled":F(n)?``:void 0,"data-readonly":F(r)?``:void 0,disabled:F(n),readonly:F(r),spellcheck:`false`,tabindex:`0`,value:F(t),onInput:o}),null,16,ES))}}),OS=[`data-disabled`,`data-readonly`],kS=L({name:`InputRoot`,inheritAttrs:!1,__name:`input-root`,props:{defaultValue:{},modelValue:{default:void 0},disabled:{type:Boolean},readonly:{type:Boolean},rootProps:{},name:{},required:{type:Boolean},id:{},autofocus:{type:Boolean},autocomplete:{},maxlength:{},minlength:{},pattern:{},placeholder:{},type:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=ti(),[a,o]=um(),s=qx(`root`),c=jm(()=>n.modelValue,e=>{r(`update:modelValue`,e)},n.defaultValue??``),l=G(()=>Ef(a.value)),u=G(()=>({...i,id:n.id,name:n.name,required:n.required,disabled:n.disabled,readonly:n.readonly,autofocus:n.autofocus,autocomplete:n.autocomplete,maxlength:n.maxlength,minlength:n.minlength,pattern:n.pattern,placeholder:n.placeholder,type:n.type})),d=()=>{n.disabled||n.readonly||(c.value=``)};return Wx({...Tf(n,[`disabled`,`readonly`]),modelValue:c,onClear:d,inputAttrs:u}),(t,n)=>(z(),B(`div`,W({ref:F(o)},e.rootProps,{"data-soybean-input-root":``,class:F(s),role:`group`,"data-disabled":e.disabled?``:void 0,"data-readonly":e.readonly?``:void 0}),[R(t.$slots,`default`,{modelValue:F(c),clear:d}),l.value&&e.name?(z(),V(TS,{key:0,type:`text`,value:F(c),name:e.name,disabled:e.disabled,readonly:e.readonly,required:e.required},null,8,[`value`,`name`,`disabled`,`readonly`,`required`])):ja(`v-if`,!0)],16,OS))}}),AS=L({name:`InputClear`,__name:`input-clear`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`clear`],setup(e,{emit:t}){let n=e,r=t,i=qx(`clear`),{disabled:a,readonly:o,onClear:s}=Gx(`InputClear`),c=G(()=>n.disabled||a.value||o.value||!1),l=e=>{r(`clear`,e),s?.()};return(e,t)=>(z(),V(jy,W(n,{"data-soybean-input-clearable":``,class:F(i),disabled:c.value,onClick:l}),{default:I(()=>[R(e.$slots,`default`,{},()=>[U(My,{icon:`lucide:x`})])]),_:3},16,[`class`,`disabled`]))}}),jS=L({name:`InputCompact`,__name:`input-compact`,props:{inputRef:{type:Function},clearable:{type:Boolean},controlProps:{},clearProps:{},defaultValue:{},modelValue:{},disabled:{type:Boolean},readonly:{type:Boolean},rootProps:{},name:{},required:{type:Boolean},id:{},autofocus:{type:Boolean},autocomplete:{},maxlength:{},minlength:{},pattern:{},placeholder:{},type:{}},emits:[`update:modelValue`,`clear`],setup(e,{emit:t}){let n=e,r=t,i=fy(n,[`inputRef`,`clearable`,`controlProps`,`clearProps`]),[a,o]=um(e=>n.inputRef?.(e));return(t,n)=>(z(),V(kS,W(F(i),{"onUpdate:modelValue":n[1]||=e=>r(`update:modelValue`,e)}),{default:I(({clear:i,modelValue:a})=>[R(t.$slots,`leading`,{clear:i,modelValue:a}),U(DS,W(e.controlProps,{ref:F(o)}),null,16),e.clearable?R(t.$slots,`clear`,{key:0,clear:i,modelValue:a},()=>[U(AS,W(e.clearProps,{onClear:n[0]||=e=>r(`clear`,e)}),null,16)]):ja(`v-if`,!0),R(t.$slots,`trailing`,{clear:i,modelValue:a})]),_:3},16))}});typeof window>`u`||`onscrollend`in window;var[MS,NS]=X(`AutocompleteRoot`),[PS,FS]=Z(`AutocompleteUi`,e=>(gS(e),e)),IS=Y({slots:{root:`relative inline-block`,content:`absolute flex justify-center items-center leading-relaxed whitespace-nowrap rounded-full transform`},variants:{color:{primary:{content:`bg-primary text-primary-foreground`},destructive:{content:`bg-destructive text-destructive-foreground`},success:{content:`bg-success text-success-foreground`},warning:{content:`bg-warning text-warning-foreground`},info:{content:`bg-info text-info-foreground`},carbon:{content:`bg-carbon text-carbon-foreground`},secondary:{content:`bg-secondary text-secondary-foreground`},accent:{content:`bg-accent text-accent-foreground`}},size:{xs:{content:`min-h-2 px-1 text-4xs`},sm:{content:`min-h-2.5 px-1.25 text-3xs`},md:{content:`min-h-3 px-1.5 text-2xs`},lg:{content:`min-h-3.5 px-1.75 text-xs`},xl:{content:`min-h-4 px-2 text-sm`},"2xl":{content:`min-h-5 px-2.5 text-base`}},position:{"top-right":{content:`end-0 top-0 translate-x-1/2 -translate-y-1/2 rtl:-translate-x-1/2`},"bottom-right":{content:`end-0 bottom-0 translate-x-1/2 translate-y-1/2 rtl:-translate-x-1/2`},"top-left":{content:`start-0 top-0 -translate-x-1/2 -translate-y-1/2 rtl:translate-x-1/2`},"bottom-left":{content:`start-0 bottom-0 -translate-x-1/2 translate-y-1/2 rtl:translate-x-1/2`}}},defaultVariants:{color:`primary`,size:`md`,position:`top-right`}}),[LS,RS]=X(`BadgeRoot`),[zS,BS]=Z(`BadgeUi`),VS=Y({extendBase:e=>({close:Hy({size:e.size}),cancel:Vy({size:e.size,variant:`pure`}),confirm:Vy({size:e.size})}),slots:{overlay:[`fixed inset-0 z-50 bg-black/80`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`],popup:[`group fixed start-1/2 top-1/2 z-50 flex flex-col w-max lt-sm:w-full border bg-background shadow-lg outline-none duration-200 rounded-lg`,`-translate-x-1/2 -translate-y-1/2 [&[dir=rtl]]:translate-x-1/2`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2`],header:`flex flex-col lt-sm:text-center`,title:`flex items-center font-semibold leading-none tracking-tight m-0`,icon:`group-data-[type=info]:text-info group-data-[type=success]:text-success group-data-[type=warning]:text-warning group-data-[type=error]:text-destructive`,description:`text-muted-foreground m-0`,close:`absolute`,content:`grow overflow-auto`,footer:`flex justify-end lt-sm:flex-col-reverse`,cancel:``,confirm:``},variants:{size:{xs:{popup:`gap-y-1.5 min-w-xs max-w-3xl px-2 py-1.5 text-2xs`,header:`gap-y-1.5`,title:`gap-x-1.5 text-xs`,description:`text-2xs`,close:`end-1.5 top-1.5`,footer:`gap-1.5`},sm:{popup:`gap-y-2 min-w-sm max-w-4xl px-3 py-2 text-xs`,header:`gap-y-2`,title:`gap-x-1.75 text-sm`,description:`text-xs`,close:`end-1.75 top-1.75`,footer:`gap-2`},md:{popup:`gap-y-3 min-w-md max-w-5xl px-4 py-3 text-sm`,header:`gap-y-3`,title:`gap-x-2 text-base`,description:`text-sm`,close:`end-2 top-2`,footer:`gap-3`},lg:{popup:`gap-y-4 min-w-lg max-w-6xl px-5 py-4 text-base`,header:`gap-y-4`,title:`gap-x-2.5 text-lg`,description:`text-base`,close:`end-2.5 top-2.5`,footer:`gap-4`},xl:{popup:`gap-y-5 min-w-xl max-w-7xl px-6 py-5 text-lg`,header:`gap-y-5`,title:`gap-x-3 text-xl`,description:`text-lg`,close:`end-3 top-3`,footer:`gap-5`},"2xl":{popup:`gap-y-6 min-w-2xl max-w-7xl px-7 py-6 text-xl`,header:`gap-y-6`,title:`gap-x-3.5 text-2xl`,description:`text-xl`,close:`end-4 top-4`,footer:`gap-6`}},pure:{true:{popup:`p-0 gap-0 border-none`}}},defaultVariants:{size:`md`}}),HS=Y({extend:[VS],extendIgnore:[`popup`],slots:{popup:[`fixed z-50 flex flex-col justify-between items-stretch border bg-background outline-none transition ease-in-out`,`data-[state=open]:animate-in data-[state=open]:duration-500`,`data-[state=closed]:animate-out data-[state=closed]:duration-300`]},variants:{size:{xs:{popup:`gap-y-1.5 px-2 py-1.5 text-2xs`},sm:{popup:`gap-y-2 px-3 py-2 text-xs`},md:{popup:`gap-y-3 px-4 py-3 text-sm`},lg:{popup:`gap-y-4 px-5 py-4 text-base`},xl:{popup:`gap-y-5 px-6 py-5 text-lg`},"2xl":{popup:`gap-y-6 px-7 py-6 text-xl`}},side:{top:{popup:`inset-x-0 top-0 border-b rounded-b-md data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top`},bottom:{popup:`inset-x-0 bottom-0 border-t rounded-t-md data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom`},left:{popup:[`inset-y-0 start-0 h-full sm:max-w-sm w-3/4 border-e rounded-e-md`,`data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left`,`[&[dir=rtl]]:data-[state=open]:slide-in-from-right [&[dir=rtl]]:data-[state=closed]:slide-out-to-right`]},right:{popup:[`inset-y-0 end-0 h-full sm:max-w-sm w-3/4 border-s rounded-s-md`,`data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right`,`[&[dir=rtl]]:data-[state=open]:slide-in-from-left [&[dir=rtl]]:data-[state=closed]:slide-out-to-left`]}}},defaultVariants:{size:`md`,side:`right`}});Y({extend:[HS],slots:{handle:`mx-auto shrink-0 cursor-grab active:cursor-grabbing rounded-full bg-muted`},variants:{size:{xs:{handle:`mt-0.625 h-1.5 w-20`},sm:{handle:`mt-0.75 h-1.75 w-22`},md:{handle:`mt-1 h-2 w-25`},lg:{handle:`mt-1.25 h-2.5 w-30`},xl:{handle:`mt-1.5 h-3 w-35`},"2xl":{handle:`mt-1.75 h-3.5 w-40`}}},defaultVariants:{size:`md`,side:`bottom`}});var[US,WS]=X(`DialogRoot`,e=>{let[t,n]=um(),[r,i]=um(),[a,o]=um(),[s,c]=um(),{open:l}=e,u=e=>{l.value=e},d=()=>{l.value=!l.value},f=G(()=>$l(l.value)),p=P(``),m=`soybean-dialog-popup-${gr()}`,h=()=>{p.value||=m},g=P(``),_=`soybean-dialog-title-${gr()}`,v=()=>{g.value||=_},y=P(``),b=`soybean-dialog-description-${gr()}`,x=()=>{y.value||=b},S=async()=>{await Tn(),s.value?.focus({preventScroll:!0})};return{...e,onOpenChange:u,onOpenToggle:d,dataState:f,overlayElement:t,setOverlayElement:n,triggerElement:r,setTriggerElement:i,popupElement:a,setPopupElement:o,cancelElement:s,setCancelElement:c,popupId:p,initPopupId:h,titleId:g,initTitleId:v,descriptionId:y,initDescriptionId:x,focusCancel:S}}),[GS,KS]=X(`DialogProvider`,e=>{let{dialogs:t}=e;return{dialogs:t,getCurrentDialog:e=>t.value.find(t=>String(t.id)===String(e))}}),[qS,JS]=X(`DialogCompact`,e=>{let{dialog:t}=e;return{dialog:t}}),[YS,XS]=Z(`DialogUi`),ZS=(e=>{if(!e)return XS();let t=JS(),n=XS(e);return G(()=>{let r=t?.dialog?.value?.ui?.[e];return[n.value,r].filter(Boolean).join(` `)})}),QS=L({name:`DialogCancel`,__name:`dialog-cancel`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},emits:[`cancel`],setup(e,{emit:t}){let n=e,r=t,i=ZS(`cancel`),{setCancelElement:a,onOpenChange:o}=WS(`DialogCancel`),s=async e=>{r(`cancel`,e),o(!1)};return(e,t)=>(z(),V(jy,W({ref:F(a)},n,{"data-soybean-dialog-cancel":``,class:F(i),onClick:s}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16,[`class`]))}}),$S=L({name:`DialogClose`,__name:`dialog-close`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ZS(`close`),{onOpenChange:a}=WS(`DialogClose`),o=async e=>{r(`close`,e),a(!1)};return(e,t)=>(z(),V(jy,W(n,{"data-soybean-dialog-close":``,class:F(i),onClick:o}),{default:I(()=>[R(e.$slots,`default`,{},()=>[U(My,{icon:`lucide:x`})])]),_:3},16,[`class`]))}}),eC=L({name:`DialogConfirm`,__name:`dialog-confirm`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},emits:[`confirm`],setup(e,{emit:t}){let n=e,r=t,i=ZS(`confirm`),{onOpenChange:a}=WS(`DialogConfirm`),o=async e=>{r(`confirm`,e),a(!1)};return(e,t)=>(z(),V(jy,W(n,{"data-soybean-dialog-confirm":``,class:F(i),onClick:o}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16,[`class`]))}}),tC=L({name:`DialogContent`,__name:`dialog-content`,setup(e){let t=ZS(`content`);return(e,n)=>(z(),B(`div`,{"data-soybean-dialog-content":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),nC=[`id`],rC=L({name:`DialogDescription`,__name:`dialog-description`,setup(e){let{descriptionId:t,initDescriptionId:n}=WS(`DialogDescription`),r=ZS(`description`);return n(),(e,n)=>(z(),B(`p`,{id:F(t),"data-soybean-dialog-description":``,class:j(F(r))},[R(e.$slots,`default`)],10,nC))}}),iC=L({name:`DialogFooter`,__name:`dialog-footer`,setup(e){let t=ZS(`footer`);return(e,n)=>(z(),B(`div`,{"data-soybean-dialog-footer":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),aC=L({name:`DialogHeader`,__name:`dialog-header`,setup(e){let t=ZS(`header`);return(e,n)=>(z(),B(`div`,{"data-soybean-dialog-header":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),oC=[`id`],sC=L({name:`DialogTitle`,__name:`dialog-title`,setup(e){let{titleId:t,initTitleId:n}=WS(`DialogTitle`),r=ZS(`title`);return n(),(e,n)=>(z(),B(`h2`,{id:F(t),"data-soybean-dialog-title":``,class:j(F(r))},[R(e.$slots,`default`)],10,oC))}}),cC=L({name:`DialogTrigger`,__name:`dialog-trigger`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,{open:i,onOpenToggle:a,dataState:o,popupId:s,setTriggerElement:c}=WS(`DialogTrigger`),l=e=>{r(`click`,e),a()};return(e,t)=>(z(),V(jy,W(n,{ref:F(c),"data-soybean-dialog-trigger":``,"aria-haspopup":`dialog`,"aria-expanded":F(i)||!1,"aria-controls":F(i)?F(s):void 0,"data-state":F(o),onClick:l}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16,[`aria-expanded`,`aria-controls`,`data-state`]))}}),lC=[`data-state`],uC=L({name:`DialogOverlay`,__name:`dialog-overlay`,props:{forceMount:{type:Boolean}},setup(e){let t=e,{overlayElement:n,setOverlayElement:r,open:i,dataState:a}=WS(`DialogOverlay`),o=ZS(`overlay`),s=t.forceMount?P(!0):uy(n,i);return Un(()=>{s.value&&i.value&&dn(_m())}),(e,t)=>F(s)?(z(),B(`div`,{key:0,ref:F(r),"data-soybean-dialog-overlay":``,class:j(F(o)),"data-state":F(a),style:{"pointer-events":`auto`}},[R(e.$slots,`default`)],10,lC)):ja(`v-if`,!0)}}),dC=L({name:`DialogPopupImpl`,__name:`dialog-popup-impl`,props:{trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{dir:i,modal:a,isAlert:o,alertType:s,onOpenChange:c,setTriggerElement:l,popupElement:u,setPopupElement:d,popupId:f,initPopupId:p,dataState:m,titleId:h,descriptionId:g,focusCancel:_}=WS(`DialogPopupImpl`),{pointerEvents:v}=zm(u,{disableOutsidePointerEvents:()=>n.disableOutsidePointerEvents,onEscapeKeyDown:e=>{r(`escapeKeyDown`,e)},onPointerDownOutside:e=>{r(`pointerDownOutside`,e)},onFocusOutside:e=>{r(`focusOutside`,e)},onInteractOutside:e=>{r(`interactOutside`,e)},onDismiss:()=>{c(!1)}}),{onKeydown:y}=Zg(u,{trapped:()=>n.trapFocus,loop:!0,onOpenAutoFocus:e=>{o.value&&_(),r(`openAutoFocus`,e)},onCloseAutoFocus:e=>{r(`closeAutoFocus`,e)}}),b=fy(n,[`trapFocus`,`disableOutsidePointerEvents`]),x=ZS(`popup`),S=G(()=>({pointerEvents:v.value})),C=()=>{let e=sf();e!==document.body&&l(e)};return Gg(),oy(u,a),p(),Mr(()=>{C()}),(e,t)=>(z(),V(F(Oy),W(F(b),{id:F(f),ref:F(d),class:F(x),dir:F(i),"aria-labelledby":F(h),"aria-describedby":F(g),"data-dismissable-layer":``,"data-state":F(m),"data-type":F(o)?F(s):void 0,role:F(o)?`alertdialog`:`dialog`,"aria-live":F(o)?F(s)===`error`?`assertive`:`polite`:void 0,tabindex:`-1`,style:S.value,onKeydown:F(y)}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16,[`id`,`class`,`dir`,`aria-labelledby`,`aria-describedby`,`data-state`,`data-type`,`role`,`aria-live`,`style`,`onKeydown`]))}}),fC=L({name:`DialogPopup`,__name:`dialog-popup`,props:{asChild:{type:Boolean},as:{},forceMount:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=fy(n,[`forceMount`]),a=$g(r),{popupElement:o,open:s,modal:c,isAlert:l,triggerElement:u}=WS(`DialogPopup`),d=n.forceMount?P(!0):uy(o,s),f=G(()=>c.value&&s.value),{onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onCloseAutoFocus:g}=cy({modal:c,triggerElement:u}),_=e=>{l.value&&e.preventDefault(),p(e)},v=e=>{l.value&&e.preventDefault(),h(e)};return(e,t)=>F(d)?(z(),V(dC,W({key:0},F(i),{"data-soybean-dialog-popup":``,"trap-focus":f.value,"disable-outside-pointer-events":F(c)},Yr(F(a)),{onPointerDownOutside:_,onFocusOutside:F(m),onInteractOutside:v,onCloseAutoFocus:F(g)}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`,`onFocusOutside`,`onCloseAutoFocus`])):ja(`v-if`,!0)}}),pC=L({name:`DialogRoot`,inheritAttrs:!1,__name:`dialog-root`,props:{dir:{},isAlert:{type:Boolean},alertType:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=jm(()=>n.open,e=>{r(`update:open`,e)},n.defaultOpen??!1),{onOpenChange:a}=US({dir:sm(()=>n.dir),open:i,modal:G(()=>n.isAlert===!0||n.modal),...Tf(n,[`isAlert`,`alertType`])}),o=()=>{a(!1)};return(e,t)=>R(e.$slots,`default`,{open:F(i),close:o})}}),mC=L({name:`DialogCompact`,__name:`dialog-compact`,props:{title:{},description:{},icon:{},showClose:{type:Boolean,default:!0},pure:{type:Boolean},showCancel:{type:[String,Boolean],default:`onlyWarning`},cancelText:{},showConfirm:{type:Boolean,default:!0},confirmText:{},triggerProps:{},overlayProps:{},portalProps:{},popupProps:{},headerProps:{},contentProps:{},footerProps:{},titleProps:{},descriptionProps:{},closeProps:{},cancelProps:{},confirmProps:{},dir:{},isAlert:{type:Boolean},alertType:{default:`default`},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean,default:!0}},emits:[`update:open`,`click`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`close`,`confirm`,`cancel`],setup(e,{emit:t}){let n=e,r=fy(n,[`title`,`description`,`icon`,`showClose`,`pure`,`showCancel`,`cancelText`,`showConfirm`,`confirmText`,`triggerProps`,`overlayProps`,`portalProps`,`popupProps`,`headerProps`,`contentProps`,`footerProps`,`titleProps`,`descriptionProps`,`closeProps`,`cancelProps`,`confirmProps`]),i=t,a=ei(),o=ti(),s=$g(i),c=lm(),l=KS(),u=G(()=>l?.getCurrentDialog(o[`data-dialog-id`])),d=G(()=>[ZS().value?.icon,u.value?.ui?.icon].filter(Boolean).join(` `)),f=G(()=>({...n.triggerProps,asChild:n.triggerProps?.asChild??!0})),p={default:null,info:`lucide:info`,warning:`lucide:circle-alert`,error:`lucide:circle-x`,success:`lucide:circle-check`},m=G(()=>n.icon?n.icon:n.isAlert&&n.alertType?p[n.alertType]:null),h=G(()=>n.showConfirm??n.isAlert),g=G(()=>typeof n.showCancel==`boolean`?n.showCancel:n.isAlert===!0&&n.alertType===`warning`),_=G(()=>n.pure?!1:a.footer?!0:g.value||h.value),v=G(()=>n.cancelText??c.value.dialog.cancel),y=G(()=>n.confirmText??c.value.dialog.confirm);return qS({dialog:u}),(t,n)=>(z(),V(pC,W(F(r),{"onUpdate:open":n[4]||=e=>i(`update:open`,e)}),{default:I(r=>[U(cC,M(Oa(f.value)),{default:I(()=>[R(t.$slots,`trigger`,M(Oa(r)))]),_:2},1040),U(dS,M(Oa(e.portalProps)),{default:I(()=>[U(uC,M(Oa(e.overlayProps)),null,16),U(fC,W(e.popupProps,Yr(F(s))),{default:I(()=>[e.pure?ja(`v-if`,!0):(z(),V(aC,M(W({key:0},e.headerProps)),{default:I(()=>[U(sC,M(Oa(e.titleProps)),{default:I(()=>[m.value?(z(),V(My,{key:0,icon:m.value,class:j(d.value)},null,8,[`icon`,`class`])):ja(`v-if`,!0),R(t.$slots,`title`,M(Oa(r)),()=>[H(`span`,null,N(e.title),1)])]),_:2},1040),a.description||e.description?(z(),V(rC,M(W({key:0},e.descriptionProps)),{default:I(()=>[R(t.$slots,`description`,M(Oa(r)),()=>[Aa(N(e.description),1)])]),_:2},1040)):ja(`v-if`,!0),!e.isAlert&&e.showClose?(z(),V($S,{key:1,onClose:n[0]||=e=>i(`close`,e)},{default:I(()=>[R(t.$slots,`close`,M(Oa(r)))]),_:2},1024)):ja(`v-if`,!0)]),_:2},1040)),U(tC,M(Oa(e.contentProps)),{default:I(()=>[R(t.$slots,`default`,M(Oa(r)))]),_:2},1040),e.pure&&!e.isAlert&&e.showClose?(z(),V($S,{key:1,onClose:n[1]||=e=>i(`close`,e)},{default:I(()=>[R(t.$slots,`close`,M(Oa(r)))]),_:2},1024)):ja(`v-if`,!0),_.value?(z(),V(iC,M(W({key:2},e.footerProps)),{default:I(()=>[R(t.$slots,`footer`,M(Oa(r)),()=>[g.value?(z(),V(QS,W({key:0},e.cancelProps,{onCancel:n[2]||=e=>i(`cancel`,e)}),{default:I(()=>[R(t.$slots,`cancel`,M(Oa(r)),()=>[Aa(N(v.value),1)])]),_:2},1040)):ja(`v-if`,!0),h.value?(z(),V(eC,W({key:1},e.confirmProps,{onConfirm:n[3]||=e=>i(`confirm`,e)}),{default:I(()=>[R(t.$slots,`confirm`,M(Oa(r)),()=>[Aa(N(y.value),1)])]),_:2},1040)):ja(`v-if`,!0)])]),_:2},1040)):ja(`v-if`,!0)]),_:2},1040)]),_:2},1040)]),_:3},16))}});function hC(e){"@babel/helpers - typeof";return hC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hC(e)}function gC(e,t){if(hC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _C(e){var t=gC(e,`string`);return hC(t)==`symbol`?t:t+``}function $(e,t,n){return(t=_C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vC=1,yC=new class{constructor(){$(this,`subscribers`,void 0),$(this,`dialogs`,void 0),$(this,`dismissed`,void 0),$(this,`subscribe`,e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>=0&&this.subscribers.splice(t,1)})),$(this,`publish`,e=>{this.subscribers.forEach(t=>t(e))}),$(this,`resetDismissed`,e=>{this.dismissed.has(e)&&this.dismissed.delete(e)}),$(this,`upsert`,e=>{let t=this.dialogs.findIndex(t=>t.id===e.id);if(t<0){this.publish(e),this.dialogs=[...this.dialogs,e];return}let n={...this.dialogs[t],...e};this.publish(n),this.dialogs=this.dialogs.map((e,r)=>r===t?n:e)}),$(this,`create`,e=>{let{open:t=!0,...n}=e,r=xC(e.id),i={...n,id:r,open:t};return this.upsert(i),r}),$(this,`dismiss`,e=>{if(e!==void 0)return this.dismissed.add(e),requestAnimationFrame(()=>this.publish({id:e,open:!1})),e;this.dialogs.forEach(e=>{this.dismissed.add(e.id),this.publish({id:e.id,open:!1})})}),$(this,`message`,(e,t)=>this.create({...t,title:e,type:`default`})),$(this,`error`,(e,t)=>this.create({...t,title:e,type:`error`})),$(this,`success`,(e,t)=>this.create({...t,title:e,type:`success`})),$(this,`info`,(e,t)=>this.create({...t,title:e,type:`info`})),$(this,`warning`,(e,t)=>this.create({...t,title:e,type:`warning`})),$(this,`getDialogs`,()=>this.dialogs.filter(e=>!this.dismissed.has(e.id))),$(this,`activeDialogs`,()=>(this.dialogs=this.getDialogs(),this.dismissed.clear(),this.dialogs)),this.subscribers=[],this.dialogs=[],this.dismissed=new Set}},bC=yC.message;Object.assign(bC,{success:yC.success,error:yC.error,info:yC.info,warning:yC.warning,getHistory:()=>yC.dialogs,getDialogs:()=>yC.getDialogs()});function xC(e){return typeof e==`number`||typeof e==`string`&&e.length>0?e:vC++}var SC=L({name:`DynamicRender`,inheritAttrs:!1,__name:`dynamic-render`,props:{is:{}},setup(e){let t=ti();return(n,r)=>typeof e.is==`string`?(z(),B(pa,{key:0},[Aa(N(e.is),1)],64)):(z(),V(Ur(e.is),M(W({key:1},F(t))),null,16))}}),CC=L({name:`DialogProvider`,inheritAttrs:!1,__name:`dialog-provider`,setup(e){let t=P([]),n=e=>{let n=t.value.findIndex(t=>t.id===e.id);if(n!==-1){let r=Object.assign({},t.value[n],e);t.value=[...t.value.slice(0,n),r,...t.value.slice(n+1)];return}t.value=[e,...t.value]},r=e=>{e.onDismiss?.(e),yC.dismiss(e.id)},i=(e,t)=>{e.onCancel?.(t),!t.defaultPrevented&&r(e)},a=(e,t)=>{e.onConfirm?.(t),!t.defaultPrevented&&r(e)};return GS({dialogs:t}),Un(()=>{let e=yC.subscribe(e=>{Tn(()=>{n(e)}),e.open===!1&&setTimeout(()=>{t.value=yC.activeDialogs()},500)});dn(()=>{e()})},{flush:`post`}),(e,n)=>(z(),B(pa,null,[(z(!0),B(pa,null,Kr(t.value,e=>(z(),V(mC,{key:e.id,open:e.open,"is-alert":``,"alert-type":e.type,"data-dialog-id":e.id,icon:e.icon,onClose:t=>r(e),onCancel:t=>i(e,t),onConfirm:t=>a(e,t)},qr({default:I(()=>[e.content?(z(),V(Ur(e.content),{key:0})):ja(`v-if`,!0)]),_:2},[e.title?{name:`title`,fn:I(()=>[U(SC,{is:e.title},null,8,[`is`])]),key:`0`}:void 0,e.description?{name:`description`,fn:I(()=>[U(SC,{is:e.description},null,8,[`is`])]),key:`1`}:void 0,e.footer?{name:`footer`,fn:I(()=>[U(SC,{is:e.footer},null,8,[`is`])]),key:`2`}:void 0,e.cancelText?{name:`cancel`,fn:I(()=>[U(SC,{is:e.cancelText},null,8,[`is`])]),key:`3`}:void 0,e.confirmText?{name:`confirm`,fn:I(()=>[U(SC,{is:e.confirmText},null,8,[`is`])]),key:`4`}:void 0]),1032,[`open`,`alert-type`,`data-dialog-id`,`icon`,`onClose`,`onCancel`,`onConfirm`]))),128)),R(e.$slots,`default`)],64))}}),wC=`soybean-bottom-sheet-dragging`,TC=`data-soybean-bottom-sheet-scale`,EC={DURATION:.5,EASE:[.32,.72,0,1]},DC=new WeakMap;function OC(e,t,n=!1){if(!e||!(e instanceof HTMLElement)||!t)return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&DC.set(e,r)}function kC(e,t){if(!e||!(e instanceof HTMLElement))return;let n=DC.get(e);n&&(t?e.style[t]=n[t]:Object.entries(n).forEach(([t,n])=>{e.style[t]=n}))}function AC(e,t){let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r?.match(/^matrix3d\((.+)\)$/);return i?Number.parseFloat(i[1].split(`, `)[MC(t)?13:12]):(i=r?.match(/^matrix\((.+)\)$/),i?Number.parseFloat(i[1].split(`, `)[MC(t)?5:4]):null)}function jC(e){return 8*(Math.log(e+1)-2)}function MC(e){return e===`top`||e===`bottom`}function NC({activeSnapPoint:e,snapPoints:t,drawerRef:n,overlayRef:r,fadeFromIndex:i,onSnapPointChange:a,direction:o}){let s=Zt(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function c(){s.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}Mr(()=>{typeof window<`u`&&window.addEventListener(`resize`,c)}),Fr(()=>{typeof window<`u`&&window.removeEventListener(`resize`,c)});let l=G(()=>(t.value&&e.value===t.value[t.value.length-1])??null),u=G(()=>t.value&&t.value.length>0&&(i?.value||i?.value===0)&&!Number.isNaN(i?.value)&&t.value[i?.value??-1]===e.value||!t.value),d=G(()=>t.value?.findIndex(t=>t===e.value)??null),f=G(()=>t.value?.map(e=>{let t=typeof e==`string`,n=0;if(t&&(n=Number.parseInt(e,10)),MC(o.value)){let r=n;return t||(r=s.value?e*s.value.innerHeight:0),s.value?o.value===`bottom`?s.value.innerHeight-r:-s.value.innerHeight+r:r}let r=n;return t||(r=s.value?e*s.value.innerWidth:0),s.value?o.value===`right`?s.value.innerWidth-r:-s.value.innerWidth+r:r})??[]),p=G(()=>d.value===null?null:f.value?.[d.value]),m=s=>{let c=f.value?.findIndex(e=>e===s)??null;Tn(()=>{a(c,f.value),OC(n.value,{transition:`transform ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`,transform:MC(o.value)?`translate3d(0, ${s}px, 0)`:`translate3d(${s}px, 0, 0)`})}),f.value&&c!==f.value.length-1&&c!==i?.value?OC(r.value,{transition:`opacity ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`,opacity:`0`}):OC(r.value,{transition:`opacity ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`,opacity:`1`}),e.value=c===null?null:t.value?.[c]??null};Gn([e,f,t],()=>{if(e.value!==null&&e.value!==void 0){let n=t.value?.findIndex(t=>t===e.value)??-1;f.value&&n!==-1&&typeof f.value[n]==`number`&&m(f.value[n])}},{immediate:!0});function h(e,n,r,i){return e>2&&!n?(r?i():m(f.value[0]),!0):e>2&&n&&f&&t.value?(m(f.value[t.value.length-1]),!0):!1}function g(e){let{currentPosition:n,velocity:r,draggedDistance:i,isFirst:a,hasDraggedUp:s,dismissible:c,closeDrawer:u}=e,p=f.value?.reduce((e,t)=>Math.abs(t-n).4&&Math.abs(i)0&&l.value){m(f.value[(t.value?.length??0)-1]);return}if(a&&e<0&&c&&u(),d.value===null)return;m(f.value[d.value+e]);return}m(p)}function _({draggedDistance:e,closeDrawer:t,velocity:n,dismissible:a}){if(i===void 0)return;let s=o.value===`bottom`||o.value===`right`?(p.value??0)-e:(p.value??0)+e,c=d.value===(i.value??0)-1,l=d.value===0,u=e>0;c&&OC(r.value,{transition:`opacity ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`}),!h(n,u,a,t)&&g({currentPosition:s,velocity:n,draggedDistance:e,isFirst:l,hasDraggedUp:u,dismissible:a,closeDrawer:t})}function v({draggedDistance:e}){if(p.value===null)return;let t=o.value===`bottom`||o.value===`right`?(p.value??0)-e:(p.value??0)+e;(o.value===`bottom`||o.value===`right`)&&tf.value[f.value.length-1]||OC(n.value,{transform:MC(o.value)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function y(e,n){if(!t||typeof d.value!=`number`||!f.value||i===void 0)return null;let r=d.value===(i.value??0)-1;if(d.value>=(i.value??0)&&n)return 0;if(r&&!n)return 1;if(!u.value&&!r)return null;let a=r?d.value+1:d.value-1,o=r?f.value[a]-f.value[a-1]:f.value[a+1]-f.value[a],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:l,shouldFade:u,getPercentageDragged:y,activeSnapPointIndex:d,onRelease:_,onDrag:v,snapPointsOffset:f}}var[PC,FC]=X(`BottomSheetRoot`,e=>IC(e));function IC(e){let{emitDrag:t,emitRelease:n,emitClose:r,emitOpenChange:i,open:a,dismissible:o,nested:s,modal:c,shouldScaleBackground:l,setBackgroundColorOnScale:u,scrollLockTimeout:d,closeThreshold:f,activeSnapPoint:p,fadeFromIndex:m,direction:h,noBodyStyles:g,handleOnly:_}=e,[v,y]=um(),[b,x]=um(),[S,C]=um(),w=Zt(a.value??!1),T=Zt(!1),E=Zt(!1),ee=Zt(!1),D=Zt(null),te=Zt(null),O=Zt(null),ne=Zt(null),re=Zt(!1),k=Zt(null),ie=Zt(0),ae=Zt(!1),A=G(()=>b.value?.getBoundingClientRect().height||0),oe=G(()=>{let t=e.snapPoints?.value;if(t?.length)return t}),se=G(()=>(oe.value?.length??0)>0),{activeSnapPointIndex:ce,onRelease:le,snapPointsOffset:ue,onDrag:de,shouldFade:fe,getPercentageDragged:j}=NC({snapPoints:oe,activeSnapPoint:p,drawerRef:b,fadeFromIndex:m,overlayRef:v,onSnapPointChange:M,direction:h});function M(e,t){oe.value&&e===t.length-1&&(D.value=new Date)}function pe(){return(window.innerWidth-26)/window.innerWidth}function me(e,t){if(!e)return!1;let n=e,r=window.getSelection()?.toString(),i=b.value?AC(b.value,h.value):null,a=new Date;if(n.hasAttribute(`data-soybean-bottom-sheet-no-drag`)||n.closest(`[data-soybean-bottom-sheet-no-drag]`))return!1;if(h.value===`right`||h.value===`left`)return!0;if(D.value&&a.getTime()-D.value.getTime()<500)return!1;if(i!==null&&(h.value===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(ne.value&&a.getTime()-ne.value.getTime()n.clientHeight){if(n.scrollTop!==0)return ne.value=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function he(e){!o.value&&!oe.value||b.value&&!b.value.contains(e.target)||(E.value=!0,te.value=new Date,e.target.setPointerCapture(e.pointerId),ie.value=MC(h.value)?e.clientY:e.clientX)}function ge(e){if(!b.value||!E.value)return;let n=h.value===`bottom`||h.value===`right`?1:-1,r=(ie.value-(MC(h.value)?e.clientY:e.clientX))*n,i=r>0,a=oe.value&&!o.value&&!i;if(a&&ce.value===0)return;let s=Math.abs(r),c=document.querySelector(`[${TC}]`),u=s/A.value,d=j(s,i);if(d!==null&&(u=d),a&&u>=1||!re.value&&!me(e.target,i))return;if(b?.value?.classList.add(wC),re.value=!0,OC(b.value,{transition:`none`}),OC(v.value,{transition:`none`}),oe.value&&de({draggedDistance:r}),i&&!oe.value){let e=jC(r),t=Math.min(e*-1,0)*n;OC(b.value,{transform:MC(h.value)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`});return}let f=1-u;if((fe.value||m.value&&ce.value===m.value-1)&&(t(u),OC(v.value,{opacity:`${f}`,transition:`none`},!0)),c&&v.value&&l.value){let e=Math.min(pe()+u*(1-pe()),1),t=8-u*8,n=Math.max(0,14-u*14);OC(c,{borderRadius:`${t}px`,transform:MC(h.value)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!oe.value){let e=s*n;OC(b.value,{transform:MC(h.value)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}function _e(){if(!b.value)return;let e=document.querySelector(`[${TC}]`),t=AC(b.value,h.value);OC(b.value,{transform:`translate3d(0, 0, 0)`,transition:`transform ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`}),OC(v.value,{transition:`opacity ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`,opacity:`1`}),l.value&&t&&t>0&&w.value&&OC(e,{borderRadius:`8px`,overflow:`hidden`,...MC(h.value)?{transform:`scale(${pe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${pe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${EC.DURATION}s`,transitionTimingFunction:`cubic-bezier(${EC.EASE.join(`,`)})`},!0)}function ve(e){b.value&&(r(),e||(w.value=!1),window.setTimeout(()=>{oe.value&&(p.value=oe.value[0])},EC.DURATION*1e3))}Un(()=>{if(!w.value&&l.value&&Df){let e=setTimeout(()=>{kC(document.body)},200);return()=>clearTimeout(e)}}),Gn(a,()=>{w.value=a.value,a.value||ve()});function ye(e){if(!E.value||!b.value)return;b.value.classList.remove(wC),re.value=!1,E.value=!1,O.value=new Date;let t=AC(b.value,h.value);if(!me(e.target,!1)||!t||Number.isNaN(t)||te.value===null)return;let r=O.value.getTime()-te.value.getTime(),i=ie.value-(MC(h.value)?e.clientY:e.clientX),a=Math.abs(i)/r;if(a>.05&&(ee.value=!0,window.setTimeout(()=>{ee.value=!1},200)),oe.value){le({draggedDistance:i*(h.value===`bottom`||h.value===`right`?1:-1),closeDrawer:ve,velocity:a,dismissible:o.value}),n(!0);return}if(h.value===`bottom`||h.value===`right`?i>0:i<0){_e(),n(!0);return}if(a>.4){ve(),n(!1);return}if(t>=Math.min(b.value.getBoundingClientRect().height??0,window.innerHeight)*f.value){ve(),n(!1);return}n(!0),_e()}Gn(w,e=>{e&&(D.value=new Date),i(e)},{immediate:!0});function N(e){let t=e?(window.innerWidth-16)/window.innerWidth:1,n=e?-16:0;k.value&&window.clearTimeout(k.value),OC(b.value,{transition:`transform ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`,transform:`scale(${t}) translate3d(0, ${n}px, 0)`}),!e&&b.value&&(k.value=window.setTimeout(()=>{let e=AC(b.value,h.value);OC(b.value,{transition:`none`,transform:MC(h.value)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function be(e){if(e<0)return;let t=MC(h.value)?window.innerHeight:window.innerWidth,n=(t-16)/t,r=n+e*(1-n),i=-16+e*16;OC(b.value,{transform:MC(h.value)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function xe(e){let t=MC(h.value)?window.innerHeight:window.innerWidth,n=e?(t-16)/t:1,r=e?-16:0;e&&OC(b.value,{transition:`transform ${EC.DURATION}s cubic-bezier(${EC.EASE.join(`,`)})`,transform:MC(h.value)?`scale(${n}) translate3d(0, ${r}px, 0)`:`scale(${n}) translate3d(${r}px, 0, 0)`})}return{open:a,isOpen:w,modal:c,keyboardIsOpen:ae,hasBeenOpened:T,drawerRef:b,setDrawerRef:x,drawerHeightRef:A,overlayRef:v,setOverlayRef:y,handleRef:S,setHandleRef:C,isDragging:E,dragStartTime:te,isAllowedToDrag:re,snapPoints:oe,hasSnapPoints:se,activeSnapPoint:p,pointerStart:ie,dismissible:o,snapPointsOffset:ue,direction:h,shouldFade:fe,fadeFromIndex:m,shouldScaleBackground:l,setBackgroundColorOnScale:u,onPress:he,onDrag:ge,onRelease:ye,closeDrawer:ve,onNestedDrag:be,onNestedRelease:xe,onNestedOpenChange:N,emitClose:r,emitDrag:t,emitRelease:n,emitOpenChange:i,nested:s,handleOnly:_,noBodyStyles:g}}var[LC,RC]=Z(`BottomSheet`,e=>(YS(e),e));Y({slots:{root:``,list:`flex flex-wrap items-center my-0 px-0 break-words text-muted-foreground`,item:`inline-flex items-center list-none`,page:`font-normal text-foreground`,separator:`text-muted-foreground flex-shrink-0 list-none`,ellipsis:`flex items-center justify-center`,link:`decoration-none hover:text-foreground transition-colors-200 rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`},variants:{size:{xs:{root:`text-2xs`,list:`gap-2`,item:`gap-1.5`},sm:{root:`text-xs`,list:`gap-2.5`,item:`gap-1.75`},md:{root:`text-sm`,list:`gap-3`,item:`gap-2`},lg:{root:`text-base`,list:`gap-3.5`,item:`gap-2.5`},xl:{root:`text-lg`,list:`gap-4`,item:`gap-3`},"2xl":{root:`text-xl`,list:`gap-4.5`,item:`gap-3.5`}}},defaultVariants:{size:`md`}});var[zC,BC]=Z(`BreadcrumbUi`),[VC,HC]=X(`ButtonGroup`),UC=L({name:`SButton`,__name:`button`,props:{class:{type:[Boolean,null,String,Object,Array]},color:{},size:{},variant:{},shape:{},shadow:{},fitContent:{type:Boolean},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=HC(),a=fy(n,[`class`,`size`,`color`,`variant`,`shape`,`shadow`,`disabled`,`fitContent`]),o=G(()=>{let{size:e,color:t,variant:r,shape:a,shadow:o,fitContent:s}=i||{};return zy({size:n.size||e?.value,color:n.color||t?.value,variant:n.variant||r?.value,shape:n.shape||a?.value,shadow:n.shadow||o?.value,fitContent:n.fitContent||s?.value},n.class)}),s=G(()=>n.disabled||i?.disabled.value);return(e,t)=>(z(),V(F(jy),W(F(a),{class:o.value,disabled:s.value,onClick:t[0]||=e=>r(`click`,e)}),{default:I(()=>[R(e.$slots,`leading`),R(e.$slots,`default`),R(e.$slots,`trailing`)]),_:3},16,[`class`,`disabled`]))}});fl({base:`outline-none cursor-pointer decoration-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`}),Y({slots:{trigger:[`flex items-center justify-between w-full rounded-md border border-input bg-background transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30 focus:ring-3 focus:ring-offset-background focus:ring-primary/30 disabled:pointer-events-none disabled:opacity-50`,`placeholder:text-muted-foreground data-[placeholder]:text-muted-foreground`],triggerIcon:`shrink-0 text-muted-foreground opacity-70`,value:`grow truncate text-start`,positioner:``,popup:[`relative z-50 min-w-32 rounded-md border bg-popover text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],viewport:``,group:``,groupLabel:`font-medium text-muted-foreground`,item:[`relative flex items-center w-full rounded-sm outline-none cursor-pointer select-none`,`focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemText:``,itemIndicator:`ms-auto shrink-0 text-muted-foreground`,separator:`-mx-1 my-1 h-px bg-muted`,scrollUpButton:`flex items-center justify-center cursor-default`,scrollDownButton:`flex items-center justify-center cursor-default`,arrow:`w-1em h-0.5em fill-popover stroke-border`},variants:{size:{xs:{popup:`max-h-70 text-2xs`,trigger:`gap-1 h-6 px-1.5 text-2xs`,viewport:`p-0.75`,item:`gap-1 px-1 py-1`,groupLabel:`p-1 text-3xs`,separator:`-mx-0.75 my-0.375`,scrollUpButton:`py-0.75`,scrollDownButton:`py-0.75`,arrow:`text-3xs`},sm:{popup:`max-h-75 text-xs`,trigger:`gap-1.5 h-7 px-2 text-xs`,viewport:`p-0.875`,item:`gap-1.5 px-1.5 py-1`,separator:`-mx-0.875 my-0.4375`,groupLabel:`p-1.25 text-2xs`,scrollUpButton:`py-0.875`,scrollDownButton:`py-0.875`,arrow:`text-2xs`},md:{popup:`max-h-80 text-sm`,trigger:`gap-2 h-8 px-2.5 text-sm`,viewport:`p-1`,item:`gap-2 px-2 py-1.5`,separator:`-mx-1 my-0.5`,groupLabel:`p-1.75 text-xs`,scrollUpButton:`py-1`,scrollDownButton:`py-1`,arrow:`text-xs`},lg:{popup:`max-h-90 text-base`,trigger:`gap-2.5 h-9 px-3 text-base`,viewport:`p-1.25`,item:`gap-2.5 px-2.5 py-1.5`,separator:`-mx-1.25 my-0.625`,groupLabel:`p-2 text-sm`,scrollUpButton:`py-1.25`,scrollDownButton:`py-1.25`,arrow:`text-sm`},xl:{popup:`max-h-100 text-lg`,trigger:`gap-3 h-10 px-3.5 text-lg`,viewport:`p-1.5`,item:`gap-3 px-3 py-2`,separator:`-mx-1.5 my-0.75`,groupLabel:`p-2.5 text-base`,scrollUpButton:`py-1.5`,scrollDownButton:`py-1.5`,arrow:`text-base`},"2xl":{popup:`max-h-115 text-xl`,trigger:`gap-3.5 h-12 px-4 text-xl`,viewport:`p-1.75`,item:`gap-3.5 px-3.5 py-2.5`,separator:`-mx-1.75 my-0.875`,groupLabel:`p-3 text-lg`,scrollUpButton:`py-1.75`,scrollDownButton:`py-1.75`,arrow:`text-lg`}},position:{popper:{popup:`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,viewport:`h-[--soybean-select-trigger-height] w-full min-w-[--soybean-select-trigger-width]`},"item-aligned":{}}},defaultVariants:{size:`md`,position:`popper`}});var[WC,GC]=X(`SelectRoot`,e=>{let{open:t}=e,n=e=>{t.value=e},r=G(()=>$l(t.value)),i=sm(e.dir),a=P(``),o=`soybean-select-content-${gr()}`,s=()=>{a.value||=o},c=P(),l=e=>{c.value=e},u=P(),d=e=>{u.value=e},f=Zt(new Set),p=G(()=>Array.from(f.value)),m=G(()=>p.value.map(e=>e.value).join(`;`)),h=e=>{f.value.add(e)},g=e=>{f.value.delete(e)},_=P({x:0,y:0}),v=e=>{_.value=e},y=()=>{_.value=null};return{...e,dataState:r,onOpenChange:n,dir:i,contentId:a,initContentId:s,triggerElement:c,onTriggerElementChange:l,valueElement:u,onValueElementChange:d,optionsSet:f,onOptionAdd:h,onOptionRemove:g,options:p,nativeSelectKey:m,triggerPointerDownPosition:_,setTriggerPointerDownPosition:v,resetTriggerPointerDownPosition:y}}),{provideCollectionContext:KC,useCollectionContext:qC,useCollectionItem:JC}=Am(`Select`),[YC,XC]=X(`SelectContent`,e=>{let{modelValue:t,isMultiple:n,popupElement:r}=e,i=P(!1),a=P(),o=e=>{a.value=e},s=!1,c=!1,l=P(),u=(e,n,r)=>{let i=!s&&!r;(ru(t.value,n)||i)&&(l.value=e)},d=P(),f=(e,r,i)=>{let a=!s&&!i,o=ru(t.value,r);if(n.value){if(c)return;(o||a)&&(d.value=e,o&&(c=!0))}else(o||a)&&(d.value=e);a&&(s=!0)},p=()=>{r.value?.focus()};function m(){!d.value||!r.value||pf([d.value,r.value])}return{...e,isPositioned:i,viewportElement:a,onViewportElementChange:o,selectedItemElement:d,onSelectedItemElementChange:f,onItemElementLeave:p,selectedItemTextElement:l,onSelectedItemTextElementChange:u,focusSelectedItem:m}}),[ZC,QC]=X(`SelectGroup`,()=>{let e=P(``),t=`soybean-select-group-label-${gr()}`;return{labelId:e,initLabelId:()=>{e.value||=t}}}),[$C,ew]=X(`SelectItem`,e=>{let t=P(e.textValue.value??``),n=P(),r=e=>{n.value=e,t.value=((t.value||e?.textContent)??``).trim()},i=P(``),a=`soybean-select-item-text-${gr()}`,o=()=>{i.value||=a};return{...e,textId:i,initTextId:o,textValue:t,itemTextElement:n,onItemTextElementChange:r}}),[tw,nw]=X(`SelectPopupElement`,()=>{let e=P();return{popupElement:e,onPopupElementChange:t=>{e.value=t}}}),[rw,iw]=X(`SelectItemAlignedPosition`),[aw,ow]=Z(`SelectUi`,e=>(lS(e),e));Y({extendBase:e=>({prev:Hy({size:e.size,variant:`pure`}),next:Hy({size:e.size,variant:`pure`})}),slots:{root:`inline-flex flex-col rounded-md border shadow-sm`,header:`flex items-center justify-between`,heading:`flex items-center justify-center font-medium`,prev:`rtl:rotate-180`,next:`rtl:rotate-180`,grid:`inline-table border-collapse`,gridHead:``,gridBody:``,gridRow:``,headCell:`rounded-md text-center font-normal text-muted-foreground`,cell:[`flex-1 text-center align-middle`,`focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent`],cellTrigger:[`inline-flex items-center justify-center w-full h-full rounded-md transition-colors cursor-pointer`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-ring focus-visible:ring-primary/30`,`data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:font-medium`,`[&:not([data-selected]):hover]:bg-accent [&:not([data-selected]):hover]:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:text-muted-foreground data-[disabled]:opacity-50`,`[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground`,`data-[unavailable]:line-through data-[outside-view]:text-muted-foreground`]},variants:{size:{xs:{root:`gap-3 text-2xs p-2`,header:`gap-1.5`,gridRow:`mt-1.5`,heading:`gap-1.5`,headCell:`h-6 w-6 text-3xs`,cell:`h-6 w-6`},sm:{root:`gap-3.5 text-xs p-2.5`,header:`gap-2`,gridRow:`mt-1.75`,heading:`gap-2`,headCell:`h-7 w-7 text-2xs`,cell:`h-7 w-7`},md:{root:`gap-4 text-sm p-3`,header:`gap-2.5`,gridRow:`mt-2`,heading:`gap-2.5`,headCell:`h-8 w-8 text-xs`,cell:`h-8 w-8`},lg:{root:`gap-4.5 text-base p-3.5`,header:`gap-3`,gridRow:`mt-2.25`,heading:`gap-3`,headCell:`h-9 w-9 text-sm`,cell:`h-9 w-9`},xl:{root:`gap-5 text-lg p-4`,header:`gap-3.5`,gridRow:`mt-2.5`,heading:`gap-3.5`,headCell:`h-10 w-10 text-base`,cell:`h-10 w-10`},"2xl":{root:`gap-6 text-xl p-5`,header:`gap-4`,gridRow:`mt-3`,heading:`gap-4`,headCell:`h-12 w-12 text-lg`,cell:`h-12 w-12`}}},defaultVariants:{size:`md`}});var[sw,cw]=X(`CalendarRoot`),[lw,uw]=Z(`CalendarUi`),[dw,fw]=X(`CalendarRangeRoot`),[pw,mw]=Z(`CalendarRangeUi`),hw=L({name:`CardRoot`,__name:`card-root`,props:{defaultOpen:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t;return(e,t)=>(z(),V(Ay,W(n,{"data-soybean-card-root":``,"onUpdate:open":t[0]||=e=>r(`update:open`,e)}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16))}}),[gw,_w]=Z(`CardUi`,e=>(_y(e),e)),vw=L({name:`CardHeader`,__name:`card-header`,setup(e){let t=_w(`header`);return(e,n)=>(z(),B(`div`,{"data-soybean-card-header":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),yw=L({name:`CardTitle`,__name:`card-title`,setup(e){let t=_w(`title`);return(e,n)=>(z(),B(`h3`,{"data-soybean-card-title":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),bw=L({name:`CardTitleRoot`,__name:`card-title-root`,setup(e){let t=_w(`titleRoot`);return(e,n)=>(z(),B(`div`,{"data-soybean-card-title-root":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),xw=L({name:`CardDescription`,__name:`card-description`,setup(e){let t=_w(`description`);return(e,n)=>(z(),B(`p`,{"data-soybean-card-description":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),Sw=L({name:`CardContent`,__name:`card-content`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){let t=e;return(e,n)=>(z(),V(ky,W(t,{"data-soybean-card-content":``,tabindex:`-1`}),{default:I(()=>[R(e.$slots,`default`)]),_:3},16))}}),Cw=L({name:`CardFooter`,__name:`card-footer`,setup(e){let t=_w(`footer`);return(e,n)=>(z(),B(`div`,{"data-soybean-card-footer":``,class:j(F(t))},[R(e.$slots,`default`)],2))}}),ww=L({name:`CardCompact`,__name:`card-compact`,props:{title:{},description:{},headerProps:{},contentProps:{},footerProps:{},titleRootProps:{},titleProps:{},descriptionProps:{},defaultOpen:{type:Boolean},open:{type:Boolean},disabled:{type:Boolean},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=ei(),a=fy(n,[`title`,`description`,`headerProps`,`contentProps`,`footerProps`,`titleRootProps`,`titleProps`,`descriptionProps`]),o=$g(r),s=G(()=>!!(i.header||i.title||i.description||i.extra||n.title||n.description)),c=G(()=>!!i.footer);return(t,n)=>(z(),V(hw,W(F(a),{"data-header-visible":s.value,"data-footer-visible":c.value},Yr(F(o))),{default:I(()=>[s.value?(z(),V(vw,M(W({key:0},e.headerProps)),{default:I(()=>[R(t.$slots,`header`,{},()=>[U(bw,M(Oa(e.titleRootProps)),{default:I(()=>[R(t.$slots,`title-leading`),U(yw,M(Oa(e.titleProps)),{default:I(()=>[R(t.$slots,`title`,{},()=>[Aa(N(e.title),1)])]),_:3},16),R(t.$slots,`title-trailing`)]),_:3},16),R(t.$slots,`extra`),i.description||e.description?(z(),V(xw,M(W({key:0},e.descriptionProps)),{default:I(()=>[R(t.$slots,`description`,{},()=>[Aa(N(e.description),1)])]),_:3},16)):ja(`v-if`,!0)])]),_:3},16)):ja(`v-if`,!0),U(Sw,W(e.contentProps,{"data-header-visible":s.value,"data-footer-visible":c.value}),{default:I(()=>[R(t.$slots,`default`)]),_:3},16,[`data-header-visible`,`data-footer-visible`]),c.value?(z(),V(Cw,M(W({key:1},e.footerProps)),{default:I(()=>[R(t.$slots,`footer`)]),_:3},16)):ja(`v-if`,!0)]),_:3},16,[`data-header-visible`,`data-footer-visible`]))}}),[Tw,Ew]=X(`CarouselRoot`,e=>{let t=P(``),n=e=>{t.value=e};return{...e,contentId:t,setContentId:n}}),[Dw,Ow]=Z(`CarouselUi`);function kw(e){return typeof e==`number`}function Aw(e){return typeof e==`string`}function jw(e){return typeof e==`boolean`}function Mw(e){return Object.prototype.toString.call(e)===`[object Object]`}function Nw(e){return Math.abs(e)}function Pw(e){return Math.sign(e)}function Fw(e,t){return Nw(e-t)}function Iw(e,t){return e===0||t===0||Nw(e)<=Nw(t)?0:Nw(Fw(Nw(e),Nw(t))/e)}function Lw(e){return Math.round(e*100)/100}function Rw(e){return Uw(e).map(Number)}function zw(e){return e[Bw(e)]}function Bw(e){return Math.max(0,e.length-1)}function Vw(e,t){return t===Bw(e)}function Hw(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function Uw(e){return Object.keys(e)}function Ww(e,t){return[e,t].reduce((e,t)=>(Uw(t).forEach(n=>{let r=e[n],i=t[n];e[n]=Mw(r)&&Mw(i)?Ww(r,i):i}),e),{})}function Gw(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function Kw(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return Aw(e)?n[e](r):e(t,r,i)}return{measure:o}}function qw(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function Jw(e,t,n,r){let i=qw(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function Yw(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function Xw(e=0,t=0){let n=Nw(e-t);function r(t){return tt}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function Zw(e,t,n){let{constrain:r}=Xw(0,e),i=e+1,a=o(t);function o(e){return n?Nw((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return Zw(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function Qw(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=qw(),w=qw(),T=Xw(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},ee={mouse:500,touch:600},D=m?43:25,te=!1,O=0,ne=0,re=!1,k=!1,ie=!1,ae=!1;function A(e){if(!v)return;function n(t){(jw(v)||v(e,t))&&de(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,j).add(r,`contextmenu`,j).add(r,`click`,M,!0)}function oe(){C.clear(),w.clear()}function se(){let e=ae?n:t;w.add(e,`touchmove`,fe,S).add(e,`touchend`,j).add(e,`mousemove`,fe,S).add(e,`mouseup`,j)}function ce(e){let t=e.nodeName||``;return x.includes(t)}function le(){return(m?ee:E)[ae?`mouse`:`touch`]}function ue(e,t){let n=d.add(Pw(e)*-1),r=u.byDistance(e,!m).distance;return m||Nw(e)=2,!(t&&e.button!==0)&&(ce(e.target)||(re=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),se(),O=a.readPoint(e),ne=a.readPoint(e,y),f.emit(`pointerDown`)))}function fe(e){if(!Gw(e,r)&&e.touches.length>=2)return j(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=Fw(t,O),c=Fw(n,ne);if(!k&&!ae&&(!e.cancelable||(k=o>c,!k)))return j(e);let u=a.pointerMove(e);o>h&&(ie=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function j(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*le(),r=ue(b(n),t),i=Iw(n,r),o=D-10*i,s=_+i/50;k=!1,re=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),ae=!1,f.emit(`pointerUp`)}function M(e){ie&&=(e.stopPropagation(),e.preventDefault(),!1)}function pe(){return re}return{init:A,destroy:oe,pointerDown:pe}}function $w(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(Gw(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&Nw(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function eT(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function tT(e){function t(t){return t/100*e}return{measure:t}}function nT(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(Nw(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(jw(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function rT(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=Pw(a),d=u,x}function p(){return Nw(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function iT(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=Xw(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=Nw(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&Nw(u){let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=Vw(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function oT(e,t,n){let r=t[0];return{limit:Xw(n?r-e:zw(t),r)}}function sT(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=Xw(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function cT(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function lT(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>zw(e)[o]-e[0][a]).map(Nw)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-Nw(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function uT(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=Vw(n,t);return r?Hw(zw(n[0])+1):i?Hw(Bw(a)-zw(n)[0]+1,zw(n)[0]):e})}return{slideRegistry:l}}function dT(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>Nw(e)-Nw(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>Nw(e.diff)-Nw(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>Pw(e)===r);return a.length?c(a):zw(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function fT(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function pT(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));kw(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(jw(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function mT(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return kw(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function hT(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=Lw(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function gT(e,t,n,r,i,a,o,s,c){let l=.5,u=Rw(i),d=Rw(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:mT(-1),translate:hT(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){let e=t-o[0]-1;return g(m(u,e),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function _T(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(jw(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function vT(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return Uw(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function yT(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return Nw(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(zw(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=Vw(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(Nw)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function bT(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=kw(n);function p(e,t){return Rw(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?Rw(e).reduce((n,f,p)=>{let m=zw(n)||0,h=m===0,g=f===Bw(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=Nw(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function xT(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=eT(),w=C.measure(t),T=n.map(C.measure),E=Yw(c,l),ee=E.measureSize(w),D=tT(ee),te=Kw(s,ee),O=!d&&!!v,{slideSizes:ne,slideSizesWithGaps:re,startGap:k,endGap:ie}=yT(E,w,T,n,d||!!v,i),ae=bT(E,ee,g,d,w,T,k,ie,2),{snaps:A,snapsAligned:oe}=lT(E,te,w,T,ae),se=-zw(A)+zw(re),{snapsContained:ce,scrollContainLimit:le}=aT(ee,se,oe,v,2),ue=O?ce:oe,{limit:de}=oT(se,ue,d),fe=Zw(Bw(ue),u,d),j=fe.clone(),M=Rw(n),pe=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},me=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},he=Jw(r,i,()=>pe(ke),e=>me(ke,e)),ge=.68,_e=ue[fe.get()],ve=mT(_e),ye=mT(_e),N=mT(_e),be=mT(_e),xe=rT(ve,N,ye,be,f,ge),Se=dT(d,ue,se,de,be),Ce=fT(he,fe,j,xe,Se,be,o),we=cT(de),Te=qw(),Ee=vT(t,n,o,h),{slideRegistry:De}=uT(O,v,ue,le,ae,M),Oe=pT(e,n,De,Ce,xe,Te,o,S),ke={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:he,axis:E,dragHandler:Qw(E,e,r,i,be,$w(E,i),ve,he,Ce,xe,Se,fe,o,D,p,m,_,ge,x),eventStore:Te,percentOfView:D,index:fe,indexPrevious:j,limit:de,location:ve,offsetLocation:N,previousLocation:ye,options:a,resizeHandler:nT(t,o,i,n,E,y,C),scrollBody:xe,scrollBounds:iT(de,N,be,xe,D),scrollLooper:sT(se,de,N,[ve,N,ye,be]),scrollProgress:we,scrollSnapList:ue.map(we.get),scrollSnaps:ue,scrollTarget:Se,scrollTo:Ce,slideLooper:gT(E,ee,se,ne,re,A,ue,N,n),slideFocus:Oe,slidesHandler:_T(t,o,b),slidesInView:Ee,slideIndexes:M,slideRegistry:De,slidesToScroll:ae,target:be,translate:hT(E,t)};return ke}function ST(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var CT={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function wT(e){function t(e,t){return Ww(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,Uw(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>Uw(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function TT(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function ET(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=wT(i),o=TT(a),s=qw(),c=ST(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=ee,g=!1,_,v=l(CT,ET.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(Aw(t)?e.querySelector(t):t)||e.children[0];let r=Aw(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=xT(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,ee)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(pe),_.eventHandler.init(pe),_.resizeHandler.init(pe),_.slidesHandler.init(pe),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(pe),x=o.init(pe,b)))}function ee(e,t){let n=oe();D(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function D(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function te(){g||(g=!0,s.clear(),D(),c.emit(`destroy`),c.clear())}function O(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function ne(e){O(_.index.add(1).get(),e,-1)}function re(e){O(_.index.add(-1).get(),e,1)}function k(){return _.index.add(1).get()!==oe()}function ie(){return _.index.add(-1).get()!==oe()}function ae(){return _.scrollSnapList}function A(){return _.scrollProgress.get(_.offsetLocation.get())}function oe(){return _.index.get()}function se(){return _.indexPrevious.get()}function ce(){return _.slidesInView.get()}function le(){return _.slidesInView.get(!1)}function ue(){return x}function de(){return _}function fe(){return e}function j(){return S}function M(){return C}let pe={canScrollNext:k,canScrollPrev:ie,containerNode:j,internalEngine:de,destroy:te,off:p,on:f,emit:m,plugins:ue,previousScrollSnap:se,reInit:h,rootNode:fe,scrollNext:ne,scrollPrev:re,scrollProgress:A,scrollSnapList:ae,scrollTo:O,selectedScrollSnap:oe,slideNodes:M,slidesInView:ce,slidesNotInView:le};return E(t,n),setTimeout(()=>c.emit(`init`),0),pe}ET.globalOptions=void 0;function DT(e){return Object.prototype.toString.call(e)===`[object Object]`}function OT(e){return DT(e)||Array.isArray(e)}function kT(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!OT(r)||!OT(i)?r===i:kT(r,i)})}var[AT,jT]=X(`CheckboxGroupRoot`,e=>e),[MT,NT]=X(`CheckboxRoot`,e=>{let{modelValue:t,state:n}=e,r=G(()=>Zl(n.value)?`mixed`:n.value),i=G(()=>e.disabled.value?``:void 0),a=G(()=>Ql(n.value)),o=P(``),s=e=>{o.value=e};return{...e,modelValue:t,state:n,ariaChecked:r,dataDisabled:i,dataState:a,controlId:o,initControlId:s}}),[PT,FT]=Z(`CheckboxUi`),[IT,LT]=Z(`CheckboxCardUi`,e=>(PT(e),e)),RT={bubbles:!1,cancelable:!0},{provideCollectionContext:zT,useCollectionContext:BT,useCollectionItem:VT}=Am(`RovingFocusGroup`),[HT,UT]=X(`RovingFocusGroup`,e=>{let{onContainerElementChange:t,getOrderedItems:n,getOrderedElements:r}=zT(),{loop:i,orientation:a,defaultCurrentTabStopId:o,preventScrollOnEntryFocus:s,onEntryFocus:c,onUpdateCurrentTabStopId:l}=e,u=sm(e.dir),d=jm(()=>e.currentTabStopId.value,l,o.value??``),f=e=>{d.value=e},p=P(!1),m=P(!1),h=()=>{p.value=!0},g=P(0);return{onContainerElementChange:t,loop:i,dir:u,orientation:a,currentTabStopId:d,onItemFocus:f,onItemShiftTab:h,onFocusableItemAdd:()=>{g.value++},onFocusableItemRemove:()=>{g.value--},rovingFocusGroupProps:G(()=>({tabindex:p.value||g.value===0?`-1`:`0`,"data-orientation":a.value,dir:u.value,"data-loop":i.value?``:void 0,style:`outline: none`})),rovingFocusGroupListeners:{mousedown:()=>{m.value=!0},mouseup:()=>{setTimeout(()=>{m.value=!1},1)},focus:e=>{let t=!m.value;if(!e.currentTarget||e.target!==e.currentTarget||!t||p.value){m.value=!1;return}let n=new CustomEvent(`rovingFocusGroup.onEntryFocus`,RT);if(e.currentTarget.dispatchEvent(n),c?.(n),n.defaultPrevented)return;let i=r();pf([i.find(e=>cf(e,`active`)),i.find(e=>cf(e,`highlighted`)),i.find(e=>e.id===d.value),...i].filter(Boolean),s.value)},blur:()=>{p.value=!1}},getOrderedItems:n}}),[WT,GT]=X(`ColorAreaRoot`),[KT,qT]=Z(`ColorAreaUi`),[JT,YT]=X(`ColorFieldRoot`),[XT,ZT]=Z(`ColorFieldUi`),[QT,$T]=X(`SliderRoot`),[eE,tE]=Z(`SliderUi`),[nE,rE]=X(`ColorSliderRoot`),[iE,aE]=Z(`ColorSliderUi`),[oE,sE]=Z(`ColorSwatch`),[cE,lE]=X(`ColorSwatchPickerItem`),[uE,dE]=Z(`ColorSwatchPickerUi`,e=>{let t=G(()=>({content:e.value.root,item:e.value.item,itemIndicator:e.value.itemIndicator})),n=G(()=>({root:e.value.swatchRoot,checker:e.value.swatchChecker,fill:e.value.swatchFill}));return rS(t),oE(n),e}),[fE,pE]=X(`PopoverRoot`,e=>{let{open:t}=e,n=e=>{t.value=e},r=()=>{t.value=!t.value},i=G(()=>$l(t.value)),a=P(),o=e=>{a.value=e},s=P(``),c=`soybean-popover-trigger-${gr()}`,l=()=>{s.value||=c},u=P(),d=e=>{u.value=e},f=P(``),p=`soybean-popover-popup-${gr()}`,m=()=>{f.value||=p},h=P(!1);return{...e,onOpenChange:n,onOpenToggle:r,dataState:i,triggerElement:a,onTriggerElementChange:o,triggerId:s,initTriggerId:l,popupElement:u,onPopupElementChange:d,popupId:f,initPopupId:m,hasCustomAnchor:h}}),[mE,hE]=Z(`Popover`,e=>(lS(e),e)),[gE,_E]=X(`TabsRoot`,e=>{let t=sm(e.dir),n=P(),r=e=>{n.value=e},i=t=>{Hl(t)||(e.modelValue.value=t)},a=Zt([]),o=e=>{a.value.push(e)},s=e=>{let t=a.value.indexOf(e);t!==-1&&a.value.splice(t,1)},c=e=>{let t=en(e),n=G(()=>`soybean-tabs-content-${t}`);return{contentId:n,triggerId:G(()=>`soybean-tabs-trigger-${t}`),existContentId:G(()=>a.value.includes(n.value))}};return{...e,dir:t,changeModelValue:i,listElement:n,onListElementChange:r,getId:c,registerContentId:o,unregisterContentId:s}}),[vE,yE]=Z(`TabsUi`),[bE,xE]=X(`ColorPickerRootContext`),[SE,CE]=Z(`ColorPickerUi`);[`hex`,`rgb`,`hsl`,`oklch`].map(e=>({value:e,label:e.toUpperCase()}));var[wE,TE]=Z(`SeparatorUi`),[EE,DE]=Z(`CommandUi`,e=>(rS(G(()=>({root:e.value?.root,content:e.value?.list,filterRoot:e.value?.inputRoot,filterControl:e.value?.inputControl,item:e.value?.item,itemIndicator:``,group:e.value?.group,groupLabel:e.value?.groupLabel,virtualizer:``}))),e)),OE=L({name:`ConfigProvider`,__name:`config-provider`,props:{dir:{},locale:{default:`en`},nonce:{default:void 0},tooltip:{},iconRender:{},messages:{}},setup(e){let t=e,n=G(()=>t.dir??im(t.locale));return am({...Tf(t),dir:n,iconRender:t.iconRender}),Xv(` +.soybean-headless-scrollbar-hidden { + scrollbar-width: none; + -ms-overflow-style: none; + -webkit-overflow-scrolling: touch; +} + +.soybean-headless-scrollbar-hidden::-webkit-scrollbar { + display: none; +} + +.soybean-headless-overflow-y-hidden { + overflow-y: hidden; +} + +.soybean-headless-transition-all-150 { + transition: all 150ms ease-in-out; +} + +.soybean-headless-opacity-0 { + opacity: 0; +} + +.soybean-headless-scale-0 { + transform: scale(0); +} + +.soybean-headless-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} +`,{id:`__SoybeanHeadless_Styles`}),(e,t)=>R(e.$slots,`default`)}}),[kE,AE]=X(`Menu`,e=>{let{isRoot:t,open:n}=e,r=e=>{n.value=e},i=G(()=>$l(n.value)),a=t?`data-soybean-menu-popup`:`data-soybean-menu-sub-popup`,o=P(),s=e=>{o.value=e},c=P(),l=e=>{c.value=e},u=t?`soybean-menu`:`soybean-menu-sub`,d=P(``),f=`${u}-popup-${gr()}`,p=()=>{d.value||=f},m=P(``),h=`${u}-trigger-${gr()}`,g=()=>{m.value||=h};return{...e,onOpenChange:r,dataState:i,dataPopupAttr:a,popupElement:o,onPopupElementChange:s,triggerElement:c,onTriggerElementChange:l,popupId:d,initPopupId:p,triggerId:m,initTriggerId:g}}),[jE,ME]=X(`MenuRoot`),[NE,PE]=X(`MenuContent`,e=>{let{popupElement:t}=e,n=P(``),r=Zt(null),i=P(0),a=P(`right`),o=Zt(null),s=e=>{o.value=e},c=()=>{o.value=null},l=e=>{let t=a.value===o.value?.side,n=Mf(e,o.value?.area);return t&&n};return{searchRef:n,currentItemId:r,popupElement:t,pointerSide:a,pointerGraceTimer:i,pointerGraceIntent:o,onPointerGraceIntentChange:s,resetPointerGraceIntent:c,onItemEnter:l,onItemLeave:e=>{l(e)||(t.value?.focus(),r.value=null)},onTriggerLeave:l}}),[FE,IE]=X(`MenuCheckboxGroup`,e=>{let{modelValue:t}=e,n=e=>{t.value||=[],t.value.includes(e)?t.value=t.value.filter(t=>t!==e):t.value.push(e)};return{...e,onModelValueChange:n}}),[LE,RE]=X(`MenuRadioGroup`,e=>{let{modelValue:t}=e,n=e=>{t.value=e};return{...e,onModelValueChange:n}}),[zE,BE]=X(`MenuItemIndicator`),[VE,HE]=X(`MenuOptionsCompact`),[UE,WE]=Z(`MenuUi`,e=>(lS(G(()=>({arrow:e.value?.arrow}))),wE(G(()=>({root:e.value?.separator}))),e)),[GE,KE]=X(`MenuSubAttribute`),qE=[`ArrowDown`,`PageUp`,`Home`],JE=[`ArrowUp`,`PageDown`,`End`];[...qE,...JE],[...df],[...df];var[YE,XE]=X(`ContextMenuRoot`,e=>{let{open:t}=e,n=e=>{t.value=e},r=sm(e.dir),i=G(()=>$l(t.value)),a=P(null),o=e=>{a.value=e};return{...e,dir:r,dataState:i,onOpenChange:n,triggerElement:a,onTriggerElementChange:o}}),[ZE,QE]=X(`DateFieldRoot`),[$E,eD]=Z(`DateFieldUi`),[tD,nD]=Z(`DatePickerUi`,e=>(mE(e),$E(e),e)),[rD,iD]=X(`DateRangeFieldRoot`),[aD,oD]=Z(`DateRangeFieldUi`),[sD,cD]=Z(`DateRangePickerUi`,e=>(mE(e),aD(e),e)),lD=`dropdown-menu.hover-open`,[uD,dD]=X(`DropdownMenuRoot`,e=>{let{open:t}=e,n=e=>{t.value=e},r=()=>{t.value=!t.value},i=sm(e.dir),a=G(()=>$l(t.value));return{...e,dir:i,dataState:a,onOpenChange:n,onOpenToggle:r}}),[fD,pD]=X(`DropdownMenuHover`,e=>{let{open:t,hoverable:n,delayDuration:r,skipDelayDuration:i}=e,a=P(!0),o=null,s=()=>{o&&=(clearTimeout(o),null)},c=()=>{s(),o=setTimeout(()=>{a.value=!0},i.value)},l=()=>{s(),a.value=!1},u=P(!1),d=P(!1),f=null,p=()=>{f&&=(clearTimeout(f),null)},m=()=>{p(),f=setTimeout(()=>{d.value=!0,t.value=!0},r.value)},h=()=>{p(),d.value=!1,t.value=!0},g=()=>{p(),t.value=!1},_=()=>{m()},v=()=>{a.value?_():h()},y=()=>{p()};return Un(()=>{n.value&&(t.value?(l(),document.dispatchEvent(new CustomEvent(lD))):c())}),{...e,isOpenDelayed:a,isPointerInTransitRef:u,onOpen:h,onClose:g,onTriggerEnter:v,onTriggerLeave:y}}),[mD,hD]=X(`EditableRoot`,e=>{let{isEditing:t,disabled:n,readonly:r}=e,i=sm(()=>e.dir.value),[a,o]=um(),s=G(()=>n.value?``:void 0),c=G(()=>r.value?``:void 0),l=G(()=>t.value?`edit`:`preview`);return{...e,dir:i,inputElement:a,setInputElement:o,dataDisabled:s,dataReadonly:c,dataState:l}}),[gD,_D]=Z(`EditableUi`),[vD,yD]=Z(`EmptyUi`),[bD,xD]=X(`FormField`,e=>{let{error:t}=e,n=gr(),r=`form-field-${n}`,i=`form-field-description-${n}`,a=`form-field-error-${n}`;return{formFieldId:r,formDescriptionId:i,formErrorId:a,ariaDescribedBy:G(()=>t.value?`${i} ${a}`:i),ariaInvalid:G(()=>!!t.value)}}),[SD,CD]=X(`FormCompact`),[wD,TD]=Z(`FormUi`),[ED,DD]=Z(`FormFieldUi`),OD=new Set,kD=new WeakMap,AD=new WeakMap,jD=new WeakMap,MD=new WeakMap,ND=new WeakMap,PD=new WeakMap,FD=new WeakSet,ID,LD=0,RD=0,zD=`__aa_tgt`,BD=`__aa_del`,VD=`__aa_new`,HD=e=>{let t=XD(e);t&&t.forEach(e=>QD(e))},UD=e=>{e.forEach(e=>{e.target===ID&&qD(),kD.has(e.target)&&KD(e.target)})};function WD(e){let t=e.getBoundingClientRect(),n=ID?.clientWidth||0,r=ID?.clientHeight||0;return t.bottom<0||t.top>r||t.right<0||t.left>n}function GD(e){MD.get(e)?.disconnect();let t=kD.get(e),n=0;t||(t=tO(e),kD.set(e,t));let{offsetWidth:r,offsetHeight:i}=ID,a=[t.top-5,r-(t.left+5+t.width),i-(t.top+5+t.height),t.left-5].map(e=>`${-1*Math.floor(e)}px`).join(` `),o=new IntersectionObserver(()=>{++n>1&&KD(e)},{root:ID,threshold:1,rootMargin:a});o.observe(e),MD.set(e,o)}function KD(e,t=!0){clearTimeout(PD.get(e));let n=rO(e),r=t?cO(n)?500:n.duration:0;PD.set(e,setTimeout(async()=>{let t=jD.get(e);try{await t?.finished,kD.set(e,tO(e)),GD(e)}catch{}},r))}function qD(){clearTimeout(PD.get(ID)),PD.set(ID,setTimeout(()=>{OD.forEach(e=>oO(e,e=>JD(()=>KD(e))))},100))}function JD(e){typeof requestIdleCallback==`function`?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}var YD;typeof window<`u`&&`ResizeObserver`in window&&(ID=document.documentElement,new MutationObserver(HD),YD=new ResizeObserver(UD),window.addEventListener(`scroll`,()=>{RD=window.scrollY,LD=window.scrollX}),YD.observe(ID));function XD(e){return e.reduce((e,t)=>[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]).every(e=>e.nodeName===`#comment`)?!1:e.reduce((e,t)=>{if(e===!1)return!1;if(t.target instanceof Element){if(ZD(t.target),!e.has(t.target)){e.add(t.target);for(let n=0;nt(e,ND.has(e)));for(let n=0;ne(r,ND.has(r)))}}function sO(e){return Array.isArray(e)?e:[e]}function cO(e){return typeof e==`function`}function lO(e){let t=kD.get(e),n=tO(e);if(!aO(e))return kD.set(e,n);if(WD(e)){kD.set(e,n),GD(e);return}let r;if(!t)return;let i=rO(e);if(typeof i!=`function`){let a=t.left-n.left,o=t.top-n.top,s=t.left+t.width-(n.left+n.width);t.top+t.height-(n.top+n.height)==0&&(o=0),s==0&&(a=0);let[c,l,u,d]=nO(e,t,n),f={transform:`translate(${a}px, ${o}px)`},p={transform:`translate(0, 0)`};c!==l&&(f.width=`${c}px`,p.width=`${l}px`),u!==d&&(f.height=`${u}px`,p.height=`${d}px`),r=e.animate([f,p],{duration:i.duration,easing:i.easing})}else{let[a]=sO(i(e,`remain`,t,n));r=new Animation(a),r.play()}jD.set(e,r),kD.set(e,n),r.addEventListener(`finish`,KD.bind(null,e,!1),{once:!0})}function uO(e){VD in e&&delete e[VD];let t=tO(e);kD.set(e,t);let n=rO(e);if(!aO(e))return;if(WD(e)){GD(e);return}let r;if(typeof n!=`function`)r=e.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:n.duration*1.5,easing:`ease-in`});else{let[i]=sO(n(e,`add`,t));r=new Animation(i),r.play()}jD.set(e,r),r.addEventListener(`finish`,KD.bind(null,e,!1),{once:!0})}function dO(e,t){var n;e.remove(),kD.delete(e),AD.delete(e),jD.delete(e),(n=MD.get(e))==null||n.disconnect(),setTimeout(()=>{if(BD in e&&delete e[BD],Object.defineProperty(e,VD,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(let n in t)e.style[n]=``},0)}function fO(e){var t;if(!AD.has(e)||!kD.has(e))return;let[n,r]=AD.get(e);Object.defineProperty(e,BD,{value:!0,configurable:!0});let i=window.scrollX,a=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=iO(e))==null||t.appendChild(e),!aO(e))return dO(e);let[o,s,c,l]=mO(e),u=rO(e),d=kD.get(e);(i!==LD||a!==RD)&&pO(e,i,a,u);let f,p={position:`absolute`,top:`${o}px`,left:`${s}px`,width:`${c}px`,height:`${l}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!cO(u))Object.assign(e.style,p),f=e.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:u.duration,easing:`ease-out`});else{let[t,n]=sO(u(e,`remove`,d));n?.styleReset!==!1&&(p=n?.styleReset||p,Object.assign(e.style,p)),f=new Animation(t),f.play()}jD.set(e,f),f.addEventListener(`finish`,()=>dO(e,p),{once:!0})}function pO(e,t,n,r){let i=LD-t,a=RD-n,o=document.documentElement.style.scrollBehavior;if(getComputedStyle(ID).scrollBehavior===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+i,window.scrollY+a),!e.parentElement)return;let s=e.parentElement,c=s.clientHeight,l=s.clientWidth,u=performance.now();function d(){requestAnimationFrame(()=>{if(!cO(r)){let e=c-s.clientHeight,t=l-s.clientWidth;u+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-t,top:window.scrollY-e}),c=s.clientHeight,l=s.clientWidth,d()):document.documentElement.style.scrollBehavior=o}})}d()}function mO(e){let t=kD.get(e),[n,,r]=nO(e,t,tO(e)),i=e.parentElement;for(;i&&(getComputedStyle(i).position===`static`||i instanceof HTMLBodyElement);)i=i.parentElement;i||=document.body;let a=getComputedStyle(i),o=!jD.has(e)||jD.get(e)?.playState===`finished`?tO(i):kD.get(i);return[Math.round(t.top-o.top)-$D(a.borderTopWidth),Math.round(t.left-o.left)-$D(a.borderLeftWidth),n,r]}var[hO,gO]=X(`HoverCardRoot`,e=>{let{open:t,openDelay:n,closeDelay:r}=e,i=G(()=>$l(t.value)),a=P(),o=e=>{a.value=e},s=P(),c=e=>{s.value=e},l=P(!1),u=P(!1),d=P(!1),f=null,p=null,m=()=>{f&&=(clearTimeout(f),null)},h=()=>{p&&=(clearTimeout(p),null)},g=()=>{h(),m(),f=setTimeout(()=>{t.value=!0},n.value)},_=()=>{m(),h(),!(l.value||u.value)&&(p=setTimeout(()=>{t.value=!1},r.value))},v=()=>{m(),h(),t.value=!1};return{...e,dataState:i,triggerElement:a,onTriggerElementChange:o,popupElement:s,onPopupElementChange:c,hasSelectionRef:l,isPointerDownOnPopupRef:u,isPointerInTransitRef:d,onOpen:g,onClose:_,onDismiss:v}});function _O(e,t,n){if(Hl(t)||Hl(n))return 0;let r=t,i=n,a=e===`+`?r+i:r-i;if(r%1!=0||i%1!=0){let t=r.toString().split(`.`),n=i.toString().split(`.`),o=t[1]&&t[1].length||0,s=n[1]&&n[1].length||0,c=10**Math.max(o,s);r=Math.round(r*c),i=Math.round(i*c),a=e===`+`?r+i:r-i,a/=c}return a}var vO=new Map,yO=!1;try{yO=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}var bO=!1;try{bO=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}var xO={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},SO=class{constructor(e,t={}){this.numberFormatter=CO(e,t),this.options=t}format(e){let t=``;if(t=!yO&&this.options.signDisplay!=null?wO(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!bO){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=xO[e]?.[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!yO&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!bO&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}};function CO(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!bO){let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!xO[e]?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);return[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`),t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r)}else return e.format(n)}}var TO=RegExp(`^.*\\(.*\\).*$`),EO=[`latn`,`arab`,`hanidec`,`deva`,`beng`,`fullwide`],DO=class{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return kO(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return kO(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return kO(this.locale,this.options,e).options.numberingSystem}},OO=new Map;function kO(e,t,n){let r=AO(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of EO)if(i!==r.options.numberingSystem){let r=AO(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function AO(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]18||(this.options.maximumFractionDigits??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}parse(e){let t=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(e);if(!t&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,``)),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,`.`)),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,`-`)),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style===`percent`){let e=n.indexOf(`-`);n=n.replace(`-`,``),n=n.replace(`+`,``);let t=n.indexOf(`.`);t===-1&&(t=n.length),n=n.replace(`.`,``),n=t-2==0?`0.${n}`:t-2==-1?`0.0${n}`:t-2==-2?`0.00`:`${n.slice(0,t-2)}.${n.slice(t-2)}`,e>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style===`percent`){let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new DO(this.locale,e).parse(new SO(this.locale,e).format(r))}return this.options.currencySign===`accounting`&&TO.test(e)&&(r=-1*r),r}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=FO(e,`,`,this.symbols.decimal),e=FO(e,`،`,this.symbols.decimal)),this.symbols.group&&t&&(e=FO(e,`.`,this.symbols.group))),this.symbols.group===`’`&&e.includes(`'`)&&t&&(e=FO(e,`'`,this.symbols.group)),this.symbols.group===`'`&&e.includes(`’`)&&t&&(e=FO(e,`’`,this.symbols.group)),this.options.locale===`fr-FR`&&this.symbols.group&&t&&(e=FO(e,` `,this.symbols.group),e=FO(e,/\u00A0/g,this.symbols.group)),e)}isValidPartialNumber(e,t=-1/0,n=1/0){let r=this.formatter.resolvedOptions().useGrouping;return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&r&&(e=FO(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}},MO=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),NO=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function PO(e,t,n,r){let i=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`,useGrouping:!0}),a=i.formatToParts(-10000.111),o=i.formatToParts(10000.111),s=NO.map(e=>i.formatToParts(e)),c=s.map((e,t)=>{let n=e.find(e=>e.type===`unit`);return n&&!e.some(e=>e.type===`integer`||e.type===`fraction`)?{unit:n.value,value:NO[t]}:null}).filter(e=>!!e),l=a.find(e=>e.type===`minusSign`)?.value??`-`,u=o.find(e=>e.type===`plusSign`)?.value;!u&&(r?.signDisplay===`exceptZero`||r?.signDisplay===`always`)&&(u=`+`);let d=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>e.type===`decimal`)?.value,f=a.find(e=>e.type===`group`)?.value,p=a.filter(e=>!MO.has(e.type)).map(e=>IO(e.value)),m=s.flatMap(e=>e.filter(e=>!MO.has(e.type)).map(e=>IO(e.value))),h=[...new Set([...p,...m])].sort((e,t)=>t.length-e.length),g=h.length===0?RegExp(`\\p{White_Space}|\\p{Cf}`,`gu`):RegExp(`${h.join(`|`)}|\\p{White_Space}|\\p{Cf}`,`gu`),_=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(_.map((e,t)=>[e,t])),y=RegExp(`[${_.join(``)}]`,`g`);return{minusSign:l,plusSign:u,decimal:d,group:f,literals:g,numeral:y,numerals:_,index:e=>String(v.get(e)),noNumeralUnits:c}}function FO(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function IO(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}var[LO,RO]=X(`InputNumberRoot`,e=>{let{disabled:t,readonly:n,modelValue:r,focusOnChange:i,formatOptions:a,min:o,max:s,step:c,stepSnapping:l}=e,[u,d]=um(),f=cm(e.locale),p=Fv(()=>new DO(f.value,a.value)),m=Fv(()=>new SO(f.value,a.value)),h=G(()=>m.resolvedOptions().maximumFractionDigits>0?`decimal`:`numeric`),g=G(()=>Hl(r.value)?!1:x(r.value)===o.value||o.value&&!Number.isNaN(r.value)?_O(`-`,r.value,c.value)Hl(r.value)?!1:x(r.value)===s.value||s.value&&!Number.isNaN(r.value)?_O(`+`,r.value,c.value)>Number(s.value):!1),v=Fv(()=>new SO(f.value,a.value)),y=G(()=>Hl(r.value)||Number.isNaN(r.value)?``:v.format(r.value));function b(e){return p.isValidPartialNumber(e,o.value,s.value)}function x(e){let t;return t=c.value===void 0||Number.isNaN(c.value)||!l.value?eu(e,o.value,s.value):nu(e,o.value,s.value,c.value),t=p.parse(m.format(t)),t}function S(e,a=1){if(i.value&&u.value?.focus(),t.value||n.value)return;let s=p.parse(u.value?.value??``);if(Number.isNaN(s)){r.value=o.value??0;return}let l=e===`increase`?1:-1;r.value=x(s+(c.value??1)*a*l)}function C(e=1){S(`increase`,e)}function w(e=1){S(`decrease`,e)}function T(e){e===`min`&&o.value!==void 0?r.value=x(o.value):e===`max`&&s.value!==void 0&&(r.value=x(s.value))}function E(e){u.value&&(u.value.value=e)}function ee(e){let t=p.parse(e);return r.value=Number.isNaN(t)?void 0:x(t),e.length?E(y.value):E(e)}return{...e,isDecreaseDisabled:g,isIncreaseDisabled:_,inputElement:u,inputMode:h,textValue:y,setInputElement:d,applyInputValue:ee,validate:b,onIncrease:C,onDecrease:w,onMinMaxValue:T}}),[zO,BO]=Z(`InputNumberUi`),[VO,HO]=X(`InputOtpRoot`),[UO,WO]=Z(`InputOtpUi`);[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);var[GO,KO]=X(`LayoutRoot`,e=>{let{open:t,isMobile:n,mobileOpen:r}=e,i=e=>{t.value=e},a=e=>{r.value=e},o=()=>{n.value?r.value=!r.value:t.value=!t.value};return{...e,onOpenChange:i,onMobileOpenChange:a,toggleSidebar:o}}),[qO,JO]=X(`LayoutClassicRoot`,e=>(GO(e),e)),[YO,XO]=Z(`LayoutUi`),[ZO,QO]=Z(`LayoutClassicUi`,e=>(YO(e),e)),[$O,ek]=Z(`ListUi`),{provideCollectionContext:tk,useCollectionContext:nk,useCollectionItem:rk}=Am(`Menubar`),[ik,ak]=X(`MenubarRoot`,e=>{let{modelValue:t,currentTabStopId:n}=e,r=sm(e.dir),i=P(!1),a=e=>{i.value=!1,t.value=e,n.value=String(e)},o=()=>{i.value=!1,t.value=``},s=e=>{i.value=!1,t.value=t.value?``:e,n.value=String(e)},c=()=>{i.value=!0,t.value=``};return{...e,dir:r,isLinkTriggerHovered:i,onMenuOpen:a,onMenuClose:o,onMenuToggle:s,setTriggerLink:c}}),[ok,sk]=X(`MenubarMenu`,e=>e),[ck,lk]=Z(`MenubarUi`,e=>(UE(e),e)),uk=`navigationMenu.rootContentDismiss`,[dk,fk]=X(`NavigationMenuRoot`,e=>{let{modelValue:t,skipDelayDuration:n,delayDuration:r,disablePointerLeaveClose:i}=e,a=P(),o=e=>{a.value=e},[s,c]=um(),[l,u]=um(),d=P(),f=e=>{d.value=e},p=P(new Set),m=e=>{p.value.add(e)},h=e=>{p.value.delete(e)},g=G(()=>p.value.has(t.value)),_=P(``),v=Iv(!1,n.value),y=Lv(e=>{typeof e==`string`&&(_.value=t.value,t.value=e)},G(()=>t.value!==``||v.value?150:r.value)),b=e=>{y(e)},x=()=>{v.value=!0,y(``)},S=e=>{y(e)},C=()=>{i.value||y(``)},w=e=>{_.value=t.value,t.value=e},T=()=>{_.value=t.value,t.value=``};return Uv(a,uk,T),{...e,baseId:`soybean-navigation-menu`,rootElement:a,onRootElementChange:o,viewportElement:s,setViewportElement:c,indicatorTrackElement:l,setIndicatorTrackElement:u,activeTriggerElement:d,values:p,addValue:m,removeValue:h,open:g,previousValue:_,onActiveTriggerElementChange:f,onTriggerEnter:b,onTriggerLeave:x,onContentEnter:S,onContentLeave:C,onItemSelect:w,onItemDismiss:T}}),{provideCollectionContext:pk,useCollectionContext:mk,useCollectionItem:hk}=Am(`NavigationMenu`),[gk,_k]=X(`NavigationMenuItem`,e=>{let[t,n]=um(),{modelValue:r,value:i}=e,a=P(),o=e=>{a.value=e},s=P(!1),c=G(()=>r.value===i),l=G(()=>$l(c.value));return{...e,triggerElement:a,onTriggerElementChange:o,focusProxyElement:t,setFocusProxyElement:n,wasEscapeCloseRef:s,open:c,dataState:l}}),[vk,yk]=Z(`NavigationMenuUi`),[bk,xk]=X(`PageTabsRoot`),[Sk,Ck]=X(`PageTabsItem`),[wk,Tk]=Z(`PageTabsUi`),[Ek,Dk]=X(`PaginationRoot`,e=>{let{page:t,total:n,pageSize:r}=e,i=G(()=>Math.max(1,Math.ceil(n.value/(r.value||1)))),a=e=>{t.value=e};return{...e,onPageChange:a,pageCount:i}}),[Ok,kk]=Z(`PaginationUi`),[Ak,jk]=Z(`PasswordUi`,e=>(Kx(e),e)),[Mk,Nk]=Z(`Popconfirm`,e=>(mE(e),e)),[Pk,Fk]=X(`ProgressRoot`),[Ik,Lk]=Z(`ProgressUi`),[Rk,zk]=Z(`ProgressProviderUi`),Bk={direction:`ltr`,minimum:.08,maximum:1,easing:`linear`,speed:200,trickle:!0,trickleSpeed:200},Vk=class{static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.options=Bk,this.clearTrickleTimer(),this}static configure(e){return this.options=Yp({...e},this.options),this}static isStarted(){return typeof this.status==`number`}static isRendered(){return Df?document.querySelector(`[data-soybean-progress-provider]`)!==null:!1}static set(e){if(!Df||this.isPaused)return this;let t=this.isStarted();e=eu(e,this.options.minimum,this.options.maximum),this.status=e===this.options.maximum?null:e,this.status===null&&this.clearTrickleTimer();let n=this.render(!t),r=this.options.speed,i=this.options.easing;return n.forEach(e=>e.offsetWidth),this.queue(t=>{n.forEach(t=>{Wk(t.querySelector(`[data-soybean-progress-bar]`),this.barPositionCSS({n:e,speed:r,ease:i}))}),e===this.options.maximum?(n.forEach(e=>{Wk(e,{transition:`none`,opacity:`1`}),e.offsetWidth}),setTimeout(()=>{n.forEach(e=>{Wk(e,{transition:`all ${r}ms ${i}`,opacity:`0`})}),setTimeout(()=>{n.forEach(e=>{this.remove(e),Wk(e,{transition:`none`,opacity:`1`})}),t()},r)},r)):setTimeout(t,r)}),this}static start(){return Df?(this.status||this.set(0),this.options.trickle&&this.startTrickling(),this):this}static done(e){return!Df||!e&&!this.status?this:this.inc(.3+.5*Math.random()).set(1)}static inc(e){if(this.isPaused)return this;let t=this.status;return t?t>1?this:(typeof e!=`number`&&(e=t>=0&&t<.2?.1:t>=.2&&t<.5?.04:t>=.5&&t<.8?.02:t>=.8&&t<.99?.005:0),t=eu(t+e,0,.994),this.set(t)):this.start()}static dec(e){if(this.isPaused)return this;let t=this.status;return typeof t==`number`?(typeof e!=`number`&&(e=t>.8?.1:t>.5?.05:t>.2?.02:.01),t=eu(t-e,0,.994),this.set(t)):this}static trickle(){return this.isPaused?this:this.inc()}static promise(e){let t=typeof e==`function`?e():e;if(!t)return this;if(typeof t.then==`function`)return this.start(),Promise.resolve(t).then(()=>{this.done()},()=>{this.done(!0)}),this;if(typeof t.state!=`function`||typeof t.always!=`function`||t.state()===`resolved`)return this;let n=0,r=0;return this.start(),n++,r++,t.always(()=>{r--,r===0?(n=0,this.done()):this.set((n-r)/n)}),this}static render(e=!1){if(!Df)return[];let t=Array.from(document.querySelectorAll(`[data-soybean-progress-provider]`));return t.forEach(t=>{t.style.display=``;let n=t.querySelector(`[data-soybean-progress-bar]`),r=Uk(e?0:this.status||0,this.options.direction);Wk(n,this.barPositionCSS({n:this.status||0,speed:this.options.speed,ease:this.options.easing,percent:r})),typeof this.status==`number`?t.setAttribute(`aria-valuenow`,`${this.status}`):t.removeAttribute(`aria-valuenow`)}),t}static remove(e){Df&&(this.clearTrickleTimer(),e?e.style.display=`none`:document.querySelectorAll(`[data-soybean-progress-provider]`).forEach(e=>{let t=e;t.style.display=`none`}))}static pause(){return this.isStarted()?(this.isPaused=!0,this.clearTrickleTimer(),this):this}static resume(){return this.isStarted()?(this.isPaused=!1,this.options.trickle&&this.startTrickling(),this):this}static queue(e){this.pending.push(e),this.pending.length===1&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static clearTrickleTimer(){this.trickleTimer&&=(clearTimeout(this.trickleTimer),void 0)}static startTrickling(){if(this.trickleTimer||this.isPaused||!this.isStarted())return;let e=()=>{this.trickleTimer=void 0,!(this.isPaused||!this.isStarted())&&(this.trickle(),!this.isPaused&&this.isStarted()&&(this.trickleTimer=setTimeout(e,this.options.trickleSpeed)))};this.trickleTimer=setTimeout(e,this.options.trickleSpeed)}static barPositionCSS({n:e,speed:t,ease:n,percent:r}){return{transform:`translate3d(${r??Uk(e,this.options.direction)}%,0,0)`,transition:`all ${t}ms ${n}`}}};$(Vk,`options`,Bk),$(Vk,`status`,null),$(Vk,`pending`,[]),$(Vk,`isPaused`,!1),$(Vk,`trickleTimer`,void 0);var Hk=Vk;function Uk(e,t){return t===`rtl`?(1-e)*100:(-1+e)*100}function Wk(e,t,n){if(typeof t==`string`)n!==void 0&&(e.style[t]=n);else for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];r!==void 0&&(e.style[n]=r)}}var Gk=[`aria-label`],Kk=L({name:`ProgressProvider`,__name:`progress-provider`,props:{direction:{},minimum:{},maximum:{},easing:{},speed:{},trickle:{type:Boolean},trickleSpeed:{}},setup(e){let t=e,n=zk(),r=lm();return Un(()=>{Hk.configure(t)}),(e,t)=>(z(),B(`div`,{"data-soybean-progress-provider":``,class:j(F(n).root),role:`progressbar`,"aria-label":F(r).progress.loading,"aria-valuemin":`0`,"aria-valuemax":`1`,style:{display:`none`}},[H(`div`,{class:j(F(n).indicator),"data-soybean-progress-bar":``},null,2)],10,Gk))}}),[qk,Jk]=X(`RadioGroupRoot`),[Yk,Xk]=X(`RadioGroupItem`,e=>{let t=G(()=>Ql(e.checked.value)),n=P(``),r=e=>{n.value=e};return{...e,dataState:t,controlId:n,initControlId:r}}),[Zk,Qk]=Z(`RadioGroupUi`),[$k,eA]=Z(`RadioGroupCardUi`,e=>(Zk(e),e)),[tA,nA]=X(`ScrollAreaRoot`),[rA,iA]=X(`ScrollAreaScrollbar`),[aA,oA]=Z(`ScrollAreaUi`,e=>G(()=>e.value??{})),[sA,cA]=X(`SplitterGroup`,e=>{let t=sm(()=>e.dir.value);return{...e,dir:t}}),[lA,uA]=Z(`SplitterUi`),[dA,fA]=X(`StepperRoot`,e=>{let t=sm(e.dir);return{...e,dir:t}}),[pA,mA]=X(`StepperItem`,e=>{let t=P(`soybean-stepper-title-${gr()}`),n=P(`soybean-stepper-description-${gr()}`);return{...e,titleId:t,descriptionId:n}}),[hA,gA]=Z(`StepperUi`),[_A,vA]=X(`SwitchRoot`,e=>{let{modelValue:t,disabled:n,trueValue:r,falseValue:i}=e;function a(){n.value||(Hl(t.value)?t.value=r.value:t.value=t.value===r.value?i.value:r.value)}let o=G(()=>t?.value===r.value?`checked`:`unchecked`),s=G(()=>n.value?``:void 0);return{...e,toggleCheck:a,dataState:o,dataDisabled:s}}),[yA,bA]=Z(`SwitchUi`),[xA,SA]=X(`TableCompact`),[CA,wA]=Z(`Table`),TA=new WeakMap,EA=0;function DA(e,t){return t?t(e)??[]:Array.isArray(e.children)?e.children:[]}function OA(e,t,n,r=1,i){return e.map(e=>{let a=t(e),o=OA(DA(e,n),t,n,r+1,a);return{key:a,row:e,level:r,parentKey:i,children:o,hasChildren:o.length>0}})}function kA(e,t){return e.reduce((e,n)=>{let r=kA(n.children,t);return!t(n.row)&&r.length===0||e.push({...n,children:r,hasChildren:r.length>0}),e},[])}function AA(e,t,n){return[...e].sort((e,r)=>{let i=typeof t.sorter==`function`?t.sorter(e.row,r.row):VA(PA(e.row,t.dataIndex),PA(r.row,t.dataIndex));return n?.order===`desc`?i*-1:i}).map(e=>({...e,children:AA(e.children,t,n)}))}function jA(e,t=!1){return e.flatMap(e=>[...t||e.hasChildren?[e.key]:[],...jA(e.children,t)])}function MA(e){return e.some(e=>e.hasChildren||MA(e.children))}function NA(e){return e.flatMap(e=>[e.row,...NA(e.children)])}function PA(e,t){let n=t.split(`.`),r=e;for(let e of n){if(r==null)return;r=r[e]}return r}function FA(e){if(e.key)return e.key;if(e.dataIndex)return e.dataIndex;if(e.type)return`__${e.type}`;let t=TA.get(e);if(t)return t;EA+=1;let n=`__group-${EA}`;return TA.set(e,n),n}function IA(e){return Array.isArray(e.children)&&e.children.length>0}function LA(e){return e.reduce((e,t)=>{if(t.hidden)return e;if(!IA(t))return e.push(t),e;let n=LA(t.children);return n.length>0&&e.push({...t,children:n}),e},[])}function RA(e){return e.flatMap(e=>IA(e)?RA(e.children):[e])}function zA(e,t,n,r){t[r]??(t[r]=[]),e.forEach(e=>{let i=FA(e);if(IA(e)){t[r].push({key:i,column:e,colSpan:RA(e.children).length,rowSpan:1}),zA(e.children,t,n,r+1);return}t[r].push({key:i,column:e,colSpan:1,rowSpan:n-r})})}function BA(e){return e.reduce((e,t)=>IA(t)?Math.max(e,BA(t.children)+1):e,1)}function VA(e,t){return e==null&&t==null?0:e==null?1:t==null?-1:typeof e==`number`&&typeof t==`number`?e-t:String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:`base`})}var HA=[`data-open`],UA=L({name:`STag`,__name:`tag`,props:{open:{type:Boolean,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=jm(()=>n.open,e=>{r(`update:open`,e)},!0),a=()=>{i.value=!1};return(e,t)=>F(i)?(z(),B(`div`,{key:0,"data-soybean-tag":``,"data-open":F(i)?``:void 0},[R(e.$slots,`default`,{open:F(i),close:a})],8,HA)):ja(`v-if`,!0)}}),{provideCollectionContext:WA,useCollectionContext:GA,useCollectionItem:KA}=Am(`TagsInput`),[qA,JA]=X(`TagsInputRoot`),[YA,XA]=X(`TagsInputItem`),[ZA,QA]=Z(`TagsInputUi`),[$A,ej]=X(`TextareaRoot`),[tj,nj]=Z(`TextareaUi`),[rj,ij]=X(`TimeFieldRoot`),[aj,oj]=Z(`TimeFieldUi`),[sj,cj]=X(`TimeRangeFieldRoot`),[lj,uj]=Z(`TimeRangeFieldUi`),[dj,fj]=X(`Toaster`),[pj,mj]=Z(`ToastUi`),hj=1,gj=new class{constructor(){$(this,`subscribers`,void 0),$(this,`toasts`,void 0),$(this,`dismissed`,void 0),$(this,`subscribe`,e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>=0&&this.subscribers.splice(t,1)})),$(this,`publish`,e=>{this.subscribers.forEach(t=>t(e))}),$(this,`resetDismissed`,e=>{this.dismissed.has(e)&&this.dismissed.delete(e)}),$(this,`upsert`,e=>{let t=this.toasts.findIndex(t=>t.id===e.id);if(t<0){this.publish(e),this.toasts=[...this.toasts,e];return}let n={...this.toasts[t],...e};this.publish(n),this.toasts=this.toasts.map((e,r)=>r===t?n:e)}),$(this,`create`,e=>{let{message:t,dismissible:n=!0,...r}=e,i=yj(e.id);this.resetDismissed(i);let a={...r,id:i,dismissible:n,title:t};return this.upsert(a),i}),$(this,`dismiss`,e=>{if(e!==void 0)return this.dismissed.add(e),requestAnimationFrame(()=>this.publish({id:e,dismiss:!0})),e;this.toasts.forEach(e=>{this.dismissed.add(e.id),this.publish({id:e.id,dismiss:!0})})}),$(this,`message`,(e,t)=>this.create({...t,message:e,type:`default`})),$(this,`error`,(e,t)=>this.create({...t,message:e,type:`error`})),$(this,`success`,(e,t)=>this.create({...t,message:e,type:`success`})),$(this,`info`,(e,t)=>this.create({...t,message:e,type:`info`})),$(this,`warning`,(e,t)=>this.create({...t,message:e,type:`warning`})),$(this,`loading`,(e,t)=>this.create({...t,message:e,type:`loading`})),$(this,`custom`,(e,t)=>{let n=yj(t?.id),r=t?.dismissible??!0;return this.resetDismissed(n),this.upsert({custom:e,dismissible:r,id:n,...t}),n}),$(this,`promise`,(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(typeof e==`function`?e():e),i=n!==void 0,a,o=async(e,t,r,a)=>{i=!1;let{description:o,settings:s}=await bj(t,r,a,n);this.create({id:n,type:e,description:o,...s})},s=r.then(async e=>{if(a=[`resolve`,e],Ca(e)){i=!1,this.create({id:n,type:`default`,message:e});return}if(vj(e)&&!e.ok){await o(`error`,t.error,t.description,`HTTP error! status: ${e.status}`);return}if(e instanceof Error){await o(`error`,t.error,t.description,e);return}t.success!==void 0&&await o(`success`,t.success,t.description,e)}).catch(async e=>{a=[`reject`,e],t.error!==void 0&&await o(`error`,t.error,t.description,e)}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),c=()=>new Promise((e,t)=>s.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})}),$(this,`getActives`,()=>this.toasts.filter(e=>!this.dismissed.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissed=new Set}},_j=gj.message;Object.assign(_j,{success:gj.success,info:gj.info,warning:gj.warning,error:gj.error,custom:gj.custom,message:gj.message,promise:gj.promise,dismiss:gj.dismiss,loading:gj.loading},{getHistory:()=>gj.toasts,getToasts:()=>gj.getActives()});function vj(e){return typeof e==`object`&&!!e&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`}function yj(e){return typeof e==`number`||typeof e==`string`&&e.length>0?e:hj++}async function bj(e,t,n,r){let[i,a]=await Promise.all([xj(e,n),xj(t,n)]);return{description:a,settings:Cj(i,r)}}async function xj(e,t){return typeof e==`function`?await e(t):e}function Sj(e){return typeof e==`object`&&!!e&&`message`in e}function Cj(e,t){return Sj(e)?e:{id:t??``,message:e??``}}var wj={gap:`--gap`,offsetTop:`--offset-top`,offsetRight:`--offset-right`,offsetBottom:`--offset-bottom`,offsetLeft:`--offset-left`,mobileOffsetTop:`--mobile-offset-top`,mobileOffsetRight:`--mobile-offset-right`,mobileOffsetBottom:`--mobile-offset-bottom`,mobileOffsetLeft:`--mobile-offset-left`,frontHeight:`--front-toast-height`},Tj={index:`--index`,offset:`--offset`,beforeIndex:`--toasts-before`,zIndex:`--z-index`,swipeAmountX:`--swipe-amount-x`,swipeAmountY:`--swipe-amount-y`,swipeDirection:`--swipe-direction`,swipeOut:`--swipe-out`,initialHeight:`--initial-height`},Ej=`top-right`,Dj=4e3,Oj={info:`lucide:info`,success:`lucide:circle-check`,warning:`lucide:circle-alert`,error:`lucide:circle-x`,close:`lucide:x`,loading:`svg-spinners:270-ring`},kj=[`top-right`,`top-center`,`top-left`,`bottom-right`,`bottom-center`,`bottom-left`],Aj={left:`left`,right:`right`,top:`up`,bottom:`down`};function jj(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(Aj[t]),n&&r.push(Aj[n]),r}var Mj=e=>{let t={top:wj.offsetTop,right:wj.offsetRight,bottom:wj.offsetBottom,left:wj.offsetLeft},n={top:wj.mobileOffsetTop,right:wj.mobileOffsetRight,bottom:wj.mobileOffsetBottom,left:wj.mobileOffsetLeft},r={};return Em(t).forEach(i=>{let a=(typeof e==`number`?e:e[i])??24;r[t[i]]=`${a}px`,r[n[i]]=`calc(${a}px * 0.67)`}),r},Nj=e=>{if(!e)return{x:0,y:0};let t=e.style.getPropertyValue(Tj.swipeAmountX),n=e.style.getPropertyValue(Tj.swipeAmountY);return{x:Number(t.replace(`px`,``))||0,y:Number(n.replace(`px`,``))||0}},Pj=(e,t)=>{e&&(e.style.setProperty(Tj.swipeAmountX,`${t.x}px`),e.style.setProperty(Tj.swipeAmountY,`${t.y}px`))},Fj=e=>{e&&Pj(e,{x:0,y:0})},Ij=e=>`dismiss`in e&&e.dismiss===!0,Lj=e=>[`altKey`,`ctrlKey`,`metaKey`,`shiftKey`].includes(e),Rj=e=>{let{id:t,position:n}=e,r=P([]),i=P([]),a=G(()=>r.value.filter(e=>en(t)&&e.toasterId===en(t)||!e.toasterId)),o=G(()=>{let e=new Set;return a.value.forEach(t=>{let r=t.position||en(n);e.add(r)}),kj.forEach(t=>{e.has(t)||e.add(t)}),Array.from(e)});return{toasts:r,filtered:a,heights:i,allPositions:o,positionZIndex:G(()=>{let e={};return o.value.forEach((t,n)=>{e[t]=9999-n}),e}),allToasts:G(()=>{let e=kj.reduce((e,t)=>(e[t]=[],e),{});return a.value.forEach(t=>{e[t.position||en(n)].push(t)}),e}),allHeights:G(()=>{let e=kj.reduce((e,t)=>(e[t]=[],e),{});return i.value.forEach(t=>{e[t.position].push(t)}),e})}},zj=[`dir`,`data-rich-color`,`data-inverted`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],Bj=L({name:`Toast`,__name:`toast`,props:{index:{},toast:{},position:{}},emits:[`update:height`,`remove`],setup(e,{emit:t}){let n=e,r=t,{dir:i,allToasts:a,allHeights:o,gap:s,duration:c,visibleCounts:l,defaultExpanded:u,swipeDirections:d,interactingPosition:f,expandedPosition:p,showIcon:m,showClose:h,icons:g,toastProps:_,wrapperProps:v,contentProps:y,titleProps:b,descriptionProps:x,iconProps:S,footerProps:C,actionProps:w,cancelProps:T,closeProps:E}=fj(`Toast`),ee=mj(),D=vr(`toast`),te=vr(`wrapper`),O=Wv(),{height:ne}=Jv(te),re=Kv(),k=P(null),ie=P(null),ae=P(!1),A=P(!1),oe=P(!1),se=P(!1),ce=P(0),le=P(0),ue=P(n.toast.duration??c.value),de=P(null),fe=P(0),j=P(0),M=P(null),pe=G(()=>n.toast.type),me=G(()=>{if(m.value){if(n.toast.icon)return n.toast.icon;if(pe.value&&pe.value!=="default")return g.value[pe.value];if(n.toast.promise)return g.value.loading}}),he=G(()=>n.index===0),ge=G(()=>n.index+1<=l.value),_e=G(()=>pe.value===`loading`),ve=G(()=>n.toast.dismissible!==!1),ye=G(()=>Math.max(o.value[n.position].findIndex(e=>e.toastId===n.toast.id),0)),N=G(()=>(n.toast.showClose||h.value)&&ve.value&&pe.value!==`loading`),be=G(()=>n.toast.duration??c.value),xe=G(()=>{let[e,t]=n.position.split(`-`);return{x:t,y:e}}),Se=G(()=>o.value[n.position].reduce((e,t,n)=>n>=ye.value?e:e+t.height,0)),Ce=G(()=>ye.value*s.value+Se.value),we=G(()=>p.value===n.position||u.value&&O.value),Te=G(()=>({[Tj.index]:n.index,[Tj.beforeIndex]:n.index,[Tj.zIndex]:a.value[n.position].length-n.index,[Tj.offset]:`${ae.value?ce.value:Ce.value}px`,[Tj.initialHeight]:u.value?`auto`:`${le.value}px`})),Ee=()=>{ae.value=!0,ce.value=Ce.value,window.setTimeout(()=>{r(`remove`,n.toast)},200)},De=()=>{_e.value||!ve.value||(Ee(),n.toast.onDismiss?.(n.toast))},Oe=e=>{e.button!==2&&(_e.value||!ve.value||(de.value=new Date,ce.value=Ce.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(A.value=!0,M.value={x:e.clientX,y:e.clientY})))},ke=()=>{if(oe.value||!ve.value)return;M.value=null;let{x:e,y:t}=Nj(D.value),r=Date.now()-(de.value?.getTime()??Date.now()),i=k.value===`x`?e:t,a=Math.abs(i)/Math.max(r,1);if(Math.abs(i)>=45||a>.11){ce.value=Ce.value,n.toast.onDismiss?.(n.toast),k.value===`x`?ie.value=e>0?`right`:`left`:ie.value=t>0?`down`:`up`,Ee(),oe.value=!0;return}Fj(D.value),se.value=!1,A.value=!1,k.value=null},Ae=e=>{if(!M.value||!ve.value||(typeof window<`u`?window.getSelection()?.toString().length??0:0)>0)return;let t=e.clientY-M.value.y,r=e.clientX-M.value.x,i=d.value??jj(n.position);!k.value&&(Math.abs(r)>1||Math.abs(t)>1)&&(k.value=Math.abs(r)>Math.abs(t)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(k.value===`y`){if(i.includes(`up`)||i.includes(`down`))if(i.includes(`up`)&&t<0||i.includes(`down`)&&t>0)a.y=t;else{let e=t*o(t);a.y=Math.abs(e)0)a.x=r;else{let e=r*o(r);a.x=Math.abs(e)0||Math.abs(a.y)>0)&&(se.value=!0),Pj(D.value,a)},je=()=>{A.value=!1,k.value=null,M.value=null},Me=e=>{n.toast.onAction?.(e),!e.defaultPrevented&&Ee()},Ne=e=>{n.toast.onCancel?.(e),ve.value&&Ee()};function Pe(e){le.value=e,r(`update:height`,{toastId:n.toast.id,height:e,position:n.toast.position??n.position})}function Fe(){let e=D.value;if(!e)return;let t=e.style.height;e.style.height=`auto`;let n=e.getBoundingClientRect().height;e.style.height=t,Pe(n)}return Gn(be,e=>{ue.value=e},{immediate:!0}),Gn(ne,e=>{O.value&&e&&Fe()},{flush:`post`}),Gn(()=>n.toast.delete,e=>{e&&(Ee(),n.toast.onDismiss?.(n.toast))}),Un(()=>{let e=n.toast;if(e.type===`loading`||e.promise||e.duration===1/0)return;let t;p.value===n.position||f.value===n.position||re.value===`hidden`?(()=>{if(j.value{n.toast.onAutoClose?.(n.toast),Ee()},ue.value)),dn(()=>{t!==void 0&&clearTimeout(t)})}),(t,n)=>(z(),B(`li`,W(F(_),{ref:`toast`,"data-soybean-toast":``,class:[F(ee).toast,e.toast.ui?.toast],dir:F(i),tabindex:`0`,"data-rich-color":e.toast.richColor,"data-inverted":e.toast.inverted,"data-mounted":F(O),"data-promise":!!e.toast.promise,"data-swiped":se.value,"data-removed":ae.value,"data-visible":ge.value,"data-y-position":xe.value.y,"data-x-position":xe.value.x,"data-index":e.index,"data-front":he.value,"data-swiping":A.value,"data-dismissible":ve.value,"data-type":pe.value,"data-swipe-out":oe.value,"data-swipe-direction":ie.value,"data-expanded":we.value,"data-testid":e.toast.testId,style:Te.value,onDragend:je,onPointerdown:Oe,onPointerup:ke,onPointermove:Ae}),[H(`div`,W({ref:`wrapper`},F(v),{class:[F(ee).wrapper,e.toast.ui?.wrapper],"data-soybean-toast-wrapper":``}),[e.toast.custom?(z(),V(Ur(e.toast.custom),{key:0})):(z(),B(pa,{key:1},[H(`h3`,W(F(b),{class:[F(ee).title,e.toast.ui?.title],"data-soybean-toast-title":``}),[me.value?(z(),V(My,W({key:0},F(S),{icon:me.value,class:[F(ee).icon,e.toast.ui?.icon]}),null,16,[`icon`,`class`])):ja(`v-if`,!0),U(SC,{is:e.toast.title},null,8,[`is`])],16),e.toast.description?(z(),B(`p`,W({key:0},F(x),{class:[F(ee).description,e.toast.ui?.description],"data-soybean-toast-description":``}),[U(SC,{is:e.toast.description},null,8,[`is`])],16)):ja(`v-if`,!0),e.toast.content?(z(),V(Ur(e.toast.content),W({key:1},F(y),{class:[F(ee).content,e.toast.ui?.content],"data-soybean-toast-content":``}),null,16,[`class`])):ja(`v-if`,!0),e.toast.action||e.toast.cancel?(z(),B(`div`,W({key:2},F(C),{class:[F(ee).footer,e.toast.ui?.footer],"data-soybean-toast-footer":``}),[e.toast.cancel?(z(),V(jy,W({key:0},F(T),{class:[F(ee).cancel,e.toast.ui?.cancel],"data-soybean-toast-cancel":``,onClick:Ne}),{default:I(()=>[U(SC,{is:e.toast.cancel},null,8,[`is`])]),_:1},16,[`class`])):ja(`v-if`,!0),e.toast.action?(z(),V(jy,W({key:1},F(w),{class:[F(ee).action,e.toast.ui?.action],"data-soybean-toast-action":``,onClick:Me}),{default:I(()=>[U(SC,{is:e.toast.action},null,8,[`is`])]),_:1},16,[`class`])):ja(`v-if`,!0)],16)):ja(`v-if`,!0)],64))],16),N.value&&F(g)?.close?(z(),V(jy,W({key:0},F(E),{class:[F(ee).close,e.toast.ui?.close],"data-soybean-toast-close":``,onClick:De}),{default:I(()=>[U(My,{icon:F(g)?.close},null,8,[`icon`])]),_:1},16,[`class`])):ja(`v-if`,!0)],16,zj))}}),Vj=[`aria-label`],Hj=[`dir`,`data-y-position`,`data-x-position`,`onBlur`,`onFocus`,`onMouseenter`,`onMousemove`,`onMouseleave`,`onDragend`,`onPointerdown`,`onPointerup`],Uj=L({name:`Toaster`,inheritAttrs:!1,__name:`toaster`,props:{id:{},dir:{},hotkey:{default:()=>[`altKey`,`KeyT`]},customAriaLabel:{},containerAriaLabel:{default:`Notifications`},position:{default:Ej},defaultExpanded:{type:Boolean},duration:{default:Dj},gap:{default:12},offset:{default:24},visibleCounts:{default:3},swipeDirections:{},showIcon:{type:Boolean},showClose:{type:Boolean},icons:{},toastProps:{},wrapperProps:{},contentProps:{},titleProps:{},descriptionProps:{},iconProps:{},footerProps:{},actionProps:{},cancelProps:{},closeProps:{}},setup(e){let t=e,n=ti(),r=mj(),i=sm(()=>t.dir),a=G(()=>t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)),o=G(()=>t.customAriaLabel??`${t.containerAriaLabel} ${a.value}`),s={},c=(e,t)=>{s[e]=wf(t)},{toasts:l,allToasts:u,filtered:d,heights:f,allHeights:p,allPositions:m,positionZIndex:h}=Rj({id:()=>t.id,position:()=>t.position}),g=G(()=>({...Oj,...t.icons})),_=P(null),v=P(null),y=P(null),b=P(null),x=G(()=>({[wj.gap]:`${t.gap}px`,...Mj(t.offset)})),S=e=>{_.value===e&&(_.value=null),v.value===e&&(v.value=null),b.value===e&&(b.value=null)},C=e=>{s[e]?.focus()},w=e=>{if(f.value.findIndex(t=>t.toastId===e.toastId)!==-1){f.value=f.value.map(t=>t.toastId===e.toastId?e:t);return}let t=f.value.findIndex(t=>t.position===e.position);if(t!==-1){f.value=[...f.value.slice(0,t),e,...f.value.slice(t)];return}f.value=[e,...f.value]},T=e=>{let t=l.value.findIndex(t=>t.id===e.id);if(t!==-1){let n=Object.assign({},l.value[t],e);l.value=[...l.value.slice(0,t),n,...l.value.slice(t+1)];return}l.value=[e,...l.value]},E=e=>{l.value=l.value.filter(t=>t.id===e.id?(t.delete||gj.dismiss(e.id),!1):!0),f.value=f.value.filter(t=>t.toastId!==e.id)},ee=(e,t)=>{let n=t.currentTarget;b.value===e&&n&&!n.contains(t.relatedTarget)&&(b.value=null,_.value===e&&v.value!==e&&(_.value=null),y.value&&=(y.value.focus({preventScroll:!0}),null))},D=(e,t)=>{t.target.dataset.dismissible!==`false`&&b.value!==e&&(b.value=e,y.value=t.relatedTarget)},te=e=>{_.value=e},O=e=>{v.value!==e&&b.value!==e&&_.value===e&&(_.value=null)},ne=(e,t)=>{t.target.dataset.dismissible!==`false`&&(v.value=e,_.value=e)},re=e=>{v.value===e&&(v.value=null)};return dj({dir:i,allToasts:u,allHeights:p,interactingPosition:v,expandedPosition:_,icons:g,...Tf(t,[`gap`,`duration`,`visibleCounts`,`defaultExpanded`,`swipeDirections`,`showIcon`,`showClose`,`toastProps`,`wrapperProps`,`contentProps`,`titleProps`,`descriptionProps`,`iconProps`,`footerProps`,`actionProps`,`cancelProps`,`closeProps`])}),Un(()=>{let e=gj.subscribe(e=>{if(Ij(e)){requestAnimationFrame(()=>{l.value=l.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}Tn(()=>{T(e)})});dn(()=>{e()})},{flush:`post`}),Gn(()=>l.value.length,e=>{e===0&&(_.value=null,v.value=null,b.value=null)}),Gn(()=>d.value,e=>{let n=new Set(e.map(e=>e.position??t.position));_.value&&!n.has(_.value)&&(_.value=null),v.value&&!n.has(v.value)&&(v.value=null),b.value&&!n.has(b.value)&&(b.value=null)},{deep:!0}),Un(()=>{if(!Df)return;let e=e=>{if(t.hotkey.length>0&&t.hotkey.every(t=>Lj(t)?e[t]:e.code===t)){let e=d.value[0]?.position??t.position??m.value[0];_.value=e,C(e)}let n=Object.values(s).some(e=>e===document.activeElement||e?.contains(document.activeElement));e.code===`Escape`&&n&&(_.value=null,b.value=null)};document.addEventListener(`keydown`,e),dn(()=>{document.removeEventListener(`keydown`,e)})}),Fr(()=>{y.value&&(y.value.focus({preventScroll:!0}),y.value=null,b.value=null)}),(e,t)=>(z(),B(pa,null,[H(`section`,{"data-soybean-toaster-container":``,"aria-label":o.value,tabindex:`-1`,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[(z(!0),B(pa,null,Kr(F(kj),e=>(z(),B(`ol`,W({key:e},{ref_for:!0},F(n),{ref_for:!0,ref:t=>c(e,t),class:F(r).toaster,tabindex:`-1`,dir:F(i),"data-soybean-toaster":``,"data-y-position":e.split(`-`)[0],"data-x-position":e.split(`-`)[1],style:{"--z-index":F(h)[e],"--front-toast-height":`${F(p)[e][0]?.height??0}px`,...x.value},onBlur:t=>ee(e,t),onFocus:t=>D(e,t),onMouseenter:t=>te(e),onMousemove:t=>te(e),onMouseleave:t=>O(e),onDragend:t=>S(e),onPointerdown:t=>ne(e,t),onPointerup:t=>re(e)}),[(z(!0),B(pa,null,Kr(F(u)[e],(t,n)=>(z(),V(Bj,{key:t.id,index:n,toast:t,position:e,"onUpdate:height":w,onRemove:E},null,8,[`index`,`toast`,`position`]))),128))],16,Hj))),128))],8,Vj),R(e.$slots,`default`)],64))}}),Wj=L({name:`ToastProvider`,__name:`toast-provider`,props:{id:{},dir:{},hotkey:{},customAriaLabel:{},containerAriaLabel:{},position:{},defaultExpanded:{type:Boolean},duration:{},gap:{},offset:{},visibleCounts:{},swipeDirections:{},showIcon:{type:Boolean},showClose:{type:Boolean},icons:{},toastProps:{},wrapperProps:{},contentProps:{},titleProps:{},descriptionProps:{},iconProps:{},footerProps:{},actionProps:{},cancelProps:{},closeProps:{}},setup(e){let t=e;return(e,n)=>(z(),V(Uj,W({"data-soybean-toast-provider":``},t),{default:I(()=>[R(e.$slots,`default`)]),_:3},16))}}),[Gj,Kj]=X(`ToolbarRoot`,e=>{let t=sm(()=>e.dir.value);return{...e,dir:t}}),[qj,Jj]=Z(`ToolbarUi`),[Yj,Xj]=X(`ToggleGroupRoot`,e=>{let t=sm(()=>e.dir.value);return{...e,dir:t}}),[Zj,Qj]=Z(`ToggleGroupUi`),[$j,eM]=X(`TooltipOpenDelayed`,e=>{let{skipDelayDuration:t}=e,n=P(!0),r=P(!1),i=null,a=()=>{i&&=(clearTimeout(i),null)},o=()=>{a(),i=setTimeout(()=>{n.value=!0},t.value)};return{skipDelayDuration:t,isOpenDelayed:n,isPointerInTransitRef:r,onOpen:()=>{a(),n.value=!1},onClose:()=>{o()}}}),[tM,nM]=X(`TooltipRoot`,e=>{let{open:t,delayDuration:n,isOpenDelayed:r,disableHoverableContent:i}=e,a=P(``),o=()=>{a.value||=`soybean-tooltip-popup-${gr()}`},s=P(!1),c=G(()=>t.value?s.value?`delayed-open`:`instant-open`:`closed`),l=P(),u=e=>{l.value=e},d=P(),f=e=>{d.value=e},p=null,m=()=>{p&&=(clearTimeout(p),null)},h=()=>{m(),p=setTimeout(()=>{s.value=!0,t.value=!0},n.value)},g=()=>{m(),s.value=!1,t.value=!0},_=()=>{m(),t.value=!1},v=()=>{h()},y=()=>{r.value?v():g()},b=()=>{i.value?_():m()};return{...e,dataState:c,popupId:a,initPopupId:o,popupElement:l,onPopupElementChange:u,triggerElement:d,onTriggerElementChange:f,onTriggerEnter:y,onTriggerLeave:b,onOpen:g,onClose:_}});function rM(e,t,n=1,r){return e?e.reduce((i,a,o)=>{let s=a.children,c=t?.includes(a.value),l={_id:a.value,value:a.value,data:a,index:o,level:n,parent:r,hasChildren:!!s,bind:{data:a,level:n,"aria-setsize":e.length,"aria-posinset":o+1}};return i.push(l),s&&c&&i.push(...rM(s,t,n+1,a)),i},[]):[]}function iM(e,t){return t?t.some(t=>e.includes(t.value)?!0:iM(e,t.children)):!1}function aM(e,t,n=[]){if(!t)return null;for(let r of t){if(r.value===e)return n;if(r.children){let t=aM(e,r.children,[...n,r.value]);if(t!==null)return t}}return null}var[oM,sM]=X(`TreeRoot`,e=>{let t=sm(()=>e.dir.value);return{...e,dir:t}}),[cM,lM]=X(`Virtualizer`,e=>{let{dynamic:t,isHorizontal:n}=e,r=G(()=>t.value&&!n.value);return{...e,isVerticalDynamic:r}}),[uM,dM]=X(`TreeMenuRoot`,e=>{let{modelValue:t,expanded:n,collapsed:r}=e,i=e=>{t.value=e},a=e=>{n.value=e},o=e=>{n.value.includes(e)?n.value=n.value.filter(t=>t!==e):n.value=[...n.value,e]},s=e=>{r.value=e};return{...e,onModelValueChange:i,onExpandedChange:a,onExpandedToggle:o,onCollapsedChange:s}}),[fM,pM]=X(`TreeMenuItem`),[mM,hM]=Z(`TreeMenuUi`,e=>(_y(G(()=>({root:e.value.collapsibleRoot,trigger:e.value.collapsibleTrigger,content:e.value.collapsibleContent}))),e));function gM(e){return e?e?.filter(e=>!e.hidden).map(e=>{let t={...e};return t.children&&t.children.length>0&&(t.children=gM(t.children)),t}):[]}var[_M,vM]=X(`WatermarkCompact`,e=>e),[yM,bM]=X(`WatermarkRoot`,e=>e),[xM,SM]=Z(`WatermarkUi`);Y({extendBase:e=>({prev:Hy({size:e.size,variant:`pure`}),next:Hy({size:e.size,variant:`pure`})}),slots:{root:`inline-flex flex-col gap-4 p-3 text-sm`,header:`flex items-center justify-between`,heading:`flex items-center justify-center font-medium`,prev:`rtl:rotate-180`,next:`rtl:rotate-180`,grid:`inline-table border-collapse`,gridHead:``,gridBody:``,gridRow:``,headCell:`rounded-md text-center font-normal text-muted-foreground`,cell:[`flex-1 text-center align-middle focus-within:relative focus-within:z-20`,`[&:has([data-selected])]:bg-accent first:[&:has([data-selected])]:rounded-s-md last:[&:has([data-selected])]:rounded-e-md`,`[&:has([data-selection-end])]:rounded-e-md [&:has([data-selection-start])]:rounded-s-md`],cellTrigger:[`inline-flex cursor-pointer items-center justify-center w-full h-full rounded-md font-normal transition-colors`,`focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-ring focus-visible:ring-primary/30`,`[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground`,`data-[selected]:text-foreground`,`data-[selection-start]:bg-primary data-[selection-start]:text-primary-foreground`,`data-[selection-end]:bg-primary data-[selection-end]:text-primary-foreground`,`[&[data-selection-start]:hover]:bg-primary data-[selection-start]:hover:text-primary-foreground data-[selection-start]:focus-visible:bg-primary data-[selection-start]:focus-visible:text-primary-foreground`,`[&[data-selection-end]:hover]:bg-primary data-[selection-end]:hover:text-primary-foreground data-[selection-end]:focus-visible:bg-primary data-[selection-end]:focus-visible:text-primary-foreground`,`data-[highlighted]:bg-accent/80 data-[highlighted]:text-foreground`,`hover:bg-accent hover:text-accent-foreground data-[outside-view]:text-muted-foreground`,`data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground data-[disabled]:opacity-50`,`data-[unavailable]:line-through`]},variants:{size:{xs:{root:`gap-3 text-2xs p-2`,header:`gap-1.5`,gridRow:`mt-1.5`,heading:`gap-1.5`,headCell:`h-6 w-6 text-3xs`,cell:`h-6 w-6`},sm:{root:`gap-3.5 text-xs p-2.5`,header:`gap-2`,gridRow:`mt-1.75`,heading:`gap-2`,headCell:`h-7 w-7 text-2xs`,cell:`h-7 w-7`},md:{root:`gap-4 text-sm p-3`,header:`gap-2.5`,gridRow:`mt-2`,heading:`gap-2.5`,headCell:`h-8 w-8 text-xs`,cell:`h-8 w-8`},lg:{root:`gap-4.5 text-base p-3.5`,header:`gap-3`,gridRow:`mt-2.25`,heading:`gap-3`,headCell:`h-9 w-9 text-sm`,cell:`h-9 w-9`},xl:{root:`gap-5 text-lg p-4`,header:`gap-3.5`,gridRow:`mt-2.5`,heading:`gap-3.5`,headCell:`h-10 w-10 text-base`,cell:`h-10 w-10`},"2xl":{root:`gap-6 text-xl p-5`,header:`gap-4`,gridRow:`mt-3`,heading:`gap-4`,headCell:`h-12 w-12 text-lg`,cell:`h-12 w-12`}}},defaultVariants:{size:`md`}});var CM=Y({slots:{root:`flex flex-col items-stretch rounded-md border bg-card text-card-foreground shadow-sm`,header:`flex items-center justify-between flex-wrap`,content:[`grow transition will-change-auto outline-none data-[state=closed]:p-0`,`data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`],footer:`flex items-center justify-between`,titleRoot:`flex items-center`,title:`font-semibold tracking-tight m-0`,description:`w-full text-muted-foreground m-0`},variants:{size:{xs:{root:`text-2xs`,header:`px-2 py-1.5`,content:`px-2 py-1.5`,footer:`px-2 py-1.5`,titleRoot:`gap-1.5`,title:`text-xs`,description:`text-2xs`},sm:{root:`text-xs`,header:`px-3 py-2`,content:`px-3 py-2`,footer:`px-3 py-2`,titleRoot:`gap-1.75`,title:`text-sm`,description:`text-xs`},md:{root:`text-sm`,header:`px-4 py-3`,content:`px-4 py-3`,footer:`px-4 py-3`,titleRoot:`gap-2`,title:`text-base`,description:`text-sm`},lg:{root:`text-base`,header:`px-5 py-4`,content:`px-5 py-4`,footer:`px-5 py-5`,titleRoot:`gap-2.5`,title:`text-lg`,description:`text-base`},xl:{root:`text-base`,header:`px-6 py-5`,content:`px-6 py-5`,footer:`px-6 py-6`,titleRoot:`gap-3`,title:`text-lg`,description:`text-lg`},"2xl":{root:`text-lg`,header:`px-7 py-6`,content:`px-7 py-6`,footer:`px-7 py-6`,titleRoot:`gap-3.5`,title:`text-xl`,description:`text-xl`}},scrollable:{true:{content:`overflow-auto`}},split:{true:{root:`divide-y divide-border`}}},compoundVariants:[{size:`xs`,split:!1,class:{content:`data-[header-visible=true]:data-[state=open]:pt-0.75 data-[footer-visible=true]:data-[state=open]:pb-0.75`}},{size:`sm`,split:!1,class:{content:`data-[header-visible=true]:data-[state=open]:pt-1 data-[footer-visible=true]:data-[state=open]:pb-1`}},{size:`md`,split:!1,class:{content:`data-[header-visible=true]:data-[state=open]:pt-1.5 data-[footer-visible=true]:data-[state=open]:pb-1.5`}},{size:`lg`,split:!1,class:{content:`data-[header-visible=true]:data-[state=open]:pt-2 data-[footer-visible=true]:data-[state=open]:pb-2`}},{size:`xl`,split:!1,class:{content:`data-[header-visible=true]:data-[state=open]:pt-2.5 data-[footer-visible=true]:data-[state=open]:pb-2.5`}},{size:`2xl`,split:!1,class:{content:`data-[header-visible=true]:data-[state=open]:pt-3 data-[footer-visible=true]:data-[state=open]:pb-3`}}],defaultVariants:{size:`md`,scrollable:!0,split:!1}}),wM=L({name:`SCard`,__name:`card`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},scrollable:{type:Boolean,default:!0},split:{type:Boolean},title:{},description:{},headerProps:{},contentProps:{},footerProps:{},titleRootProps:{},titleProps:{},descriptionProps:{},defaultOpen:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=fy(n,[`class`,`size`,`ui`,`scrollable`,`split`]),a=ei(),o=G(()=>Em(a));return gw(G(()=>CM({size:n.size,scrollable:n.scrollable,split:n.split},n.ui,{root:n.class}))),(e,t)=>(z(),V(F(ww),W(F(i),{"onUpdate:open":t[0]||=e=>r(`update:open`,e)}),qr({_:2},[Kr(o.value,t=>({name:t,fn:I(()=>[R(e.$slots,t)])}))]),1040))}});Y({extendBase:e=>({previous:Hy({size:e.size,variant:`pure`,shape:`circle`}),next:Hy({size:e.size,variant:`pure`,shape:`circle`})}),slots:{root:`group relative`,content:`overflow-hidden`,container:`flex`,item:`min-w-0 shrink-0 grow-0 basis-full`,control:`flex justify-between items-center`,navigation:`flex`,previous:`group-data-[orientation=vertical]:rotate-90 rtl:rotate-180`,next:`group-data-[orientation=vertical]:rotate-90 rtl:rotate-180`},variants:{size:{xs:{root:`text-2xs`,navigation:`gap-1 py-1`},sm:{root:`text-xs`,navigation:`gap-1.25 py-1.25`},md:{root:`text-sm`,navigation:`gap-1.5 py-1.5`},lg:{root:`text-base`,navigation:`gap-2 py-2`},xl:{root:`text-lg`,navigation:`gap-2.5 py-2.5`},"2xl":{root:`text-xl`,navigation:`gap-3 py-3`}},orientation:{horizontal:{},vertical:{container:`flex-col h-full`}},floatNav:{true:{navigation:`p-0`,previous:`absolute`,next:`absolute`}}},compoundVariants:[{orientation:`horizontal`,floatNav:!0,class:{previous:`top-1/2 -translate-y-1/2`,next:`top-1/2 -translate-y-1/2`}},{orientation:`vertical`,floatNav:!0,class:{previous:`start-1/2 -translate-x-1/2`,next:`start-1/2 -translate-x-1/2`}},{size:`xs`,floatNav:!0,orientation:`horizontal`,class:{previous:`-start-9`,next:`-end-9`}},{size:`sm`,floatNav:!0,orientation:`horizontal`,class:{previous:`-start-10.5`,next:`-end-10.5`}},{size:`md`,floatNav:!0,orientation:`horizontal`,class:{previous:`-start-12`,next:`-end-12`}},{size:`lg`,floatNav:!0,orientation:`horizontal`,class:{previous:`-start-13.5`,next:`-end-13.5`}},{size:`xl`,floatNav:!0,orientation:`horizontal`,class:{previous:`-start-15`,next:`-end-15`}},{size:`2xl`,floatNav:!0,orientation:`horizontal`,class:{previous:`-start-18`,next:`-end-18`}},{size:`xs`,floatNav:!0,orientation:`vertical`,class:{previous:`-top-9`,next:`-bottom-9`}},{size:`sm`,floatNav:!0,orientation:`vertical`,class:{previous:`-top-10.5`,next:`-bottom-10.5`}},{size:`md`,floatNav:!0,orientation:`vertical`,class:{previous:`-top-12`,next:`-bottom-12`}},{size:`lg`,floatNav:!0,orientation:`vertical`,class:{previous:`-top-13.5`,next:`-bottom-13.5`}},{size:`xl`,floatNav:!0,orientation:`vertical`,class:{previous:`-top-15`,next:`-bottom-15`}},{size:`2xl`,floatNav:!0,orientation:`vertical`,class:{previous:`-top-18`,next:`-bottom-18`}}],defaultVariants:{size:`md`,orientation:`horizontal`,floatNav:!0}}),Y({slots:{groupRoot:`flex`,root:`flex items-center w-fit`,control:[`peer shrink-0 border shadow transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50`],indicator:`w-full h-full flex items-center justify-center text-current`,"indicator-icon":`size-full`,label:``},variants:{color:{primary:{control:`border-primary focus-visible:ring-primary/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground`},destructive:{control:`border-destructive focus-visible:ring-destructive/30 data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground`},success:{control:`border-success focus-visible:ring-success/30 data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground`},warning:{control:`border-warning focus-visible:ring-warning/30 data-[state=checked]:bg-warning data-[state=checked]:text-warning-foreground data-[state=indeterminate]:bg-warning data-[state=indeterminate]:text-warning-foreground`},info:{control:`border-info focus-visible:ring-info/30 data-[state=checked]:bg-info data-[state=checked]:text-info-foreground data-[state=indeterminate]:bg-info data-[state=indeterminate]:text-info-foreground`},carbon:{control:`border-carbon focus-visible:ring-carbon/30 data-[state=checked]:bg-carbon data-[state=checked]:text-carbon-foreground data-[state=indeterminate]:bg-carbon data-[state=indeterminate]:text-carbon-foreground`},secondary:{control:`border-secondary-foreground/50 focus-visible:ring-secondary-foreground/20 data-[state=checked]:bg-secondary-foreground/5 data-[state=checked]:text-secondary-foreground data-[state=indeterminate]:bg-secondary-foreground/5 data-[state=indeterminate]:text-secondary-foreground`},accent:{control:`border-accent-foreground/50 focus-visible:ring-accent-foreground/20 data-[state=checked]:bg-accent-foreground/5 data-[state=checked]:text-accent-foreground data-[state=indeterminate]:bg-accent-foreground/5 data-[state=indeterminate]:text-accent-foreground`}},size:{xs:{groupRoot:`gap-x-2 gap-y-1.5`,root:`gap-1.5`,control:`size-3`},sm:{groupRoot:`gap-x-2.5 gap-y-1.75`,root:`gap-1.75`,control:`size-3.5`},md:{groupRoot:`gap-x-3 gap-y-2`,root:`gap-2`,control:`size-4`},lg:{groupRoot:`gap-x-3.5 gap-y-2.5`,root:`gap-2.5`,control:`size-4.5`},xl:{groupRoot:`gap-x-4 gap-y-3`,root:`gap-3`,control:`size-5`},"2xl":{groupRoot:`gap-x-4.5 gap-y-3.5`,root:`gap-3.5`,control:`size-6`}},orientation:{horizontal:{groupRoot:`items-center`},vertical:{groupRoot:`flex-col`}},shape:{square:{control:`rounded-sm`},rounded:{control:`rounded-full`}}},defaultVariants:{color:`primary`,size:`md`,orientation:`horizontal`,shape:`square`}}),Y({slots:{groupRoot:`flex`,root:`relative inline-flex border border-solid border-border rounded-md`,content:`flex items-center grow`,textContent:`flex flex-col`,icon:`shrink-0`,label:`font-medium`,description:`text-muted-foreground`,control:[`peer shrink-0 border shadow transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50`,`order-1 after:absolute after:inset-0 after:content-empty`],indicator:`w-full h-full flex items-center justify-center text-current`,"indicator-icon":`size-full`},variants:{color:{primary:{root:`data-[state=checked]:border-primary`,control:`border-primary focus-visible:ring-primary/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground`},destructive:{root:`data-[state=checked]:border-destructive`,control:`border-destructive focus-visible:ring-destructive/30 data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground`},success:{root:`data-[state=checked]:border-success`,control:`border-success focus-visible:ring-success/30 data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground`},warning:{root:`data-[state=checked]:border-warning`,control:`border-warning focus-visible:ring-warning/30 data-[state=checked]:bg-warning data-[state=checked]:text-warning-foreground data-[state=indeterminate]:bg-warning data-[state=indeterminate]:text-warning-foreground`},info:{root:`data-[state=checked]:border-info`,control:`border-info focus-visible:ring-info/30 data-[state=checked]:bg-info data-[state=checked]:text-info-foreground data-[state=indeterminate]:bg-info data-[state=indeterminate]:text-info-foreground`},carbon:{root:`data-[state=checked]:border-carbon`,control:`border-carbon focus-visible:ring-carbon/30 data-[state=checked]:bg-carbon data-[state=checked]:text-carbon-foreground data-[state=indeterminate]:bg-carbon data-[state=indeterminate]:text-carbon-foreground`},secondary:{root:`data-[state=checked]:border-secondary-foreground/50`,control:`border-secondary-foreground/50 focus-visible:ring-secondary-foreground/20 data-[state=checked]:bg-secondary-foreground/5 data-[state=checked]:text-secondary-foreground data-[state=indeterminate]:bg-secondary-foreground/5 data-[state=indeterminate]:text-secondary-foreground`},accent:{root:`data-[state=checked]:border-accent-foreground/50`,control:`border-accent-foreground/50 focus-visible:ring-accent-foreground/20 data-[state=checked]:bg-accent-foreground/5 data-[state=checked]:text-accent-foreground data-[state=indeterminate]:bg-accent-foreground/5 data-[state=indeterminate]:text-accent-foreground`}},size:{xs:{groupRoot:`gap-x-2 gap-y-1.5`,root:`gap-2 text-2xs p-2`,content:`gap-2`,textContent:`gap-0.5`,icon:`text-3`,description:`text-3xs`,control:`size-3`},sm:{groupRoot:`gap-x-2.5 gap-y-1.75`,root:`gap-2.5 text-xs p-2.5`,content:`gap-2.5`,textContent:`gap-0.75`,icon:`text-4`,description:`text-2xs`,control:`size-3.5`},md:{groupRoot:`gap-x-3 gap-y-2`,root:`gap-3 text-sm p-3`,content:`gap-3`,textContent:`gap-1`,icon:`text-5`,description:`text-xs`,control:`size-4`},lg:{groupRoot:`gap-x-3.5 gap-y-2.5`,root:`gap-4 text-base p-4`,content:`gap-4`,textContent:`gap-1.5`,icon:`text-6`,description:`text-sm`,control:`size-4.5`},xl:{groupRoot:`gap-x-4 gap-y-3`,root:`gap-5 text-lg p-5`,content:`gap-5`,textContent:`gap-2`,icon:`text-7`,description:`text-base`,control:`size-5`},"2xl":{groupRoot:`gap-x-4.5 gap-y-3.5`,root:`gap-6 text-xl p-6`,content:`gap-6`,textContent:`gap-2.5`,icon:`text-8`,description:`text-lg`,control:`size-6`}},shape:{square:{control:`rounded-sm`},rounded:{control:`rounded-full`}}},defaultVariants:{color:`primary`,size:`md`,shape:`square`}}),Y({slots:{root:``,trigger:``,content:[`overflow-hidden transition will-change-auto`,`data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`]},variants:{size:{xs:{root:`text-2xs`},sm:{root:`text-xs`},md:{root:`text-sm`},lg:{root:`text-base`},xl:{root:`text-lg`},"2xl":{root:`text-xl`}}}}),Y({slots:{root:`relative select-none`,area:[`relative overflow-hidden min-w-25 min-h-25 w-full h-full rounded-xl border border-input shadow-inner outline-none`,`focus-visible:ring-3 focus-visible:ring-primary/20 data-[disabled]:opacity-60`],thumb:[`absolute block rounded-full border-2 border-white bg-transparent shadow-lg`,`ring-1 ring-black/20 transition-[transform,box-shadow] duration-150`,`hover:scale-105 outline-none focus-visible:ring-4 focus-visible:ring-primary/25`]},variants:{size:{xs:{root:`text-2xs`,thumb:`size-3`},sm:{root:`text-xs`,thumb:`size-3.5`},md:{root:`text-sm`,thumb:`size-4`},lg:{root:`text-base`,thumb:`size-4.5`},xl:{root:`text-lg`,thumb:`size-5`},"2xl":{root:`text-xl`,thumb:`size-6`}}},defaultVariants:{size:`md`}}),Y({slots:{root:[`group flex items-center min-w-0 rounded-md border border-input bg-background transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`,`data-[disabled]:opacity-60 data-[readonly]:bg-muted/40`],input:[`flex-1 min-w-0 bg-transparent outline-none`,`placeholder:text-muted-foreground`,`disabled:cursor-not-allowed disabled:opacity-50`]},variants:{size:{xs:{root:`h-6 px-1.5 text-2xs gap-1`},sm:{root:`h-7 px-2 text-xs gap-1.5`},md:{root:`h-8 px-2.5 text-sm gap-2`},lg:{root:`h-9 px-3 text-base gap-2.5`},xl:{root:`h-10 px-3.5 text-lg gap-3`},"2xl":{root:`h-12 px-4 text-xl gap-3.5`}}},defaultVariants:{size:`md`}}),Y({extendBase:e=>({trigger:zy({size:e.size,variant:`pure`})}),slots:{popup:``,content:`flex flex-col`,trigger:``,triggerSwatch:``,triggerValue:`min-w-0 flex-1 truncate text-start font-mono text-xs`,segment:``,area:``,sliderSwatch:`flex items-center`,sliderRoot:`flex-1`,swatch:``,fields:`grid grid-cols-[2fr_1fr]`,field:``,alphaField:``,swatchPicker:``},variants:{size:{xs:{popup:`p-1.5`,content:`w-45 gap-1.5`,area:`h-30`,sliderSwatch:`gap-1.5`,fields:`gap-1.5`,alphaField:`w-12`},sm:{popup:`p-1.75`,content:`w-52.5 gap-1.75`,area:`h-35`,sliderSwatch:`gap-1.75`,fields:`gap-1.75`,alphaField:`w-15`},md:{popup:`p-2`,content:`w-60 gap-2`,area:`h-40`,sliderSwatch:`gap-2`,fields:`gap-2`,alphaField:`w-16`},lg:{popup:`p-2.5`,content:`w-63.75 gap-2.5`,area:`h-42.5`,sliderSwatch:`gap-2.5`,fields:`gap-2.5`,alphaField:`w-18`},xl:{popup:`p-3`,content:`w-67.5 gap-3`,area:`h-45`,sliderSwatch:`gap-3`,fields:`gap-3`,alphaField:`w-20`},"2xl":{popup:`p-4`,content:`w-80 gap-4`,area:`h-50`,sliderSwatch:`gap-4`,fields:`gap-4`,alphaField:`w-25`}}},defaultVariants:{size:`md`}}),Y({extend:[Zc(Y({slots:{root:[`relative isolate inline-flex shrink-0 overflow-hidden border border-input bg-background shadow-sm`,`data-[no-color]:bg-muted/40`],checker:`absolute inset-0 bg-[linear-gradient(45deg,rgba(0,0,0,0.08)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.08)_75%),linear-gradient(45deg,rgba(0,0,0,0.08)_25%,transparent_25%,transparent_75%,rgba(0,0,0,0.08)_75%)] bg-[length:8px_8px] bg-[position:0_0,4px_4px]`,fill:`absolute inset-0 bg-[var(--soybean-color-swatch-color)]`},variants:{size:{xs:{root:`size-5 text-2xs`},sm:{root:`size-5.5 text-xs`},md:{root:`size-6 text-sm`},lg:{root:`size-6.5 text-base`},xl:{root:`size-7 text-lg`},"2xl":{root:`size-8 text-xl`}},shape:{square:{root:`rounded-md`},circle:{root:`rounded-full`}}},defaultVariants:{size:`md`,shape:`square`}}),{root:`swatchRoot`,checker:`swatchChecker`,fill:`swatchFill`})],slots:{root:`grid`,item:[`relative inline-flex items-center justify-center rounded-full outline-none transition-[transform,box-shadow] duration-150`,`hover:scale-110 data-[highlighted]:scale-105 data-[disabled]:opacity-50`],itemIndicator:`pointer-events-none absolute inset-0 flex justify-center items-center text-muted`,swatchRoot:``,swatchChecker:``,swatchFill:``},variants:{size:{xs:{root:`grid-cols-[repeat(auto-fill,minmax(1.25rem,1fr))] gap-1.5 text-2xs`,item:`size-5`,itemIndicator:`text-4xs`},sm:{root:`grid-cols-[repeat(auto-fill,minmax(1.375rem,1fr))] gap-1.75 text-xs`,item:`size-5.5`,itemIndicator:`text-3xs`},md:{root:`grid-cols-[repeat(auto-fill,minmax(1.5rem,1fr))] gap-2 text-sm`,item:`size-6`,itemIndicator:`text-2xs`},lg:{root:`grid-cols-[repeat(auto-fill,minmax(1.625rem,1fr))] gap-2.5 text-base`,item:`size-6.5`,itemIndicator:`text-xs`},xl:{root:`grid-cols-[repeat(auto-fill,minmax(1.75rem,1fr))] gap-3 text-lg`,item:`size-7`,itemIndicator:`text-sm`},"2xl":{root:`grid-cols-[repeat(auto-fill,minmax(2rem,1fr))] gap-4 text-xl`,item:`size-8`,itemIndicator:`text-base`}},shape:{square:{item:`rounded-md`},circle:{item:`rounded-full`}}},defaultVariants:{size:`md`,shape:`square`}}),Y({extendBase:e=>({close:Hy({size:e.size})}),slots:{positioner:`w-max`,popup:[`w-auto rounded-md border bg-popover text-popover-foreground shadow-md outline-none z-50 will-change-transform`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],arrow:`w-1em h-0.5em fill-popover stroke-border`,close:`absolute`},variants:{size:{xs:{popup:`p-3 text-2xs`,arrow:`text-3xs`,close:`top-0.5 end-0.5`},sm:{popup:`p-3.5 text-xs`,arrow:`text-2xs`,close:`top-0.75 end-0.75`},md:{popup:`p-4 text-sm`,arrow:`text-xs`,close:`top-1 end-1`},lg:{popup:`p-4.5 text-base`,arrow:`text-sm`,close:`top-1.25 end-1.25`},xl:{popup:`p-5 text-lg`,arrow:`text-base`,close:`top-1.5 end-1.5`},"2xl":{popup:`p-5.5 text-xl`,arrow:`text-lg`,close:`top-2 end-2`}}},defaultVariants:{size:`md`}}),Y({slots:{root:[`relative flex w-full touch-none select-none items-center`,`data-[disabled]:opacity-50 data-[orientation=vertical]:flex-col data-[orientation=vertical]:min-h-20`],track:[`relative grow overflow-hidden rounded-full bg-muted`,`data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full`],range:`absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`,thumb:[`absolute block shrink-0 rounded-full bg-background shadow-sm transition-[color,box-shadow]`,`hover:ring-3 outline-none focus-visible:ring-3 data-[disabled]:cursor-not-allowed`]},variants:{color:{primary:{range:`bg-primary`,thumb:`border-primary focus-visible:ring-primary/30 hover:ring-primary/20`},destructive:{range:`bg-destructive`,thumb:`border-destructive focus-visible:ring-destructive/30 hover:ring-destructive/20`},success:{range:`bg-success`,thumb:`border-success focus-visible:ring-success/30 hover:ring-success/20`},warning:{range:`bg-warning`,thumb:`border-warning focus-visible:ring-warning/30 hover:ring-warning/20`},info:{range:`bg-info`,thumb:`border-info focus-visible:ring-info/30 hover:ring-info/20`},carbon:{range:`bg-carbon`,thumb:`border-carbon focus-visible:ring-carbon/30 hover:ring-carbon/20`},secondary:{range:`bg-secondary-foreground/30`,thumb:`border-secondary-foreground/40 focus-visible:ring-secondary-foreground/20 hover:ring-secondary-foreground/20`},accent:{range:`bg-accent-foreground/30`,thumb:`border-accent-foreground/40 focus-visible:ring-accent-foreground/20 hover:ring-accent-foreground/20`}},size:{xs:{root:`h-3 data-[orientation=vertical]:w-3`,track:`data-[orientation=horizontal]:h-1.25 data-[orientation=vertical]:w-1.25`,thumb:`size-3 border`},sm:{root:`h-3.5 data-[orientation=vertical]:w-3.5`,track:`data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5`,thumb:`size-3.5 border`},md:{root:`h-4 data-[orientation=vertical]:w-4`,track:`data-[orientation=horizontal]:h-1.75 data-[orientation=vertical]:w-1.75`,thumb:`size-4 border-2`},lg:{root:`h-4.5 data-[orientation=vertical]:w-4.5`,track:`data-[orientation=horizontal]:h-2 data-[orientation=vertical]:w-2`,thumb:`size-4.5 border-2`},xl:{root:`h-5 data-[orientation=vertical]:w-5`,track:`data-[orientation=horizontal]:h-2.5 data-[orientation=vertical]:w-2.5`,thumb:`size-5 border-3`},"2xl":{root:`h-6 data-[orientation=vertical]:w-6`,track:`data-[orientation=horizontal]:h-3 data-[orientation=vertical]:w-3`,thumb:`size-6 border-3`}}},defaultVariants:{color:`primary`,size:`md`}}),Y({slots:{root:`flex`,list:`relative inline-flex justify-center items-center bg-muted text-muted-foreground`,trigger:[`relative z-3 inline-flex items-center justify-center flex-1 whitespace-nowrap rounded-md font-medium transition-all-200`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`],indicator:`absolute top-0 start-0 z-2 transition-[width,height,transform] duration-300`,indicatorContent:`w-full h-full bg-background shadow`,content:`flex-grow self-stretch transition-all-150 outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`},variants:{size:{xs:{root:`text-2xs`,list:`p-0.75`,trigger:`gap-1 px-1.5 py-0.75`},sm:{root:`text-xs`,list:`p-0.875`,trigger:`gap-1.5 px-2 py-1`},md:{root:`text-sm`,list:`p-1`,trigger:`gap-2 px-3 py-1`},lg:{root:`text-base`,list:`p-1.125`,trigger:`gap-2.5 px-4 py-1.125`},xl:{root:`text-lg`,list:`p-1.25`,trigger:`gap-3 px-5 py-1.25`},"2xl":{root:`text-xl`,list:`p-1.5`,trigger:`gap-4 px-6 py-1.5`}},orientation:{horizontal:{root:`flex-col`,indicator:`h-full w-[--soybean-tabs-indicator-size] translate-x-[--soybean-tabs-indicator-position] rtl:-translate-x-[--soybean-tabs-indicator-position]`},vertical:{list:`flex-col items-stretch`,indicator:`w-full h-[--soybean-tabs-indicator-size] translate-y-[--soybean-tabs-indicator-position]`}},shape:{square:{list:`rounded-md`,indicatorContent:`rounded-md`},rounded:{list:`rounded-full`,indicatorContent:`rounded-full`}},fill:{full:{root:`items-stretch`},auto:{root:`items-start`}},enableIndicator:{false:{trigger:`data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow`}}},compoundVariants:[{size:`xs`,orientation:`horizontal`,class:{indicator:`py-0.75`,content:`mt-1.5`}},{size:`xs`,orientation:`vertical`,class:{indicator:`px-0.75`,content:`ms-1.5`}},{size:`sm`,orientation:`horizontal`,class:{indicator:`py-1`,content:`mt-1.75`}},{size:`sm`,orientation:`vertical`,class:{indicator:`px-1`,content:`ms-1.75`}},{size:`md`,orientation:`horizontal`,class:{indicator:`py-1`,content:`mt-2`}},{size:`md`,orientation:`vertical`,class:{indicator:`px-1`,content:`ms-2`}},{size:`lg`,orientation:`horizontal`,class:{indicator:`py-1.125`,content:`mt-2.5`}},{size:`lg`,orientation:`vertical`,class:{indicator:`px-1.125`,content:`ms-2.5`}},{size:`xl`,orientation:`horizontal`,class:{indicator:`py-1.25`,content:`mt-3`}},{size:`xl`,orientation:`vertical`,class:{indicator:`px-1.25`,content:`ms-3`}},{size:`2xl`,orientation:`horizontal`,class:{indicator:`py-1.5`,content:`mt-3.5`}},{size:`2xl`,orientation:`vertical`,class:{indicator:`px-1.5`,content:`ms-3.5`}}],defaultVariants:{size:`md`,orientation:`horizontal`,shape:`square`,fill:`auto`,enableIndicator:!0}}),Y({slots:{anchor:``,trigger:[`flex w-full items-center justify-between rounded-md border border-input bg-background transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30 focus:ring-3 focus:ring-offset-background focus:ring-primary/30 disabled:pointer-events-none disabled:opacity-50`,`data-[placeholder]:text-muted-foreground`],triggerIcon:`shrink-0 text-muted-foreground opacity-70`,cancel:[`flex shrink-0 items-center justify-center rounded-md bg-transparent text-accent-foreground hover:bg-accent-foreground/10 active:bg-accent-foreground/20`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-accent-foreground/20`,`disabled:cursor-not-allowed disabled:opacity-40`],positioner:``,popup:[`relative z-50 min-w-32 w-[--soybean-combobox-trigger-width] rounded-md border bg-popover text-popover-foreground shadow-md`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],arrow:`fill-popover`,viewport:`overflow-x-hidden overflow-y-auto`,inputRoot:`group flex items-center border-b`,inputControl:`flex w-full rounded-md bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,group:`overflow-hidden text-foreground`,groupLabel:`font-medium text-muted-foreground`,item:[`relative flex w-full cursor-default select-none items-center rounded-sm outline-none`,`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemIndicator:`ms-auto shrink-0 text-muted-foreground`,empty:`py-4 text-center text-sm text-muted-foreground`,separator:`h-px bg-muted`},variants:{size:{xs:{trigger:`h-6 gap-1 px-1.5 text-2xs`,triggerIcon:`text-3xs`,popup:`text-2xs`,cancel:`p-0.75`,inputRoot:`px-1.5 py-0.5`,inputControl:`h-6`,viewport:`max-h-70 p-0.75`,groupLabel:`p-1 text-3xs`,item:`gap-1 px-1 py-1`,separator:`-mx-0.75 my-0.375`},sm:{trigger:`h-7 gap-1.5 px-2 text-xs`,triggerIcon:`text-2xs`,popup:`text-xs`,cancel:`p-0.875`,inputRoot:`px-2 py-0.625`,inputControl:`h-7`,viewport:`max-h-75 p-0.875`,groupLabel:`p-1.25 text-2xs`,item:`gap-1.5 px-1.5 py-1`,separator:`-mx-0.875 my-0.4375`},md:{trigger:`h-8 gap-2 px-2.5 text-sm`,triggerIcon:`text-xs`,popup:`text-sm`,cancel:`p-1`,inputRoot:`px-2.5 py-0.75`,inputControl:`h-8`,viewport:`max-h-80 p-1`,groupLabel:`p-1.75 text-xs`,item:`gap-2 px-2 py-1.5`,separator:`-mx-1 my-0.5`},lg:{trigger:`h-9 gap-2.5 px-3 text-base`,triggerIcon:`text-sm`,popup:`text-base`,cancel:`p-1.25`,inputRoot:`px-3 py-0.875`,inputControl:`h-9`,viewport:`max-h-90 p-1.25`,groupLabel:`p-2 text-sm`,item:`gap-2.5 px-2.5 py-1.5`,separator:`-mx-1.25 my-0.625`},xl:{trigger:`h-10 gap-3 px-3.5 text-lg`,triggerIcon:`text-base`,popup:`text-lg`,cancel:`p-1.5`,inputRoot:`px-3.5 py-1`,inputControl:`h-10`,viewport:`max-h-100 p-1.5`,groupLabel:`p-2.5 text-base`,item:`gap-3 px-3 py-2`,separator:`-mx-1.5 my-0.75`},"2xl":{trigger:`h-12 gap-3.5 px-4 text-xl`,triggerIcon:`text-lg`,popup:`text-xl`,cancel:`p-1.75`,inputRoot:`px-4 py-1.25`,inputControl:`h-12`,viewport:`max-h-115 p-1.75`,groupLabel:`p-3 text-lg`,item:`gap-3.5 px-3.5 py-2.5`,separator:`-mx-1.75 my-0.875`}}},defaultVariants:{size:`md`}});var TM=fl({base:`inline-flex items-center justify-center w-fit text-center font-medium border border-border rounded-sm font-inherit`,variants:{variant:{solid:`border-muted-foreground bg-muted-foreground text-muted shadow-muted-foreground/50`,outline:`border-border bg-background text-muted-foreground shadow-border`,ghost:`border-border bg-muted text-muted-foreground shadow-border/50`},size:{xs:`h-4 min-w-4 px-0.5 text-3xs data-[group]:tracking-0.5`,sm:`h-4.5 min-w-4.5 px-0.625 text-2xs data-[group]:tracking-0.625`,md:`h-5 min-w-5 px-0.75 text-xs data-[group]:tracking-0.75`,lg:`h-6 min-w-6 px-1 text-sm data-[group]:tracking-1`,xl:`h-7 min-w-7 px-1.25 text-base data-[group]:tracking-1.25`,"2xl":`h-8 min-w-8 px-1.5 text-xl data-[group]:tracking-1.5`},raised:{true:`shadow-[0_2px_0_0]`}},defaultVariants:{size:`md`,variant:`outline`,raised:!0}});Y({extendBase:e=>({shortcut:TM({size:e.size})}),slots:{root:`flex w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,inputRoot:`group flex items-center border-b`,inputControl:`flex w-full rounded-md bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,inputIcon:`shrink-0 opacity-50`,inputClearable:`hidden group-hover:block size-1em cursor-pointer opacity-50 hover:opacity-100`,empty:`text-center`,list:`overflow-y-auto overflow-x-hidden`,group:`overflow-hidden text-foreground`,groupLabel:`flex items-center font-medium text-muted-foreground`,item:[`relative flex cursor-default select-none items-center rounded-sm outline-none`,`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemLabel:``,itemIcon:`shrink-0`,separator:`h-px bg-border`,shortcut:`ms-auto`},variants:{size:{xs:{root:`text-2xs`,inputRoot:`px-1.5 py-0.5`,inputControl:`h-6`,inputIcon:`me-1.5`,empty:`py-3`,list:`max-h-70 p-0.75`,groupLabel:`gap-1 p-1 text-3xs`,item:`gap-1 px-1 py-1`,separator:`-mx-1 my-0.75`},sm:{root:`text-xs`,inputRoot:`px-2 py-0.625`,inputControl:`h-7`,inputIcon:`me-1.75`,empty:`py-3.5`,list:`max-h-75 p-0.875`,groupLabel:`gap-1.25 p-1.25 text-2xs`,item:`gap-1.5 px-1.5 py-1`,separator:`-mx-1.5 my-1`},md:{root:`text-sm`,inputRoot:`px-2.5 py-0.75`,inputControl:`h-8`,inputIcon:`me-2`,empty:`py-4 text-sm`,list:`max-h-80 p-1`,groupLabel:`gap-1.75 p-1.75 text-xs`,item:`gap-2 px-2 py-1.5`,separator:`-mx-2 my-1`},lg:{root:`text-base`,inputRoot:`px-3.5 py-0.875`,inputControl:`h-9`,inputIcon:`me-2.5`,empty:`py-4.5`,list:`max-h-90 p-1.25`,groupLabel:`gap-2 p-2 text-sm`,item:`gap-2.5 px-2.5 py-1.5`,separator:`-mx-2.5 my-1.25`},xl:{root:`text-lg`,inputRoot:`px-4 py-1`,inputControl:`h-10`,inputIcon:`me-3`,empty:`py-5`,list:`max-h-100 p-1.5`,groupLabel:`gap-2.5 p-2.5 text-base`,item:`gap-3 px-3 py-2`,separator:`-mx-3 my-1.5`},"2xl":{root:`text-xl`,inputRoot:`px-4.5 py-1.25`,inputControl:`h-12`,inputIcon:`me-3.5`,empty:`py-6`,list:`max-h-115 p-1.75`,groupLabel:`gap-3 p-3 text-lg`,item:`gap-3.5 px-3.5 py-2.5`,separator:`-mx-3.5 my-2`}}},defaultVariants:{size:`md`}});var EM=L({name:`SDialogProvider`,__name:`dialog-provider`,setup(e){return YS(G(()=>VS({size:`md`}))),(e,t)=>(z(),V(F(CC)))}});Y({slots:{root:`relative w-full overflow-hidden rounded-full bg-muted`,indicator:`h-full w-full flex-1 rounded-full transition-[transform,width] duration-300 transform-gpu will-change-transform data-[state=indeterminate]:w-2/5 data-[state=indeterminate]:opacity-80`,circle:``,track:``,label:``},variants:{color:{primary:{indicator:`bg-primary`},destructive:{indicator:`bg-destructive`},success:{indicator:`bg-success`},warning:{indicator:`bg-warning`},info:{indicator:`bg-info`},carbon:{indicator:`bg-carbon`},secondary:{indicator:`bg-secondary-foreground/20`},accent:{indicator:`bg-accent-foreground/20`}},size:{xs:{root:`h-1.5`},sm:{root:`h-2`},md:{root:`h-2.5`},lg:{root:`h-3`},xl:{root:`h-3.5`},"2xl":{root:`h-4`}}},defaultVariants:{color:`primary`,size:`md`}}),Y({slots:{root:`relative inline-flex shrink-0 items-center justify-center rounded-full`,indicator:`fill-none stroke-current transition-[stroke-dasharray,stroke-dashoffset] duration-300 ease-in-out`,circle:`size-full`,track:`fill-none stroke-current text-muted`,label:`pointer-events-none absolute inset-0 flex items-center justify-center`},variants:{color:{primary:{indicator:`text-primary`},destructive:{indicator:`text-destructive`},success:{indicator:`text-success`},warning:{indicator:`text-warning`},info:{indicator:`text-info`},carbon:{indicator:`text-carbon`},secondary:{indicator:`text-secondary-foreground/40`},accent:{indicator:`text-accent-foreground/40`}},size:{xs:{root:`h-8 w-8 text-[10px]`},sm:{root:`h-10 w-10 text-xs`},md:{root:`h-12 w-12 text-sm`},lg:{root:`h-16 w-16 text-base`},xl:{root:`h-20 w-20 text-lg`},"2xl":{root:`h-24 w-24 text-xl`}}},defaultVariants:{color:`primary`,size:`md`}});var DM=Y({slots:{root:`fixed z-99999 w-0 h-0 pointer-events-none`,indicator:`fixed top-0 start-0 w-full h-0.75 bg-primary`}}),OM=L({name:`SProgressProvider`,__name:`progress-provider`,props:{direction:{},minimum:{},maximum:{},easing:{},speed:{},trickle:{type:Boolean},trickleSpeed:{}},setup(e){let t=e;return Rk(G(()=>DM())),(e,n)=>(z(),V(F(Kk),M(Oa(t)),null,16))}}),kM=Y({extendBase:e=>({close:Hy({size:e.size}),cancel:Vy({size:e.size,variant:`pure`}),action:Vy({size:e.size})}),slots:{toaster:[`fixed z-[--z-index] list-none outline-none transition-transform-400 ease`,`data-[x-position=right]:end-[--offset-right] data-[x-position=left]:start-[--offset-left] data-[x-position=center]:start-1/2 data-[x-position=center]:-translate-x-1/2 [&[dir=rtl]]:data-[x-position=center]:translate-x-1/2`,`data-[y-position=top]:top-[--offset-top] data-[y-position=bottom]:bottom-[--offset-bottom]`],toast:[`group absolute w-full rounded-md bg-popover text-popover-foreground border border-transparent opacity-0 outline-none touch-none`,`data-[y-position=top]:top-0 data-[y-position=top]:[--y:translateY(-100%)]`,`data-[y-position=bottom]:[--lift:-1] data-[y-position=bottom]:bottom-0`,`data-[x-position=left]:start-0 data-[x-position=right]:end-0`],wrapper:`flex flex-col items-stretch`,content:``,title:`flex items-center font-semibold`,description:`text-muted-foreground`,icon:[`group-data-[type=info]:text-info group-data-[type=success]:text-success group-data-[type=warning]:text-warning group-data-[type=error]:text-destructive`],footer:`flex justify-end items-center`,action:``,cancel:``,close:`absolute group-data-[inverted=true]:text-accent group-data-[inverted=true]:hover:bg-accent/15`},variants:{size:{xs:{toaster:`w-80 text-2xs`,toast:`p-3`,wrapper:`gap-1`,title:`gap-1.25`,footer:`gap-1.25`,close:`top-1 end-1`},sm:{toaster:`w-85 text-xs`,toast:`p-3.5`,wrapper:`gap-1.25`,title:`gap-1.5`,footer:`gap-1.5`,close:`top-1.25 end-1.25`},md:{toaster:`w-90 text-sm`,toast:`p-4`,wrapper:`gap-1.5`,title:`gap-2`,footer:`gap-2`,close:`top-1.5 end-1.5`},lg:{toaster:`w-95 text-base`,toast:`p-4.5`,wrapper:`gap-1.75`,title:`gap-2.5`,footer:`gap-2.5`,close:`top-1.75 end-1.75`},xl:{toaster:`w-100 text-lg`,toast:`p-5`,wrapper:`gap-2`,title:`gap-3`,footer:`gap-3`,close:`top-2 end-2`},"2xl":{toaster:`w-110 text-xl`,toast:`p-6`,wrapper:`gap-2.5`,title:`gap-4`,footer:`gap-4`,close:`top-2.5 end-2.5`}}},defaultVariants:{size:`md`}}),AM=`[data-soybean-toast] { + --y: translateY(100%); + --lift: 1; + --lift-amount: calc(var(--lift) * var(--gap)); + z-index: var(--z-index); + transform: var(--y); + overflow-wrap: anywhere; + + transition: + transform 400ms, + opacity 400ms, + height 400ms, + box-shadow 200ms; + + box-shadow: 0 4px 12px hsl(var(--foreground) / 0.1); +} + +[data-soybean-toast]:focus-visible { + box-shadow: + 0 4px 12px hsl(var(--foreground) / 0.1), + 0 0 0 2px hsl(var(--foreground) / 0.2); +} + +[data-soybean-toast][data-swiping='true'] { + transform: var(--y) translateY(var(--swipe-amount-y, 0px)) translateX(var(--swipe-amount-x, 0px)); + transition: none; +} + +[data-soybean-toast][data-swiping='true']::before { + content: ''; + position: absolute; + inset-inline: -100%; + height: 100%; + z-index: -1; +} + +[data-soybean-toast][data-y-position='top'][data-swiping='true']::before { + bottom: 50%; + transform: scaleY(3) translateY(50%); +} + +[data-soybean-toast][data-y-position='bottom'][data-swiping='true']::before { + top: 50%; + transform: scaleY(3) translateY(-50%); +} + +[data-soybean-toast][data-swiping='false'][data-removed='true']::before { + content: ''; + position: absolute; + inset: 0; + transform: scaleY(2); +} + +[data-soybean-toast][data-expanded='true']::after { + content: ''; + position: absolute; + inset-inline-start: 0; + height: calc(var(--gap) + 1px); + bottom: 100%; + width: 100%; +} + +[data-soybean-toast][data-mounted='true'] { + --y: translateY(0); + opacity: 1; +} + +[data-soybean-toast][data-expanded='false'][data-front='false'] { + --scale: var(--toasts-before) * 0.05 + 1; + --y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale))); + height: var(--front-toast-height); +} + +[data-soybean-toast][data-expanded='false'][data-front='false'] > * { + opacity: 0; +} + +[data-soybean-toast][data-visible='false'] { + opacity: 0; + pointer-events: none; +} + +[data-soybean-toast][data-mounted='true'][data-expanded='true'] { + --y: translateY(calc(var(--lift) * var(--offset))); + height: var(--initial-height); +} + +[data-soybean-toast][data-removed='true'][data-front='true'][data-swipe-out='false'] { + --y: translateY(calc(var(--lift) * -100%)); + opacity: 0; +} + +[data-soybean-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true'] { + --y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%)); + opacity: 0; +} + +[data-soybean-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false'] { + --y: translateY(40%); + opacity: 0; + transition: + transform 500ms, + opacity 200ms; +} + +[data-soybean-toast][data-removed='true'][data-front='false']::before { + height: calc(var(--initial-height) + 20%); +} + +[data-soybean-toast][data-swiped='true'] { + -webkit-user-select: none; + user-select: none; +} + +[data-soybean-toast][data-swipe-out='true'][data-y-position='bottom'], +[data-soybean-toast][data-swipe-out='true'][data-y-position='top'] { + animation-duration: 200ms; + animation-timing-function: ease-out; + animation-fill-mode: forwards; +} + +[data-soybean-toast][data-swipe-out='true'][data-swipe-direction='left'] { + animation-name: swipe-out-left; +} + +[data-soybean-toast][data-swipe-out='true'][data-swipe-direction='right'] { + animation-name: swipe-out-right; +} + +[data-soybean-toast][data-swipe-out='true'][data-swipe-direction='up'] { + animation-name: swipe-out-up; +} + +[data-soybean-toast][data-swipe-out='true'][data-swipe-direction='down'] { + animation-name: swipe-out-down; +} + +[data-soybean-toast][data-rich-color='true'][data-type='success'] { + background-color: hsl(var(--success-100)); + border-color: hsl(var(--success)); +} + +[data-soybean-toast][data-rich-color='true'][data-type='info'] { + background-color: hsl(var(--info-100)); + border-color: hsl(var(--info)); +} + +[data-soybean-toast][data-rich-color='true'][data-type='warning'] { + background-color: hsl(var(--warning-100)); + border-color: hsl(var(--warning)); +} + +[data-soybean-toast][data-rich-color='true'][data-type='error'] { + background-color: hsl(var(--destructive-100)); + border-color: hsl(var(--destructive)); +} + +[data-soybean-toast][data-inverted='true'] { + background-color: hsl(var(--carbon)); + border-color: hsl(var(--carbon)); + color: hsl(var(--carbon-foreground)); +} + +[data-soybean-toast] > * { + transition: opacity 400ms; +} + +@keyframes swipe-out-left { + from { + transform: var(--y) translateX(var(--swipe-amount-x)); + opacity: 1; + } + + to { + transform: var(--y) translateX(calc(var(--swipe-amount-x) - 100%)); + opacity: 0; + } +} + +@keyframes swipe-out-right { + from { + transform: var(--y) translateX(var(--swipe-amount-x)); + opacity: 1; + } + + to { + transform: var(--y) translateX(calc(var(--swipe-amount-x) + 100%)); + opacity: 0; + } +} + +@keyframes swipe-out-up { + from { + transform: var(--y) translateY(var(--swipe-amount-y)); + opacity: 1; + } + + to { + transform: var(--y) translateY(calc(var(--swipe-amount-y) - 100%)); + opacity: 0; + } +} + +@keyframes swipe-out-down { + from { + transform: var(--y) translateY(var(--swipe-amount-y)); + opacity: 1; + } + + to { + transform: var(--y) translateY(calc(var(--swipe-amount-y) + 100%)); + opacity: 0; + } +} + +@keyframes sonner-fade-in { + 0% { + opacity: 0; + transform: scale(0.8); + } + + 100% { + opacity: 1; + transform: scale(1); + } +} + +@keyframes sonner-fade-out { + 0% { + opacity: 1; + transform: scale(1); + } + + 100% { + opacity: 0; + transform: scale(0.8); + } +} + +@media (max-width: 600px) { + [data-soybean-toaster] { + width: 100%; + inset-inline-start: var(--mobile-offset-left); + inset-inline-end: var(--mobile-offset-right); + } + + [data-soybean-toaster][data-soybean-toast] { + inset-inline: 0; + width: calc(100% - var(--mobile-offset-left) * 2); + } + + [data-soybean-toaster][data-x-position='left'] { + inset-inline-start: var(--mobile-offset-left); + } + + [data-soybean-toaster][data-y-position='bottom'] { + bottom: var(--mobile-offset-bottom); + } + + [data-soybean-toaster][data-y-position='top'] { + top: var(--mobile-offset-top); + } + + [data-soybean-toaster][data-x-position='center'] { + inset-inline-start: var(--mobile-offset-left); + inset-inline-end: var(--mobile-offset-right); + transform: none; + } +} +`,jM=L({name:`SToastProvider`,__name:`toast-provider`,props:{size:{},ui:{},id:{},dir:{},hotkey:{},customAriaLabel:{},containerAriaLabel:{},position:{},defaultExpanded:{type:Boolean},duration:{},gap:{},offset:{},visibleCounts:{},swipeDirections:{},showIcon:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},icons:{},toastProps:{},wrapperProps:{},contentProps:{},titleProps:{},descriptionProps:{},iconProps:{},footerProps:{},actionProps:{},cancelProps:{},closeProps:{}},setup(e){let t=e,n=fy(t,[`size`,`ui`]),r=G(()=>kM({size:t.size},t.ui));return Xv(AM,{id:`__SoybeanUI_toastStyle`}),pj(r),(e,t)=>(z(),V(F(Wj),M(Oa(F(n))),{default:I(()=>[R(e.$slots,`default`)]),_:3},16))}}),MM=(e,t)=>{e.prototype.toLab=function(){return Ku(sd(this.getSource())||qu(this.rgb))},e.prototype.toLabString=function(){return cd(this.getSource())||od(this.rgb)},e.prototype.delta=function(t=`#FFF`){let n=t instanceof e?t:new e(t);return _u(gu(wd(this.toLab(),n.toLab())/100,3))},t.string.push([id,`lab`]),t.object.push([td,`lab`])},NM={inherit:`inherit`,current:`currentColor`,transparent:`transparent`,black:{hex:`#000000`,rgb:`rgb(0 0 0)`,hsl:`hsl(0 0% 0%)`,oklch:`oklch(0% 0 0)`},white:{hex:`#ffffff`,rgb:`rgb(255 255 255)`,hsl:`hsl(0 0% 100%)`,oklch:`oklch(100% 0 0)`}},PM={slate:{50:{level:50,hex:`#f8fafc`,rgb:`rgb(248 250 252)`,hsl:`hsl(210 40% 98%)`,oklch:`oklch(98% 0 248)`},100:{level:100,hex:`#f1f5f9`,rgb:`rgb(241 245 249)`,hsl:`hsl(210 40% 96.1%)`,oklch:`oklch(97% 0.01 248)`},200:{level:200,hex:`#e2e8f0`,rgb:`rgb(226 232 240)`,hsl:`hsl(214.3 31.8% 91.4%)`,oklch:`oklch(93% 0.01 256)`},300:{level:300,hex:`#cbd5e1`,rgb:`rgb(203 213 225)`,hsl:`hsl(212.7 26.8% 83.9%)`,oklch:`oklch(87% 0.02 253)`},400:{level:400,hex:`#94a3b8`,rgb:`rgb(148 163 184)`,hsl:`hsl(215 20.2% 65.1%)`,oklch:`oklch(71% 0.04 257)`},500:{level:500,hex:`#64748b`,rgb:`rgb(100 116 139)`,hsl:`hsl(215.4 16.3% 46.9%)`,oklch:`oklch(55% 0.04 257)`},600:{level:600,hex:`#475569`,rgb:`rgb(71 85 105)`,hsl:`hsl(215.3 19.3% 34.5%)`,oklch:`oklch(45% 0.04 257)`},700:{level:700,hex:`#334155`,rgb:`rgb(51 65 85)`,hsl:`hsl(215.3 25% 26.7%)`,oklch:`oklch(37% 0.04 257)`},800:{level:800,hex:`#1e293b`,rgb:`rgb(30 41 59)`,hsl:`hsl(217.2 32.6% 17.5%)`,oklch:`oklch(28% 0.04 260)`},900:{level:900,hex:`#0f172a`,rgb:`rgb(15 23 42)`,hsl:`hsl(222.2 47.4% 11.2%)`,oklch:`oklch(21% 0.04 266)`},950:{level:950,hex:`#020617`,rgb:`rgb(2 6 23)`,hsl:`hsl(222.2 84% 4.9%)`,oklch:`oklch(13% 0.04 265)`}},mist:{50:{level:50,hex:`#f9fafb`,rgb:`rgb(249 250 251)`,hsl:`hsl(189.3 20.3% 97.9%)`,oklch:`oklch(0.98 0.00 210)`},100:{level:100,hex:`#f0f4f5`,rgb:`rgb(240 244 245)`,hsl:`hsl(189.4 21.6% 95.1%)`,oklch:`oklch(0.96 0.01 210)`},200:{level:200,hex:`#dce5e6`,rgb:`rgb(220 229 230)`,hsl:`hsl(189.4 16.2% 88.4%)`,oklch:`oklch(0.92 0.01 210)`},300:{level:300,hex:`#c1cfd2`,rgb:`rgb(193 207 210)`,hsl:`hsl(189.4 15.8% 79%)`,oklch:`oklch(0.84 0.02 210)`},400:{level:400,hex:`#8da5a9`,rgb:`rgb(141 165 169)`,hsl:`hsl(189.3 14% 60.9%)`,oklch:`oklch(0.70 0.03 210)`},500:{level:500,hex:`#648085`,rgb:`rgb(100 128 133)`,hsl:`hsl(189.3 14.2% 45.7%)`,oklch:`oklch(0.58 0.03 210)`},600:{level:600,hex:`#4f676b`,rgb:`rgb(79 103 107)`,hsl:`hsl(189.3 15.1% 36.5%)`,oklch:`oklch(0.49 0.03 210)`},700:{level:700,hex:`#3d5155`,rgb:`rgb(61 81 85)`,hsl:`hsl(189.3 15.9% 28.6%)`,oklch:`oklch(0.42 0.03 210)`},800:{level:800,hex:`#2d3c3f`,rgb:`rgb(45 60 63)`,hsl:`hsl(189.3 17.2% 21.2%)`,oklch:`oklch(0.34 0.02 210)`},900:{level:900,hex:`#1e2a2c`,rgb:`rgb(30 42 44)`,hsl:`hsl(189.3 19.2% 14.6%)`,oklch:`oklch(0.28 0.02 210)`},950:{level:950,hex:`#0e1517`,rgb:`rgb(14 21 23)`,hsl:`hsl(189.3 25.3% 7.1%)`,oklch:`oklch(0.19 0.01 210)`}},gray:{50:{level:50,hex:`#f9fafb`,rgb:`rgb(249 250 251)`,hsl:`hsl(210 20% 98%)`,oklch:`oklch(98% 0 248)`},100:{level:100,hex:`#f3f4f6`,rgb:`rgb(243 244 246)`,hsl:`hsl(220 14.3% 95.9%)`,oklch:`oklch(97% 0 265)`},200:{level:200,hex:`#e5e7eb`,rgb:`rgb(229 231 235)`,hsl:`hsl(220 13% 91%)`,oklch:`oklch(93% 0.01 265)`},300:{level:300,hex:`#d1d5db`,rgb:`rgb(209 213 219)`,hsl:`hsl(216 12.2% 83.9%)`,oklch:`oklch(87% 0.01 258)`},400:{level:400,hex:`#9ca3af`,rgb:`rgb(156 163 175)`,hsl:`hsl(217.9 10.6% 64.9%)`,oklch:`oklch(71% 0.02 261)`},500:{level:500,hex:`#6b7280`,rgb:`rgb(107 114 128)`,hsl:`hsl(220 8.9% 46.1%)`,oklch:`oklch(55% 0.02 264)`},600:{level:600,hex:`#4b5563`,rgb:`rgb(75 85 99)`,hsl:`hsl(215 13.8% 34.1%)`,oklch:`oklch(45% 0.03 257)`},700:{level:700,hex:`#374151`,rgb:`rgb(55 65 81)`,hsl:`hsl(216.9 19.1% 26.7%)`,oklch:`oklch(37% 0.03 260)`},800:{level:800,hex:`#1f2937`,rgb:`rgb(31 41 55)`,hsl:`hsl(215 27.9% 16.9%)`,oklch:`oklch(28% 0.03 257)`},900:{level:900,hex:`#111827`,rgb:`rgb(17 24 39)`,hsl:`hsl(220.9 39.3% 11%)`,oklch:`oklch(21% 0.03 265)`},950:{level:950,hex:`#030712`,rgb:`rgb(3 7 18)`,hsl:`hsl(224 71.4% 4.1%)`,oklch:`oklch(13% 0.03 262)`}},zinc:{50:{level:50,hex:`#fafafa`,rgb:`rgb(250 250 250)`,hsl:`hsl(0 0% 98%)`,oklch:`oklch(99% 0 360)`},100:{level:100,hex:`#f4f4f5`,rgb:`rgb(244 244 245)`,hsl:`hsl(240 4.8% 95.9%)`,oklch:`oklch(97% 0 286)`},200:{level:200,hex:`#e4e4e7`,rgb:`rgb(228 228 231)`,hsl:`hsl(240 5.9% 90%)`,oklch:`oklch(92% 0 286)`},300:{level:300,hex:`#d4d4d8`,rgb:`rgb(212 212 216)`,hsl:`hsl(240 4.9% 83.9%)`,oklch:`oklch(87% 0.01 286)`},400:{level:400,hex:`#a1a1aa`,rgb:`rgb(161 161 170)`,hsl:`hsl(240 5% 64.9%)`,oklch:`oklch(71% 0.01 286)`},500:{level:500,hex:`#71717a`,rgb:`rgb(113 113 122)`,hsl:`hsl(240 3.8% 46.1%)`,oklch:`oklch(55% 0.01 286)`},600:{level:600,hex:`#52525b`,rgb:`rgb(82 82 91)`,hsl:`hsl(240 5.2% 33.9%)`,oklch:`oklch(44% 0.01 286)`},700:{level:700,hex:`#3f3f46`,rgb:`rgb(63 63 70)`,hsl:`hsl(240 5.3% 26.1%)`,oklch:`oklch(37% 0.01 286)`},800:{level:800,hex:`#27272a`,rgb:`rgb(39 39 42)`,hsl:`hsl(240 3.7% 15.9%)`,oklch:`oklch(27% 0.01 286)`},900:{level:900,hex:`#18181b`,rgb:`rgb(24 24 27)`,hsl:`hsl(240 5.9% 10%)`,oklch:`oklch(21% 0.01 286)`},950:{level:950,hex:`#09090b`,rgb:`rgb(9 9 11)`,hsl:`hsl(240 10% 3.9%)`,oklch:`oklch(14% 0 286)`}},neutral:{50:{level:50,hex:`#fafafa`,rgb:`rgb(250 250 250)`,hsl:`hsl(0 0% 98%)`,oklch:`oklch(99% 0 360)`},100:{level:100,hex:`#f5f5f5`,rgb:`rgb(245 245 245)`,hsl:`hsl(0 0% 96.1%)`,oklch:`oklch(97% 0 360)`},200:{level:200,hex:`#e5e5e5`,rgb:`rgb(229 229 229)`,hsl:`hsl(0 0% 89.8%)`,oklch:`oklch(92% 0 360)`},300:{level:300,hex:`#d4d4d4`,rgb:`rgb(212 212 212)`,hsl:`hsl(0 0% 83.1%)`,oklch:`oklch(87% 0 360)`},400:{level:400,hex:`#a3a3a3`,rgb:`rgb(163 163 163)`,hsl:`hsl(0 0% 63.9%)`,oklch:`oklch(72% 0 360)`},500:{level:500,hex:`#737373`,rgb:`rgb(115 115 115)`,hsl:`hsl(0 0% 45.1%)`,oklch:`oklch(56% 0 360)`},600:{level:600,hex:`#525252`,rgb:`rgb(82 82 82)`,hsl:`hsl(0 0% 32.2%)`,oklch:`oklch(44% 0 360)`},700:{level:700,hex:`#404040`,rgb:`rgb(64 64 64)`,hsl:`hsl(0 0% 25.1%)`,oklch:`oklch(37% 0 360)`},800:{level:800,hex:`#262626`,rgb:`rgb(38 38 38)`,hsl:`hsl(0 0% 14.9%)`,oklch:`oklch(27% 0 360)`},900:{level:900,hex:`#171717`,rgb:`rgb(23 23 23)`,hsl:`hsl(0 0% 9%)`,oklch:`oklch(20% 0 360)`},950:{level:950,hex:`#0a0a0a`,rgb:`rgb(10 10 10)`,hsl:`hsl(0 0% 3.9%)`,oklch:`oklch(14% 0 360)`}},stone:{50:{level:50,hex:`#fafaf9`,rgb:`rgb(250 250 249)`,hsl:`hsl(60 9.1% 97.8%)`,oklch:`oklch(98% 0 106)`},100:{level:100,hex:`#f5f5f4`,rgb:`rgb(245 245 244)`,hsl:`hsl(60 4.8% 95.9%)`,oklch:`oklch(97% 0 106)`},200:{level:200,hex:`#e7e5e4`,rgb:`rgb(231 229 228)`,hsl:`hsl(20 5.9% 90%)`,oklch:`oklch(92% 0 49)`},300:{level:300,hex:`#d6d3d1`,rgb:`rgb(214 211 209)`,hsl:`hsl(24 5.7% 82.9%)`,oklch:`oklch(87% 0 56)`},400:{level:400,hex:`#a8a29e`,rgb:`rgb(168 162 158)`,hsl:`hsl(24 5.4% 63.9%)`,oklch:`oklch(72% 0.01 56)`},500:{level:500,hex:`#78716c`,rgb:`rgb(120 113 108)`,hsl:`hsl(25 5.3% 44.7%)`,oklch:`oklch(55% 0.01 58)`},600:{level:600,hex:`#57534e`,rgb:`rgb(87 83 78)`,hsl:`hsl(33.3 5.5% 32.4%)`,oklch:`oklch(44% 0.01 74)`},700:{level:700,hex:`#44403c`,rgb:`rgb(68 64 60)`,hsl:`hsl(30 6.3% 25.1%)`,oklch:`oklch(37% 0.01 68)`},800:{level:800,hex:`#292524`,rgb:`rgb(41 37 36)`,hsl:`hsl(12 6.5% 15.1%)`,oklch:`oklch(27% 0.01 34)`},900:{level:900,hex:`#1c1917`,rgb:`rgb(28 25 23)`,hsl:`hsl(24 9.8% 10%)`,oklch:`oklch(22% 0.01 56)`},950:{level:950,hex:`#0c0a09`,rgb:`rgb(12 10 9)`,hsl:`hsl(20 14.3% 4.1%)`,oklch:`oklch(15% 0 49)`}},taupe:{50:{level:50,hex:`#fbfaf9`,rgb:`rgb(251 250 249)`,hsl:`hsl(34 21.3% 97.9%)`,oklch:`oklch(0.98 0.00 75)`},100:{level:100,hex:`#f5f3f0`,rgb:`rgb(245 243 240)`,hsl:`hsl(34 22.7% 95.1%)`,oklch:`oklch(0.96 0.01 75)`},200:{level:200,hex:`#e7e2dc`,rgb:`rgb(231 226 220)`,hsl:`hsl(34.1 18.7% 88.4%)`,oklch:`oklch(0.92 0.01 75)`},300:{level:300,hex:`#d3cbc0`,rgb:`rgb(211 203 192)`,hsl:`hsl(34.1 18.3% 79%)`,oklch:`oklch(0.84 0.02 75)`},400:{level:400,hex:`#aa9e8d`,rgb:`rgb(170 158 141)`,hsl:`hsl(34.2 14.8% 61.1%)`,oklch:`oklch(0.70 0.03 75)`},500:{level:500,hex:`#867865`,rgb:`rgb(134 120 101)`,hsl:`hsl(34.3 14.1% 46.1%)`,oklch:`oklch(0.58 0.03 75)`},600:{level:600,hex:`#6c6050`,rgb:`rgb(108 96 80)`,hsl:`hsl(34.3 14.9% 36.8%)`,oklch:`oklch(0.49 0.03 75)`},700:{level:700,hex:`#554b3e`,rgb:`rgb(85 75 62)`,hsl:`hsl(34.3 15.7% 28.9%)`,oklch:`oklch(0.42 0.03 75)`},800:{level:800,hex:`#40382d`,rgb:`rgb(64 56 45)`,hsl:`hsl(34.3 17% 21.4%)`,oklch:`oklch(0.34 0.02 75)`},900:{level:900,hex:`#2c271f`,rgb:`rgb(44 39 31)`,hsl:`hsl(34.3 17.7% 14.8%)`,oklch:`oklch(0.28 0.02 75)`},950:{level:950,hex:`#17130e`,rgb:`rgb(23 19 14)`,hsl:`hsl(34.4 24.8% 7.2%)`,oklch:`oklch(0.19 0.01 75)`}},olive:{50:{level:50,hex:`#f9faf9`,rgb:`rgb(249 250 249)`,hsl:`hsl(136.8 13.4% 97.9%)`,oklch:`oklch(0.98 0.00 155)`},100:{level:100,hex:`#f1f4f2`,rgb:`rgb(241 244 242)`,hsl:`hsl(136.9 14.2% 95.2%)`,oklch:`oklch(0.96 0.01 155)`},200:{level:200,hex:`#dee5e0`,rgb:`rgb(222 229 224)`,hsl:`hsl(137 10.6% 88.5%)`,oklch:`oklch(0.92 0.01 155)`},300:{level:300,hex:`#c4cfc8`,rgb:`rgb(196 207 200)`,hsl:`hsl(137.2 10.3% 79.2%)`,oklch:`oklch(0.84 0.02 155)`},400:{level:400,hex:`#94a599`,rgb:`rgb(148 165 153)`,hsl:`hsl(137.8 8.7% 61.4%)`,oklch:`oklch(0.70 0.03 155)`},500:{level:500,hex:`#6c8072`,rgb:`rgb(108 128 114)`,hsl:`hsl(138.4 8.6% 46.3%)`,oklch:`oklch(0.58 0.03 155)`},600:{level:600,hex:`#56675b`,rgb:`rgb(86 103 91)`,hsl:`hsl(138.4 9.1% 37%)`,oklch:`oklch(0.49 0.03 155)`},700:{level:700,hex:`#435147`,rgb:`rgb(67 81 71)`,hsl:`hsl(138.4 9.5% 29.1%)`,oklch:`oklch(0.42 0.02 155)`},800:{level:800,hex:`#313c35`,rgb:`rgb(49 60 53)`,hsl:`hsl(138.4 10.2% 21.5%)`,oklch:`oklch(0.34 0.02 155)`},900:{level:900,hex:`#222a24`,rgb:`rgb(34 42 36)`,hsl:`hsl(138.5 11.2% 14.8%)`,oklch:`oklch(0.28 0.02 155)`},950:{level:950,hex:`#101512`,rgb:`rgb(16 21 18)`,hsl:`hsl(138.4 14.2% 7.3%)`,oklch:`oklch(0.19 0.01 155)`}},mauve:{50:{level:50,hex:`#fafafb`,rgb:`rgb(250 250 251)`,hsl:`hsl(272.4 15% 98.2%)`,oklch:`oklch(0.98 0.00 310)`},100:{level:100,hex:`#f4f2f6`,rgb:`rgb(244 242 246)`,hsl:`hsl(272.4 16.1% 95.8%)`,oklch:`oklch(0.96 0.01 310)`},200:{level:200,hex:`#e5e1e8`,rgb:`rgb(229 225 232)`,hsl:`hsl(272.5 13% 89.6%)`,oklch:`oklch(0.92 0.01 310)`},300:{level:300,hex:`#d0c9d5`,rgb:`rgb(208 201 213)`,hsl:`hsl(272.6 12.6% 81.2%)`,oklch:`oklch(0.84 0.02 310)`},400:{level:400,hex:`#a69bae`,rgb:`rgb(166 155 174)`,hsl:`hsl(272.9 10.6% 64.6%)`,oklch:`oklch(0.70 0.03 310)`},500:{level:500,hex:`#81758b`,rgb:`rgb(129 117 139)`,hsl:`hsl(273.2 8.6% 50.1%)`,oklch:`oklch(0.58 0.04 310)`},600:{level:600,hex:`#675d70`,rgb:`rgb(103 93 112)`,hsl:`hsl(273.2 9.2% 40.2%)`,oklch:`oklch(0.49 0.03 310)`},700:{level:700,hex:`#524959`,rgb:`rgb(82 73 89)`,hsl:`hsl(273.3 9.7% 31.7%)`,oklch:`oklch(0.42 0.03 310)`},800:{level:800,hex:`#3d3642`,rgb:`rgb(61 54 66)`,hsl:`hsl(273.3 10.2% 23.6%)`,oklch:`oklch(0.34 0.02 310)`},900:{level:900,hex:`#2a252e`,rgb:`rgb(42 37 46)`,hsl:`hsl(273.3 10.9% 16.4%)`,oklch:`oklch(0.28 0.02 310)`},950:{level:950,hex:`#161218`,rgb:`rgb(22 18 24)`,hsl:`hsl(273.3 14.1% 8.3%)`,oklch:`oklch(0.19 0.01 310)`}},red:{50:{level:50,hex:`#fef2f2`,rgb:`rgb(254 242 242)`,hsl:`hsl(0 85.7% 97.3%)`,oklch:`oklch(97% 0.01 17)`},100:{level:100,hex:`#fee2e2`,rgb:`rgb(254 226 226)`,hsl:`hsl(0 93.3% 94.1%)`,oklch:`oklch(94% 0.03 18)`},200:{level:200,hex:`#fecaca`,rgb:`rgb(254 202 202)`,hsl:`hsl(0 96.3% 89.4%)`,oklch:`oklch(88% 0.06 18)`},300:{level:300,hex:`#fca5a5`,rgb:`rgb(252 165 165)`,hsl:`hsl(0 93.5% 81.8%)`,oklch:`oklch(81% 0.1 20)`},400:{level:400,hex:`#f87171`,rgb:`rgb(248 113 113)`,hsl:`hsl(0 90.6% 70.8%)`,oklch:`oklch(71% 0.17 22)`},500:{level:500,hex:`#ef4444`,rgb:`rgb(239 68 68)`,hsl:`hsl(0 84.2% 60.2%)`,oklch:`oklch(64% 0.21 25)`},600:{level:600,hex:`#dc2626`,rgb:`rgb(220 38 38)`,hsl:`hsl(0 72.2% 50.6%)`,oklch:`oklch(58% 0.22 27)`},700:{level:700,hex:`#b91c1c`,rgb:`rgb(185 28 28)`,hsl:`hsl(0 73.7% 41.8%)`,oklch:`oklch(51% 0.19 28)`},800:{level:800,hex:`#991b1b`,rgb:`rgb(153 27 27)`,hsl:`hsl(0 70% 35.3%)`,oklch:`oklch(44% 0.16 27)`},900:{level:900,hex:`#7f1d1d`,rgb:`rgb(127 29 29)`,hsl:`hsl(0 62.8% 30.6%)`,oklch:`oklch(40% 0.13 26)`},950:{level:950,hex:`#450a0a`,rgb:`rgb(69 10 10)`,hsl:`hsl(0 74.7% 15.5%)`,oklch:`oklch(26% 0.09 26)`}},orange:{50:{level:50,hex:`#fff7ed`,rgb:`rgb(255 247 237)`,hsl:`hsl(33.3 100% 96.5%)`,oklch:`oklch(98% 0.02 74)`},100:{level:100,hex:`#ffedd5`,rgb:`rgb(255 237 213)`,hsl:`hsl(34.3 100% 91.8%)`,oklch:`oklch(95% 0.04 75)`},200:{level:200,hex:`#fed7aa`,rgb:`rgb(254 215 170)`,hsl:`hsl(32.1 97.7% 83.1%)`,oklch:`oklch(90% 0.07 71)`},300:{level:300,hex:`#fdba74`,rgb:`rgb(253 186 116)`,hsl:`hsl(30.7 97.2% 72.4%)`,oklch:`oklch(84% 0.12 66)`},400:{level:400,hex:`#fb923c`,rgb:`rgb(251 146 60)`,hsl:`hsl(27 96% 61%)`,oklch:`oklch(76% 0.16 56)`},500:{level:500,hex:`#f97316`,rgb:`rgb(249 115 22)`,hsl:`hsl(24.6 95% 53.1%)`,oklch:`oklch(70% 0.19 48)`},600:{level:600,hex:`#ea580c`,rgb:`rgb(234 88 12)`,hsl:`hsl(20.5 90.2% 48.2%)`,oklch:`oklch(65% 0.19 41)`},700:{level:700,hex:`#c2410c`,rgb:`rgb(194 65 12)`,hsl:`hsl(17.5 88.3% 40.4%)`,oklch:`oklch(55% 0.17 38)`},800:{level:800,hex:`#9a3412`,rgb:`rgb(154 52 18)`,hsl:`hsl(15 79.1% 33.7%)`,oklch:`oklch(47% 0.14 37)`},900:{level:900,hex:`#7c2d12`,rgb:`rgb(124 45 18)`,hsl:`hsl(15.3 74.6% 27.8%)`,oklch:`oklch(41% 0.12 38)`},950:{level:950,hex:`#431407`,rgb:`rgb(67 20 7)`,hsl:`hsl(13 81.1% 14.5%)`,oklch:`oklch(27% 0.08 36)`}},amber:{50:{level:50,hex:`#fffbeb`,rgb:`rgb(255 251 235)`,hsl:`hsl(48 100% 96.1%)`,oklch:`oklch(99% 0.02 95)`},100:{level:100,hex:`#fef3c7`,rgb:`rgb(254 243 199)`,hsl:`hsl(48 96.5% 88.8%)`,oklch:`oklch(96% 0.06 96)`},200:{level:200,hex:`#fde68a`,rgb:`rgb(253 230 138)`,hsl:`hsl(48 96.6% 76.7%)`,oklch:`oklch(92% 0.12 96)`},300:{level:300,hex:`#fcd34d`,rgb:`rgb(252 211 77)`,hsl:`hsl(45.9 96.7% 64.5%)`,oklch:`oklch(88% 0.15 92)`},400:{level:400,hex:`#fbbf24`,rgb:`rgb(251 191 36)`,hsl:`hsl(43.3 96.4% 56.3%)`,oklch:`oklch(84% 0.16 84)`},500:{level:500,hex:`#f59e0b`,rgb:`rgb(245 158 11)`,hsl:`hsl(37.7 92.1% 50.2%)`,oklch:`oklch(77% 0.16 70)`},600:{level:600,hex:`#d97706`,rgb:`rgb(217 119 6)`,hsl:`hsl(32.1 94.6% 43.7%)`,oklch:`oklch(67% 0.16 58)`},700:{level:700,hex:`#b45309`,rgb:`rgb(180 83 9)`,hsl:`hsl(26 90.5% 37.1%)`,oklch:`oklch(56% 0.15 49)`},800:{level:800,hex:`#92400e`,rgb:`rgb(146 64 14)`,hsl:`hsl(22.7 82.5% 31.4%)`,oklch:`oklch(47% 0.12 46)`},900:{level:900,hex:`#78350f`,rgb:`rgb(120 53 15)`,hsl:`hsl(21.7 77.8% 26.5%)`,oklch:`oklch(41% 0.11 46)`},950:{level:950,hex:`#451a03`,rgb:`rgb(69 26 3)`,hsl:`hsl(20.9 91.7% 14.1%)`,oklch:`oklch(28% 0.07 46)`}},yellow:{50:{level:50,hex:`#fefce8`,rgb:`rgb(254 252 232)`,hsl:`hsl(54.5 91.7% 95.3%)`,oklch:`oklch(99% 0.03 102)`},100:{level:100,hex:`#fef9c3`,rgb:`rgb(254 249 195)`,hsl:`hsl(54.9 96.7% 88%)`,oklch:`oklch(97% 0.07 103)`},200:{level:200,hex:`#fef08a`,rgb:`rgb(254 240 138)`,hsl:`hsl(52.8 98.3% 76.9%)`,oklch:`oklch(95% 0.12 102)`},300:{level:300,hex:`#fde047`,rgb:`rgb(253 224 71)`,hsl:`hsl(50.4 97.8% 63.5%)`,oklch:`oklch(91% 0.17 98)`},400:{level:400,hex:`#facc15`,rgb:`rgb(250 204 21)`,hsl:`hsl(47.9 95.8% 53.1%)`,oklch:`oklch(86% 0.17 92)`},500:{level:500,hex:`#eab308`,rgb:`rgb(234 179 8)`,hsl:`hsl(45.4 93.4% 47.5%)`,oklch:`oklch(80% 0.16 86)`},600:{level:600,hex:`#ca8a04`,rgb:`rgb(202 138 4)`,hsl:`hsl(40.6 96.1% 40.4%)`,oklch:`oklch(68% 0.14 76)`},700:{level:700,hex:`#a16207`,rgb:`rgb(161 98 7)`,hsl:`hsl(35.5 91.7% 32.9%)`,oklch:`oklch(55% 0.12 66)`},800:{level:800,hex:`#854d0e`,rgb:`rgb(133 77 14)`,hsl:`hsl(31.8 81% 28.8%)`,oklch:`oklch(48% 0.1 62)`},900:{level:900,hex:`#713f12`,rgb:`rgb(113 63 18)`,hsl:`hsl(28.4 72.5% 25.7%)`,oklch:`oklch(42% 0.09 58)`},950:{level:950,hex:`#422006`,rgb:`rgb(66 32 6)`,hsl:`hsl(26 83.3% 14.1%)`,oklch:`oklch(29% 0.06 54)`}},lime:{50:{level:50,hex:`#f7fee7`,rgb:`rgb(247 254 231)`,hsl:`hsl(78.3 92% 95.1%)`,oklch:`oklch(99% 0.03 121)`},100:{level:100,hex:`#ecfccb`,rgb:`rgb(236 252 203)`,hsl:`hsl(79.6 89.1% 89.2%)`,oklch:`oklch(97% 0.07 122)`},200:{level:200,hex:`#d9f99d`,rgb:`rgb(217 249 157)`,hsl:`hsl(80.9 88.5% 79.6%)`,oklch:`oklch(94% 0.12 124)`},300:{level:300,hex:`#bef264`,rgb:`rgb(190 242 100)`,hsl:`hsl(82 84.5% 67.1%)`,oklch:`oklch(90% 0.18 127)`},400:{level:400,hex:`#a3e635`,rgb:`rgb(163 230 53)`,hsl:`hsl(82.7 78% 55.5%)`,oklch:`oklch(85% 0.21 129)`},500:{level:500,hex:`#84cc16`,rgb:`rgb(132 204 22)`,hsl:`hsl(83.7 80.5% 44.3%)`,oklch:`oklch(77% 0.2 131)`},600:{level:600,hex:`#65a30d`,rgb:`rgb(101 163 13)`,hsl:`hsl(84.8 85.2% 34.5%)`,oklch:`oklch(65% 0.18 132)`},700:{level:700,hex:`#4d7c0f`,rgb:`rgb(77 124 15)`,hsl:`hsl(85.9 78.4% 27.3%)`,oklch:`oklch(53% 0.14 132)`},800:{level:800,hex:`#3f6212`,rgb:`rgb(63 98 18)`,hsl:`hsl(86.3 69% 22.7%)`,oklch:`oklch(45% 0.11 131)`},900:{level:900,hex:`#365314`,rgb:`rgb(54 83 20)`,hsl:`hsl(87.6 61.2% 20.2%)`,oklch:`oklch(41% 0.1 131)`},950:{level:950,hex:`#1a2e05`,rgb:`rgb(26 46 5)`,hsl:`hsl(89.3 80.4% 10%)`,oklch:`oklch(27% 0.07 132)`}},green:{50:{level:50,hex:`#f0fdf4`,rgb:`rgb(240 253 244)`,hsl:`hsl(138.5 76.5% 96.7%)`,oklch:`oklch(98% 0.02 156)`},100:{level:100,hex:`#dcfce7`,rgb:`rgb(220 252 231)`,hsl:`hsl(140.6 84.2% 92.5%)`,oklch:`oklch(96% 0.04 157)`},200:{level:200,hex:`#bbf7d0`,rgb:`rgb(187 247 208)`,hsl:`hsl(141 78.9% 85.1%)`,oklch:`oklch(93% 0.08 156)`},300:{level:300,hex:`#86efac`,rgb:`rgb(134 239 172)`,hsl:`hsl(141.7 76.6% 73.1%)`,oklch:`oklch(87% 0.14 154)`},400:{level:400,hex:`#4ade80`,rgb:`rgb(74 222 128)`,hsl:`hsl(141.9 69.2% 58%)`,oklch:`oklch(80% 0.18 152)`},500:{level:500,hex:`#22c55e`,rgb:`rgb(34 197 94)`,hsl:`hsl(142.1 70.6% 45.3%)`,oklch:`oklch(72% 0.19 150)`},600:{level:600,hex:`#16a34a`,rgb:`rgb(22 163 74)`,hsl:`hsl(142.1 76.2% 36.3%)`,oklch:`oklch(63% 0.17 149)`},700:{level:700,hex:`#15803d`,rgb:`rgb(21 128 61)`,hsl:`hsl(142.4 71.8% 29.2%)`,oklch:`oklch(53% 0.14 150)`},800:{level:800,hex:`#166534`,rgb:`rgb(22 101 52)`,hsl:`hsl(142.8 64.2% 24.1%)`,oklch:`oklch(45% 0.11 151)`},900:{level:900,hex:`#14532d`,rgb:`rgb(20 83 45)`,hsl:`hsl(143.8 61.2% 20.2%)`,oklch:`oklch(39% 0.09 153)`},950:{level:950,hex:`#052e16`,rgb:`rgb(5 46 22)`,hsl:`hsl(144.9 80.4% 10%)`,oklch:`oklch(27% 0.06 153)`}},emerald:{50:{level:50,hex:`#ecfdf5`,rgb:`rgb(236 253 245)`,hsl:`hsl(151.8 81% 95.9%)`,oklch:`oklch(98% 0.02 166)`},100:{level:100,hex:`#d1fae5`,rgb:`rgb(209 250 229)`,hsl:`hsl(149.3 80.4% 90%)`,oklch:`oklch(95% 0.05 163)`},200:{level:200,hex:`#a7f3d0`,rgb:`rgb(167 243 208)`,hsl:`hsl(152.4 76% 80.4%)`,oklch:`oklch(90% 0.09 164)`},300:{level:300,hex:`#6ee7b7`,rgb:`rgb(110 231 183)`,hsl:`hsl(156.2 71.6% 66.9%)`,oklch:`oklch(85% 0.13 165)`},400:{level:400,hex:`#34d399`,rgb:`rgb(52 211 153)`,hsl:`hsl(158.1 64.4% 51.6%)`,oklch:`oklch(77% 0.15 163)`},500:{level:500,hex:`#10b981`,rgb:`rgb(16 185 129)`,hsl:`hsl(160.1 84.1% 39.4%)`,oklch:`oklch(70% 0.15 162)`},600:{level:600,hex:`#059669`,rgb:`rgb(5 150 105)`,hsl:`hsl(161.4 93.5% 30.4%)`,oklch:`oklch(60% 0.13 163)`},700:{level:700,hex:`#047857`,rgb:`rgb(4 120 87)`,hsl:`hsl(162.9 93.5% 24.3%)`,oklch:`oklch(51% 0.1 166)`},800:{level:800,hex:`#065f46`,rgb:`rgb(6 95 70)`,hsl:`hsl(163.1 88.1% 19.8%)`,oklch:`oklch(43% 0.09 167)`},900:{level:900,hex:`#064e3b`,rgb:`rgb(6 78 59)`,hsl:`hsl(164.2 85.7% 16.5%)`,oklch:`oklch(38% 0.07 169)`},950:{level:950,hex:`#022c22`,rgb:`rgb(2 44 34)`,hsl:`hsl(165.7 91.3% 9%)`,oklch:`oklch(26% 0.05 173)`}},teal:{50:{level:50,hex:`#f0fdfa`,rgb:`rgb(240 253 250)`,hsl:`hsl(166.2 76.5% 96.7%)`,oklch:`oklch(98% 0.01 181)`},100:{level:100,hex:`#ccfbf1`,rgb:`rgb(204 251 241)`,hsl:`hsl(167.2 85.5% 89.2%)`,oklch:`oklch(95% 0.05 181)`},200:{level:200,hex:`#99f6e4`,rgb:`rgb(153 246 228)`,hsl:`hsl(168.4 83.8% 78.2%)`,oklch:`oklch(91% 0.09 180)`},300:{level:300,hex:`#5eead4`,rgb:`rgb(94 234 212)`,hsl:`hsl(170.6 76.9% 64.3%)`,oklch:`oklch(85% 0.13 181)`},400:{level:400,hex:`#2dd4bf`,rgb:`rgb(45 212 191)`,hsl:`hsl(172.5 66% 50.4%)`,oklch:`oklch(78% 0.13 182)`},500:{level:500,hex:`#14b8a6`,rgb:`rgb(20 184 166)`,hsl:`hsl(173.4 80.4% 40%)`,oklch:`oklch(70% 0.12 183)`},600:{level:600,hex:`#0d9488`,rgb:`rgb(13 148 136)`,hsl:`hsl(174.7 83.9% 31.6%)`,oklch:`oklch(60% 0.1 185)`},700:{level:700,hex:`#0f766e`,rgb:`rgb(15 118 110)`,hsl:`hsl(175.3 77.4% 26.1%)`,oklch:`oklch(51% 0.09 186)`},800:{level:800,hex:`#115e59`,rgb:`rgb(17 94 89)`,hsl:`hsl(176.1 69.4% 21.8%)`,oklch:`oklch(44% 0.07 188)`},900:{level:900,hex:`#134e4a`,rgb:`rgb(19 78 74)`,hsl:`hsl(175.9 60.8% 19%)`,oklch:`oklch(39% 0.06 188)`},950:{level:950,hex:`#042f2e`,rgb:`rgb(4 47 46)`,hsl:`hsl(178.6 84.3% 10%)`,oklch:`oklch(28% 0.04 193)`}},cyan:{50:{level:50,hex:`#ecfeff`,rgb:`rgb(236 254 255)`,hsl:`hsl(183.2 100% 96.3%)`,oklch:`oklch(98% 0.02 201)`},100:{level:100,hex:`#cffafe`,rgb:`rgb(207 250 254)`,hsl:`hsl(185.1 95.9% 90.4%)`,oklch:`oklch(96% 0.04 203)`},200:{level:200,hex:`#a5f3fc`,rgb:`rgb(165 243 252)`,hsl:`hsl(186.2 93.5% 81.8%)`,oklch:`oklch(92% 0.08 205)`},300:{level:300,hex:`#67e8f9`,rgb:`rgb(103 232 249)`,hsl:`hsl(187 92.4% 69%)`,oklch:`oklch(87% 0.12 207)`},400:{level:400,hex:`#22d3ee`,rgb:`rgb(34 211 238)`,hsl:`hsl(187.9 85.7% 53.3%)`,oklch:`oklch(80% 0.13 212)`},500:{level:500,hex:`#06b6d4`,rgb:`rgb(6 182 212)`,hsl:`hsl(188.7 94.5% 42.7%)`,oklch:`oklch(71% 0.13 215)`},600:{level:600,hex:`#0891b2`,rgb:`rgb(8 145 178)`,hsl:`hsl(191.6 91.4% 36.5%)`,oklch:`oklch(61% 0.11 222)`},700:{level:700,hex:`#0e7490`,rgb:`rgb(14 116 144)`,hsl:`hsl(192.9 82.3% 31%)`,oklch:`oklch(52% 0.09 223)`},800:{level:800,hex:`#155e75`,rgb:`rgb(21 94 117)`,hsl:`hsl(194.4 69.6% 27.1%)`,oklch:`oklch(45% 0.08 224)`},900:{level:900,hex:`#164e63`,rgb:`rgb(22 78 99)`,hsl:`hsl(196.4 63.6% 23.7%)`,oklch:`oklch(40% 0.07 227)`},950:{level:950,hex:`#083344`,rgb:`rgb(8 51 68)`,hsl:`hsl(197 78.9% 14.9%)`,oklch:`oklch(30% 0.05 230)`}},sky:{50:{level:50,hex:`#f0f9ff`,rgb:`rgb(240 249 255)`,hsl:`hsl(204 100% 97.1%)`,oklch:`oklch(98% 0.01 237)`},100:{level:100,hex:`#e0f2fe`,rgb:`rgb(224 242 254)`,hsl:`hsl(204 93.8% 93.7%)`,oklch:`oklch(95% 0.03 237)`},200:{level:200,hex:`#bae6fd`,rgb:`rgb(186 230 253)`,hsl:`hsl(200.6 94.4% 86.1%)`,oklch:`oklch(90% 0.06 231)`},300:{level:300,hex:`#7dd3fc`,rgb:`rgb(125 211 252)`,hsl:`hsl(199.4 95.5% 73.9%)`,oklch:`oklch(83% 0.1 230)`},400:{level:400,hex:`#38bdf8`,rgb:`rgb(56 189 248)`,hsl:`hsl(198.4 93.2% 59.6%)`,oklch:`oklch(75% 0.14 233)`},500:{level:500,hex:`#0ea5e9`,rgb:`rgb(14 165 233)`,hsl:`hsl(198.6 88.7% 48.4%)`,oklch:`oklch(68% 0.15 237)`},600:{level:600,hex:`#0284c7`,rgb:`rgb(2 132 199)`,hsl:`hsl(200.4 98% 39.4%)`,oklch:`oklch(59% 0.14 242)`},700:{level:700,hex:`#0369a1`,rgb:`rgb(3 105 161)`,hsl:`hsl(201.3 96.3% 32.2%)`,oklch:`oklch(50% 0.12 243)`},800:{level:800,hex:`#075985`,rgb:`rgb(7 89 133)`,hsl:`hsl(201 90% 27.5%)`,oklch:`oklch(44% 0.1 241)`},900:{level:900,hex:`#0c4a6e`,rgb:`rgb(12 74 110)`,hsl:`hsl(202 80.3% 23.9%)`,oklch:`oklch(39% 0.08 241)`},950:{level:950,hex:`#082f49`,rgb:`rgb(8 47 73)`,hsl:`hsl(204 80.2% 15.9%)`,oklch:`oklch(29% 0.06 243)`}},blue:{50:{level:50,hex:`#eff6ff`,rgb:`rgb(239 246 255)`,hsl:`hsl(213.8 100% 96.9%)`,oklch:`oklch(97% 0.01 255)`},100:{level:100,hex:`#dbeafe`,rgb:`rgb(219 234 254)`,hsl:`hsl(214.3 94.6% 92.7%)`,oklch:`oklch(93% 0.03 256)`},200:{level:200,hex:`#bfdbfe`,rgb:`rgb(191 219 254)`,hsl:`hsl(213.3 96.9% 87.3%)`,oklch:`oklch(88% 0.06 254)`},300:{level:300,hex:`#93c5fd`,rgb:`rgb(147 197 253)`,hsl:`hsl(211.7 96.4% 78.4%)`,oklch:`oklch(81% 0.1 252)`},400:{level:400,hex:`#60a5fa`,rgb:`rgb(96 165 250)`,hsl:`hsl(213.1 93.9% 67.8%)`,oklch:`oklch(71% 0.14 255)`},500:{level:500,hex:`#3b82f6`,rgb:`rgb(59 130 246)`,hsl:`hsl(217.2 91.2% 59.8%)`,oklch:`oklch(62% 0.19 260)`},600:{level:600,hex:`#2563eb`,rgb:`rgb(37 99 235)`,hsl:`hsl(221.2 83.2% 53.3%)`,oklch:`oklch(55% 0.22 263)`},700:{level:700,hex:`#1d4ed8`,rgb:`rgb(29 78 216)`,hsl:`hsl(224.3 76.3% 48%)`,oklch:`oklch(49% 0.22 264)`},800:{level:800,hex:`#1e40af`,rgb:`rgb(30 64 175)`,hsl:`hsl(225.9 70.7% 40.2%)`,oklch:`oklch(42% 0.18 266)`},900:{level:900,hex:`#1e3a8a`,rgb:`rgb(30 58 138)`,hsl:`hsl(224.4 64.3% 32.9%)`,oklch:`oklch(38% 0.14 266)`},950:{level:950,hex:`#172554`,rgb:`rgb(23 37 84)`,hsl:`hsl(226.2 57% 21%)`,oklch:`oklch(28% 0.09 268)`}},indigo:{50:{level:50,hex:`#eef2ff`,rgb:`rgb(238 242 255)`,hsl:`hsl(225.9 100% 96.7%)`,oklch:`oklch(96% 0.02 272)`},100:{level:100,hex:`#e0e7ff`,rgb:`rgb(224 231 255)`,hsl:`hsl(226.5 100% 93.9%)`,oklch:`oklch(93% 0.03 273)`},200:{level:200,hex:`#c7d2fe`,rgb:`rgb(199 210 254)`,hsl:`hsl(228 96.5% 88.8%)`,oklch:`oklch(87% 0.06 274)`},300:{level:300,hex:`#a5b4fc`,rgb:`rgb(165 180 252)`,hsl:`hsl(229.7 93.5% 81.8%)`,oklch:`oklch(79% 0.1 275)`},400:{level:400,hex:`#818cf8`,rgb:`rgb(129 140 248)`,hsl:`hsl(234.5 89.5% 73.9%)`,oklch:`oklch(68% 0.16 277)`},500:{level:500,hex:`#6366f1`,rgb:`rgb(99 102 241)`,hsl:`hsl(238.7 83.5% 66.7%)`,oklch:`oklch(59% 0.2 277)`},600:{level:600,hex:`#4f46e5`,rgb:`rgb(79 70 229)`,hsl:`hsl(243.4 75.4% 58.6%)`,oklch:`oklch(51% 0.23 277)`},700:{level:700,hex:`#4338ca`,rgb:`rgb(67 56 202)`,hsl:`hsl(244.5 57.9% 50.6%)`,oklch:`oklch(46% 0.21 277)`},800:{level:800,hex:`#3730a3`,rgb:`rgb(55 48 163)`,hsl:`hsl(243.7 54.5% 41.4%)`,oklch:`oklch(40% 0.18 277)`},900:{level:900,hex:`#312e81`,rgb:`rgb(49 46 129)`,hsl:`hsl(242.2 47.4% 34.3%)`,oklch:`oklch(36% 0.14 279)`},950:{level:950,hex:`#1e1b4b`,rgb:`rgb(30 27 75)`,hsl:`hsl(243.8 47.1% 20%)`,oklch:`oklch(26% 0.09 281)`}},violet:{50:{level:50,hex:`#f5f3ff`,rgb:`rgb(245 243 255)`,hsl:`hsl(250 100% 97.6%)`,oklch:`oklch(97% 0.02 294)`},100:{level:100,hex:`#ede9fe`,rgb:`rgb(237 233 254)`,hsl:`hsl(251.4 91.3% 95.5%)`,oklch:`oklch(94% 0.03 295)`},200:{level:200,hex:`#ddd6fe`,rgb:`rgb(221 214 254)`,hsl:`hsl(250.5 95.2% 91.8%)`,oklch:`oklch(89% 0.05 293)`},300:{level:300,hex:`#c4b5fd`,rgb:`rgb(196 181 253)`,hsl:`hsl(252.5 94.7% 85.1%)`,oklch:`oklch(81% 0.1 294)`},400:{level:400,hex:`#a78bfa`,rgb:`rgb(167 139 250)`,hsl:`hsl(255.1 91.7% 76.3%)`,oklch:`oklch(71% 0.16 294)`},500:{level:500,hex:`#8b5cf6`,rgb:`rgb(139 92 246)`,hsl:`hsl(258.3 89.5% 66.3%)`,oklch:`oklch(61% 0.22 293)`},600:{level:600,hex:`#7c3aed`,rgb:`rgb(124 58 237)`,hsl:`hsl(262.1 83.3% 57.8%)`,oklch:`oklch(54% 0.25 293)`},700:{level:700,hex:`#6d28d9`,rgb:`rgb(109 40 217)`,hsl:`hsl(263.4 70% 50.4%)`,oklch:`oklch(49% 0.24 293)`},800:{level:800,hex:`#5b21b6`,rgb:`rgb(91 33 182)`,hsl:`hsl(263.4 69.3% 42.2%)`,oklch:`oklch(43% 0.21 293)`},900:{level:900,hex:`#4c1d95`,rgb:`rgb(76 29 149)`,hsl:`hsl(263.5 67.4% 34.9%)`,oklch:`oklch(38% 0.18 294)`},950:{level:950,hex:`#1e1b4b`,rgb:`rgb(46 16 101)`,hsl:`hsl(261.2 72.6% 22.9%)`,oklch:`oklch(28% 0.14 291)`}},purple:{50:{level:50,hex:`#faf5ff`,rgb:`rgb(250 245 255)`,hsl:`hsl(270 100% 98%)`,oklch:`oklch(98% 0.01 308)`},100:{level:100,hex:`#f3e8ff`,rgb:`rgb(243 232 255)`,hsl:`hsl(268.7 100% 95.5%)`,oklch:`oklch(95% 0.03 307)`},200:{level:200,hex:`#e9d5ff`,rgb:`rgb(233 213 255)`,hsl:`hsl(268.6 100% 91.8%)`,oklch:`oklch(90% 0.06 307)`},300:{level:300,hex:`#d8b4fe`,rgb:`rgb(216 180 254)`,hsl:`hsl(269.2 97.4% 85.1%)`,oklch:`oklch(83% 0.11 306)`},400:{level:400,hex:`#c084fc`,rgb:`rgb(192 132 252)`,hsl:`hsl(270 95.2% 75.3%)`,oklch:`oklch(72% 0.18 306)`},500:{level:500,hex:`#a855f7`,rgb:`rgb(168 85 247)`,hsl:`hsl(270.7 91% 65.1%)`,oklch:`oklch(63% 0.23 304)`},600:{level:600,hex:`#9333ea`,rgb:`rgb(147 51 234)`,hsl:`hsl(271.5 81.3% 55.9%)`,oklch:`oklch(56% 0.25 302)`},700:{level:700,hex:`#7e22ce`,rgb:`rgb(126 34 206)`,hsl:`hsl(272.1 71.7% 47.1%)`,oklch:`oklch(50% 0.24 302)`},800:{level:800,hex:`#6b21a8`,rgb:`rgb(107 33 168)`,hsl:`hsl(272.9 67.2% 39.4%)`,oklch:`oklch(44% 0.2 304)`},900:{level:900,hex:`#581c87`,rgb:`rgb(88 28 135)`,hsl:`hsl(273.6 65.6% 32%)`,oklch:`oklch(38% 0.17 305)`},950:{level:950,hex:`#3b0764`,rgb:`rgb(59 7 100)`,hsl:`hsl(273.5 86.9% 21%)`,oklch:`oklch(29% 0.14 303)`}},fuchsia:{50:{level:50,hex:`#fdf4ff`,rgb:`rgb(253 244 255)`,hsl:`hsl(289.1 100% 97.8%)`,oklch:`oklch(98% 0.02 320)`},100:{level:100,hex:`#fae8ff`,rgb:`rgb(250 232 255)`,hsl:`hsl(287 100% 95.5%)`,oklch:`oklch(95% 0.04 319)`},200:{level:200,hex:`#f5d0fe`,rgb:`rgb(245 208 254)`,hsl:`hsl(288.3 95.8% 90.6%)`,oklch:`oklch(90% 0.07 320)`},300:{level:300,hex:`#f0abfc`,rgb:`rgb(240 171 252)`,hsl:`hsl(291.1 93.1% 82.9%)`,oklch:`oklch(83% 0.13 321)`},400:{level:400,hex:`#e879f9`,rgb:`rgb(232 121 249)`,hsl:`hsl(292 91.4% 72.5%)`,oklch:`oklch(75% 0.21 322)`},500:{level:500,hex:`#d946ef`,rgb:`rgb(217 70 239)`,hsl:`hsl(292.2 84.1% 60.6%)`,oklch:`oklch(67% 0.26 322)`},600:{level:600,hex:`#c026d3`,rgb:`rgb(192 38 211)`,hsl:`hsl(293.4 69.5% 48.8%)`,oklch:`oklch(59% 0.26 323)`},700:{level:700,hex:`#a21caf`,rgb:`rgb(162 28 175)`,hsl:`hsl(294.7 72.4% 39.8%)`,oklch:`oklch(52% 0.23 324)`},800:{level:800,hex:`#86198f`,rgb:`rgb(134 25 143)`,hsl:`hsl(295.4 70.2% 32.9%)`,oklch:`oklch(45% 0.19 325)`},900:{level:900,hex:`#701a75`,rgb:`rgb(112 26 117)`,hsl:`hsl(296.7 63.6% 28%)`,oklch:`oklch(40% 0.16 326)`},950:{level:950,hex:`#4a044e`,rgb:`rgb(74 4 78)`,hsl:`hsl(296.8 90.2% 16.1%)`,oklch:`oklch(29% 0.13 326)`}},pink:{50:{level:50,hex:`#fdf2f8`,rgb:`rgb(253 242 248)`,hsl:`hsl(327.3 73.3% 97.1%)`,oklch:`oklch(97% 0.01 343)`},100:{level:100,hex:`#fce7f3`,rgb:`rgb(252 231 243)`,hsl:`hsl(325.7 77.8% 94.7%)`,oklch:`oklch(95% 0.03 342)`},200:{level:200,hex:`#fbcfe8`,rgb:`rgb(251 207 232)`,hsl:`hsl(325.9 84.6% 89.8%)`,oklch:`oklch(90% 0.06 343)`},300:{level:300,hex:`#f9a8d4`,rgb:`rgb(249 168 212)`,hsl:`hsl(327.4 87.1% 81.8%)`,oklch:`oklch(82% 0.11 346)`},400:{level:400,hex:`#f472b6`,rgb:`rgb(244 114 182)`,hsl:`hsl(328.6 85.5% 70.2%)`,oklch:`oklch(73% 0.18 350)`},500:{level:500,hex:`#ec4899`,rgb:`rgb(236 72 153)`,hsl:`hsl(330.4 81.2% 60.4%)`,oklch:`oklch(66% 0.21 354)`},600:{level:600,hex:`#db2777`,rgb:`rgb(219 39 119)`,hsl:`hsl(333.3 71.4% 50.6%)`,oklch:`oklch(59% 0.22 1)`},700:{level:700,hex:`#be185d`,rgb:`rgb(190 24 93)`,hsl:`hsl(335.1 77.6% 42%)`,oklch:`oklch(52% 0.2 4)`},800:{level:800,hex:`#9d174d`,rgb:`rgb(157 23 77)`,hsl:`hsl(335.8 74.4% 35.3%)`,oklch:`oklch(46% 0.17 4)`},900:{level:900,hex:`#831843`,rgb:`rgb(131 24 67)`,hsl:`hsl(335.9 69% 30.4%)`,oklch:`oklch(41% 0.14 2)`},950:{level:950,hex:`#500724`,rgb:`rgb(80 7 36)`,hsl:`hsl(336.2 83.9% 17.1%)`,oklch:`oklch(28% 0.1 4)`}},rose:{50:{level:50,hex:`#fff1f2`,rgb:`rgb(255 241 242)`,hsl:`hsl(355.7 100% 97.3%)`,oklch:`oklch(97% 0.02 12)`},100:{level:100,hex:`#ffe4e6`,rgb:`rgb(255 228 230)`,hsl:`hsl(355.6 100% 94.7%)`,oklch:`oklch(94% 0.03 13)`},200:{level:200,hex:`#fecdd3`,rgb:`rgb(254 205 211)`,hsl:`hsl(352.7 96.1% 90%)`,oklch:`oklch(89% 0.06 10)`},300:{level:300,hex:`#fda4af`,rgb:`rgb(253 164 175)`,hsl:`hsl(352.6 95.7% 81.8%)`,oklch:`oklch(81% 0.11 12)`},400:{level:400,hex:`#fb7185`,rgb:`rgb(251 113 133)`,hsl:`hsl(351.3 94.5% 71.4%)`,oklch:`oklch(72% 0.17 13)`},500:{level:500,hex:`#f43f5e`,rgb:`rgb(244 63 94)`,hsl:`hsl(349.7 89.2% 60.2%)`,oklch:`oklch(65% 0.22 16)`},600:{level:600,hex:`#e11d48`,rgb:`rgb(225 29 72)`,hsl:`hsl(346.8 77.2% 49.8%)`,oklch:`oklch(59% 0.22 18)`},700:{level:700,hex:`#be123c`,rgb:`rgb(190 18 60)`,hsl:`hsl(345.3 82.7% 40.8%)`,oklch:`oklch(51% 0.2 17)`},800:{level:800,hex:`#9f1239`,rgb:`rgb(159 18 57)`,hsl:`hsl(343.4 79.7% 34.7%)`,oklch:`oklch(45% 0.17 14)`},900:{level:900,hex:`#881337`,rgb:`rgb(136 19 55)`,hsl:`hsl(341.5 75.5% 30.4%)`,oklch:`oklch(41% 0.15 10)`},950:{level:950,hex:`#4c0519`,rgb:`rgb(76 5 25)`,hsl:`hsl(343.1 87.7% 15.9%)`,oklch:`oklch(27% 0.1 12)`}}},FM={50:{l:.08,c:.065},100:{l:.18,c:.15},200:{l:.313,c:.276},300:{l:.507,c:.491},400:{l:.777,c:.771},500:{l:1,c:1},600:{l:.876,c:1.145},700:{l:.783,c:1.136},800:{l:.681,c:.93},900:{l:.608,c:.682},950:{l:.453,c:.425}},IM={50:.985,100:.968,200:.924,300:.87,400:.707},LM={600:.802*.556,700:.672*.556,800:.495*.556,900:.379*.556,950:.25*.556};function RM(e,t=`oklch`){let n=Yd(e);if(!n.isValid())throw Error(`Invalid color value`);let{l:r,c:i,h:a,alpha:o}=n.toOklch(),s={},c=i<.05,l=a>330||a<30;return Td(FM).forEach(e=>{let n=r,u=i,d=a,f=Number(e),p=FM[f];f<500&&(c?n=IM[f]:(n=1-(1-r)*p.l,d=(a+zM(a,p.l)+360)%360),u=i*p.c),f>500&&(c?(n=LM[f],l&&a>330&&(d=(a+(1-p.l)*10)%360)):(n=r*p.l,d=(a+BM(a,p.l)+360)%360),u=i*p.c),u=Math.max(0,u),s[f]=VM({l:n,c:u,h:d,alpha:o},t)}),s}function zM(e,t){let n=(1-t)*8;return e>=0&&e<60||e>=330?-n:e>=60&&e<150?n:e>=150&&e<210?n*.7:e>=210&&e<270?-n:n*.5}function BM(e,t){let n=(1-t)*10;return e>=0&&e<60||e>=330?n*.3:e>=60&&e<150?-n:e>=150&&e<210?n*.3:e>=210&&e<270?n*.6:-n*.2}function VM(e,t=`oklch`){let n=Yd(e),r=e;return t===`hex`?r=n.toHex():t===`rgb`?r=n.toRgb():t===`rgbString`?r=n.toRgbString():t===`oklch`?r=n.toOklch():t===`oklchString`?r=n.toOklchString():t===`hsl`?r=n.toHsl():t===`hslString`&&(r=n.toHslString()),r}Qd([MM]);function HM(e){return Object.keys(e)}function UM(e,...t){let n={...e};return t.forEach(e=>{Object.keys(e).forEach(t=>{let r=e[t];r!==void 0&&(n[t]=r)})}),n}function WM(e){return e===`class`||e===`media`?rN[e]:e}function GM(e){return!e.startsWith(`hsl(`)&&!e.startsWith(`oklch(`)}function KM(e){return e.replace(/hsl\(/g,``).replace(/\)/g,``)}var qM=e=>[`inherit`,`currentColor`,`transparent`].includes(e);function JM(e,t){if(qM(e))return e;if(e===`black`)return NM.black[t];if(e===`white`)return NM.white[t];if(GM(e)){let[n,r]=e.split(`.`);return PM[n][r][t]}let n=e;return t===`hsl`&&e.startsWith(`oklch(`)&&(n=Yd(e).toHslString()),t===`oklch`&&e.startsWith(`hsl(`)&&(n=Yd(e).toOklchString()),n}function YM(e){return e?Object.keys(oN).includes(e)?`${oN[e]}px`:e:`${oN[nN.size]}px`}function XM(e){return e?Object.keys(sN).includes(e)?sN[e]:e:sN[nN.radius]}var ZM=`--size`,QM=`--radius`,$M={background:`--background`,foreground:`--foreground`,card:`--card`,cardForeground:`--card-foreground`,popover:`--popover`,popoverForeground:`--popover-foreground`,primary:`--primary`,primaryForeground:`--primary-foreground`,secondary:`--secondary`,secondaryForeground:`--secondary-foreground`,muted:`--muted`,mutedForeground:`--muted-foreground`,accent:`--accent`,accentForeground:`--accent-foreground`,destructive:`--destructive`,destructiveForeground:`--destructive-foreground`,border:`--border`,input:`--input`,ring:`--ring`,success:`--success`,successForeground:`--success-foreground`,warning:`--warning`,warningForeground:`--warning-foreground`,info:`--info`,infoForeground:`--info-foreground`,carbon:`--carbon`,carbonForeground:`--carbon-foreground`,sidebar:`--sidebar`,sidebarForeground:`--sidebar-foreground`,sidebarPrimary:`--sidebar-primary`,sidebarPrimaryForeground:`--sidebar-primary-foreground`,sidebarAccent:`--sidebar-accent`,sidebarAccentForeground:`--sidebar-accent-foreground`,sidebarBorder:`--sidebar-border`,sidebarRing:`--sidebar-ring`,chart1:`--chart-1`,chart2:`--chart-2`,chart3:`--chart-3`,chart4:`--chart-4`,chart5:`--chart-5`},eN={borderAlpha:`--border-alpha`,inputAlpha:`--input-alpha`,sidebarBorderAlpha:`--sidebar-border-alpha`},tN={bg:`--menu-bg`,bgAlpha:`--menu-bg-alpha`,dropBlur:`--menu-drop-blur`,backdropSaturate:`--menu-backdrop-saturate`,itemAccentBackground:`--menu-item-accent-background`,itemAccentForeground:`--menu-item-accent-foreground`},nN={size:`md`,radius:`md`,base:`zinc`,primary:`indigo`,feedback:`classic`,menuColor:`default`,menuAccent:`subtle`,styleTarget:`:root`,darkSelector:`class`,format:`hsl`},rN={class:`.dark`,media:`@media (prefers-color-scheme: dark)`},iN=`oklch(100% 0 0 / 0.1)`,aN=`oklch(100% 0 0 / 0.15)`,oN={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24};HM(oN);var sN={"2xs":`0.25rem`,xs:`0.375rem`,sm:`0.5rem`,md:`0.625rem`,lg:`0.75rem`,xl:`0.875rem`,"2xl":`1rem`};HM(sN);var cN={default:{[tN.bg]:`var(${$M.popover})`,[tN.bgAlpha]:`1`,[tN.dropBlur]:`0px`,[tN.backdropSaturate]:`1`},"default-translucent":{[tN.bg]:`var(${$M.popover})`,[tN.bgAlpha]:`0.7`,[tN.dropBlur]:`40px`,[tN.backdropSaturate]:`1.5`},inverted:{[tN.bg]:`var(${$M.card})`,[tN.bgAlpha]:`1`,[tN.dropBlur]:`0px`,[tN.backdropSaturate]:`1`},"inverted-translucent":{[tN.bg]:`var(${$M.card})`,[tN.bgAlpha]:`0.7`,[tN.dropBlur]:`40px`,[tN.backdropSaturate]:`1.5`}},lN={subtle:{[tN.itemAccentBackground]:`hsl(var(${$M.foreground}) / 0.05)`,[tN.itemAccentForeground]:`var(${$M.foreground})`},bold:{[tN.itemAccentBackground]:`hsl(var(${$M.primary}) / 0.1)`,[tN.itemAccentForeground]:`var(${$M.primary})`}};`${$M.background}`,`${$M.foreground}`,`${$M.primary}`,`${$M.primaryForeground}`,`${$M.accent}`,`${$M.accentForeground}`,`${$M.border}`,`${$M.ring}`,`${$M.card}`;var uN={slate:{light:{background:`white`,foreground:`slate.950`,card:`white`,cardForeground:`slate.950`,popover:`white`,popoverForeground:`slate.950`,primaryForeground:`slate.50`,secondary:`slate.100`,secondaryForeground:`slate.900`,muted:`slate.100`,mutedForeground:`slate.500`,accent:`slate.100`,accentForeground:`slate.900`,destructiveForeground:`slate.50`,successForeground:`slate.50`,warningForeground:`slate.50`,infoForeground:`slate.50`,carbon:`slate.800`,carbonForeground:`slate.50`,border:`slate.200`,input:`slate.200`},dark:{background:`slate.950`,foreground:`slate.50`,card:`slate.900`,cardForeground:`slate.50`,popover:`slate.900`,popoverForeground:`slate.50`,primaryForeground:`slate.900`,secondary:`slate.800`,secondaryForeground:`slate.50`,muted:`slate.800`,mutedForeground:`slate.400`,accent:`slate.800`,accentForeground:`slate.50`,carbon:`slate.100`,destructiveForeground:`slate.900`,successForeground:`slate.900`,warningForeground:`slate.900`,infoForeground:`slate.900`,carbonForeground:`slate.900`,border:iN,input:aN}},mist:{light:{background:`white`,foreground:`mist.950`,card:`white`,cardForeground:`mist.950`,popover:`white`,popoverForeground:`mist.950`,primaryForeground:`mist.50`,secondary:`mist.100`,secondaryForeground:`mist.900`,muted:`mist.100`,mutedForeground:`mist.500`,accent:`mist.100`,accentForeground:`mist.900`,destructiveForeground:`mist.50`,successForeground:`mist.50`,warningForeground:`mist.50`,infoForeground:`mist.50`,carbon:`mist.800`,carbonForeground:`mist.50`,border:`mist.200`,input:`mist.200`},dark:{background:`mist.950`,foreground:`mist.50`,card:`mist.900`,cardForeground:`mist.50`,popover:`mist.900`,popoverForeground:`mist.50`,primaryForeground:`mist.900`,secondary:`mist.800`,secondaryForeground:`mist.50`,muted:`mist.800`,mutedForeground:`mist.400`,accent:`mist.800`,accentForeground:`mist.50`,carbon:`mist.100`,destructiveForeground:`mist.900`,successForeground:`mist.900`,warningForeground:`mist.900`,infoForeground:`mist.900`,carbonForeground:`mist.900`,border:iN,input:aN}},gray:{light:{background:`white`,foreground:`gray.950`,card:`white`,cardForeground:`gray.950`,popover:`white`,popoverForeground:`gray.950`,primaryForeground:`gray.50`,secondary:`gray.100`,secondaryForeground:`gray.900`,muted:`gray.100`,mutedForeground:`gray.500`,accent:`gray.100`,accentForeground:`gray.900`,carbon:`gray.800`,destructiveForeground:`gray.50`,successForeground:`gray.50`,warningForeground:`gray.50`,infoForeground:`gray.50`,carbonForeground:`gray.50`,border:`gray.200`,input:`gray.200`},dark:{background:`gray.950`,foreground:`gray.50`,card:`gray.900`,cardForeground:`gray.50`,popover:`gray.900`,popoverForeground:`gray.50`,primaryForeground:`gray.900`,secondary:`gray.800`,secondaryForeground:`gray.50`,muted:`gray.800`,mutedForeground:`gray.400`,accent:`gray.800`,accentForeground:`gray.50`,carbon:`gray.100`,destructiveForeground:`gray.900`,successForeground:`gray.900`,warningForeground:`gray.900`,infoForeground:`gray.900`,carbonForeground:`gray.900`,border:iN,input:aN}},zinc:{light:{background:`white`,foreground:`zinc.950`,card:`white`,cardForeground:`zinc.950`,popover:`white`,popoverForeground:`zinc.950`,primaryForeground:`zinc.50`,secondary:`zinc.100`,secondaryForeground:`zinc.900`,muted:`zinc.100`,mutedForeground:`zinc.500`,accent:`zinc.100`,accentForeground:`zinc.900`,destructiveForeground:`zinc.50`,successForeground:`zinc.50`,warningForeground:`zinc.50`,infoForeground:`zinc.50`,carbon:`zinc.800`,carbonForeground:`zinc.50`,border:`zinc.200`,input:`zinc.200`},dark:{background:`zinc.950`,foreground:`zinc.50`,card:`zinc.900`,cardForeground:`zinc.50`,popover:`zinc.900`,popoverForeground:`zinc.50`,primaryForeground:`zinc.900`,secondary:`zinc.800`,secondaryForeground:`zinc.50`,muted:`zinc.800`,mutedForeground:`zinc.400`,accent:`zinc.800`,accentForeground:`zinc.50`,destructiveForeground:`zinc.900`,successForeground:`zinc.900`,warningForeground:`zinc.900`,infoForeground:`zinc.900`,carbon:`zinc.100`,carbonForeground:`zinc.900`,border:iN,input:aN}},neutral:{light:{background:`white`,foreground:`neutral.950`,card:`white`,cardForeground:`neutral.950`,popover:`white`,popoverForeground:`neutral.950`,primaryForeground:`neutral.50`,secondary:`neutral.100`,secondaryForeground:`neutral.900`,muted:`neutral.100`,mutedForeground:`neutral.500`,accent:`neutral.100`,accentForeground:`neutral.900`,destructiveForeground:`neutral.50`,successForeground:`neutral.50`,warningForeground:`neutral.50`,infoForeground:`neutral.50`,carbon:`neutral.800`,carbonForeground:`neutral.50`,border:`neutral.200`,input:`neutral.200`},dark:{background:`neutral.950`,foreground:`neutral.50`,card:`neutral.900`,cardForeground:`neutral.50`,popover:`neutral.900`,popoverForeground:`neutral.50`,primaryForeground:`neutral.900`,secondary:`neutral.800`,secondaryForeground:`neutral.50`,muted:`neutral.800`,mutedForeground:`neutral.400`,accent:`neutral.800`,accentForeground:`neutral.50`,destructiveForeground:`neutral.900`,successForeground:`neutral.900`,warningForeground:`neutral.900`,infoForeground:`neutral.900`,carbon:`neutral.100`,carbonForeground:`neutral.900`,border:iN,input:aN}},stone:{light:{background:`white`,foreground:`stone.950`,card:`white`,cardForeground:`stone.950`,popover:`white`,popoverForeground:`stone.950`,primaryForeground:`stone.50`,secondary:`stone.100`,secondaryForeground:`stone.900`,muted:`stone.100`,mutedForeground:`stone.500`,accent:`stone.100`,accentForeground:`stone.900`,destructiveForeground:`stone.50`,successForeground:`stone.50`,warningForeground:`stone.50`,infoForeground:`stone.50`,carbon:`stone.800`,carbonForeground:`stone.50`,border:`stone.200`,input:`stone.200`},dark:{background:`stone.950`,foreground:`stone.50`,card:`stone.900`,cardForeground:`stone.50`,popover:`stone.900`,popoverForeground:`stone.50`,primaryForeground:`stone.900`,secondary:`stone.800`,secondaryForeground:`stone.50`,muted:`stone.800`,mutedForeground:`stone.400`,accent:`stone.800`,accentForeground:`stone.50`,destructiveForeground:`stone.900`,successForeground:`stone.900`,warningForeground:`stone.900`,infoForeground:`stone.900`,carbon:`stone.100`,carbonForeground:`stone.900`,border:iN,input:aN}},taupe:{light:{background:`white`,foreground:`taupe.950`,card:`white`,cardForeground:`taupe.950`,popover:`white`,popoverForeground:`taupe.950`,primaryForeground:`taupe.50`,secondary:`taupe.100`,secondaryForeground:`taupe.900`,muted:`taupe.100`,mutedForeground:`taupe.500`,accent:`taupe.100`,accentForeground:`taupe.900`,destructiveForeground:`taupe.50`,successForeground:`taupe.50`,warningForeground:`taupe.50`,infoForeground:`taupe.50`,carbon:`taupe.800`,carbonForeground:`taupe.50`,border:`taupe.200`,input:`taupe.200`},dark:{background:`taupe.950`,foreground:`taupe.50`,card:`taupe.900`,cardForeground:`taupe.50`,popover:`taupe.900`,popoverForeground:`taupe.50`,primaryForeground:`taupe.900`,secondary:`taupe.800`,secondaryForeground:`taupe.50`,muted:`taupe.800`,mutedForeground:`taupe.400`,accent:`taupe.800`,accentForeground:`taupe.50`,destructiveForeground:`taupe.900`,successForeground:`taupe.900`,warningForeground:`taupe.900`,infoForeground:`taupe.900`,carbon:`taupe.100`,carbonForeground:`taupe.900`,border:iN,input:aN}},olive:{light:{background:`white`,foreground:`olive.950`,card:`white`,cardForeground:`olive.950`,popover:`white`,popoverForeground:`olive.950`,primaryForeground:`olive.50`,secondary:`olive.100`,secondaryForeground:`olive.900`,muted:`olive.100`,mutedForeground:`olive.500`,accent:`olive.100`,accentForeground:`olive.900`,destructiveForeground:`olive.50`,successForeground:`olive.50`,warningForeground:`olive.50`,infoForeground:`olive.50`,carbon:`olive.800`,carbonForeground:`olive.50`,border:`olive.200`,input:`olive.200`},dark:{background:`olive.950`,foreground:`olive.50`,card:`olive.900`,cardForeground:`olive.50`,popover:`olive.900`,popoverForeground:`olive.50`,primaryForeground:`olive.900`,secondary:`olive.800`,secondaryForeground:`olive.50`,muted:`olive.800`,mutedForeground:`olive.400`,accent:`olive.800`,accentForeground:`olive.50`,destructiveForeground:`olive.900`,successForeground:`olive.900`,warningForeground:`olive.900`,infoForeground:`olive.900`,carbon:`olive.100`,carbonForeground:`olive.900`,border:iN,input:aN}},mauve:{light:{background:`white`,foreground:`mauve.950`,card:`white`,cardForeground:`mauve.950`,popover:`white`,popoverForeground:`mauve.950`,primaryForeground:`mauve.50`,secondary:`mauve.100`,secondaryForeground:`mauve.900`,muted:`mauve.100`,mutedForeground:`mauve.500`,accent:`mauve.100`,accentForeground:`mauve.900`,destructiveForeground:`mauve.50`,successForeground:`mauve.50`,warningForeground:`mauve.50`,infoForeground:`mauve.50`,carbon:`mauve.800`,carbonForeground:`mauve.50`,border:`mauve.200`,input:`mauve.200`},dark:{background:`mauve.950`,foreground:`mauve.50`,card:`mauve.900`,cardForeground:`mauve.50`,popover:`mauve.900`,popoverForeground:`mauve.50`,primaryForeground:`mauve.900`,secondary:`mauve.800`,secondaryForeground:`mauve.50`,muted:`mauve.800`,mutedForeground:`mauve.400`,accent:`mauve.800`,accentForeground:`mauve.50`,destructiveForeground:`mauve.900`,successForeground:`mauve.900`,warningForeground:`mauve.900`,infoForeground:`mauve.900`,carbon:`mauve.100`,carbonForeground:`mauve.900`,border:iN,input:aN}}},dN={slate:{light:{primary:`slate.800`,ring:`slate.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`slate.200`,ring:`slate.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},mist:{light:{primary:`mist.800`,ring:`mist.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`mist.200`,ring:`mist.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},gray:{light:{primary:`gray.800`,ring:`gray.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`gray.200`,ring:`gray.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},zinc:{light:{primary:`zinc.800`,ring:`zinc.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`zinc.200`,ring:`zinc.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},neutral:{light:{primary:`neutral.800`,ring:`neutral.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`neutral.200`,ring:`neutral.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},stone:{light:{primary:`stone.800`,ring:`stone.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`stone.200`,ring:`stone.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},taupe:{light:{primary:`taupe.800`,ring:`taupe.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`taupe.200`,ring:`taupe.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},olive:{light:{primary:`olive.800`,ring:`olive.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`olive.200`,ring:`olive.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},mauve:{light:{primary:`mauve.800`,ring:`mauve.400`,chart1:`orange.600`,chart2:`teal.600`,chart3:`cyan.900`,chart4:`amber.400`,chart5:`amber.500`},dark:{primary:`mauve.200`,ring:`mauve.500`,chart1:`blue.700`,chart2:`emerald.500`,chart3:`amber.500`,chart4:`purple.500`,chart5:`rose.500`}},red:{light:{primary:`red.500`,ring:`red.400`,chart1:`red.300`,chart2:`red.500`,chart3:`red.600`,chart4:`red.700`,chart5:`red.800`},dark:{primary:`red.500`,ring:`red.900`,chart1:`red.300`,chart2:`red.500`,chart3:`red.600`,chart4:`red.700`,chart5:`red.800`}},orange:{light:{primary:`orange.500`,ring:`orange.400`,chart1:`orange.300`,chart2:`orange.500`,chart3:`orange.600`,chart4:`orange.700`,chart5:`orange.800`},dark:{primary:`orange.500`,ring:`orange.900`,chart1:`orange.300`,chart2:`orange.500`,chart3:`orange.600`,chart4:`orange.700`,chart5:`orange.800`}},amber:{light:{primary:`amber.500`,ring:`amber.400`,chart1:`amber.300`,chart2:`amber.500`,chart3:`amber.600`,chart4:`amber.700`,chart5:`amber.800`},dark:{primary:`amber.500`,ring:`amber.900`,chart1:`amber.300`,chart2:`amber.500`,chart3:`amber.600`,chart4:`amber.700`,chart5:`amber.800`}},yellow:{light:{primary:`yellow.500`,ring:`yellow.400`,chart1:`yellow.300`,chart2:`yellow.500`,chart3:`yellow.600`,chart4:`yellow.700`,chart5:`yellow.800`},dark:{primary:`yellow.500`,ring:`yellow.900`,chart1:`yellow.300`,chart2:`yellow.500`,chart3:`yellow.600`,chart4:`yellow.700`,chart5:`yellow.800`}},lime:{light:{primary:`lime.500`,ring:`lime.400`,chart1:`lime.300`,chart2:`lime.500`,chart3:`lime.600`,chart4:`lime.700`,chart5:`lime.800`},dark:{primary:`lime.600`,ring:`lime.900`,chart1:`lime.300`,chart2:`lime.500`,chart3:`lime.600`,chart4:`lime.700`,chart5:`lime.800`}},green:{light:{primary:`green.500`,ring:`green.400`,chart1:`green.300`,chart2:`green.500`,chart3:`green.600`,chart4:`green.700`,chart5:`green.800`},dark:{primary:`green.600`,ring:`green.900`,chart1:`green.300`,chart2:`green.500`,chart3:`green.600`,chart4:`green.700`,chart5:`green.800`}},emerald:{light:{primary:`emerald.500`,ring:`emerald.400`,chart1:`emerald.300`,chart2:`emerald.500`,chart3:`emerald.600`,chart4:`emerald.700`,chart5:`emerald.800`},dark:{primary:`emerald.600`,ring:`emerald.900`,chart1:`emerald.300`,chart2:`emerald.500`,chart3:`emerald.600`,chart4:`emerald.700`,chart5:`emerald.800`}},teal:{light:{primary:`teal.500`,ring:`teal.400`,chart1:`teal.300`,chart2:`teal.500`,chart3:`teal.600`,chart4:`teal.700`,chart5:`teal.800`},dark:{primary:`teal.500`,ring:`teal.900`,chart1:`teal.300`,chart2:`teal.500`,chart3:`teal.600`,chart4:`teal.700`,chart5:`teal.800`}},cyan:{light:{primary:`cyan.500`,ring:`cyan.400`,chart1:`cyan.300`,chart2:`cyan.500`,chart3:`cyan.600`,chart4:`cyan.700`,chart5:`cyan.800`},dark:{primary:`cyan.500`,ring:`cyan.900`,chart1:`cyan.300`,chart2:`cyan.500`,chart3:`cyan.600`,chart4:`cyan.700`,chart5:`cyan.800`}},sky:{light:{primary:`sky.500`,ring:`sky.400`,chart1:`sky.300`,chart2:`sky.500`,chart3:`sky.600`,chart4:`sky.700`,chart5:`sky.800`},dark:{primary:`sky.500`,ring:`sky.900`,chart1:`sky.300`,chart2:`sky.500`,chart3:`sky.600`,chart4:`sky.700`,chart5:`sky.800`}},blue:{light:{primary:`blue.500`,ring:`blue.400`,chart1:`blue.300`,chart2:`blue.500`,chart3:`blue.600`,chart4:`blue.700`,chart5:`blue.800`},dark:{primary:`blue.500`,ring:`blue.900`,chart1:`blue.300`,chart2:`blue.500`,chart3:`blue.600`,chart4:`blue.700`,chart5:`blue.800`}},indigo:{light:{primary:`indigo.500`,ring:`indigo.400`,chart1:`indigo.300`,chart2:`indigo.500`,chart3:`indigo.600`,chart4:`indigo.700`,chart5:`indigo.800`},dark:{primary:`indigo.500`,ring:`indigo.900`,chart1:`indigo.300`,chart2:`indigo.500`,chart3:`indigo.600`,chart4:`indigo.700`,chart5:`indigo.800`}},violet:{light:{primary:`violet.500`,ring:`violet.400`,chart1:`violet.300`,chart2:`violet.500`,chart3:`violet.600`,chart4:`violet.700`,chart5:`violet.800`},dark:{primary:`violet.500`,ring:`violet.900`,chart1:`violet.300`,chart2:`violet.500`,chart3:`violet.600`,chart4:`violet.700`,chart5:`violet.800`}},purple:{light:{primary:`purple.500`,ring:`purple.400`,chart1:`purple.300`,chart2:`purple.500`,chart3:`purple.600`,chart4:`purple.700`,chart5:`purple.800`},dark:{primary:`purple.500`,ring:`purple.900`,chart1:`purple.300`,chart2:`purple.500`,chart3:`purple.600`,chart4:`purple.700`,chart5:`purple.800`}},fuchsia:{light:{primary:`fuchsia.500`,ring:`fuchsia.400`,chart1:`fuchsia.300`,chart2:`fuchsia.500`,chart3:`fuchsia.600`,chart4:`fuchsia.700`,chart5:`fuchsia.800`},dark:{primary:`fuchsia.500`,ring:`fuchsia.900`,chart1:`fuchsia.300`,chart2:`fuchsia.500`,chart3:`fuchsia.600`,chart4:`fuchsia.700`,chart5:`fuchsia.800`}},pink:{light:{primary:`pink.500`,ring:`pink.400`,chart1:`pink.300`,chart2:`pink.500`,chart3:`pink.600`,chart4:`pink.700`,chart5:`pink.800`},dark:{primary:`pink.500`,ring:`pink.900`,chart1:`pink.300`,chart2:`pink.500`,chart3:`pink.600`,chart4:`pink.700`,chart5:`pink.800`}},rose:{light:{primary:`rose.500`,ring:`rose.400`,chart1:`rose.300`,chart2:`rose.500`,chart3:`rose.600`,chart4:`rose.700`,chart5:`rose.800`},dark:{primary:`rose.500`,ring:`rose.900`,chart1:`rose.300`,chart2:`rose.500`,chart3:`rose.600`,chart4:`rose.700`,chart5:`rose.800`}}},fN={classic:{light:{destructive:`red.500`,success:`green.500`,warning:`amber.500`,info:`blue.500`},dark:{destructive:`red.400`,success:`green.400`,warning:`amber.400`,info:`blue.400`}},vivid:{light:{destructive:`red.500`,success:`emerald.500`,warning:`amber.500`,info:`sky.500`},dark:{destructive:`red.400`,success:`emerald.400`,warning:`amber.400`,info:`sky.400`}},subtle:{light:{destructive:`rose.500`,success:`emerald.500`,warning:`amber.500`,info:`indigo.500`},dark:{destructive:`rose.300`,success:`emerald.300`,warning:`amber.300`,info:`indigo.300`}},warm:{light:{destructive:`red.500`,success:`lime.500`,warning:`orange.500`,info:`amber.600`},dark:{destructive:`red.400`,success:`lime.400`,warning:`orange.400`,info:`amber.400`}},cool:{light:{destructive:`rose.500`,success:`teal.500`,warning:`cyan.600`,info:`blue.500`},dark:{destructive:`rose.400`,success:`teal.400`,warning:`cyan.400`,info:`blue.400`}},nature:{light:{destructive:`red.500`,success:`green.600`,warning:`lime.600`,info:`teal.600`},dark:{destructive:`red.300`,success:`green.300`,warning:`lime.300`,info:`teal.300`}},modern:{light:{destructive:`red.500`,success:`emerald.500`,warning:`orange.500`,info:`sky.500`},dark:{destructive:`red.400`,success:`emerald.400`,warning:`orange.400`,info:`sky.400`}},vibrant:{light:{destructive:`red.500`,success:`lime.500`,warning:`amber.500`,info:`cyan.500`},dark:{destructive:`pink.400`,success:`lime.400`,warning:`amber.400`,info:`cyan.400`}},professional:{light:{destructive:`red.500`,success:`green.600`,warning:`amber.600`,info:`blue.600`},dark:{destructive:`red.300`,success:`green.300`,warning:`amber.300`,info:`blue.300`}},soft:{light:{destructive:`rose.400`,success:`teal.400`,warning:`yellow.400`,info:`violet.400`},dark:{destructive:`rose.300`,success:`teal.300`,warning:`yellow.300`,info:`violet.300`}},bold:{light:{destructive:`red.600`,success:`emerald.600`,warning:`orange.600`,info:`blue.600`},dark:{destructive:`red.300`,success:`emerald.300`,warning:`orange.300`,info:`blue.300`}},calm:{light:{destructive:`rose.500`,success:`teal.500`,warning:`amber.500`,info:`slate.500`},dark:{destructive:`rose.400`,success:`teal.400`,warning:`amber.400`,info:`slate.400`}},candy:{light:{destructive:`pink.400`,success:`emerald.400`,warning:`yellow.400`,info:`sky.400`},dark:{destructive:`pink.300`,success:`emerald.300`,warning:`yellow.300`,info:`sky.300`}},deep:{light:{destructive:`red.600`,success:`green.700`,warning:`amber.700`,info:`blue.700`},dark:{destructive:`red.200`,success:`green.200`,warning:`amber.200`,info:`blue.200`}},light:{light:{destructive:`red.400`,success:`emerald.400`,warning:`amber.400`,info:`sky.400`},dark:{destructive:`red.400`,success:`emerald.400`,warning:`amber.400`,info:`sky.400`}}};HM(uN),HM(dN),HM(fN),HM(uN.zinc.light),HM(dN.indigo.light),HM(fN.classic.light);function pN(e,t){return`${mN(t)}\n\n${hN(e,t)}`}function mN(e){let{styleTarget:t,size:n,radius:r,menuColor:i,menuAccent:a}=e,o=``;o+=`${t} {\n`,o+=` ${ZM}: ${YM(n)};\n`,o+=` ${QM}: ${XM(r)};\n`;let s=cN[i];HM(s).forEach(e=>{o+=` ${e}: ${s[e]};\n`});let c=lN[a];return HM(c).forEach(e=>{o+=` ${e}: ${c[e]};\n`}),o+=`} + +`,o}function hN(e,t){let{light:n,dark:r}=e,{format:i,styleTarget:a}=t,o=``,s=``;HM($M).forEach(e=>{let t=gN(e,i,n),a=gN(e,i,r);o+=t,a!==t&&(s+=a)});let c=``,l=``;[`primary`,`destructive`,`success`,`warning`,`info`,`carbon`].forEach(e=>{let t=vN(n[e],e,i),a=vN(r[e],e,i);c+=t,a!==t&&(l+=a)});let u=`${a} {\n${o}\n${c}\n}`,d=t.darkSelector;return(d===`class`||d===`media`)&&(d=rN[d]),u+=`\n\n${d} {\n${s}\n${l}\n}`,u}function gN(e,t,n){let r=n[e];if(!r)return``;let i=JM(r,t);t===`hsl`&&(i=KM(i));let{color:a,alphaCss:o}=_N(i,t,e);i=a;let s=`${$M[e]}: ${i};\n`;return s+=o,s}function _N(e,t,n){if(qM(e)||t===`oklch`||![`border`,`input`,`sidebarBorder`].includes(n))return{color:e,alphaCss:``};let[r,i=`1`]=e.split(`/`);r=r.trim(),i=i.trim();let a=Number.parseFloat(i);i.endsWith(`%`)&&(a/=100);let o=``;return n===`border`&&(o=`${eN.borderAlpha}: ${a};\n`),n===`input`&&(o+=`${eN.inputAlpha}: ${a};\n`),n===`sidebarBorder`&&(o+=`${eN.sidebarBorderAlpha}: ${a};\n`),{color:r,alphaCss:o}}function vN(e,t,n){let r=``,i=RM(JM(e,n),n===`hsl`?`hslString`:`oklchString`);return HM(i).forEach(e=>{let a=i[e];n===`hsl`&&(a=KM(a)),r+=`--${t}-${e}: ${a};\n`}),r}function yN(e,t){let n=bN(e);return t?{light:UM(n.light,t.light),dark:UM(n.dark,t.dark||{})}:n}function bN(e){let{base:t,primary:n,feedback:r}=e,i=uN[t],a=dN[n],o=fN[r],s=xN({light:{...i.light,...a.light},dark:{...i.dark,...a.dark}});return{light:{...i.light,...a.light,...o.light,...s.light},dark:{...i.dark,...a.dark,...o.dark,...s.dark}}}function xN(e){let{light:t,dark:n}=e;return{light:{sidebar:t.background,sidebarForeground:t.foreground,sidebarPrimary:t.primary,sidebarPrimaryForeground:t.primaryForeground,sidebarAccent:t.accent,sidebarAccentForeground:t.accentForeground,sidebarBorder:t.border,sidebarRing:t.ring},dark:{sidebar:n.card,sidebarForeground:n.foreground,sidebarPrimary:n.primary,sidebarPrimaryForeground:n.primaryForeground,sidebarAccent:n.accent,sidebarAccentForeground:n.accentForeground,sidebarBorder:n.border,sidebarRing:n.ring}}}function SN(e){let{size:t,radius:n,base:r,primary:i,feedback:a,menuColor:o,menuAccent:s,styleTarget:c,darkSelector:l,format:u,preset:d}=UM(nN,e??{}),f=WM(l);return{getCss:e=>pN(yN({base:e?.base??r,primary:e?.primary??i,feedback:e?.feedback??a},e?.preset??d),{styleTarget:c,darkSelector:f,format:u,size:t,radius:n,menuColor:o,menuAccent:s})}}var CN=L({name:`SConfigProvider`,__name:`config-provider`,props:{theme:{default:()=>({})},size:{default:`md`},iconify:{default:()=>({width:`1.25em`,height:`1.25em`})},progress:{},toast:{},customToast:{type:Boolean},dir:{},locale:{},nonce:{},tooltip:{},iconRender:{},messages:{}},setup(e){let t=e,n=fy(t,[`iconRender`,`theme`,`size`,`iconify`,`progress`,`toast`,`customToast`]),r=t.iconRender??(e=>io(Ux,{icon:e,ssr:!1}));return Xv(G(()=>{let{getCss:e}=SN({...t.theme,size:t.theme.size||t.size||`md`});return e()}),{id:`__SoybeanUI_theme`}),tb({...Tf(t),iconRender:r}),(e,i)=>(z(),V(F(OE),W(F(n),{"icon-render":F(r)}),{default:I(()=>[R(e.$slots,`default`),t.customToast?ja(`v-if`,!0):(z(),V(jM,M(W({key:0},t.toast)),null,16)),U(EM),U(OM,M(Oa(t.progress)),null,16)]),_:3},16,[`icon-render`]))}});Y({extendBase:e=>({shortcut:TM({size:e.size})}),slots:{positioner:``,popup:[`z-50 min-w-max rounded-md border bg-popover text-popover-foreground shadow-md will-change-transform outline-none`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],arrow:`w-1em h-0.5em fill-popover stroke-border`,subPositioner:``,subPopup:[`z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],group:``,groupLabel:`flex items-center font-medium text-muted-foreground`,checkboxGroup:``,radioGroup:``,item:[`relative flex items-center rounded-sm outline-none transition-colors-200 cursor-pointer select-none`,`focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,`data-[active=true]:bg-primary/10 data-[active=true]:text-primary`,`data-[active=false]:hover:bg-accent data-[active=false]:focus:bg-accent`],itemIcon:`shrink-0 text-muted-foreground`,itemLink:[`relative flex items-center rounded-sm outline-none transition-colors-200 cursor-pointer select-none decoration-none`,`focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemLinkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,subTrigger:`group/trigger flex items-center rounded-sm outline-none cursor-pointer select-none focus:bg-accent data-[state=open]:bg-accent data-[child-active]:text-primary`,subTriggerIcon:`ms-auto text-muted-foreground group-data-[child-active]/trigger:text-primary`,shortcut:`ms-auto tracking-widest opacity-60`,separator:`h-px bg-border`,checkboxItem:[`relative flex items-center rounded-sm outline-none transition-colors-200 cursor-pointer select-none`,`focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemIndicator:`absolute flex items-center justify-center text-primary`,radioItem:[`relative flex items-center rounded-sm outline-none transition-colors-200 cursor-pointer select-none`,`focus:bg-accent focus:text-accent-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`]},variants:{size:{xs:{popup:`text-2xs p-0.75`,groupLabel:`gap-1 p-1 text-3xs`,item:`gap-1 px-1 py-1`,itemLink:`gap-1 px-1 py-1`,itemLinkIcon:`size-2 -ms-1`,separator:`-mx-0.75 my-0.75`,subTrigger:`gap-1 px-1 py-1`,subPopup:`text-2xs p-0.75`,checkboxItem:`gap-1 py-1`,radioItem:`gap-1 py-1`},sm:{popup:`text-xs p-0.875`,groupLabel:`gap-1.25 p-1.25 text-2xs`,item:`gap-1.5 px-1.5 py-1`,itemLink:`gap-1.5 px-1.5 py-1`,itemLinkIcon:`size-2.5 -ms-1.5`,separator:`-mx-0.875 my-0.875`,subTrigger:`gap-1.5 px-1.5 py-1`,subPopup:`text-xs p-0.875`,checkboxItem:`gap-1.5 py-1`,radioItem:`gap-1.5 py-1`},md:{popup:`text-sm p-1`,groupLabel:`gap-1.75 p-1.75 text-xs`,item:`gap-2 px-2 py-1.5`,itemLink:`gap-2 px-2 py-1.5`,itemLinkIcon:`size-3 -ms-2`,separator:`-mx-1 my-1`,subTrigger:`gap-2 px-2 py-1.5`,subPopup:`text-sm p-1`,checkboxItem:`gap-2 py-1.5`,radioItem:`gap-2 py-1.5`},lg:{popup:`text-base p-1.25`,groupLabel:`gap-2 p-2 text-sm`,item:`gap-2.5 px-2.5 py-1.5`,itemLink:`gap-2.5 px-2.5 py-1.5`,itemLinkIcon:`size-3.5 -ms-2.5`,separator:`-mx-1.25 my-1.25`,subTrigger:`gap-2.5 px-2.5 py-1.5`,subPopup:`text-base p-1.25`,checkboxItem:`gap-2.5 py-1.5`,radioItem:`gap-2.5 py-1.5`},xl:{popup:`text-lg p-1.5`,groupLabel:`gap-2.5 p-2.5 text-base`,item:`gap-3 px-3 py-2`,itemLink:`gap-3 px-3 py-2`,itemLinkIcon:`size-4 -ms-3`,separator:`-mx-1.5 my-1.5`,subTrigger:`gap-3 px-3 py-2`,subPopup:`text-lg p-1.5`,checkboxItem:`gap-3 py-2`,radioItem:`gap-3 py-2`},"2xl":{popup:`text-xl p-1.75`,groupLabel:`gap-3 p-3 text-lg`,item:`gap-3.5 px-3.5 py-2.5`,itemLink:`gap-3.5 px-3.5 py-2.5`,itemLinkIcon:`size-4.5 -ms-3.5`,separator:`-mx-1.75 my-1.75`,subTrigger:`gap-3.5 px-3.5 py-2.5`,subPopup:`text-xl p-1.75`,checkboxItem:`gap-3.5 py-2.5`,radioItem:`gap-3.5 py-2.5`}},indicatorPosition:{start:{itemIndicator:`start-2`,checkboxItem:`ps-8 pe-2`,radioItem:`ps-8 pe-2`},end:{itemIndicator:`end-2`,checkboxItem:`ps-2 pe-8`,radioItem:`ps-2 pe-8`}}},compoundVariants:[{indicatorPosition:`start`,size:`xs`,class:{itemIndicator:`start-1`,checkboxItem:`ps-6 pe-1`,radioItem:`ps-6 pe-1`}},{indicatorPosition:`end`,size:`xs`,class:{itemIndicator:`end-1`,checkboxItem:`ps-1 pe-6`,radioItem:`ps-1 pe-6`}},{indicatorPosition:`start`,size:`sm`,class:{itemIndicator:`start-1.5`,checkboxItem:`ps-7 pe-1.5`,radioItem:`ps-7 pe-1.5`}},{indicatorPosition:`end`,size:`sm`,class:{itemIndicator:`end-1.5`,checkboxItem:`ps-1.5 pe-7`,radioItem:`ps-1.5 pe-7`}},{indicatorPosition:`start`,size:`lg`,class:{itemIndicator:`start-2.5`,checkboxItem:`ps-9 pe-2.5`,radioItem:`ps-9 pe-2.5`}},{indicatorPosition:`end`,size:`lg`,class:{itemIndicator:`end-2.5`,checkboxItem:`ps-2.5 pe-9`,radioItem:`ps-2.5 pe-9`}},{indicatorPosition:`start`,size:`xl`,class:{itemIndicator:`start-3`,checkboxItem:`ps-10 pe-3`,radioItem:`ps-10 pe-3`}},{indicatorPosition:`end`,size:`xl`,class:{itemIndicator:`end-3`,checkboxItem:`ps-3 pe-10`,radioItem:`ps-3 pe-10`}},{indicatorPosition:`start`,size:`2xl`,class:{itemIndicator:`start-3.5`,checkboxItem:`ps-12 pe-3.5`,radioItem:`ps-12 pe-3.5`}},{indicatorPosition:`end`,size:`2xl`,class:{itemIndicator:`end-3.5`,checkboxItem:`ps-3.5 pe-12`,radioItem:`ps-3.5 pe-12`}}],defaultVariants:{size:`md`,indicatorPosition:`start`}});var wN=Y({slots:{root:[`group inline-flex items-center w-fit lt-md:max-w-auto rounded-md border border-input bg-background transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`,`data-[disabled]:opacity-50 data-[readonly]:bg-muted/40`,`data-[invalid]:border-destructive data-[invalid]:ring-3 data-[invalid]:ring-destructive/20`],input:[`inline-flex items-center justify-center rounded-sm text-center outline-none`,`tabular-nums leading-none`,`data-[segment=literal]:min-w-0 data-[segment=literal]:px-0 data-[segment=literal]:text-muted-foreground`,`data-[segment=timeZoneName]:min-w-fit data-[segment=timeZoneName]:px-1 data-[segment=timeZoneName]:text-muted-foreground`,`data-[placeholder]:text-muted-foreground`,`focus-visible:bg-accent/60 focus-visible:ring-2 focus-visible:ring-primary/20`,`data-[disabled]:cursor-not-allowed data-[readonly]:cursor-default`]},variants:{size:{xs:{root:`gap-0.5 h-6 px-1.5 text-2xs`,input:`min-w-4.5 p-0.5 data-[segment=timeZoneName]:px-0.5`},sm:{root:`gap-0.75 h-7 px-2 text-xs`,input:`min-w-5 p-0.5 data-[segment=timeZoneName]:px-0.75`},md:{root:`gap-1 h-8 px-2.5 text-sm`,input:`min-w-5.5 p-0.625 data-[segment=timeZoneName]:px-1`},lg:{root:`gap-1.25 h-9 px-3 text-base`,input:`min-w-6 p-0.75 data-[segment=timeZoneName]:px-1.25`},xl:{root:`gap-1.5 h-10 px-3.5 text-lg`,input:`min-w-6.5 p-0.875 data-[segment=timeZoneName]:px-1.5`},"2xl":{root:`gap-2 h-12 px-4 text-xl`,input:`min-w-8 p-1 data-[segment=timeZoneName]:px-2`}}},defaultVariants:{size:`md`}});Y({extend:[Y({extend:[wN],slots:{trigger:`ms-auto data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground`,positioner:`w-max`,popup:[`w-auto rounded-md border bg-popover text-popover-foreground outline-none z-50 will-change-transform`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`]},variants:{size:{xs:{popup:`text-2xs`},sm:{popup:`text-xs`},md:{popup:`text-sm`},lg:{popup:`text-base`},xl:{popup:`text-lg`},"2xl":{popup:`text-xl`}}},defaultVariants:{size:`md`}}),Y({extend:[wN],slots:{startRoot:`inline-flex items-center`,endRoot:`inline-flex items-center`,separator:[`inline-flex items-center justify-center text-muted-foreground`,`select-none`]},variants:{size:{xs:{separator:`px-0.5`},sm:{separator:`px-0.75`},md:{separator:`px-1`},lg:{separator:`px-1.25`},xl:{separator:`px-1.5`},"2xl":{separator:`px-2`}}},defaultVariants:{size:`md`}})],defaultVariants:{size:`md`}}),Y({slots:{root:`w-full`,area:[`grid w-full grid-cols-[minmax(0,1fr)_auto] items-center gap-2 rounded-md border border-solid border-input bg-background transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],preview:[`col-start-1 row-start-1 min-w-0 truncate text-foreground outline-none`,`data-[placeholder-shown]:text-muted-foreground`],input:[`col-start-1 row-start-1 min-w-0 w-full border-0 bg-transparent outline-none`,`placeholder:text-muted-foreground`,`disabled:cursor-not-allowed`],controls:`col-start-2 row-start-1 flex items-center gap-1`,editTrigger:[`inline-flex items-center justify-center rounded-md text-muted-foreground transition-colors`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-2 focus-visible:ring-primary/30`],submitTrigger:[`inline-flex items-center justify-center rounded-md text-muted-foreground transition-colors`,`hover:bg-accent hover:text-success`,`outline-none focus-visible:ring-2 focus-visible:ring-primary/30`],cancelTrigger:[`inline-flex items-center justify-center rounded-md text-muted-foreground transition-colors`,`hover:bg-accent hover:text-destructive`,`outline-none focus-visible:ring-2 focus-visible:ring-primary/30`]},variants:{size:{xs:{area:`min-h-6 px-1.5 py-1 text-2xs`,preview:`text-2xs`,input:`text-2xs`,controls:`gap-0.5`,editTrigger:`size-5 [&>svg]:size-3`,submitTrigger:`size-5 [&>svg]:size-3`,cancelTrigger:`size-5 [&>svg]:size-3`},sm:{area:`min-h-7 px-2 py-1 text-xs`,preview:`text-xs`,input:`text-xs`,editTrigger:`size-6 [&>svg]:size-3.5`,submitTrigger:`size-6 [&>svg]:size-3.5`,cancelTrigger:`size-6 [&>svg]:size-3.5`},md:{area:`min-h-8 px-2.5 py-1.5 text-sm`,preview:`text-sm`,input:`text-sm`,editTrigger:`size-7 [&>svg]:size-4`,submitTrigger:`size-7 [&>svg]:size-4`,cancelTrigger:`size-7 [&>svg]:size-4`},lg:{area:`min-h-9 px-3 py-1.5 text-base`,preview:`text-base`,input:`text-base`,editTrigger:`size-8 [&>svg]:size-4`,submitTrigger:`size-8 [&>svg]:size-4`,cancelTrigger:`size-8 [&>svg]:size-4`},xl:{area:`min-h-10 px-3.5 py-2 text-lg`,preview:`text-lg`,input:`text-lg`,editTrigger:`size-9 [&>svg]:size-5`,submitTrigger:`size-9 [&>svg]:size-5`,cancelTrigger:`size-9 [&>svg]:size-5`},"2xl":{area:`min-h-12 px-4 py-2.5 text-xl`,preview:`text-xl`,input:`text-xl`,editTrigger:`size-10 [&>svg]:size-5`,submitTrigger:`size-10 [&>svg]:size-5`,cancelTrigger:`size-10 [&>svg]:size-5`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`flex flex-col items-center justify-center min-w-0 grow rounded-md border border-dashed text-center`,header:`flex flex-col items-center max-w-sm text-center`,media:`flex shrink-0 items-center justify-center rounded-md bg-muted text-foreground`,title:`font-medium tracking-tight`,description:`leading-relaxed text-muted-foreground`,content:`flex w-full min-w-0 max-w-sm flex-col items-center`},variants:{size:{xs:{root:`text-2xs gap-3`,title:`text-xs`,header:`gap-1.5`,media:`my-1.5`},sm:{root:`text-xs gap-3.5`,title:`text-sm`,header:`gap-1.75`,media:`my-1.75`},md:{root:`text-sm gap-4`,title:`text-base`,header:`gap-2`,media:`my-2 size-10`},lg:{root:`text-base gap-4.5`,title:`text-lg`,header:`gap-2.5`,media:`my-2.5`},xl:{root:`text-lg gap-5`,title:`text-xl`,header:`gap-3`,media:`my-3`},"2xl":{root:`text-xl gap-6`,title:`text-2xl`,header:`gap-3.5`,media:`my-3.5`}}},defaultVariants:{size:`md`}}),Y({slots:{form:`grid`,field:[`group flex data-[orientation=vertical]:flex-col`,`data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:flex-wrap data-[orientation=horizontal]:justify-between data-[orientation=horizontal]:items-center`],fieldArray:[`group flex data-[orientation=vertical]:flex-col`,`data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:flex-wrap data-[orientation=horizontal]:justify-between`],label:[`flex items-center whitespace-nowrap`,`group-data-[orientation=horizontal]:justify-end group-data-[orientation=horizontal]:shrink-0`],control:`group-data-[orientation=horizontal]:flex-1 group-data-[orientation=horizontal]:min-w-0`,description:`text-muted-foreground m-0 group-data-[orientation=horizontal]:w-full`,error:[`font-medium text-destructive m-0`,`group-data-[orientation=horizontal]:absolute group-data-[orientation=horizontal]:start-0 group-data-[orientation=horizontal]:top-full group-data-[orientation=horizontal]:w-full`]},variants:{size:{xs:{field:`text-2xs gap-x-2.25 gap-y-1.5`,fieldArray:`text-2xs gap-x-2.25 gap-y-1.5`,label:`gap-1.5`,description:`group-data-[error]:pt-1.75`},sm:{field:`text-xs gap-x-2.5 gap-y-1.75`,fieldArray:`text-xs gap-x-2.5 gap-y-1.75`,label:`gap-1.75`,description:`group-data-[error]:pt-2`},md:{field:`text-sm gap-x-3 gap-y-2`,fieldArray:`text-sm gap-x-3 gap-y-2`,label:`gap-2`,description:`group-data-[error]:pt-2.5`},lg:{field:`text-base gap-x-3.75 gap-y-2.5`,fieldArray:`text-base gap-x-3.75 gap-y-2.5`,label:`gap-2.5`,description:`group-data-[error]:pt-3`},xl:{field:`text-lg gap-x-4.5 gap-y-3`,fieldArray:`text-lg gap-x-4.5 gap-y-3`,label:`gap-3`,description:`group-data-[error]:pt-3.5`},"2xl":{field:`text-xl gap-x-5.25 gap-y-3.5`,fieldArray:`text-xl gap-x-5.25 gap-y-3.5`,label:`gap-3.5`,description:`group-data-[error]:pt-4.5`}}},defaultVariants:{size:`md`}}),Y({slots:{positioner:`w-max`,popup:[`z-50 w-64 rounded-md border bg-popover text-popover-foreground shadow-md outline-none will-change-transform`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],arrow:`w-1em h-0.5em fill-popover stroke-border`},variants:{size:{xs:{popup:`w-48 p-3 text-2xs`,arrow:`text-3xs`},sm:{popup:`w-56 p-3.5 text-xs`,arrow:`text-2xs`},md:{popup:`w-64 p-4 text-sm`,arrow:`text-xs`},lg:{popup:`w-72 p-4.5 text-base`,arrow:`text-sm`},xl:{popup:`w-80 p-5 text-lg`,arrow:`text-base`},"2xl":{popup:`w-96 p-5.5 text-xl`,arrow:`text-lg`}}},defaultVariants:{size:`md`}});var TN=Y({extendBase:e=>({clear:Hy({size:e.size,shape:`circle`})}),slots:{root:[`group flex items-center w-full rounded-md border border-solid border-input bg-background transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`],control:[`grow min-w-0 h-full bg-transparent outline-none`,`placeholder:text-muted-foreground`,`disabled:cursor-not-allowed disabled:opacity-50`,`file:border-0 file:bg-transparent file:font-medium`],clear:[`hidden shrink-0 opacity-50`,`group-hover:inline-flex group-focus-within:inline-flex hover:opacity-100 focus-visible:opacity-100`],visible:`shrink-0 cursor-pointer`},variants:{size:{xs:{root:`h-6 px-1.5 text-2xs gap-1`,control:`file:py-1.25`},sm:{root:`h-7 px-2 text-xs gap-1.5`,control:`file:py-1.25`},md:{root:`h-8 px-2.5 text-sm gap-2`,control:`file:py-1.25`},lg:{root:`h-9 px-3 text-base gap-2.5`,control:`file:py-1.25`},xl:{root:`h-10 px-3.5 text-lg gap-3`,control:`file:py-1.25`},"2xl":{root:`h-12 px-4 text-xl gap-3.5`,control:`file:py-2`}}},defaultVariants:{size:`md`}}),EN=L({name:`SInput`,__name:`input`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},inputRef:{type:Function},clearable:{type:Boolean},controlProps:{},clearProps:{},defaultValue:{},modelValue:{},disabled:{type:Boolean},readonly:{type:Boolean},rootProps:{},name:{},required:{type:Boolean},id:{},autofocus:{type:Boolean},autocomplete:{},maxlength:{},minlength:{},pattern:{},placeholder:{},type:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=fy(n,[`class`,`size`,`ui`]),a=ei(),o=G(()=>Em(a));return Kx(G(()=>TN({size:n.size},n.ui,{root:n.class}))),(e,t)=>(z(),V(F(jS),W(F(i),{"onUpdate:modelValue":t[0]||=e=>r(`update:modelValue`,e)}),qr({_:2},[Kr(o.value,t=>({name:t,fn:I(n=>[R(e.$slots,t,M(Oa(n)))])}))]),1040))}});Y({extendBase:e=>({decrement:Hy({size:e.size}),increment:Hy({size:e.size}),clear:Hy({size:e.size,shape:`circle`})}),slots:{root:`group flex items-center w-full rounded-md border border-input bg-background transition-all-150 focus-within:border-input focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30 disabled:cursor-not-allowed disabled:opacity-50`,decrement:`shrink-0`,increment:`shrink-0`,control:[`grow min-w-0 h-full bg-transparent outline-none`,`placeholder:text-muted-foreground`,`disabled:cursor-not-allowed disabled:opacity-50`],clear:[`hidden shrink-0 opacity-50`,`group-hover:inline-flex group-focus-within:inline-flex hover:opacity-100 focus-visible:opacity-100`]},variants:{size:{xs:{root:`h-6 px-1.5 text-2xs gap-1`},sm:{root:`h-7 px-2 text-xs gap-1.5`},md:{root:`h-8 px-2.5 text-sm gap-2`},lg:{root:`h-9 px-3 text-base gap-2.5`},xl:{root:`h-10 px-3.5 text-lg gap-3`},"2xl":{root:`h-12 px-4 text-xl gap-3.5`}},center:{true:{decrement:`-order-1`,control:`text-center`}}},defaultVariants:{size:`md`,center:!1}}),Y({slots:{root:[`relative inline-flex w-full cursor-text select-none`,`data-[disabled]:cursor-default data-[disabled]:opacity-50`],positioner:`absolute inset-0`,group:`grid w-full gap-2 grid-cols-[repeat(var(--columns),minmax(0,1fr))]`,input:[`absolute inset-0 h-full w-full border-0 bg-transparent p-0 outline-none shadow-none opacity-0`,`pointer-events-auto text-transparent caret-transparent font-mono leading-none`,`[font-variant-numeric:tabular-nums] [letter-spacing:-0.5em]`,`selection:bg-transparent selection:text-transparent`,`data-[password-manager-badge]:w-[calc(100%+40px)] data-[password-manager-badge]:[clip-path:inset(0_40px_0_0)]`],slot:[`relative inline-flex items-center justify-center overflow-hidden rounded-md border border-input bg-background font-medium text-foreground shadow-xs transition-[border-color,box-shadow,transform]`,`data-[state=active]:border-ring data-[state=active]:ring-3 data-[state=active]:ring-ring/40`,`data-[state=filled]:border-foreground/20`],char:`leading-none`,placeholder:`leading-none text-muted-foreground/60`,caret:`h-[60%] w-px animate-pulse bg-foreground`},variants:{size:{xs:{group:`gap-1.5`,slot:`h-8 text-sm`,caret:`h-4`},sm:{group:`gap-2`,slot:`h-9 text-base`,caret:`h-4.5`},md:{group:`gap-2`,slot:`h-10 text-lg`,caret:`h-5`},lg:{group:`gap-2.5`,slot:`h-11 text-xl`,caret:`h-5.5`},xl:{group:`gap-3`,slot:`h-12 text-2xl`,caret:`h-6`},"2xl":{group:`gap-3`,slot:`h-14 text-3xl`,caret:`h-7`}},align:{start:{input:`text-start`},center:{input:`text-center`},end:{input:`text-end`}}},defaultVariants:{size:`md`,align:`start`}}),fl({base:`font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,variants:{size:{xs:`text-2xs`,sm:`text-xs`,md:`text-sm`,lg:`text-base`,xl:`text-lg`,"2xl":`text-xl`}},defaultVariants:{size:`md`}}),Y({extendBase:e=>({trigger:By({size:e.size}),mobileDrawer:HS({size:e.size,side:e.side}).popup}),slots:{root:`group relative flex w-full h-full data-[side=right]:flex-row-reverse`,sidebarRoot:`h-full block lt-md:hidden`,sidebarWrapper:`absolute inset-y-0 z-10 flex h-full w-[--soybean-sidebar-width] transition-[left,right,width,opacity] duration-200 ease-linear lt-md:hidden`,sidebar:[`flex flex-col w-full h-full bg-sidebar`,`group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-border group-data-[variant=floating]:border-solid group-data-[variant=floating]:shadow`],sidebarGapHandler:[`relative h-full w-[--soybean-sidebar-width] bg-transparent transition-width duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`],mobileDrawer:`w-[--soybean-sidebar-width] bg-sidebar p-0`,mobileOverlay:[`fixed inset-0 z-50 bg-black/80`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`],mobile:`flex flex-col w-full h-full`,rail:[`absolute inset-y-0 z-20 flex w-[--soybean-layout-spacing] -translate-x-1/2 rtl:translate-x-1/2 transition-all ease-linear lt-sm:hidden`,`after:absolute after:inset-y-0 after:start-1/2 after:content-empty after:w-[calc(var(--soybean-layout-spacing)/8)] hover:after:bg-sidebar-border`],trigger:``,main:`relative flex flex-1 flex-col items-stretch bg-background overflow-hidden`,header:`relative flex items-center shrink-0 h-[--soybean-layout-header-height]`,tab:`shrink-0 h-[--soybean-layout-tab-height] bg-background`,content:`grow overflow-auto bg-background`,footer:`shrink-0 h-[--soybean-layout-footer-height]`},variants:{size:{xs:{root:`text-2xs [--soybean-layout-spacing:0.75rem]`},sm:{root:`text-xs [--soybean-layout-spacing:0.875rem]`},md:{root:`text-sm [--soybean-layout-spacing:1rem]`},lg:{root:`text-base [--soybean-layout-spacing:1.25rem]`},xl:{root:`text-lg [--soybean-layout-spacing:1.5rem]`},"2xl":{root:`text-xl [--soybean-layout-spacing:1.75rem]`}},variant:{sidebar:{sidebarGapHandler:`group-data-[collapsible=icon]:w-[--soybean-collapsed-sidebar-width]`,sidebarWrapper:`group-data-[collapsible=icon]:w-[--soybean-collapsed-sidebar-width] group-data-[side=left]:border-e group-data-[side=right]:border-s`},floating:{sidebarGapHandler:`w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`,sidebarWrapper:`p-[calc(var(--soybean-layout-spacing)/2)] w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`},inset:{root:`bg-sidebar`,sidebarGapHandler:`w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`,sidebarWrapper:`p-[calc(var(--soybean-layout-spacing)/2)] w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`,main:`md:m-[calc(var(--soybean-layout-spacing)/2)] md:ms-0 md:rounded-xl md:shadow`}},side:{left:{sidebarWrapper:`start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--soybean-sidebar-width)*-1)]`,rail:`cursor-w-resize group-data-[state=collapsed]:cursor-e-resize -end-[var(--soybean-layout-spacing)]`},right:{sidebarWrapper:`end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--soybean-sidebar-width)*-1)]`,rail:`cursor-e-resize group-data-[state=collapsed]:cursor-w-resize start-0`}},collapsible:{offcanvas:{sidebarWrapper:`group-data-[state=collapsed]:opacity-0`,rail:`translate-x-0 after:start-full hover:bg-sidebar`},icon:{}},fullContent:{true:{tab:`fixed start-0 top-0 z-49 w-full`,content:`fixed inset-0 z-49 group-data-[tab-visible=true]:mt-[--soybean-layout-tab-height]`},false:{content:`relative`}}},compoundVariants:[{side:`left`,collapsible:`offcanvas`,class:{rail:`-end-[var(--soybean-layout-spacing)/2]`}},{side:`right`,collapsible:`offcanvas`,class:{rail:`-start-[var(--soybean-layout-spacing)/2]`}},{side:`left`,variant:`inset`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:end-0`}},{side:`right`,variant:`inset`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:start-0`}},{side:`left`,variant:`floating`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:end-[calc(var(--soybean-layout-spacing)/2)]`}},{side:`right`,variant:`floating`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:start-[calc(var(--soybean-layout-spacing)/2)]`}},{variant:`inset`,collapsible:`offcanvas`,class:{main:`md:group-data-[state=collapsed]:ms-[calc(var(--soybean-layout-spacing)/2)]`}}],defaultVariants:{variant:`sidebar`,side:`left`,collapsible:`icon`}}),Y({extendBase:e=>({trigger:By({size:e.size}),mobileDrawer:HS({size:e.size,side:e.side}).popup}),slots:{root:`group relative h-full transition-all-300`,main:`flex flex-col h-full group-data-[scroll-behavior=wrapper]:overflow-y-auto transition-all-300`,sidebarRoot:`lt-md:hidden`,sidebarWrapper:[`absolute inset-y-0 z-[--soybean-layout-sidebar-z-index] flex h-full w-[--soybean-sidebar-width] transition-[inset-inline-start,inset-inline-end,width,opacity] duration-200 ease-linear lt-md:hidden`,`group-data-[state=collapsed]:w-[--soybean-collapsed-sidebar-width] pt-[--soybean-layout-sidebar-top-gap] pb-[--soybean-layout-sidebar-bottom-gap]`],sidebar:[`flex flex-col w-full h-full bg-sidebar`,`group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-border group-data-[variant=floating]:border-solid group-data-[variant=floating]:shadow`],mobileDrawer:`w-[--soybean-sidebar-width] bg-sidebar p-0`,mobileOverlay:[`fixed inset-0 z-50 bg-black/80`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`],mobile:`flex flex-col w-full h-full`,rail:[`absolute inset-y-0 z-20 flex w-[--soybean-layout-spacing] -translate-x-1/2 transition-all ease-linear lt-sm:hidden`,`after:absolute after:inset-y-0 after:start-1/2 after:content-empty after:w-[calc(var(--soybean-layout-spacing)/8)] hover:after:bg-sidebar-border`],trigger:``,header:[`shrink-0 flex items-center h-[--soybean-layout-header-height]`,`group-data-[fixed-top=true]:absolute group-data-[fixed-top=true]:z-[--soybean-layout-header-z-index] group-data-[fixed-top=true]:top-0 group-data-[fixed-top=true]:inset-x-0`],headerPlaceholder:`shrink-0 h-[--soybean-layout-header-height] overflow-hidden`,tab:`shrink-0 h-[--soybean-layout-tab-height] group-data-[fixed-top=true]:z-[--soybean-layout-tab-z-index]`,tabPlaceholder:`shrink-0 h-[--soybean-layout-tab-height] overflow-hidden`,content:`grow bg-background group-data-[scroll-behavior=content]:overflow-y-auto`,footer:[`shrink-0 h-[--soybean-layout-footer-height]`,`group-data-[fixed-footer=true]:absolute group-data-[fixed-footer=true]:z-[--soybean-layout-footer-z-index] group-data-[fixed-footer=true]:bottom-0 group-data-[fixed-footer=true]:inset-x-0`],footerPlaceholder:`shrink-0 h-[--soybean-layout-footer-height] overflow-hidden`},variants:{size:{xs:{root:`text-2xs [--soybean-layout-spacing:0.75rem]`},sm:{root:`text-xs [--soybean-layout-spacing:0.875rem]`},md:{root:`text-sm [--soybean-layout-spacing:1rem]`},lg:{root:`text-base [--soybean-layout-spacing:1.25rem]`},xl:{root:`text-lg [--soybean-layout-spacing:1.5rem]`},"2xl":{root:`text-xl [--soybean-layout-spacing:1.75rem]`}},side:{left:{main:`ps-[--soybean-layout-start-gap]`,sidebarWrapper:`start-0 border-e`,rail:`cursor-w-resize group-data-[state=collapsed]:cursor-e-resize -end-[var(--soybean-layout-spacing)]`,header:`group-data-[fixed-top=true]:ps-[--soybean-layout-header-start-gap]`,footer:`group-data-[fixed-footer=true]:ps-[--soybean-layout-footer-start-gap]`},right:{main:`pe-[--soybean-layout-start-gap]`,sidebarWrapper:`end-0 border-s`,rail:`cursor-e-resize group-data-[state=collapsed]:cursor-w-resize start-0`,header:`group-data-[fixed-top=true]:pe-[--soybean-layout-header-start-gap]`,footer:`group-data-[fixed-footer=true]:pe-[--soybean-layout-footer-start-gap]`}},fullContent:{true:{tab:`fixed start-0 top-0 z-[--soybean-layout-base-z-index] w-full`,content:`fixed inset-0 z-[--soybean-layout-base-z-index] group-data-[tab-visible=true]:mt-[--soybean-layout-tab-height] overflow-auto`},false:{tab:`group-data-[fixed-top=true]:absolute group-data-[fixed-top=true]:inset-x-0 group-data-[fixed-top=true]:top-[--soybean-layout-header-height]`,content:`relative`}}},compoundVariants:[{side:`left`,fullContent:!1,class:{tab:`group-data-[fixed-top=true]:ps-[--soybean-layout-start-gap]`}},{side:`right`,fullContent:!1,class:{tab:`group-data-[fixed-top=true]:pe-[--soybean-layout-start-gap]`}}],defaultVariants:{size:`md`,side:`left`,fullContent:!1}}),Y({slots:{root:`flex flex-col`,item:`flex list-none`,content:`grow flex flex-col`,title:`font-medium tracking-tight m-0`,description:`[&_p]:leading-relaxed text-muted-foreground m-0`},variants:{size:{xs:{root:`gap-2 text-2xs`,item:`gap-2`,content:`gap-0.75`,title:`text-xs leading-3.125`},sm:{root:`gap-3 text-xs`,item:`gap-3`,content:`gap-1`,title:`text-sm leading-3.75`},md:{root:`gap-4 text-sm`,item:`gap-4`,content:`gap-1`,title:`text-base leading-4.375`},lg:{root:`gap-5 text-base`,item:`gap-5`,content:`gap-1.25`,title:`text-lg leading-5`},xl:{root:`gap-6 text-lg`,item:`gap-6`,content:`gap-1.5`,title:`text-xl leading-5.625`},"2xl":{root:`gap-7 text-xl`,item:`gap-7`,content:`gap-2`,title:`text-2xl leading-6.25`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`inline-flex items-center w-fit rounded-md border bg-background shadow-sm`,trigger:[`flex cursor-pointer select-none items-center rounded-sm font-medium outline-none`,`focus:(bg-accent text-accent-foreground)`,`data-[state=open]:(bg-accent text-accent-foreground)`]},variants:{size:{xs:{root:`gap-1 p-0.5 text-2xs`,trigger:`gap-1 px-1 py-1`},sm:{root:`gap-1.25 p-0.625 text-xs`,trigger:`gap-1.5 px-1.5 py-1`},md:{root:`gap-1.5 p-0.75`,trigger:`gap-2 px-2 py-1.25`},lg:{root:`gap-1.75 p-0.875`,trigger:`gap-2.5 px-2.5 py-1.5`},xl:{root:`gap-2 p-1`,trigger:`gap-3 px-3 py-2`},"2xl":{root:`gap-2.5 p-1.25`,trigger:`gap-3.5 px-3.5 py-2.5`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`group`,viewport:[`fixed z-50 origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg`,`start-[--soybean-navigation-menu-viewport-left] top-[--soybean-navigation-menu-viewport-top]`,`h-[--soybean-navigation-menu-viewport-height] w-[--soybean-navigation-menu-viewport-width]`,`transition-all duration-200 ease-out`,`data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95`,`group-data-[orientation=vertical]:mt-0`],content:[`start-0 top-0 w-auto md:absolute lt-md:w-full`,`data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in`,`data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out`,`data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52`,`rtl:data-[motion=from-end]:slide-in-from-left-52 rtl:data-[motion=from-start]:slide-in-from-right-52 rtl:data-[motion=to-end]:slide-out-to-left-52 rtl:data-[motion=to-start]:slide-out-to-right-52`],arrow:`w-1em h-0.5em fill-popover stroke-border rotate-180 group-data-[orientation=vertical]:rotate-90`,list:[`group grow flex items-center justify-center my-0 list-none`,`group-data-[orientation=vertical]:flex-col group-data-[orientation=vertical]:items-stretch`],subList:`grid grid-cols-[auto_auto] list-none my-0`,item:`list-none m-0`,subItem:`list-none m-0`,itemIcon:`shrink-0 text-muted-foreground`,trigger:[`group inline-flex items-center rounded-md bg-background font-medium transition-colors-200 decoration-none outline-none`,`hover:bg-accent hover:text-accent-foreground`,`focus:bg-accent focus:text-accent-foreground`,`disabled:pointer-events-none disabled:opacity-50`,`data-[active]:bg-accent/50`,`data-[state=open]:bg-accent/50`],subItemContent:`flex items-start rounded-md outline-none cursor-default select-none`,triggerIcon:`ms-auto transition duration-200 group-data-[state=open]:rotate-180`,indicator:[`fixed start-[--soybean-navigation-menu-indicator-left] top-[--soybean-navigation-menu-indicator-top] z-50`,`flex w-[--soybean-navigation-menu-indicator-size] items-end justify-center overflow-hidden transition-transform-200 ease-out`,`data-[state=visible]:animate-in data-[state=visible]:fade-in-0 data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0`,`data-[orientation=vertical]:-rotate-90 [&[dir=rtl]]:data-[orientation=vertical]:rotate-90`],link:[`group relative w-full flex items-center rounded-md font-medium outline-none cursor-pointer decoration-none`,`focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],subLink:[`flex items-start select-none rounded-md no-underline outline-none transition-colors-200 cursor-pointer decoration-none`,`focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],linkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,subLinkContent:`grow flex flex-col items-start`,subLinkLabel:`font-medium leading-none`,subLinkDescription:`line-clamp-2 text-muted-foreground leading-snug m-0`},variants:{size:{xs:{viewport:`mt-1.75 group-data-[orientation=vertical]:ms-3.5`,list:`gap-1 text-2xs`,subList:`gap-1.5 p-1.5 text-2xs`,trigger:`gap-1 px-1 py-1`,indicator:`h-1.75`,arrow:`size-2.25`,link:`gap-1 px-1 py-1`,subItemContent:`gap-1 px-1 py-1`,subLink:`gap-1 px-1 py-1`,linkIcon:`size-2 -ms-1`,subLinkDescription:`mt-1.25`},sm:{viewport:`mt-2 group-data-[orientation=vertical]:ms-4`,list:`gap-1.25 text-xs`,subList:`gap-1.75 p-1.75 text-xs`,trigger:`gap-1.5 px-1.5 py-1`,indicator:`h-2`,arrow:`size-2.5`,link:`gap-1.5 px-1.5 py-1`,subItemContent:`gap-1.5 px-1.5 py-1`,subLink:`gap-1.5 px-1.5 py-1`,linkIcon:`size-2.5 -ms-1.5`,subLinkDescription:`mt-1.25`},md:{viewport:`mt-[calc(0.625rem-1px)] group-data-[orientation=vertical]:ms-5`,list:`gap-1.5 text-sm`,subList:`gap-2 p-2 text-sm`,trigger:`gap-2 px-2 py-1.5`,indicator:`h-2.5`,arrow:`size-3`,link:`gap-2 px-2 py-1.5`,subItemContent:`gap-2 px-2 py-1.5`,subLink:`gap-2 px-2 py-1.5`,linkIcon:`size-3 -ms-2`,subLinkDescription:`mt-1.5`},lg:{viewport:`mt-3 group-data-[orientation=vertical]:ms-6`,list:`gap-1.75 text-base`,subList:`gap-2.5 p-2.5 text-base`,trigger:`gap-2.5 px-2.5 py-1.5`,indicator:`h-3`,arrow:`size-3.5`,link:`gap-2.5 px-2.5 py-1.5`,subItemContent:`gap-2.5 px-2.5 py-1.5`,subLink:`gap-2.5 px-2.5 py-1.5`,linkIcon:`size-3.5 -ms-2.5`,subLinkDescription:`mt-1.75`},xl:{viewport:`mt-3.5 group-data-[orientation=vertical]:ms-7`,list:`gap-2 text-lg`,subList:`gap-3 p-3 text-lg`,trigger:`gap-3 px-3 py-2`,indicator:`h-3.5`,arrow:`size-4`,link:`gap-3 px-3 py-2`,subItemContent:`gap-3 px-3 py-2`,subLink:`gap-3 px-3 py-2`,linkIcon:`size-4 -ms-3`,subLinkDescription:`mt-2`},"2xl":{viewport:`mt-4 group-data-[orientation=vertical]:ms-8`,list:`gap-2.5 text-xl`,subList:`gap-3.5 p-3.5 text-xl`,trigger:`gap-3.5 px-3.5 py-2.5`,indicator:`h-4`,arrow:`size-4.5`,link:`gap-3.5 px-3.5 py-2.5`,subItemContent:`gap-3.5 px-3.5 py-2.5`,subLink:`gap-3.5 px-3.5 py-2.5`,linkIcon:`size-4.5 -ms-3.5`,subLinkDescription:`mt-2.5`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`flex`,item:[`group/item relative flex items-center cursor-pointer select-none outline-none`,`data-[active=true]:bg-primary-50 data-[active=true]:text-primary data-[active=true]:z-2`,`data-[active=false]:hover:bg-accent data-[active=false]:focus:bg-accent`,`dark:data-[active=true]:bg-accent dark:data-[active=true]:text-foreground`],itemText:`grow truncate`,close:[`outline-none rounded-full hover:text-muted group-data-[active=true]/item:hover:bg-primary/50`,`group-data-[active=false]/item:hover:bg-accent-foreground/20`,`dark:hover:text-foreground dark:group-data-[active=true]/item:hover:bg-accent-foreground/20`],pin:`outline-none`,chromeBgLeft:[`absolute end-full bottom-0 fill-transparent`,`group-hover/item:fill-accent group-data-[active=true]/item:fill-primary-50 dark:group-data-[active=true]/item:fill-accent group-data-[active=true]/item:z-2`],chromeBgRight:[`absolute start-full bottom-0 fill-transparent`,`group-hover/item:fill-accent group-data-[active=true]/item:fill-primary-50 dark:group-data-[active=true]/item:fill-accent group-data-[active=true]/item:z-2`],sliderIndicator:`absolute bottom-0 start-0 w-full h-0.5 group-data-[active=true]/item:bg-primary`},variants:{size:{xs:{root:`text-2xs`,item:`gap-2 px-1 py-1`,itemText:`max-w-50`},sm:{root:`text-xs`,item:`gap-2.5 px-1.5 py-1`,itemText:`max-w-55`},md:{root:`text-sm`,item:`gap-3 px-2 py-1.5`,itemText:`max-w-60`,chromeBgLeft:`w-2 h-2`,chromeBgRight:`w-2 h-2`},lg:{root:`text-base`,item:`gap-3.5 px-2.5 py-1.5`,itemText:`max-w-65`},xl:{root:`text-lg`,item:`gap-4 px-3 py-2`,itemText:`max-w-70`},"2xl":{root:`text-xl`,item:`gap-4.5 px-3.5 py-2.5`,itemText:`max-w-75`}},variant:{chrome:{root:`items-end`,item:`rounded-t-md`},card:{root:`items-center gap-2`,item:`rounded-md shadow-sm border border-border`},slider:{root:`items-end`,item:`rounded-t-md`}}},defaultVariants:{size:`md`,variant:`chrome`}});var DN=fl({base:[`inline-flex items-center justify-center flex-shrink-0 font-medium transition-all-150 rtl:[&>svg]:rotate-180`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`],variants:{size:{xs:`h-6 px-1 gap-0.75`,sm:`h-7 px-1.5 gap-1`,md:`h-8 px-1.875 gap-1.5`,lg:`h-9 px-2 gap-2`,xl:`h-10 px-2.25 gap-2.5`,"2xl":`h-12 px-2.875 gap-3`},variant:{pure:`data-[soybean-pagination-action]:border data-[soybean-pagination-action]:border-border data-[soybean-pagination-action]:bg-background data-[soybean-pagination-action]:text-accent-foreground data-[soybean-pagination-action]:hover:bg-accent/60 data-[soybean-pagination-action]:active:bg-accent`,solid:`data-[soybean-pagination-action]:border-transparent data-[soybean-pagination-action]:bg-primary data-[soybean-pagination-action]:text-primary-foreground data-[soybean-pagination-action]:hover:bg-primary/80 data-[soybean-pagination-action]:hover:text-primary-foreground data-[soybean-pagination-action]:active:bg-primary-600`,outline:`data-[soybean-pagination-action]:border data-[soybean-pagination-action]:border-primary data-[soybean-pagination-action]:bg-background data-[soybean-pagination-action]:text-primary data-[soybean-pagination-action]:hover:bg-transparent`,soft:`data-[soybean-pagination-action]:bg-primary/10 data-[soybean-pagination-action]:hover:bg-primary/10 data-[soybean-pagination-action]:active:bg-primary/20`},shape:{rounded:`rounded-full`,square:`rounded-md`}},defaultVariants:{size:`md`}});Y({extendBase:e=>{let{size:t,shape:n,actionAsSelected:r}=e,i=r?e.variant:void 0;return{first:DN({size:t,variant:i,shape:n}),prev:DN({size:t,variant:i,shape:n}),next:DN({size:t,variant:i,shape:n}),last:DN({size:t,variant:i,shape:n})}},slots:{root:``,list:`flex items-center`,ellipsis:`flex justify-center items-center`,listItem:[`inline-flex items-center justify-center flex-shrink-0 font-medium transition-all-150`,`hover:bg-accent hover:text-accent-foreground`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`disabled:cursor-not-allowed disabled:opacity-50`],first:``,prev:``,next:``,last:``},variants:{size:{xs:{list:`gap-0.75 text-2xs`,ellipsis:`size-6`,listItem:`size-6`},sm:{list:`gap-1 text-xs`,ellipsis:`size-7`,listItem:`size-7`},md:{list:`gap-1.25 text-sm`,ellipsis:`size-8`,listItem:`size-8`},lg:{list:`gap-1.5 text-base`,ellipsis:`size-9`,listItem:`size-9`},xl:{list:`gap-1.75 text-lg`,ellipsis:`size-10`,listItem:`size-10`},"2xl":{list:`gap-2 text-xl`,ellipsis:`size-12`,listItem:`size-12`}},variant:{pure:{listItem:`data-[selected]:border data-[selected]:border-border data-[selected]:bg-background data-[selected]:text-accent-foreground data-[selected]:hover:bg-accent/60 data-[selected]:active:bg-accent`},solid:{listItem:`data-[selected]:border-transparent data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary/80 data-[selected]:hover:text-primary-foreground data-[selected]:active:bg-primary-600`},outline:{listItem:`data-[selected]:border data-[selected]:border-primary data-[selected]:bg-background data-[selected]:text-primary data-[selected]:hover:bg-transparent`},soft:{listItem:`data-[selected]:bg-primary/10 data-[selected]:hover:bg-primary/10 data-[selected]:active:bg-primary/20`}},shape:{rounded:{listItem:`rounded-full`},square:{listItem:`rounded-md`}},actionAsSelected:{true:{},false:{}}},defaultVariants:{size:`md`,variant:`pure`,shape:`square`,actionAsSelected:!1}}),Y({extend:[TN],extendBase:e=>({visible:Hy({size:e.size})})}),Y({extendBase:e=>({close:Hy({size:e.size}),cancel:Vy({size:e.size,variant:`pure`}),confirm:Vy({size:e.size})}),slots:{positioner:`w-max`,popup:[`flex flex-col w-auto rounded-md border bg-popover text-popover-foreground shadow-md outline-none z-50 will-change-transform`,`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],arrow:`w-1em h-0.5em fill-popover stroke-border`,header:`flex flex-col lt-sm:text-center`,icon:`shrink-0`,title:`flex items-center font-semibold leading-none tracking-tight m-0`,description:`text-muted-foreground m-0`,content:``,footer:`flex justify-end lt-sm:flex-col-reverse`,cancel:``,confirm:``,close:`absolute`},variants:{size:{xs:{popup:`gap-y-2 p-2 text-2xs`,arrow:`text-3xs`,close:`top-1 end-1`,header:`gap-y-1.5`,icon:`text-3xs`,title:`gap-x-1.5`,footer:`gap-1.5`},sm:{popup:`gap-y-2.5 p-2.5 text-xs`,arrow:`text-2xs`,close:`top-1.25 end-1.25`,header:`gap-y-1.75`,icon:`text-2xs`,title:`gap-x-1.75`,footer:`gap-1.75`},md:{popup:`gap-y-3 p-3 text-sm`,arrow:`text-xs`,close:`top-1.5 end-1.5`,header:`gap-y-2`,icon:`text-sm`,title:`gap-x-2`,footer:`gap-2`},lg:{popup:`gap-y-3.5 p-3.5 text-base`,arrow:`text-sm`,close:`top-1.75 end-1.75`,header:`gap-y-2.5`,icon:`text-base`,title:`gap-x-2.5`,footer:`gap-2.5`},xl:{popup:`gap-y-4 p-4 text-lg`,arrow:`text-base`,close:`top-2 end-2`,header:`gap-y-3`,icon:`text-lg`,title:`gap-x-3`,footer:`gap-3`},"2xl":{popup:`gap-y-4.5 p-4.5 text-xl`,arrow:`text-lg`,close:`top-2.5 end-2.5`,header:`gap-y-3.5`,icon:`text-xl`,title:`gap-x-3.5`,footer:`gap-3.5`}},type:{error:{icon:`text-destructive`},success:{icon:`text-success`},warning:{icon:`text-warning`},info:{icon:`text-info`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`flex`,item:`flex items-center`,control:[`peer relative shrink-0 rounded-full border border-solid shadow transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50`],indicator:`absolute top-1/2 start-1/2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 size-1/2 rounded-full`,label:``},variants:{color:{primary:{control:`border-primary focus-visible:ring-primary/30`,indicator:`bg-primary`},destructive:{control:`border-destructive focus-visible:ring-destructive/30`,indicator:`bg-destructive`},success:{control:`border-success focus-visible:ring-success/30`,indicator:`bg-success`},warning:{control:`border-warning focus-visible:ring-warning/30`,indicator:`bg-warning`},info:{control:`border-info focus-visible:ring-info/30`,indicator:`bg-info`},carbon:{control:`border-carbon focus-visible:ring-carbon/30`,indicator:`bg-carbon`},secondary:{control:`border-secondary-foreground focus-visible:ring-secondary-foreground/20`,indicator:`bg-secondary-foreground/60`},accent:{control:`border-accent-foreground focus-visible:ring-accent-foreground/20`,indicator:`bg-accent-foreground/60`}},size:{xs:{root:`gap-x-2 gap-y-1.5`,item:`gap-1.5`,control:`size-3`},sm:{root:`gap-x-2.5 gap-y-1.75`,item:`gap-1.75`,control:`size-3.5`},md:{root:`gap-x-3 gap-y-2`,item:`gap-2`,control:`size-4`},lg:{root:`gap-x-3.5 gap-y-2.5`,item:`gap-2.5`,control:`size-4.5`},xl:{root:`gap-x-4 gap-y-3`,item:`gap-3`,control:`size-5`},"2xl":{root:`gap-x-4.5 gap-y-3.5`,item:`gap-3.5`,control:`size-6`}},orientation:{horizontal:{root:`items-center`},vertical:{root:`flex-col`}},variant:{dot:{indicator:``},outline:{control:``}}},compoundVariants:[{color:`primary`,variant:`outline`,class:{control:`data-[state=checked]:bg-primary`,indicator:`bg-background`}},{color:`destructive`,variant:`outline`,class:{control:`data-[state=checked]:bg-destructive`,indicator:`bg-background`}},{color:`success`,variant:`outline`,class:{control:`data-[state=checked]:bg-success`,indicator:`bg-background`}},{color:`warning`,variant:`outline`,class:{control:`data-[state=checked]:bg-warning`,indicator:`bg-background`}},{color:`info`,variant:`outline`,class:{control:`data-[state=checked]:bg-info`,indicator:`bg-background`}},{color:`carbon`,variant:`outline`,class:{control:`data-[state=checked]:bg-carbon`,indicator:`bg-background`}},{color:`secondary`,variant:`outline`,class:{control:`data-[state=checked]:bg-secondary-foreground`,indicator:`bg-background`}},{color:`accent`,variant:`outline`,class:{control:`data-[state=checked]:bg-accent-foreground`,indicator:`bg-background`}}],defaultVariants:{variant:`dot`,color:`primary`,size:`md`,orientation:`horizontal`}}),Y({slots:{root:`flex`,item:`relative inline-flex border border-solid border-border rounded-md`,content:`flex items-center grow`,textContent:`flex flex-col`,icon:`shrink-0`,label:`font-medium`,description:`text-muted-foreground`,control:[`peer shrink-0 inline-flex items-start justify-start rounded-full border border-solid shadow`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50`,`order-1 after:absolute after:inset-0 after:content-empty`],indicator:`relative top-1/2 start-1/2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 inline-flex size-1/2 rounded-full`},variants:{color:{primary:{item:`data-[state=checked]:border-primary`,control:`border-primary focus-visible:ring-primary/30`,indicator:`bg-primary`},destructive:{item:`data-[state=checked]:border-destructive`,control:`border-destructive focus-visible:ring-destructive/30`,indicator:`bg-destructive`},success:{item:`data-[state=checked]:border-success`,control:`border-success focus-visible:ring-success/30`,indicator:`bg-success`},warning:{item:`data-[state=checked]:border-warning`,control:`border-warning focus-visible:ring-warning/30`,indicator:`bg-warning`},info:{item:`data-[state=checked]:border-info`,control:`border-info focus-visible:ring-info/30`,indicator:`bg-info`},carbon:{item:`data-[state=checked]:border-carbon`,control:`border-carbon focus-visible:ring-carbon/30`,indicator:`bg-carbon`},secondary:{item:`data-[state=checked]:border-secondary-foreground`,control:`border-secondary-foreground focus-visible:ring-secondary-foreground/20`,indicator:`bg-secondary-foreground/60`},accent:{item:`data-[state=checked]:border-accent-foreground`,control:`border-accent-foreground focus-visible:ring-accent-foreground/20`,indicator:`bg-accent-foreground/60`}},size:{xs:{root:`gap-x-2 gap-y-1.5`,item:`gap-2 text-2xs p-2`,content:`gap-2`,textContent:`gap-0.5`,icon:`text-3`,description:`text-3xs`,control:`size-3`},sm:{root:`gap-x-2.5 gap-y-1.75`,item:`gap-2.5 text-xs p-2.5`,content:`gap-2.5`,textContent:`gap-0.75`,icon:`text-4`,description:`text-2xs`,control:`size-3.5`},md:{root:`gap-x-3 gap-y-2`,item:`gap-3 text-sm p-3`,content:`gap-3`,textContent:`gap-1`,icon:`text-5`,description:`text-xs`,control:`size-4`},lg:{root:`gap-x-3.5 gap-y-2.5`,item:`gap-4 text-base p-4`,content:`gap-4`,textContent:`gap-1.5`,icon:`text-6`,description:`text-sm`,control:`size-4.5`},xl:{root:`gap-x-4 gap-y-3`,item:`gap-5 text-lg p-5`,content:`gap-5`,textContent:`gap-2`,icon:`text-7`,description:`text-base`,control:`size-5`},"2xl":{root:`gap-x-4.5 gap-y-3.5`,item:`gap-6 text-xl p-6`,content:`gap-6`,textContent:`gap-2.5`,icon:`text-8`,description:`text-lg`,control:`size-6`}},variant:{dot:{indicator:``},outline:{control:``}}},compoundVariants:[{color:`primary`,variant:`outline`,class:{control:`data-[state=checked]:bg-primary`,indicator:`bg-background`}},{color:`destructive`,variant:`outline`,class:{control:`data-[state=checked]:bg-destructive`,indicator:`bg-background`}},{color:`success`,variant:`outline`,class:{control:`data-[state=checked]:bg-success`,indicator:`bg-background`}},{color:`warning`,variant:`outline`,class:{control:`data-[state=checked]:bg-warning`,indicator:`bg-background`}},{color:`info`,variant:`outline`,class:{control:`data-[state=checked]:bg-info`,indicator:`bg-background`}},{color:`carbon`,variant:`outline`,class:{control:`data-[state=checked]:bg-carbon`,indicator:`bg-background`}},{color:`secondary`,variant:`outline`,class:{control:`data-[state=checked]:bg-secondary-foreground`,indicator:`bg-background`}},{color:`accent`,variant:`outline`,class:{control:`data-[state=checked]:bg-accent-foreground`,indicator:`bg-background`}}],defaultVariants:{variant:`dot`,color:`primary`,size:`md`}}),Y({slots:{root:`relative overflow-hidden`,viewport:`size-full rounded-[inherit] outline-none focus-visible:outline-1 focus-visible:ring-3 focus-visible:ring-ring/50`,scrollbar:[`absolute flex touch-none select-none p-px transition-opacity duration-200 ease-out`,`data-[state=hidden]:pointer-events-none data-[state=hidden]:opacity-0`,`data-[orientation=vertical]:inset-y-0 data-[orientation=vertical]:end-0 data-[orientation=vertical]:border-s data-[orientation=vertical]:border-s-transparent`,`rtl:data-[orientation=vertical]:end-auto rtl:data-[orientation=vertical]:start-0`,`data-[orientation=horizontal]:inset-x-0 data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:border-t data-[orientation=horizontal]:border-t-transparent`],thumb:`relative flex-1 rounded-full bg-border`,corner:`absolute bottom-0 end-0 bg-border/50 rtl:end-auto rtl:start-0`},variants:{size:{xs:{scrollbar:`data-[orientation=vertical]:w-1.75 data-[orientation=horizontal]:h-1.75`},sm:{scrollbar:`data-[orientation=vertical]:w-2 data-[orientation=horizontal]:h-2`},md:{scrollbar:`data-[orientation=vertical]:w-2.5 data-[orientation=horizontal]:h-2.5`},lg:{scrollbar:`data-[orientation=vertical]:w-3 data-[orientation=horizontal]:h-3`},xl:{scrollbar:`data-[orientation=vertical]:w-3.5 data-[orientation=horizontal]:h-3.5`},"2xl":{scrollbar:`data-[orientation=vertical]:w-4 data-[orientation=horizontal]:h-4`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`relative shrink-0 border-border`,label:`absolute top-1/2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 flex justify-center items-center text-muted-foreground bg-background`},variants:{size:{xs:{label:`text-2xs`},sm:{label:`text-xs`},md:{label:`text-sm`},lg:{label:`text-base`},xl:{label:`text-lg`},"2xl":{label:`text-2xl`}},orientation:{vertical:{root:`h-full border-s`,label:`w-1px`},horizontal:{root:`w-full border-t`,label:`h-1px`}},align:{start:{label:`start-1/16 lt-sm:start-1/8 lt-md:start-1/10 lt-lg:start-1/12`},center:{label:`start-1/2`},end:{label:`start-15/16 lt-sm:start-7/8 lt-md:start-9/10 lt-lg:start-11/12`}},border:{solid:{root:`border-solid`},dashed:{root:`border-dashed`},dotted:{root:`border-dotted`}}},compoundVariants:[{size:`xs`,orientation:`vertical`,class:{label:`px-0.75 py-1.5`}},{size:`xs`,orientation:`horizontal`,class:{label:`px-1.5 py-0.75`}},{size:`sm`,orientation:`vertical`,class:{label:`px-0.875 py-1.75`}},{size:`sm`,orientation:`horizontal`,class:{label:`px-1.75 py-0.875`}},{size:`md`,orientation:`vertical`,class:{label:`px-1 py-2`}},{size:`md`,orientation:`horizontal`,class:{label:`px-2 py-1`}},{size:`lg`,orientation:`vertical`,class:{label:`px-1.125 py-2.25`}},{size:`lg`,orientation:`horizontal`,class:{label:`px-2.25 py-1.125`}},{size:`xl`,orientation:`vertical`,class:{label:`px-1.25 py-2.5`}},{size:`xl`,orientation:`horizontal`,class:{label:`px-2.5 py-1.25`}},{size:`2xl`,orientation:`vertical`,class:{label:`px-1.5 py-3`}},{size:`2xl`,orientation:`horizontal`,class:{label:`px-3 py-1.5`}}],defaultVariants:{size:`md`,orientation:`horizontal`,align:`center`,border:`solid`}}),fl({base:`block shrink-0 bg-muted`,variants:{size:{xs:`h-3 w-16`,sm:`h-4 w-24`,md:`h-5 w-32`,lg:`h-6 w-40`,xl:`h-8 w-48`,"2xl":`h-10 w-56`},shape:{auto:`rounded-md`,rounded:`rounded-full`},animated:{true:`animate-pulse`,false:``}},defaultVariants:{size:`md`,shape:`auto`,animated:!0}}),fl({variants:{color:{current:`text-current`,primary:`text-primary`,destructive:`text-destructive`,success:`text-success`,warning:`text-warning`,info:`text-info`,carbon:`text-carbon`,secondary:`text-secondary-foreground/20`,accent:`text-accent-foreground/20`},size:{xs:`size-3`,sm:`size-4`,md:`size-5`,lg:`size-6`,xl:`size-8`,"2xl":`size-10`}},defaultVariants:{color:`current`,size:`md`}}),Y({slots:{root:`flex h-full w-full data-[orientation=vertical]:flex-col`,panel:`min-h-0 min-w-0`,resizeHandle:[`bg-border focus-visible:ring-ring relative flex w-px cursor-col-resize items-center justify-center transition-colors duration-200 after:absolute after:inset-y-0`,`after:start-1/2 after:-translate-x-1/2 outline-none focus-visible:ring-1 focus-visible:ring-offset-1`,`data-[state=hover]:bg-accent data-[state=drag]:bg-accent`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-60`,`data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full`,`data-[orientation=vertical]:cursor-row-resize`,`data-[orientation=vertical]:after:start-0 data-[orientation=vertical]:after:w-full`,`data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0`]},variants:{size:{xs:{resizeHandle:`after:w-0.5 data-[orientation=vertical]:after:h-0.5`},sm:{resizeHandle:`after:w-0.75 data-[orientation=vertical]:after:h-0.75`},md:{resizeHandle:`after:w-1 data-[orientation=vertical]:after:h-1`},lg:{resizeHandle:`after:w-1.25 data-[orientation=vertical]:after:h-1.25`},xl:{resizeHandle:`after:w-1.5 data-[orientation=vertical]:after:h-1.5`},"2xl":{resizeHandle:`after:w-2 data-[orientation=vertical]:after:h-2`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`flex w-full`,item:`group flex min-w-0 flex-1`,trigger:[`inline-flex rounded-md transition-colors`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background focus-visible:ring-primary/30`,`data-[orientation=horizontal]:mt-0.25 data-[orientation=vertical]:ms-0.25 group-data-[disabled]:pointer-events-none`],indicator:[`inline-flex shrink-0 items-center justify-center rounded-full border bg-background font-medium transition-colors`,`group-data-[disabled]:opacity-50`],separator:`shrink-0 bg-muted transition-colors group-data-[disabled]:opacity-50`,title:`font-semibold whitespace-nowrap transition-colors`,description:`text-muted-foreground transition-colors`,itemContent:`flex min-w-0 flex-col`,indicatorIcon:``},variants:{size:{xs:{root:`text-2xs`,trigger:`gap-1 data-[orientation=vertical]:gap-2`,indicator:`size-6 text-2xs`,itemContent:`gap-1`,title:`text-2xs`,description:`text-4xs`,separator:`data-[orientation=horizontal]:mt-3 data-[orientation=vertical]:ms-3`},sm:{root:`text-xs`,trigger:`gap-1.5 data-[orientation=vertical]:gap-3`,indicator:`size-7 text-xs`,itemContent:`gap-1.5`,title:`text-xs`,description:`text-3xs`,separator:`data-[orientation=horizontal]:mt-3.5 data-[orientation=vertical]:ms-3.5`},md:{root:`text-sm`,trigger:`gap-2 data-[orientation=vertical]:gap-4`,indicator:`size-8`,itemContent:`gap-2`,title:`text-sm`,description:`text-xs`,separator:`data-[orientation=horizontal]:mt-4 data-[orientation=vertical]:ms-4`},lg:{root:`text-base`,trigger:`gap-2.5 data-[orientation=vertical]:gap-5`,indicator:`size-9 text-base`,itemContent:`gap-2.5`,title:`text-base`,description:`text-sm`,separator:`data-[orientation=horizontal]:mt-4.5 data-[orientation=vertical]:ms-4.5`},xl:{root:`text-lg`,trigger:`gap-3 data-[orientation=vertical]:gap-6`,indicator:`size-10 text-lg`,itemContent:`gap-3`,title:`text-lg`,description:`text-base`,separator:`data-[orientation=horizontal]:mt-5 data-[orientation=vertical]:ms-5`},"2xl":{root:`text-xl`,trigger:`gap-3.5 data-[orientation=vertical]:gap-7`,indicator:`size-12 text-xl`,itemContent:`gap-3.5`,title:`text-xl`,description:`text-lg`,separator:`data-[orientation=horizontal]:mt-6 data-[orientation=vertical]:ms-6`}},orientation:{horizontal:{root:`items-start`,trigger:`flex-col items-center text-center`,itemContent:`items-center text-center`,separator:`h-0.5 flex-1`},vertical:{root:`flex-col`,item:`flex-none flex-col items-start`,trigger:`w-full flex-row items-start text-start`,itemContent:`flex-1 items-start text-start`,separator:`w-0.5 min-h-7`}},color:{primary:{indicator:[`group-data-[state=active]:border-primary group-data-[state=active]:bg-primary group-data-[state=active]:text-primary-foreground`,`group-data-[state=completed]:border-primary/25 group-data-[state=completed]:bg-primary/15 group-data-[state=completed]:text-primary`],separator:`group-data-[state=completed]:bg-primary`,title:`group-data-[state=active]:text-primary group-data-[state=completed]:text-primary`,description:`group-data-[state=active]:text-primary/80 group-data-[state=completed]:text-primary/80`},destructive:{indicator:[`group-data-[state=active]:border-destructive group-data-[state=active]:bg-destructive group-data-[state=active]:text-destructive-foreground`,`group-data-[state=completed]:border-destructive/25 group-data-[state=completed]:bg-destructive/15 group-data-[state=completed]:text-destructive`],separator:`group-data-[state=completed]:bg-destructive`,title:`group-data-[state=active]:text-destructive group-data-[state=completed]:text-destructive`,description:`group-data-[state=active]:text-destructive/80 group-data-[state=completed]:text-destructive/80`},success:{indicator:[`group-data-[state=active]:border-success group-data-[state=active]:bg-success group-data-[state=active]:text-success-foreground`,`group-data-[state=completed]:border-success/25 group-data-[state=completed]:bg-success/15 group-data-[state=completed]:text-success`],separator:`group-data-[state=completed]:bg-success`,title:`group-data-[state=active]:text-success group-data-[state=completed]:text-success`,description:`group-data-[state=active]:text-success/80 group-data-[state=completed]:text-success/80`},warning:{indicator:[`group-data-[state=active]:border-warning group-data-[state=active]:bg-warning group-data-[state=active]:text-warning-foreground`,`group-data-[state=completed]:border-warning/25 group-data-[state=completed]:bg-warning/15 group-data-[state=completed]:text-warning`],separator:`group-data-[state=completed]:bg-warning`,title:`group-data-[state=active]:text-warning group-data-[state=completed]:text-warning`,description:`group-data-[state=active]:text-warning/80 group-data-[state=completed]:text-warning/80`},info:{indicator:[`group-data-[state=active]:border-info group-data-[state=active]:bg-info group-data-[state=active]:text-info-foreground`,`group-data-[state=completed]:border-info/25 group-data-[state=completed]:bg-info/15 group-data-[state=completed]:text-info`],separator:`group-data-[state=completed]:bg-info`,title:`group-data-[state=active]:text-info group-data-[state=completed]:text-info`,description:`group-data-[state=active]:text-info/80 group-data-[state=completed]:text-info/80`},carbon:{indicator:[`group-data-[state=active]:border-carbon group-data-[state=active]:bg-carbon group-data-[state=active]:text-carbon-foreground`,`group-data-[state=completed]:border-carbon/25 group-data-[state=completed]:bg-carbon/15 group-data-[state=completed]:text-carbon`],separator:`group-data-[state=completed]:bg-carbon`,title:`group-data-[state=active]:text-carbon group-data-[state=completed]:text-carbon`,description:`group-data-[state=active]:text-carbon/80 group-data-[state=completed]:text-carbon/80`},secondary:{indicator:[`group-data-[state=active]:border-secondary group-data-[state=active]:bg-secondary group-data-[state=active]:text-secondary-foreground`,`group-data-[state=completed]:border-secondary/25 group-data-[state=completed]:bg-secondary/15 group-data-[state=completed]:text-secondary`],separator:`group-data-[state=completed]:bg-secondary`,title:`group-data-[state=active]:text-secondary group-data-[state=completed]:text-secondary`,description:`group-data-[state=active]:text-secondary/80 group-data-[state=completed]:text-secondary/80`},accent:{indicator:[`group-data-[state=active]:border-accent group-data-[state=active]:bg-accent group-data-[state=active]:text-accent-foreground`,`group-data-[state=completed]:border-accent/25 group-data-[state=completed]:bg-accent/15 group-data-[state=completed]:text-accent`],separator:`group-data-[state=completed]:bg-accent`,title:`group-data-[state=active]:text-accent group-data-[state=completed]:text-accent`,description:`group-data-[state=active]:text-accent/80 group-data-[state=completed]:text-accent/80`}}},defaultVariants:{size:`md`,orientation:`horizontal`,color:`primary`}}),Y({slots:{root:`inline-flex`,control:[`peer shrink-0 inline-flex items-center rounded-full border-0 shadow-sm transition-colors-200`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:bg-input`],thumb:[`flex justify-center items-center rounded-full shadow-lg transition-transform-200 bg-background pointer-events-none`,`data-[state=unchecked]:translate-x-0.5 rtl:data-[state=unchecked]:-translate-x-0.5`]},variants:{color:{primary:{control:`data-[state=checked]:bg-primary focus-visible:ring-primary/30`},destructive:{control:`data-[state=checked]:bg-destructive focus-visible:ring-destructive/30`},success:{control:`data-[state=checked]:bg-success focus-visible:ring-success/30`},warning:{control:`data-[state=checked]:bg-warning focus-visible:ring-warning/30`},info:{control:`data-[state=checked]:bg-info focus-visible:ring-info/30`},carbon:{control:`data-[state=checked]:bg-carbon focus-visible:ring-carbon/30`},secondary:{control:`data-[state=checked]:bg-secondary-foreground/20 focus-visible:ring-secondary-foreground/20`},accent:{control:`data-[state=checked]:bg-accent-foreground/20 focus-visible:ring-accent-foreground/20`}},size:{xs:{control:`h-4 w-7`,thumb:`size-3 data-[state=checked]:translate-x-3.5 rtl:data-[state=checked]:-translate-x-3.5`},sm:{control:`h-4.5 w-8`,thumb:`size-3.5 data-[state=checked]:translate-x-4 rtl:data-[state=checked]:-translate-x-4`},md:{control:`h-5 w-9`,thumb:`size-4 data-[state=checked]:translate-x-4.5 rtl:data-[state=checked]:-translate-x-4.5`},lg:{control:`h-5.5 w-10`,thumb:`size-4.5 data-[state=checked]:translate-x-5 rtl:data-[state=checked]:-translate-x-5`},xl:{control:`h-6 w-11`,thumb:`size-5 data-[state=checked]:translate-x-5.5 rtl:data-[state=checked]:-translate-x-5.5`},"2xl":{control:`h-7 w-13`,thumb:`size-6 data-[state=checked]:translate-x-6.5 rtl:data-[state=checked]:-translate-x-6.5`}},shape:{rounded:{control:`rounded-full`,thumb:`rounded-full`},square:{control:`rounded-md`,thumb:`rounded-sm`}}},defaultVariants:{color:`primary`,size:`md`,shape:`rounded`}}),Y({slots:{root:`relative overflow-hidden supports-[overflow:clip]:overflow-clip [--rounded:calc(var(--radius)-2px)] rounded-[--rounded]`,scroll:`h-full overflow-auto`,content:`min-w-full w-max border-spacing-0`,header:`sticky top-0 start-0 z-10 [&>tr:last-child]:border-b-0`,body:[`[&>tr:last-child]:border-b-0`,`[&>tr:first-child>td:first-child]:rounded-tl-[--rounded] [&>tr:first-child>td:last-child]:rounded-tr-[--rounded]`,`[&>tr:last-child>td:first-child]:rounded-bl-[--rounded] [&>tr:last-child>td:last-child]:rounded-br-[--rounded]`],footer:`font-medium [&>tr:last-child]:border-b-0 [&>tr]:bg-transparent [&>tr]:hover:bg-transparent [&_td]:bg-transparent`,row:`bg-background border-b hover:bg-primary-foreground transition-colors`,head:`box-border bg-accent text-foreground relative font-medium`,cell:`box-border data-[fixed]:bg-background`,fixed:[`relative`,`data-[fixed-last-start]:after:pointer-events-none data-[fixed-last-start]:after:absolute data-[fixed-last-start]:after:bottom-0 data-[fixed-last-start]:after:end-0 data-[fixed-last-start]:after:top-0 data-[fixed-last-start]:after:w-4 data-[fixed-last-start]:after:bg-gradient-to-l data-[fixed-last-start]:after:from-foreground/8 data-[fixed-last-start]:after:to-transparent data-[fixed-last-start]:after:content-empty`,`data-[fixed-first-end]:before:pointer-events-none data-[fixed-first-end]:before:absolute data-[fixed-first-end]:before:bottom-0 data-[fixed-first-end]:before:start-0 data-[fixed-first-end]:before:top-0 data-[fixed-first-end]:before:w-4 data-[fixed-first-end]:before:bg-gradient-to-r data-[fixed-first-end]:before:from-foreground/8 data-[fixed-first-end]:before:to-transparent data-[fixed-first-end]:before:content-empty`],resizeHandle:[`absolute end-0 top-1/2 w-3 h-2/3 -translate-y-1/2 rounded bg-transparent`,`cursor-col-resize border-none touch-none select-none`,`after:bg-border hover:after:bg-primary data-[resizing]:after:bg-primary focus-visible:after:bg-primary`,`outline-none focus-visible:ring-ring/40 focus-visible:ring-2`,`after:absolute after:bottom-0 after:end-0 after:top-0 after:w-px after:rounded-full after:content-empty`],treeCell:`flex min-w-0 items-center gap-1`,treeToggle:``,treeTogglePlaceholder:`inline-block size-5 shrink-0`,sortTrigger:`absolute top-1/2 -translate-y-1/2 data-[sorted]:text-primary`,filterTrigger:`absolute top-1/2 -translate-y-1/2 data-[filtered]:text-primary`,filterInput:``,filterPopup:``,filterSearch:``,filterOptions:`flex flex-col overflow-auto`,filterOption:`w-full rounded-md hover:bg-accent`,filterOptionLabel:`min-w-0 flex-1 truncate`,filterFooter:`flex items-center justify-between border-t border-border`,filterCount:`text-muted-foreground`,filterAction:[`text-xs font-medium text-primary rounded-md border-none bg-transparent px-2 py-1`,`transition-colors hover:bg-accent focus-visible:ring-ring outline-none focus-visible:ring-2`],filterEmpty:`text-muted-foreground py-6 text-center text-xs`,selection:`text-foreground`,radioRoot:[`peer relative shrink-0 rounded-full border border-solid shadow cursor-pointer transition-all-150`,`border-primary focus-visible:ring-primary/30`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50`],radioIndicator:`absolute top-1/2 start-1/2 -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 size-1/2 bg-primary rounded-full`},variants:{size:{xs:{root:`text-2xs`,caption:`py-2`,head:`p-1.5`,cell:`p-1.5`,radioRoot:`w-3 h-3`,sortTrigger:`end-1 p-0.75`,filterTrigger:`end-1`,filterPopup:`p-1.5`,filterOptions:`max-h-50 gap-0.75 py-1.5`,filterOption:`p-0.75`,filterFooter:`pt-1`,filterCount:`text-3xs leading-4`},sm:{root:`text-xs`,caption:`py-2.5`,head:`p-1.75`,cell:`p-1.75`,radioRoot:`w-3.5 h-3.5`,sortTrigger:`end-1.25 p-0.875`,filterTrigger:`end-1.25`,filterPopup:`p-1.75`,filterOptions:`max-h-55 gap-0.875 py-2`,filterOption:`p-0.875`,filterFooter:`pt-1.25`,filterCount:`text-2xs leading-5`},md:{root:`text-sm`,caption:`py-3`,head:`p-2`,cell:`p-2`,radioRoot:`w-4 h-4`,sortTrigger:`end-1.5 p-1`,filterTrigger:`end-1.5`,filterPopup:`p-2`,filterOptions:`max-h-60 gap-1 py-2.5`,filterOption:`p-1`,filterFooter:`pt-1.5`,filterCount:`text-xs leading-6`},lg:{root:`text-base`,caption:`py-3.5`,head:`p-2.5`,cell:`p-2.5`,radioRoot:`w-4.5 h-4.5`,sortTrigger:`end-1.75 p-1.25`,filterTrigger:`end-1.75`,filterPopup:`p-2.5`,filterOptions:`max-h-65 gap-1.25 py-3`,filterOption:`p-1.25`,filterFooter:`pt-1.75`,filterCount:`text-sm leading-7`},xl:{root:`text-lg`,caption:`py-4`,head:`p-3`,cell:`p-3`,radioRoot:`w-5 h-5`,sortTrigger:`end-2 p-1.5`,filterTrigger:`end-2`,filterPopup:`p-3`,filterOptions:`max-h-70 gap-1.5 py-3.5`,filterOption:`p-1.5`,filterFooter:`pt-2`,filterCount:`text-base leading-8`},"2xl":{root:`text-xl`,caption:`py-4.5`,head:`p-3.5`,cell:`p-3.5`,radioRoot:`w-6 h-6`,sortTrigger:`end-2.5 p-1.75`,filterTrigger:`end-2.5`,filterPopup:`p-3.5`,filterOptions:`max-h-75 gap-1.75 py-4`,filterOption:`p-1.75`,filterFooter:`pt-2.5`,filterCount:`text-lg leading-9`}},variant:{default:{root:`bg-accent`},simple:{header:[`[&>tr:first-child>th:first-child]:rounded-tl-[--rounded] [&>tr:first-child>th:last-child]:rounded-tr-[--rounded]`,`[&>tr:last-child>th:first-child]:rounded-bl-[--rounded] [&>tr:last-child>th:last-child]:rounded-br-[--rounded]`]}},bordered:{true:{cell:`border-s border-border first:border-s-0`}},rounded:{true:{root:``}},striped:{true:{row:`data-[row]:even:bg-accent`}}},compoundVariants:[{size:`xs`,rounded:!0,class:{root:`[--rounded:0.75rem]`}},{size:`sm`,rounded:!0,class:{root:`[--rounded:1rem]`}},{size:`md`,rounded:!0,class:{root:`[--rounded:1.125rem]`}},{size:`lg`,rounded:!0,class:{root:`[--rounded:1.375rem]`}},{size:`xl`,rounded:!0,class:{root:`[--rounded:1.625rem]`}},{size:`2xl`,rounded:!0,class:{root:`[--rounded:1.75rem]`}},{size:`xs`,variant:`default`,class:{root:`px-0.75 pb-0.75`}},{size:`sm`,variant:`default`,class:{root:`px-0.875 pb-0.875`}},{size:`md`,variant:`default`,class:{root:`px-1 pb-1`}},{size:`lg`,variant:`default`,class:{root:`px-1.25 pb-1.25`}},{size:`xl`,variant:`default`,class:{root:`px-1.5 pb-1.5`}},{size:`2xl`,variant:`default`,class:{root:`px-2 pb-2`}}],defaultVariants:{size:`md`,variant:`default`,bordered:!1,rounded:!0,striped:!1}});var ON=fl({base:`inline-flex items-center border font-semibold`,variants:{color:{primary:`border-primary text-primary`,destructive:`border-destructive text-destructive`,success:`border-success text-success`,warning:`border-warning text-warning`,info:`border-info text-info`,carbon:`border-carbon text-carbon`,secondary:`border-secondary-foreground/50 text-secondary-foreground`,accent:`border-accent-foreground/50 text-accent-foreground`},variant:{solid:``,pure:`bg-background text-foreground border-border`,outline:`bg-background`,soft:`border-0`,ghost:``,raw:`bg-transparent border-0`},size:{xs:`gap-0.5 h-4 px-1 text-4xs`,sm:`gap-0.75 h-4.5 px-1.5 text-3xs`,md:`gap-1 h-5 px-2 text-2xs`,lg:`gap-1.25 h-5.5 px-2.5 text-xs`,xl:`gap-1.5 h-6 px-3 text-sm`,"2xl":`gap-2 h-7 px-4 text-base`},shape:{auto:`rounded-md`,rounded:`rounded-full`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`bg-primary text-primary-foreground`},{color:`destructive`,variant:`solid`,class:`bg-destructive text-destructive-foreground`},{color:`success`,variant:`solid`,class:`bg-success text-success-foreground`},{color:`warning`,variant:`solid`,class:`bg-warning text-warning-foreground`},{color:`info`,variant:`solid`,class:`bg-info text-info-foreground`},{color:`carbon`,variant:`solid`,class:`bg-carbon text-carbon-foreground`},{color:`secondary`,variant:`solid`,class:`bg-secondary text-secondary-foreground`},{color:`accent`,variant:`solid`,class:`bg-accent text-accent-foreground`},{color:`primary`,variant:[`soft`,`ghost`],class:`bg-primary/10`},{color:`destructive`,variant:[`soft`,`ghost`],class:`bg-destructive/10`},{color:`success`,variant:[`soft`,`ghost`],class:`bg-success/10`},{color:`warning`,variant:[`soft`,`ghost`],class:`bg-warning/10`},{color:`info`,variant:[`soft`,`ghost`],class:`bg-info/10`},{color:`carbon`,variant:[`soft`,`ghost`],class:`bg-carbon/10`},{color:`secondary`,variant:[`soft`,`ghost`],class:`bg-secondary-foreground/5`},{color:`accent`,variant:[`soft`,`ghost`],class:`bg-accent-foreground/5`}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`,shape:`auto`}}),kN=L({name:`STag`,__name:`tag`,props:{class:{type:[Boolean,null,String,Object,Array]},color:{},size:{},variant:{},shape:{},content:{},closable:{type:Boolean},open:{type:Boolean,default:void 0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=t,i=G(()=>ON({color:n.color,size:n.size,variant:n.variant,shape:n.shape},n.class));return(t,n)=>(z(),V(F(UA),{open:e.open,class:j(i.value),"onUpdate:open":n[0]||=e=>r(`update:open`,e)},{default:I(({close:n})=>[R(t.$slots,`leading`),R(t.$slots,`default`,{},()=>[Aa(N(e.content),1)]),R(t.$slots,`trailing`),e.closable?R(t.$slots,`close`,{key:0,close:n},()=>[U(Ux,{icon:`lucide:x`,style:{"flex-shrink":`0`,cursor:`pointer`},onClick:n},null,8,[`onClick`])]):ja(`v-if`,!0)]),_:3},8,[`open`,`class`]))}});Y({extendBase:e=>({itemDelete:Hy({size:e.size,shape:`circle`}),clear:Hy({size:e.size})}),slots:{root:[`group relative flex w-full flex-wrap items-center rounded-md border border-input bg-background shadow-sm transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`,`data-[invalid]:focus-within:ring-destructive/30`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],item:[`inline-flex items-center rounded-md bg-accent ring-offset-background transition-[box-shadow,background-color]`,`data-[state=active]:ring-2 data-[state=active]:ring-primary/30 data-[state=active]:ring-offset-2`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],itemText:`rounded bg-transparent`,itemDelete:``,control:[`grow min-w-0 bg-transparent text-foreground outline-none`,`placeholder:text-muted-foreground disabled:cursor-not-allowed`],clear:`absolute opacity-0 transition-opacity group-data-[has-value]:opacity-100`},variants:{size:{xs:{root:`gap-1 px-1.5 py-1 text-2xs`,item:`min-h-4 gap-0.5`,itemText:`px-1.5 py-0.5`,itemDelete:`me-0.5`,input:`min-h-5 px-0.5`,clear:`end-0.5 top-0.5`},sm:{root:`gap-1.5 px-2 py-1 text-xs`,item:`min-h-4.5 gap-0.75`,itemText:`px-1.5 py-0.5`,itemDelete:`me-0.5`,input:`min-h-5 px-0.75`,clear:`end-0.75 top-0.75`},md:{root:`gap-2 px-2 py-1 text-sm`,item:`min-h-5 gap-1`,itemText:`px-2 py-0.5`,itemDelete:`me-1`,input:`min-h-5 px-1`,clear:`end-1 top-1`},lg:{root:`gap-2 px-2.5 py-1.5 text-base`,item:`min-h-6 gap-1`,itemText:`px-2 py-0.5`,itemDelete:`me-1`,input:`min-h-6 px-1.25`,clear:`end-1.25 top-1.25`},xl:{root:`gap-2.5 px-3 py-2 text-lg`,item:`min-h-7 gap-1.5`,itemText:`px-2.5 py-1`,itemDelete:`me-1`,input:`min-h-7 px-1.5`,clear:`end-1.5 top-1.5`},"2xl":{root:`gap-3 px-3.5 py-2.5 text-xl`,item:`min-h-8 gap-1.5`,itemText:`px-3 py-1`,itemDelete:`me-1.5`,input:`min-h-8 px-2`,clear:`end-2 top-2`}}},defaultVariants:{size:`md`}}),Y({extendBase:e=>({clear:Hy({size:e.size,shape:`circle`})}),slots:{root:[`group relative flex flex-col`,`rounded-md border border-solid border-input bg-background transition-all-150`,`outline-none focus-within:ring-3 focus-within:ring-offset-background focus-within:ring-primary/30`],control:[`w-full bg-transparent outline-none`,`placeholder:text-muted-foreground`,`disabled:cursor-not-allowed disabled:opacity-50`],counter:`absolute z-2 leading-none text-muted-foreground`,clear:`absolute hidden opacity-50 group-hover:inline-flex group-focus-within:inline-flex hover:opacity-100`},variants:{size:{xs:{root:`text-2xs`,control:`min-h-6 px-1.5 py-1`,counter:`text-2xs end-1.75 bottom-1.5`,clear:`end-1.5 top-1.5`},sm:{root:`text-xs`,control:`min-h-7 px-1.75 py-1`,counter:`text-xs end-2 bottom-1.75`,clear:`end-1.75 top-1.75`},md:{root:`text-sm`,control:`min-h-8 px-2 py-1`,counter:`text-sm end-2.5 bottom-2`,clear:`end-2 top-2`},lg:{root:`text-base`,control:`min-h-9 px-2.5 py-1`,counter:`text-base end-3 bottom-2.5`,clear:`end-2.5 top-2.5`},xl:{root:`text-lg`,control:`min-h-10 px-3 py-1`,counter:`text-lg end-3.5 bottom-3`,clear:`end-3 top-3`},"2xl":{root:`text-xl`,control:`min-h-12 px-4 py-2`,counter:`text-xl end-4 bottom-3.5`,clear:`end-3.5 top-3.5`}},resize:{true:{control:`resize`},false:{control:`resize-none`},vertical:{control:`resize-y`},horizontal:{control:`resize-x`}}},defaultVariants:{size:`md`,resize:`vertical`}});var AN=[`inline-flex items-center justify-center rounded-sm font-medium transition-colors`,`outline-none hover:bg-accent hover:text-accent-foreground`,`focus-visible:ring-3 focus-visible:ring-primary/30`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,`aria-disabled:pointer-events-none aria-disabled:opacity-50`,`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4`];Y({slots:{root:[`inline-flex items-center rounded-md border border-border bg-background shadow-xs`,`data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-fit data-[orientation=vertical]:flex-col`],button:AN,link:[...AN,`select-none no-underline`],linkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,separator:[`shrink-0 bg-border data-[orientation=vertical]:w-px`,`data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full`],toggleGroup:`inline-flex items-center data-[orientation=vertical]:flex-col`,toggleItem:[...AN,`data-[state=on]:bg-accent data-[state=on]:text-accent-foreground`]},variants:{size:{xs:{root:`gap-0.5 p-0.5 data-[orientation=horizontal]:h-6`,button:`h-5 min-w-5 gap-1 px-1 text-2xs`,link:`h-5 min-w-5 gap-1 px-1 text-2xs`,linkIcon:`size-2 -ms-1`,separator:`data-[orientation=vertical]:mx-0.5 data-[orientation=vertical]:h-3 data-[orientation=horizontal]:my-0.5`,toggleGroup:`gap-0.5`,toggleItem:`h-5 min-w-5 gap-1 px-1 text-2xs`},sm:{root:`gap-0.5 p-0.5 data-[orientation=horizontal]:h-7`,button:`h-6 min-w-6 gap-1 px-1.5 text-xs`,link:`h-6 min-w-6 gap-1 px-1.5 text-xs`,linkIcon:`size-2.5 -ms-1.5`,separator:`data-[orientation=vertical]:mx-0.5 data-[orientation=vertical]:h-4 data-[orientation=horizontal]:my-0.5`,toggleGroup:`gap-0.5`,toggleItem:`h-6 min-w-6 gap-1 px-1.5 text-xs`},md:{root:`gap-1 p-1 data-[orientation=horizontal]:h-9`,button:`h-7 min-w-7 gap-1 px-2 text-sm`,link:`h-7 min-w-7 gap-1 px-2 text-sm`,linkIcon:`size-3 -ms-2`,separator:`data-[orientation=vertical]:mx-1 data-[orientation=vertical]:h-4 data-[orientation=horizontal]:my-1`,toggleGroup:`gap-1`,toggleItem:`h-7 min-w-7 gap-1 px-2 text-sm`},lg:{root:`gap-1 p-1 data-[orientation=horizontal]:h-10`,button:`h-8 min-w-8 gap-2 px-2.5 text-base`,link:`h-8 min-w-8 gap-2 px-2.5 text-base`,linkIcon:`size-3.5 -ms-2.5`,separator:`data-[orientation=vertical]:mx-1 data-[orientation=vertical]:h-5 data-[orientation=horizontal]:my-1`,toggleGroup:`gap-1`,toggleItem:`h-8 min-w-8 gap-2 px-2.5 text-base`},xl:{root:`gap-1.5 p-1.5 data-[orientation=horizontal]:h-12`,button:`h-9 min-w-9 gap-2.5 px-3 text-lg`,link:`h-9 min-w-9 gap-2.5 px-3 text-lg`,linkIcon:`size-4 -ms-3`,separator:`data-[orientation=vertical]:mx-1.5 data-[orientation=vertical]:h-6 data-[orientation=horizontal]:my-1.5`,toggleGroup:`gap-1.5`,toggleItem:`h-9 min-w-9 gap-2.5 px-3 text-lg`},"2xl":{root:`gap-2 p-2 data-[orientation=horizontal]:h-14`,button:`h-10 min-w-10 gap-3 px-3.5 text-xl`,link:`h-10 min-w-10 gap-3 px-3.5 text-xl`,linkIcon:`size-4.5 -ms-3.5`,separator:`data-[orientation=vertical]:mx-2 data-[orientation=vertical]:h-7 data-[orientation=horizontal]:my-2`,toggleGroup:`gap-2`,toggleItem:`h-10 min-w-10 gap-3 px-3.5 text-xl`}}},defaultVariants:{size:`md`}}),fl({base:[`inline-flex items-center justify-center rounded-md whitespace-nowrap font-medium transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-offset-background`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4`],variants:{color:{primary:`focus-visible:ring-primary/30`,destructive:`focus-visible:ring-destructive/30`,success:`focus-visible:ring-success/30`,warning:`focus-visible:ring-warning/30`,info:`focus-visible:ring-info/30`,carbon:`focus-visible:ring-carbon/30`,secondary:`focus-visible:ring-secondary-foreground/20`,accent:`focus-visible:ring-accent-foreground/20`},variant:{outline:`border border-border bg-background text-foreground hover:bg-accent data-[state=on]:bg-accent`,soft:`bg-accent data-[state=off]:hover:bg-accent`,ghost:`bg-transparent data-[state=off]:hover:bg-accent`},size:{xs:`gap-1 h-6 px-1.5 text-2xs`,sm:`gap-2 h-7 px-2 text-xs`,md:`gap-3 h-8 px-4 text-sm`,lg:`gap-4 h-9 px-6 text-base`,xl:`gap-5 h-10 px-8 text-lg`,"2xl":`gap-6 h-12 px-10 text-xl`},shape:{auto:`rounded-md`,rounded:`rounded-full`,square:`h-8 w-8 p-0 gap-0 rounded-md`,circle:`h-8 w-8 p-0 gap-0 rounded-full`}},compoundVariants:[{color:`primary`,variant:`soft`,class:`data-[state=on]:bg-primary/20 data-[state=on]:text-primary`},{color:`destructive`,variant:`soft`,class:`data-[state=on]:bg-destructive/20 data-[state=on]:text-destructive`},{color:`success`,variant:`soft`,class:`data-[state=on]:bg-success/20 data-[state=on]:text-success`},{color:`warning`,variant:`soft`,class:`data-[state=on]:bg-warning/20 data-[state=on]:text-warning`},{color:`info`,variant:`soft`,class:`data-[state=on]:bg-info/20 data-[state=on]:text-info`},{color:`carbon`,variant:`soft`,class:`data-[state=on]:bg-carbon/20 data-[state=on]:text-carbon`},{color:`secondary`,variant:`soft`,class:`data-[state=on]:bg-secondary-foreground/10 data-[state=on]:text-secondary-foreground`},{color:`accent`,variant:`soft`,class:`data-[state=on]:bg-accent-foreground/10 data-[state=on]:text-accent-foreground`},{color:`primary`,variant:`ghost`,class:`data-[state=on]:bg-primary/20 data-[state=on]:text-primary`},{color:`destructive`,variant:`ghost`,class:`data-[state=on]:bg-destructive/20 data-[state=on]:text-destructive`},{color:`success`,variant:`ghost`,class:`data-[state=on]:bg-success/20 data-[state=on]:text-success`},{color:`warning`,variant:`ghost`,class:`data-[state=on]:bg-warning/20 data-[state=on]:text-warning`},{color:`info`,variant:`ghost`,class:`data-[state=on]:bg-info/20 data-[state=on]:text-info`},{color:`carbon`,variant:`ghost`,class:`data-[state=on]:bg-carbon/20 data-[state=on]:text-carbon`},{color:`secondary`,variant:`ghost`,class:`data-[state=on]:bg-secondary-foreground/10 data-[state=on]:text-secondary-foreground`},{color:`accent`,variant:`ghost`,class:`data-[state=on]:bg-accent-foreground/10 data-[state=on]:text-accent-foreground`},{size:`xs`,shape:[`square`,`circle`],class:`w-6`},{size:`sm`,shape:[`square`,`circle`],class:`w-7`},{size:`md`,shape:[`square`,`circle`],class:`w-8`},{size:`lg`,shape:[`square`,`circle`],class:`w-9`},{size:`xl`,shape:[`square`,`circle`],class:`w-10`},{size:`2xl`,shape:[`square`,`circle`],class:`w-12`}],defaultVariants:{color:`accent`,variant:`ghost`,size:`md`,shape:`auto`}}),Y({slots:{root:[`w-fit [&>*]:relative focus-visible:[&>*]:z-2`,`[&>*:not(:first-child):not(:last-child)]:!rounded-none`,`[&>*:not(:first-child):not(:last-child)>*]:!rounded-none`,`data-[orientation=vertical]:items-stretch`],item:[`inline-flex items-center justify-center whitespace-nowrap rounded-md font-medium transition-all-150`,`outline-none focus-visible:ring-3 focus-visible:ring-primary/30 focus-visible:ring-offset-background`,`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4`]},variants:{color:{primary:{item:`focus-visible:ring-primary/30`},destructive:{item:`focus-visible:ring-destructive/30`},success:{item:`focus-visible:ring-success/30`},warning:{item:`focus-visible:ring-warning/30`},info:{item:`focus-visible:ring-info/30`},carbon:{item:`focus-visible:ring-carbon/30`},secondary:{item:`focus-visible:ring-secondary-foreground/20`},accent:{item:`focus-visible:ring-accent-foreground/20`}},orientation:{horizontal:{root:[`inline-flex flex-row rtl:flex-row-reverse`,`[&>*:not(:last-child)]:border-e-0 [&>*:not(:last-child)>*]:border-e-0`,`focus-visible:[&>*]:border-e focus-visible:[&>*>*]:border-e`,`[&>*:first-child]:!rounded-e-none [&>*:first-child>*]:!rounded-e-none`,`[&>*:last-child]:!rounded-s-none [&>*:last-child>*]:!rounded-s-none`]},vertical:{root:[`flex flex-col`,`[&>*:not(:last-child)]:border-b-0 [&>*:not(:last-child)>*]:border-b-0`,`focus-visible:[&>*]:border-b focus-visible:[&>*>*]:border-b`,`[&>*:first-child]:!rounded-b-none [&>*:first-child>*]:!rounded-b-none`,`[&>*:last-child]:!rounded-t-none [&>*:last-child>*]:!rounded-t-none`]}},variant:{outline:{item:[`border border-border bg-background text-foreground`,`data-[state=off]:hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground`]},soft:{item:[`bg-accent text-foreground`,`data-[state=off]:hover:bg-accent`]},ghost:{item:[`bg-transparent text-foreground`,`data-[state=off]:hover:bg-accent`]}},size:{xs:{item:`h-6 gap-1 px-1.5 text-2xs`},sm:{item:`h-7 gap-2 px-2 text-xs`},md:{item:`h-8 gap-3 px-4 text-sm`},lg:{item:`h-9 gap-4 px-6 text-base`},xl:{item:`h-10 gap-5 px-8 text-lg`},"2xl":{item:`h-12 gap-6 px-10 text-xl`}}},compoundVariants:[{color:`primary`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-primary/20 data-[state=on]:text-primary`}},{color:`destructive`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-destructive/20 data-[state=on]:text-destructive`}},{color:`success`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-success/20 data-[state=on]:text-success`}},{color:`warning`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-warning/20 data-[state=on]:text-warning`}},{color:`info`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-info/20 data-[state=on]:text-info`}},{color:`carbon`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-carbon/20 data-[state=on]:text-carbon`}},{color:`secondary`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-secondary-foreground/10 data-[state=on]:text-secondary-foreground`}},{color:`accent`,variant:[`soft`,`ghost`],class:{item:`data-[state=on]:bg-accent-foreground/10 data-[state=on]:text-accent-foreground`}}],defaultVariants:{color:`accent`,orientation:`horizontal`,variant:`ghost`,size:`md`}});var jN=Y({slots:{positioner:`w-max`,popup:[`w-auto rounded-md border bg-popover text-popover-foreground shadow-md outline-none z-50 will-change-transform`,`animate-in fade-in-0 zoom-in-95`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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`],arrow:`w-1em h-0.5em fill-popover stroke-border`},variants:{size:{xs:{popup:`px-2 py-1 text-2xs`,arrow:`text-3xs`},sm:{popup:`px-2.5 py-1.25 text-xs`,arrow:`text-2xs`},md:{popup:`px-3 py-1.5 text-sm`,arrow:`text-xs`},lg:{popup:`px-3.5 py-1.75 text-base`,arrow:`text-sm`},xl:{popup:`px-4 py-2 text-lg`,arrow:`text-base`},"2xl":{popup:`px-4.5 py-2.5 text-xl`,arrow:`text-lg`}}},defaultVariants:{size:`md`}});Y({extendBase:e=>{let{positioner:t,popup:n,arrow:r}=jN({size:e.size}),{root:i,content:a}=IS({size:e.size,color:`accent`,position:`top-right`});return{tooltipPositioner:t,tooltipPopup:n,tooltipArrow:r,badgeRoot:i,badgeContent:a}},slots:{root:`group flex-1 flex flex-col w-full h-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out`,groupRoot:`group-data-[state=collapsed]:mb-0`,group:`flex flex-col m-0 p-0 list-none`,groupLabel:`flex items-center text-foreground/70 group-data-[state=collapsed]:size-0 group-data-[state=collapsed]:p-0 group-data-[state=collapsed]:opacity-0 group-data-[state=collapsed]:overflow-hidden transition-[height,padding,opacity]-200`,item:`relative m-0 p-0 group-data-[state=collapsed]:hover:bg-sidebar-accent group-data-[state=collapsed]:hover:rounded-sm`,button:[`group/button relative flex items-center w-full rounded-sm outline-none cursor-pointer select-none group-data-[state=collapsed]:overflow-hidden`,`data-[active=true]:bg-primary/10 data-[active=true]:text-primary`,`data-[active=false]:hover:bg-sidebar-accent data-[active=false]:focus:bg-sidebar-accent`,`data-[child-active]:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],collapsibleRoot:``,collapsibleTrigger:``,collapsibleContent:[`overflow-hidden transition will-change-auto`,`data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`],collapsibleIcon:`shrink-0 ms-auto text-muted-foreground transition-transform-200 group-data-[state=open]/button:rotate-90 group-data-[child-active]/button:text-primary`,sub:`flex flex-col m-0 list-none ms-[--soybean-tree-menu-indent] border-s border-sidebar-border border-solid`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,itemTag:`shrink-0 ms-auto inline-flex items-center rounded-sm bg-accent/15 text-accent-foreground`,itemAction:[`absolute end-0 top-1/2 -translate-y-1/2 z-2 inline-flex items-center justify-center rounded-sm text-muted-foreground outline-none transition-colors`,`focus-visible:bg-sidebar-accent focus-visible:text-foreground focus-visible:ring-3 focus-visible:ring-accent-foreground/20`,`disabled:pointer-events-none disabled:opacity-50`],itemAbsolute:`absolute inset-0 z-1 cursor-pointer`,tooltipPositioner:``,tooltipPopup:``,tooltipArrow:``,badgeRoot:``,badgeContent:``},variants:{size:{xs:{root:`gap-0.875 p-1.5 text-2xs`,groupRoot:`mb-0.875`,groupLabel:`h-6 gap-1 px-1.5 py-1 text-3xs`,group:`gap-0.875`,button:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,sub:`gap-0.875 ps-1.5 pt-0.875`,subButton:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,itemLinkIcon:`size-2 -ms-1`,itemTag:`min-h-3.5 px-1 text-4xs`,itemAction:`end-1 size-4 text-2xs`},sm:{root:`gap-1 p-1.75 text-xs`,groupRoot:`mb-1`,groupLabel:`h-7 gap-1.5 px-1.75 py-1 text-2xs`,group:`gap-1`,button:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,sub:`gap-1 ps-1.75 pt-1`,subButton:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,itemLinkIcon:`size-2.5 -ms-1.5`,itemTag:`min-h-4 px-1.25 text-3xs`,itemAction:`end-1.25 size-4.5 text-xs`},md:{root:`gap-1.25 p-2 text-sm`,groupRoot:`mb-1.25`,groupLabel:`h-8 gap-2 px-2 py-1.5 text-xs`,group:`gap-1.25`,button:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,sub:`gap-1.25 ps-2 pt-1.25`,subButton:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,itemLinkIcon:`size-3 -ms-2`,itemTag:`min-h-4.5 px-1.5 text-2xs`,itemAction:`end-1.5 size-5 text-sm`},lg:{root:`gap-1.5 p-2.25 text-base`,groupRoot:`mb-1.5`,groupLabel:`h-9 gap-2.5 px-2.25 py-1.5 text-sm`,group:`gap-1.5`,button:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,sub:`gap-1.5 ps-2.25 pt-1.5`,subButton:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,itemLinkIcon:`size-3.5 -ms-2.5`,itemTag:`min-h-5 px-1.75 text-xs`,itemAction:`end-1.75 size-5.5 text-base`},xl:{root:`gap-2 p-2.5 text-lg`,groupRoot:`mb-2`,groupLabel:`h-10 gap-3 px-2.5 py-2 text-base`,group:`gap-2`,button:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,sub:`gap-2 ps-2.5 pt-2`,subButton:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,itemLinkIcon:`size-4 -ms-3`,itemTag:`min-h-5.5 px-2 text-sm`,itemAction:`end-2 size-6 text-lg`},"2xl":{root:`gap-2.5 p-3 text-xl`,groupRoot:`mb-2.5`,groupLabel:`h-12 gap-3.5 px-3 py-2.5 text-lg`,group:`gap-2.5`,button:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,sub:`gap-2.5 ps-3 pt-2.5`,subButton:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,itemLinkIcon:`size-5 -ms-4`,itemTag:`min-h-6 px-2.5 text-base`,itemAction:`end-2.5 size-7 text-xl`}}},defaultVariants:{size:`md`}}),Y({slots:{root:`relative`,overlay:`absolute inset-0 pointer-events-none bg-repeat`},variants:{fullscreen:{true:{root:`static`,overlay:`fixed inset-0 z-9999 pointer-events-none bg-repeat`}}}});var MN={class:`page`},NN={class:`topbar`},PN={class:`top-actions`},FN=[`value`],IN={class:`stats-grid`},LN={class:`main-grid`},RN={class:`scroll-area chat-scroll`},zN={key:0,class:`empty`},BN={class:`chat-head`},VN={class:`chat-user-line`},HN={class:`chat-user`},UN={class:`chat-uid`},WN={class:`chat-meta-line`},GN={class:`chat-id`},KN={class:`chat-time`},qN={class:`chat-text`},JN={class:`chat-foot`},YN={key:1},XN={class:`chat-actions`},ZN={class:`panel-extra`},QN={key:0,class:`empty dark`},$N=[`title`],eP={class:`log-time`},tP={class:`log-level`},nP={class:`log-msg`},rP={class:`manage-grid`},iP={class:`shop-form`},aP={class:`check`},oP={class:`mini-list`},sP={class:`mini-list`},cP={key:0,class:`empty`},lP={class:`row-actions`},uP={class:`ban-list`},dP={key:0,class:`empty`},fP={class:`ban-main`},pP={class:`ban-meta`};os(L({__name:`App`,setup(e){let t=Zt(!1),n=Zt([]),r=Zt([]),i=Zt([]),a=Zt([]),o=Zt(null),s=Zt([]),c=Zt([]),l=Lt({item_key:``,name:``,cost:0,desc:``,enabled:!0}),u=Zt(``),d=Zt(!1),f=Zt(!1),p=Zt(!1),m=Lt({today_bans:0,total_bans:0,active_bans:0}),h=Zt(null),g=null,_,v=G(()=>n.value.length),y=G(()=>o.value?`?chat_id=${o.value}`:``);function b(e){if(!e)return`-`;let t=String(e),n=t.match(/(\d{2}:\d{2}:\d{2})/);return n?n[1]:t.replace(`T`,` `).slice(11,19)||t}function x(e){let t=String(e||``).replace(/\s+/g,` `).trim();return t.length>260?`${t.slice(0,260)}...`:t}function S(e){return e.deleted?`已删`:e.spam?`垃圾`:Number(e.user_id||0)===0?`Web`:`正常`}function C(e){return e.deleted?`deleted`:e.spam?`spam`:Number(e.user_id||0)===0?`web`:`normal`}function w(e){return[`chat-item`,C(e)]}function T(e){return e.deleted?`secondary`:e.spam?`destructive`:Number(e.user_id||0)===0?`accent`:`primary`}async function E(e,t){let n=await fetch(e,t),r=await n.json().catch(()=>({}));if(!n.ok||r.ok===!1)throw Error(r.error||r.message||`HTTP ${n.status}`);return r}async function ee(){try{let e=await E(`/api/chat${y.value}`);n.value=e.map(e=>({...e,_deleting:!1}))}catch{}}async function D(){try{let e=await E(`/api/bans${y.value}`);r.value=e.map(e=>({...e,_loading:!1}))}catch{}}async function te(){try{Object.assign(m,await E(`/api/stats${y.value}`))}catch{}}async function O(){try{i.value=await E(`/api/logs`),ne()}catch{}}function ne(){Tn(()=>{h.value&&(h.value.scrollTop=h.value.scrollHeight)})}async function re(){try{a.value=await E(`/api/groups`),!o.value&&a.value.length&&(o.value=a.value[0].chat_id)}catch{}}async function k(){try{s.value=await E(`/api/shop-items${y.value}`)}catch{}}async function ie(){if(!l.item_key||!l.name)return alert(`请填写商品编号和名称`);await E(`/api/shop-items`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({...l,chat_id:o.value||0})}),Object.assign(l,{item_key:``,name:``,cost:0,desc:``,enabled:!0}),await k()}async function ae(e){Object.assign(l,e)}async function A(){try{c.value=await E(`/api/lotteries${y.value}`)}catch{}}async function oe(e){window.confirm(`确认取消这个抽奖?`)&&(await E(`/api/lotteries/${e.id}/cancel`,{method:`POST`}),await A())}async function se(e){window.confirm(`确认立即开奖?`)&&(await E(`/api/lotteries/${e.id}/draw`,{method:`POST`}),await A())}function ce(){ee(),D(),te(),k(),A()}function le(){g&&g.close(),g=new EventSource(`/api/stream`),g.addEventListener(`connected`,()=>{t.value=!0}),g.addEventListener(`chat`,e=>{let t=JSON.parse(e.data);n.value.unshift(t),n.value.length>120&&n.value.pop()}),g.addEventListener(`spam`,e=>{let t=JSON.parse(e.data),r=n.value.find(e=>e.msg_id===t.msg_id);r&&Object.assign(r,t)}),g.addEventListener(`chat_delete`,e=>{let t=JSON.parse(e.data),r=n.value.find(e=>e.id===t.id);r&&Object.assign(r,{deleted:!0,manually_deleted:!0,deleted_at:t.deleted_at}),te()}),g.addEventListener(`ban`,e=>{let t=JSON.parse(e.data);r.value.unshift({...t,_loading:!1}),r.value.length>80&&r.value.pop(),te()}),g.addEventListener(`unban`,e=>{let t=JSON.parse(e.data),n=r.value.find(e=>e.user_id===t.user_id);n&&(n.auto_unban=!1),te()}),g.addEventListener(`log`,e=>{i.value.push(JSON.parse(e.data)),i.value.length>300&&i.value.shift(),ne()}),g.onerror=()=>{t.value=!1,window.setTimeout(le,3e3)}}async function ue(){let e=u.value.trim();if(!(!e||d.value)){d.value=!0;try{await E(`/api/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({text:e,chat_id:o.value})}),u.value=``}catch(e){alert(`发送失败:${e.message}`)}finally{d.value=!1}}}async function de(e,t=!1){let n=t?`删除并封禁`:`删除`;if(window.confirm(`确认${n}这条消息?`)){e._deleting=!0;try{await E(`/api/chat/${e.id}/delete`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({ban:t})}),Object.assign(e,{deleted:!0,manually_deleted:!0}),await te()}catch(e){alert(`${n}失败:${e.message}`)}finally{e._deleting=!1}}}async function fe(e){if(window.confirm(`确认解封 ${e.username||e.user_id}?`)){e._loading=!0;try{await E(`/api/unban/${e.user_id}`,{method:`POST`}),e.auto_unban=!1,await te()}catch(e){alert(`解封失败:${e.message}`)}finally{e._loading=!1}}}async function M(){if(window.confirm(`确认只重启 Telegram Bot?Web 管理页不会重启。`)){p.value=!0;try{await E(`/api/restart-bot`,{method:`POST`}),window.setTimeout(()=>{p.value=!1,O()},5e3)}catch(e){p.value=!1,alert(`重启 Bot 失败:${e.message}`)}}}async function pe(){if(window.confirm(`确认重启 TG Spam Guard 服务?重启期间 Web 和 Bot 会短暂不可用。`)){f.value=!0;try{await E(`/api/restart`,{method:`POST`})}catch{}window.setTimeout(()=>location.reload(),8e3)}}function me(){let e=i.value.map(e=>`${b(e.time)} ${e.level||``} ${x(e.message)}`).join(` +`);navigator.clipboard?.writeText(e)}return Mr(()=>{re().then(ce),ee(),D(),te(),k(),A(),O(),le(),_=window.setInterval(te,3e4)}),Fr(()=>{g&&g.close(),_&&window.clearInterval(_)}),(e,g)=>(z(),V(F(CN),{theme:{theme:{primary:`indigo`},size:`sm`}},{default:I(()=>[H(`main`,MN,[H(`header`,NN,[g[10]||=H(`div`,null,[H(`h1`,null,`🛡️ TG Spam Guard`),H(`p`,null,`Telegram 群组安全管理面板`)],-1),H(`div`,PN,[Ln(H(`select`,{"onUpdate:modelValue":g[0]||=e=>o.value=e,class:`form-select`,onChange:ce},[g[7]||=H(`option`,{value:null},`全部群组`,-1),(z(!0),B(pa,null,Kr(a.value,e=>(z(),B(`option`,{key:e.chat_id,value:e.chat_id},N(e.label||e.name),9,FN))),128))],544),[[Xo,o.value]]),H(`span`,{class:j([`conn`,t.value?`on`:`off`])},N(t.value?`实时连接`:`连接中`),3),U(F(UC),{size:`xs`,variant:`outline`,color:`primary`,disabled:p.value,onClick:M},{default:I(()=>[...g[8]||=[Aa(`重启Bot`,-1)]]),_:1},8,[`disabled`]),U(F(UC),{size:`xs`,variant:`soft`,color:`warning`,disabled:f.value,onClick:pe},{default:I(()=>[...g[9]||=[Aa(`重启服务`,-1)]]),_:1},8,[`disabled`])])]),H(`section`,IN,[U(F(wM),{class:`stat-card blue`},{default:I(()=>[g[11]||=H(`span`,null,`今日封禁`,-1),H(`strong`,null,N(m.today_bans||0),1)]),_:1}),U(F(wM),{class:`stat-card red`},{default:I(()=>[g[12]||=H(`span`,null,`累计封禁`,-1),H(`strong`,null,N(m.total_bans||0),1)]),_:1}),U(F(wM),{class:`stat-card orange`},{default:I(()=>[g[13]||=H(`span`,null,`当前封禁`,-1),H(`strong`,null,N(m.active_bans||0),1)]),_:1}),U(F(wM),{class:`stat-card green`},{default:I(()=>[g[14]||=H(`span`,null,`聊天记录`,-1),H(`strong`,null,N(v.value),1)]),_:1})]),H(`section`,LN,[U(F(wM),{class:`panel chat-panel`,title:`💬 聊天记录`,description:`${v.value} 条`},{default:I(()=>[H(`div`,RN,[n.value.length?ja(``,!0):(z(),B(`div`,zN,`等待消息...`)),(z(!0),B(pa,null,Kr(n.value,(e,t)=>(z(),B(`article`,{key:e.id||t,class:j(w(e))},[H(`div`,BN,[H(`div`,VN,[U(F(kN),{size:`xs`,color:T(e),variant:`soft`},{default:I(()=>[Aa(N(S(e)),1)]),_:2},1032,[`color`]),H(`span`,HN,`@`+N(e.username||e.first_name||`unknown`),1),H(`span`,UN,N(e.user_id),1)]),H(`div`,WN,[H(`span`,GN,`#`+N(e.msg_id||`-`),1),H(`span`,KN,N(b(e.time)),1)])]),H(`div`,qN,N(e.text||`(空消息)`),1),H(`div`,JN,[e.spam?(z(),V(F(kN),{key:0,class:`reason-tag`,size:`xs`,color:`destructive`,variant:`soft`,title:e.reason||e.spam_reason},{default:I(()=>[Aa(N(e.reason||e.spam_reason),1)]),_:2},1032,[`title`])):(z(),B(`span`,YN)),H(`div`,XN,[e.deleted?(z(),V(F(kN),{key:0,size:`xs`,color:`secondary`,variant:`soft`},{default:I(()=>[Aa(`已删 · `+N(b(e.deleted_at)),1)]),_:2},1024)):(z(),B(pa,{key:1},[U(F(UC),{size:`xs`,variant:`link`,color:`destructive`,disabled:e._deleting,onClick:t=>de(e,!1)},{default:I(()=>[...g[15]||=[Aa(`删除`,-1)]]),_:1},8,[`disabled`,`onClick`]),e.user_id?(z(),V(F(UC),{key:0,size:`xs`,variant:`link`,color:`warning`,disabled:e._deleting,onClick:t=>de(e,!0)},{default:I(()=>[...g[16]||=[Aa(`删封`,-1)]]),_:1},8,[`disabled`,`onClick`])):ja(``,!0)],64))])])],2))),128))])]),_:1},8,[`description`]),U(F(wM),{class:`panel log-panel`,title:`📜 实时日志`,description:`${i.value.length} 条`},{extra:I(()=>[H(`div`,ZN,[U(F(UC),{size:`xs`,variant:`outline`,onClick:me},{default:I(()=>[...g[17]||=[Aa(`复制`,-1)]]),_:1}),U(F(UC),{size:`xs`,variant:`outline`,onClick:O},{default:I(()=>[...g[18]||=[Aa(`刷新`,-1)]]),_:1})])]),default:I(()=>[H(`div`,{ref_key:`logScroll`,ref:h,class:`log-window`},[i.value.length?ja(``,!0):(z(),B(`div`,QN,`等待日志...`)),(z(!0),B(pa,null,Kr(i.value,(e,t)=>(z(),B(`div`,{key:t,class:j([`log-line`,e.level]),title:x(e.message)},[H(`span`,eP,N(b(e.time)),1),H(`span`,tP,N(e.level),1),H(`span`,nP,N(x(e.message)),1)],10,$N))),128))],512)]),_:1},8,[`description`])]),H(`section`,rP,[U(F(wM),{class:`panel manage-panel`,title:`🛒 商品管理`,description:`按当前群组生效`},{default:I(()=>[H(`div`,iP,[U(F(EN),{modelValue:l.item_key,"onUpdate:modelValue":g[1]||=e=>l.item_key=e,placeholder:`编号,如 1`},null,8,[`modelValue`]),U(F(EN),{modelValue:l.name,"onUpdate:modelValue":g[2]||=e=>l.name=e,placeholder:`商品名称`},null,8,[`modelValue`]),U(F(EN),{modelValue:l.cost,"onUpdate:modelValue":g[3]||=e=>l.cost=e,placeholder:`积分价格`},null,8,[`modelValue`]),U(F(EN),{modelValue:l.desc,"onUpdate:modelValue":g[4]||=e=>l.desc=e,placeholder:`说明`},null,8,[`modelValue`]),H(`label`,aP,[Ln(H(`input`,{"onUpdate:modelValue":g[5]||=e=>l.enabled=e,type:`checkbox`},null,512),[[Jo,l.enabled]]),g[19]||=Aa(` 启用`,-1)]),U(F(UC),{size:`xs`,color:`primary`,onClick:ie},{default:I(()=>[...g[20]||=[Aa(`保存商品`,-1)]]),_:1})]),H(`div`,oP,[(z(!0),B(pa,null,Kr(s.value,e=>(z(),B(`div`,{key:e.item_key,class:`mini-row`},[H(`span`,null,[H(`b`,null,N(e.item_key),1),Aa(` `+N(e.name)+` — `+N(e.cost)+` 分 `,1),H(`em`,null,N(e.enabled?`启用`:`停用`),1)]),U(F(UC),{size:`xs`,variant:`outline`,onClick:t=>ae(e)},{default:I(()=>[...g[21]||=[Aa(`编辑`,-1)]]),_:1},8,[`onClick`])]))),128))])]),_:1}),U(F(wM),{class:`panel manage-panel`,title:`🎁 抽奖管理`,description:`查看、取消、手动开奖`},{default:I(()=>[H(`div`,sP,[c.value.length?ja(``,!0):(z(),B(`div`,cP,`暂无抽奖`)),(z(!0),B(pa,null,Kr(c.value,e=>(z(),B(`div`,{key:e.id,class:`mini-row`},[H(`span`,null,`#`+N(e.id)+` `+N(e.prize)+`|`+N(e.status)+`|`+N(b(e.created_at)),1),H(`div`,lP,[U(F(UC),{size:`xs`,variant:`outline`,disabled:e.status!==`active`,onClick:t=>se(e)},{default:I(()=>[...g[22]||=[Aa(`开奖`,-1)]]),_:1},8,[`disabled`,`onClick`]),U(F(UC),{size:`xs`,variant:`soft`,color:`warning`,disabled:e.status!==`active`,onClick:t=>oe(e)},{default:I(()=>[...g[23]||=[Aa(`取消`,-1)]]),_:1},8,[`disabled`,`onClick`])])]))),128))])]),_:1})]),U(F(wM),{class:`ban-panel`,title:`🚫 封禁记录`,description:`${r.value.length} 条`},{extra:I(()=>[U(F(UC),{size:`xs`,variant:`outline`,onClick:D},{default:I(()=>[...g[24]||=[Aa(`刷新`,-1)]]),_:1})]),default:I(()=>[H(`div`,uP,[r.value.length?ja(``,!0):(z(),B(`div`,dP,`暂无封禁记录`)),(z(!0),B(pa,null,Kr(r.value,(e,t)=>(z(),B(`div`,{key:e.id||t,class:`ban-item`},[H(`div`,fP,[H(`b`,null,`@`+N(e.username||e.first_name||e.user_id),1),H(`span`,null,N(e.reason||`-`),1)]),H(`div`,pP,[H(`span`,null,N(b(e.time)),1),e.auto_unban?(z(),V(F(UC),{key:0,size:`xs`,variant:`outline`,color:`success`,disabled:e._loading,onClick:t=>fe(e)},{default:I(()=>[...g[25]||=[Aa(`解封`,-1)]]),_:1},8,[`disabled`,`onClick`])):(z(),V(F(kN),{key:1,size:`xs`,color:`secondary`,variant:`soft`},{default:I(()=>[...g[26]||=[Aa(`已处理`,-1)]]),_:1}))])]))),128))])]),_:1},8,[`description`]),H(`form`,{class:`send-box`,onSubmit:ns(ue,[`prevent`])},[U(F(EN),{modelValue:u.value,"onUpdate:modelValue":g[6]||=e=>u.value=e,placeholder:`发送消息到 TG 群`},null,8,[`modelValue`]),U(F(UC),{type:`submit`,color:`primary`,disabled:d.value||!u.value.trim()},{default:I(()=>[...g[27]||=[Aa(`发送`,-1)]]),_:1},8,[`disabled`])],32)])]),_:1}))}})).mount(`#app`); \ No newline at end of file diff --git a/web/static/index.html b/web/static/index.html index 1858975..3491dd8 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -4,7 +4,7 @@ TG Spam Guard - +