@aidotnet/server-linux-arm64 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/bin/astra-server +2 -2
  2. package/bin/wwwroot/assets/ClientsPage-Cwjn83RD.js +11 -0
  3. package/bin/wwwroot/assets/KeyPage-IsBY88jG.js +1 -0
  4. package/bin/wwwroot/assets/ModelDetailPage-BT8_QmLF.js +1 -0
  5. package/bin/wwwroot/assets/ModelsPage-a3SNBXwe.js +1 -0
  6. package/bin/wwwroot/assets/PluginsPage-CXRMCp_F.js +2 -0
  7. package/bin/wwwroot/assets/PrivacyPage-BfdLDJ63.js +1 -0
  8. package/bin/wwwroot/assets/ProviderDetailPage-C9eabWwn.js +3 -0
  9. package/bin/wwwroot/assets/ProvidersPage-CPw-h0Uz.js +2 -0
  10. package/bin/wwwroot/assets/SettingsPage-CTnL166S.js +2 -0
  11. package/bin/wwwroot/assets/TokensPage-TPaxzBMY.js +1 -0
  12. package/bin/wwwroot/assets/TrayPanelPage-BGDBeJs0.js +1 -0
  13. package/bin/wwwroot/assets/{TrayPanelView-CQQDnzsO.js → TrayPanelView-DP-m1Cui.js} +1 -1
  14. package/bin/wwwroot/assets/alert-C-zJo-Vf.js +15 -0
  15. package/bin/wwwroot/assets/{arrow-down-DLYI19GC.js → arrow-down-DTsCyVhl.js} +1 -1
  16. package/bin/wwwroot/assets/{arrow-left-BEIa7s0v.js → arrow-left-BlStTg-u.js} +1 -1
  17. package/bin/wwwroot/assets/{checkbox-DJG4To3W.js → checkbox-B8UTLROZ.js} +1 -1
  18. package/bin/wwwroot/assets/{cloud-download-Dx8D0gGR.js → cloud-download-DoCH2MAL.js} +1 -1
  19. package/bin/wwwroot/assets/confirm-morph-BZdvZ-wI.js +1 -0
  20. package/bin/wwwroot/assets/{download-CKu95INa.js → download-zacBMjpe.js} +1 -1
  21. package/bin/wwwroot/assets/{ellipsis-D-uqKDgA.js → ellipsis-Dwk6_QlF.js} +1 -1
  22. package/bin/wwwroot/assets/{external-link-tQTMyil6.js → external-link-D-L32_ye.js} +1 -1
  23. package/bin/wwwroot/assets/{folder-open-CL6HwOra.js → folder-open-ex39110T.js} +1 -1
  24. package/bin/wwwroot/assets/index-CNdW2eN9.js +17 -0
  25. package/bin/wwwroot/assets/{index-nu-lKbLD.css → index-DSv7xAxU.css} +1 -1
  26. package/bin/wwwroot/assets/{log-out-CZYk_IyX.js → log-out-CZSB5kqp.js} +1 -1
  27. package/bin/wwwroot/assets/overlays-BBHZHl4R.js +41 -0
  28. package/bin/wwwroot/assets/{pencil-CUO0GAyP.js → pencil-C7HWLb95.js} +1 -1
  29. package/bin/wwwroot/assets/{power-USlcjghz.js → power-BggG52OJ.js} +1 -1
  30. package/bin/wwwroot/assets/radio-cards-BWCaBwfU.js +1 -0
  31. package/bin/wwwroot/assets/{rotate-ccw-Daii8PQN.js → rotate-ccw-Xx5_g9bd.js} +1 -1
  32. package/bin/wwwroot/index.html +4 -4
  33. package/package.json +1 -1
  34. package/bin/wwwroot/assets/ClientsPage-CT5PiqS3.js +0 -11
  35. package/bin/wwwroot/assets/KeyPage-DOVrI-UN.js +0 -1
  36. package/bin/wwwroot/assets/ModelDetailPage-Yu2oJf3R.js +0 -1
  37. package/bin/wwwroot/assets/ModelsPage-QefK7LU5.js +0 -1
  38. package/bin/wwwroot/assets/PluginsPage-Dl53KvHU.js +0 -2
  39. package/bin/wwwroot/assets/PrivacyPage-DmSrQ2Mk.js +0 -1
  40. package/bin/wwwroot/assets/ProviderDetailPage-BfK0We2G.js +0 -3
  41. package/bin/wwwroot/assets/ProvidersPage-dKrtvirQ.js +0 -2
  42. package/bin/wwwroot/assets/SettingsPage-4R3aVJB1.js +0 -2
  43. package/bin/wwwroot/assets/TokensPage-C1s3mguI.js +0 -1
  44. package/bin/wwwroot/assets/TrayPanelPage-INGZ1PbI.js +0 -1
  45. package/bin/wwwroot/assets/alert-D4IPjxz3.js +0 -15
  46. package/bin/wwwroot/assets/confirm-morph-BpM-aHP9.js +0 -1
  47. package/bin/wwwroot/assets/index-CdtIrMPt.js +0 -17
  48. package/bin/wwwroot/assets/overlays-BX48Gd4h.js +0 -41
  49. package/bin/wwwroot/assets/radio-cards-CGtNS_WO.js +0 -1
@@ -0,0 +1,41 @@
1
+ import{A as e,Bi as t,C as n,D as r,E as i,F as a,Fi as o,Hi as s,I as c,Ii as l,J as u,Li as d,M as f,N as p,Ni as m,O as h,P as g,Pi as _,R as v,Ri as y,S as b,Si as x,Vi as S,Wi as C,Yi as w,Z as T,_i as E,_t as D,aa as O,ca as k,ct as A,fn as j,gi as M,gt as N,hi as P,ii as F,it as I,j as L,k as R,la as z,li as B,oi as ee,ot as V,pa as te,qi as ne,r as re,ra as ie,st as ae,t as oe,ta as se,ua as ce,ut as le,vi as ue,vt as de,xi as fe,xt as pe,yi as me,z as he,zi as ge}from"./alert-C-zJo-Vf.js";function _e(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var ve=class extends w{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,ne.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!O(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(_e(e,n).forEach(e=>{e.destroy()}),_e(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=ie(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new C(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&ne.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},H=te(ce(),1);function ye({queries:e,...n},r){let i=k(r),a=s(),c=S(),u=n.subscribed!==!1,f=H.useMemo(()=>e.map(e=>{let t=i.defaultQueryOptions(e);return t._optimisticResults=a?`isRestoring`:u?`optimistic`:void 0,t}),[e,i,a,u]);f.forEach(e=>{o(e);let t=i.getQueryCache().get(e.queryHash);y(e,c,t)}),t(c);let[p]=H.useState(()=>new ve(i,f,n)),[m,h,g]=p.getOptimisticResult(f,n.combine),_=!a&&u;H.useSyncExternalStore(H.useCallback(e=>_?p.subscribe(ne.batchCalls(e)):se,[p,_]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),H.useEffect(()=>{p.setQueries(f,n)},[f,n,p]);let v=m.some((e,t)=>d(f[t],e))?m.flatMap((e,t)=>{let n=f[t];if(n&&d(n,e)){let e=new C(i,n);return l(n,e,c)}return[]}):[];if(v.length>0)throw Promise.all(v);let b=m.find((e,t)=>{let n=f[t];return n&&ge({result:e,errorResetBoundary:c,throwOnError:n.throwOnError,query:i.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(b)throw b.error;return h(g())}var be={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};be.node;var xe=de(be),Se={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Se.node;var Ce=de(Se),we={canOpenPaths:!!B(),async openPath(e){let t=B();return t?t.openPath(e):!1},async revealLogs(){return await B()?.revealLogs()??!1},async copy(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},async contextMenu(e){let t=B();if(t)return t.showContextMenu(e)},async startService(){let e=B();return e?e.startService():null}};function Te(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t>0?e.slice(0,t):e}var Ee={config:`providers.quota.error.config`,no_key:`providers.quota.error.no_key`,unauthorized:`providers.quota.error.unauthorized`,no_endpoint:`providers.quota.error.no_endpoint`,rate_limited:`providers.quota.error.rate_limited`,upstream:`providers.quota.error.upstream`,timeout:`providers.quota.error.timeout`,network:`providers.quota.error.network`,not_json:`providers.quota.error.not_json`,too_large:`providers.quota.error.too_large`,empty:`providers.quota.error.empty`},De=/^[A-Z]{3}$/;function Oe(e,t,n){let r=n===`zh`?`zh-CN`:`en-US`;if(t&&De.test(t))try{let n=e!==0&&Math.abs(e)<1;return new Intl.NumberFormat(r,{style:`currency`,currency:t,minimumFractionDigits:2,maximumFractionDigits:n?4:2}).format(e)}catch{}let i=new Intl.NumberFormat(r,{maximumFractionDigits:2}).format(e);return t?`${i} ${t}`:i}var ke=e=>e.windowMinutes!=null&&e.usedPercent!=null;function Ae(e){return e.usedPercent!=null&&Number.isFinite(e.usedPercent)?Math.min(100,Math.max(0,e.usedPercent)):e.used!=null&&e.total!=null&&e.total>0?Math.min(100,Math.max(0,e.used/e.total*100)):null}function je(e){return!e?.error||e.fetchedAtUtc&&e.errorAtUtc&&new Date(e.errorAtUtc).getTime()<new Date(e.fetchedAtUtc).getTime()?null:{code:e.errorCode??null,message:e.error}}function Me(e,t){return e.code?t(Ee[e.code]):e.message}function Ne(e,t,n){let r=Ae(e);if(ke(e))return t(`providers.quota.window`,{window:dt(e.windowMinutes,n),percent:Math.round(r??0)});if(e.remaining!=null){let i=t(`providers.quota.balance`,{amount:Oe(e.remaining,e.unit,n)});return r==null?i:`${i} · ${t(`providers.quota.usedPercent`,{percent:Math.round(r)})}`}return r==null?e.used!=null&&e.total!=null?t(`providers.quota.totalUsed`,{used:Oe(e.used,e.unit,n),total:Oe(e.total,e.unit,n)}):null:t(`providers.quota.usedPercent`,{percent:Math.round(r)})}function Pe(e,t,n){let r=ft(e.resetsAtUtc??null,n);return r?t(`providers.quota.resets`,{time:r}):null}function Fe(e,t,n){let r=(e?.plans??[]).map(e=>Ne(e,t,n)).filter(e=>!!e);return e?.isValid===!1&&r.unshift(t(`providers.quota.invalid`)),r.length?r.join(` · `):null}var Ie=e=>e.authScheme!==`oauth-subscription`&&!!e.quotaConfig?.enabled;function Le(e,t){let n=new Map;for(let r of e)n.set(r.bucket,(n.get(r.bucket)??0)+r[t]);return[...n.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({bucket:e,value:t}))}var Re=e=>String(e).padStart(2,`0`),ze=e=>`${e.getFullYear()}-${Re(e.getMonth()+1)}-${Re(e.getDate())}`,Be={"7d":7,"30d":30,"90d":90};function Ve(e,t=new Date){if(e===`today`)return new Date(t.getFullYear(),t.getMonth(),t.getDate());let n=Be[e];return n?new Date(t.getFullYear(),t.getMonth(),t.getDate()-(n-1)):null}function He(e=365,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-(e-1)),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()-(r.getDay()+6)%7),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()+(6-(n.getDay()+6)%7)),o=[];for(let e=i;e<=a;e=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1))o.push(ze(e));let s=[],c=[];for(let e=0;e<o.length;e+=7)s.push(Array.from({length:7},(t,n)=>e+n)),c.push({index:s.length-1,month:Number(o[e].slice(5,7)),year:Number(o[e].slice(0,4))});return{days:o,weeks:s,months:s.flatMap((e,t)=>{let n=e.find(e=>o[e].slice(8)===`01`);return n===void 0?[]:[{index:t,label:Number(o[n].slice(5,7))}]}),monthLabels:c}}function Ue(e,t){return e<=0?0:t<=0?1:Math.min(4,Math.max(1,Math.ceil(e/t*4)))}function We(e,t=new Date){if(e===`today`){let e=ze(t);return Array.from({length:24},(t,n)=>`${e}T${Re(n)}:00`)}let n=Ve(e,t),r=Be[e]??0;return n?Array.from({length:r},(e,t)=>ze(new Date(n.getFullYear(),n.getMonth(),n.getDate()+t))):[]}function Ge(e,t){if(t.length===0)return e;let n=new Map(e.map(e=>[e.bucket,e.value]));return t.map(e=>({bucket:e,value:n.get(e)??0}))}var Ke=e=>`${e.slice(5,7)}/${e.slice(8,10)}`,qe=e=>e.includes(`T`)?e.slice(11,16):Ke(e),Je=e=>e.includes(`T`)?`${Ke(e)} ${e.slice(11,16)}`:Ke(e);function Ye(e){let t=new Map;for(let n of e){let e=t.get(n.key)??{key:n.key,requests:0,tokens:0,costUsd:0};e.requests+=n.requests,e.tokens+=n.tokens,e.costUsd+=n.costUsd,t.set(n.key,e)}let n=[...t.values()],r=n.reduce((e,t)=>e+t.costUsd,0),i=n.reduce((e,t)=>e+t.requests,0);return n.map(e=>({...e,share:r>0?e.costUsd/r:i>0?e.requests/i:0}))}function Xe(e){return Math.max(0,Math.round(e.requests*(1-e.successRate)))}function Ze(e){return!Number.isFinite(e)||e<=0?`$0`:e<.01?`$<0.01`:e<1e3?`$${e.toFixed(2)}`:T(e,{compact:!0})}function Qe(e,t=new Date){return Ge(Le(e,`requests`),We(`today`,t))}var $e=e=>String(e).padStart(2,`0`);function et(e,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1),r=`${n.getFullYear()}-${$e(n.getMonth()+1)}-${$e(n.getDate())}`;return e.filter(e=>e.bucket===r).reduce((e,t)=>e+t.tokens,0)}function tt(e,t){return t<=0?null:(e-t)/t}function nt(e,t){let n=[...e].sort((e,t)=>t.tokens-e.tokens)[0];return!n||n.tokens<=0?null:{model:n.model,share:t>0?Math.min(1,n.tokens/t):1}}var rt={session:300,weekly:10080};function it(e){return e==null||!Number.isFinite(e)?null:Math.min(100,Math.max(0,100-e))}function at(e,t){let n=it(t?.usedPercent);return n===null?null:{kind:e,windowMinutes:t?.windowMinutes??rt[e],remaining:n,resetsAt:t?.resetsAtUtc??null}}function ot(e){let t=[];for(let{provider:n,account:r}of e){if(r.status!==`active`||!r.quota)continue;let e=r.quota,i=[at(`session`,e.session),at(`weekly`,e.weekly)].filter(e=>e!==null),a=it(e.credits?.usedPercent);a!==null&&i.push({kind:`credits`,windowMinutes:null,remaining:a,resetsAt:null}),i.length!==0&&t.push({accountId:r.id,providerId:n.id,providerName:e.planLabel||n.name,providerIcon:n.icon??null,accountName:r.displayName||r.accountEmail||r.id,rows:i})}return t}function st(e){let t=[];for(let n of e){if(!n.enabled||!Ie(n)||n.quota?.isValid===!1)continue;let e=[];for(let t of n.quota?.plans??[]){let n=Ae(t);ke(t)?e.push({kind:`window`,windowMinutes:t.windowMinutes??null,remaining:100-(n??0),resetsAt:t.resetsAtUtc??null}):(t.remaining!=null||n!=null)&&e.push({kind:`balance`,windowMinutes:null,remaining:n==null?null:100-n,resetsAt:t.resetsAtUtc??null,amount:t.remaining==null?null:{value:t.remaining,unit:t.unit??null},label:t.name??null})}e.length!==0&&t.push({accountId:`provider:${n.id}`,providerId:n.id,providerName:n.name,providerIcon:n.icon??null,accountName:``,rows:e})}return t}function ct(e){let t=null;for(let n of e)for(let e of n.rows)e.remaining!==null&&(!t||e.remaining<t.row.remaining)&&(t={plan:n,row:{...e,remaining:e.remaining}});return t}function lt(e,t){let n=[];for(let t of e)for(let e of t.rows)e.remaining!==null&&n.push({plan:t,row:{...e,remaining:e.remaining}});return n.sort((e,t)=>e.row.remaining-t.row.remaining).slice(0,t)}function ut(e){return e<10?`red`:e<30?`orange`:`green`}function dt(e,t){let n=(e,n)=>new Intl.NumberFormat(t===`zh`?`zh-CN`:`en-US`,{style:`unit`,unit:n,unitDisplay:t===`zh`?`long`:`narrow`}).format(e);return e>=1440&&e%1440==0?n(e/1440,`day`):e>=60?n(Math.round(e/60),`hour`):n(e,`minute`)}function ft(e,t,n=Date.now()){if(!e)return null;let r=new Date(e).getTime()-n;if(!Number.isFinite(r)||r<=0)return null;let i=new Intl.RelativeTimeFormat(t===`zh`?`zh-CN`:`en-US`,{numeric:`auto`}),a=r/36e5;return a>=48?i.format(Math.round(a/24),`day`):a>=1?i.format(Math.round(a),`hour`):i.format(Math.max(1,Math.round(r/6e4)),`minute`)}function pt(e,t,n,r=Date.now()){if(!e)return null;let i=Math.max(0,(r-e)/1e3),a=new Intl.RelativeTimeFormat(t===`zh`?`zh-CN`:`en-US`,{numeric:`auto`});return i<60?n:i<3600?a.format(-Math.round(i/60),`minute`):a.format(-Math.round(i/3600),`hour`)}function mt(e,t,n){let r={title:``,detail:``};if(e===`none`)return r;if(e===`alerts`){if(!t.running)return{title:`!`,detail:n.stopped};let e=t.summary?Xe(t.summary):0;if(e>0)return{title:`⚠ ${e}`,detail:n.failures(e)};let i=ct(t.plans);if(i&&i.row.remaining<10){let e=`${Math.round(i.row.remaining)}%`;return{title:`⚠ ${e}`,detail:n.quota(i.plan.providerName,n.windowName(i.row),e)}}return r}if(e===`quota`){let e=ct(t.plans);if(!e)return r;let i=`${Math.round(e.row.remaining)}%`;return{title:i,detail:n.quota(e.plan.providerName,n.windowName(e.row),i)}}let i=t.summary;if(!i||!t.running)return r;switch(e){case`requests`:{let e=u(i.requests,!0);return{title:e,detail:n.requests(e)}}case`tokens`:{let e=u(i.inputTokens+i.outputTokens,!0);return{title:e,detail:n.tokens(e)}}case`cost`:{let e=Ze(i.costUsd);return{title:e,detail:n.cost(e)}}}}var ht={title:`requests`,sections:{overview:!0,cost:!0,chart:!0,topModel:!0,compareYesterday:!1,cacheHitRate:!1,quota:!0,clients:!1}},gt=()=>!!B()?.tray;function _t(){let[e,t]=(0,H.useState)(ht),[n,r]=(0,H.useState)(!B()?.tray);return(0,H.useEffect)(()=>{let e=B()?.tray;if(!e)return;let n=!0;e.getPrefs().then(e=>{n&&(t(e),r(!0))});let i=e.onPrefsChanged(t);return()=>{n=!1,i()}},[]),[e,(0,H.useCallback)(e=>{t(e);let n=B()?.tray;n&&n.setPrefs(e).then(t)},[]),n]}function vt(){let e=j(),[t,n]=(0,H.useState)(null);return(0,H.useEffect)(()=>{let e=B()?.tray;if(!e)return;let t=!0;e.getState().then(e=>{t&&n(e)});let r=e.onStateChanged(n);return()=>{t=!1,r()}},[]),t??{running:e.isSuccess,port:null,activity:null,apiVersionMismatch:!1,updateAvailable:null}}function yt(e,t,n){return{...e,sections:{...e.sections,[t]:n}}}var bt=3e5,xt=new Map,St=()=>-new Date().getTimezoneOffset();function Ct(e,t){let n=k(),{enabled:r,background:i}=t,a={refetchInterval:15e3,refetchIntervalInBackground:i},o=e.sections.quota||e.title===`quota`||e.title===`alerts`,s=_({queryKey:pe.settings,queryFn:()=>F(`GET`,`/api/settings`),enabled:r}),c=_({queryKey:pe.stats(`summary`,`today`,``,``),queryFn:()=>F(`GET`,`/api/stats/summary?range=today`),enabled:r,...a}),l=_({queryKey:pe.stats(`timeseries`,`today`,`hour`,`provider`,``,``,St()),queryFn:()=>F(`GET`,`/api/stats/timeseries?range=today&groupBy=hour&by=provider&tzOffset=${St()}`),enabled:r&&e.sections.chart,...a,refetchInterval:3e4}),u=_({queryKey:pe.stats(`timeseries`,`7d`,`day`,`provider`,``,``,St()),queryFn:()=>F(`GET`,`/api/stats/timeseries?range=7d&groupBy=day&by=provider&tzOffset=${St()}`),enabled:r&&e.sections.compareYesterday,...a,refetchInterval:6e4}),d=_({queryKey:pe.stats(`top`,`today`,``,3,``),queryFn:()=>F(`GET`,`/api/stats/top-models?range=today&limit=3`),enabled:r&&e.sections.topModel,...a,refetchInterval:3e4}),f=_({queryKey:pe.providers,queryFn:()=>F(`GET`,`/api/providers`),enabled:r&&(o||e.sections.clients),...a,refetchInterval:6e4}),p=_({queryKey:pe.clients,queryFn:()=>F(`GET`,`/api/clients`),enabled:r&&e.sections.clients,...a,refetchInterval:3e4}),h=(0,H.useMemo)(()=>(f.data??[]).filter(e=>e.enabled&&e.authScheme===`oauth-subscription`),[f.data]),g=ye({queries:h.map(e=>({queryKey:pe.providerAccounts(e.id),queryFn:()=>F(`GET`,`/api/providers/${ee(e.id)}/accounts`),enabled:r&&o,...a,refetchInterval:6e4}))}),v=h.flatMap((e,t)=>(g[t]?.data??[]).map(t=>({provider:e,account:t}))),y=v.map(e=>`${e.account.id}:${e.account.status}:${e.account.quota?.fetchedAtUtc??``}`).join(`|`),b=m({mutationFn:e=>F(`POST`,`/api/provider-accounts/${ee(e)}/quota`),onSettled:e=>{e&&n.invalidateQueries({queryKey:pe.providerAccounts(e.providerId)})}}),x=r&&o&&(t.live||e.title===`quota`||e.title===`alerts`);(0,H.useEffect)(()=>{if(!x)return;let e=Date.now();for(let{account:t}of v){if(t.status!==`active`)continue;let n=t.quota?.fetchedAtUtc?new Date(t.quota.fetchedAtUtc).getTime():0;Number.isFinite(n)&&e-n<bt||e-(xt.get(t.id)??0)<bt||(xt.set(t.id,e),b.mutate(t.id,{onError:()=>{}}))}},[x,y]);let S=[...ot(v),...st(f.data??[])];return{settings:s.data,summary:c.data,hourly:l.data??[],daily:u.data??[],top:d.data??[],plans:S,hasSubscriptions:v.some(e=>e.account.status===`active`),clients:p.data??[],providers:f.data??[],updatedAt:c.dataUpdatedAt,loading:c.isLoading,error:c.isError}}function wt(e,t,n,r){let{t:i,locale:a}=V(),o=B(),s=(0,H.useMemo)(()=>({requests:e=>i(`tray.title.requests`,{count:e}),tokens:e=>i(`tray.title.tokens`,{count:e}),cost:e=>i(`tray.title.cost`,{amount:e}),quota:(e,t,n)=>i(`tray.title.quota`,{plan:e,window:t,remaining:n}),failures:e=>i(`tray.title.failures`,{count:e}),stopped:i(`tray.status.stopped`),windowName:e=>e.kind===`balance`?e.label??i(`tray.quotaBalance`):e.kind===`credits`||e.windowMinutes==null?i(`tray.quotaCredits`):dt(e.windowMinutes,a)}),[i,a]),c=mt(e.title,{running:t.running,summary:n,plans:r},s);(0,H.useEffect)(()=>{o?.tray.setTitle(c.title,c.detail)},[o,c.title,c.detail])}function Tt(){let[e]=_t(),t=vt(),n=Ct(e,{enabled:t.running,background:!0,live:!1});return wt(e,t,n.summary,n.plans),null}var U={field:`_field_6szcl_1`,control:`_control_6szcl_3`,disabled:`_disabled_6szcl_4`,open:`_open_6szcl_6`,searchIcon:`_searchIcon_6szcl_8`,chevron:`_chevron_6szcl_12`,clear:`_clear_6szcl_14`,hint:`_hint_6szcl_17`,popover:`_popover_6szcl_18`,autoHeight:`_autoHeight_6szcl_19`,listbox:`_listbox_6szcl_20`,option:`_option_6szcl_22`,check:`_check_6szcl_26`,empty:`_empty_6szcl_27`},W=z();function Et({children:e,reduceMotion:t}){let n=(0,H.useRef)(null),[r,a]=(0,H.useState)(`auto`);return(0,H.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(()=>a(e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,W.jsx)(M.div,{className:U.autoHeight,initial:!1,animate:{height:r},transition:t?{duration:0}:i.spring.smooth,children:(0,W.jsx)(`div`,{ref:n,children:e})})}var Dt=(0,H.forwardRef)(function({label:e,options:t,value:n,defaultValue:r=``,onValueChange:a,description:o,placeholder:s=`Search or select…`,emptyMessage:c=`No matches found`,id:l,className:u,disabled:d,onFocus:f,...p},m){let h=(0,H.useId)(),g=l??h,_=`${g}-listbox`,v=o?`${g}-description`:void 0,y=(0,H.useRef)(null),b=(0,H.useRef)(null),x=(0,H.useRef)({}),S=ue(),[C,w]=(0,H.useState)(r),[T,O]=(0,H.useState)(!1),[k,j]=(0,H.useState)(``),[P,F]=(0,H.useState)(-1),I=n??C,L=t.find(e=>e.value===I);(0,H.useImperativeHandle)(m,()=>b.current);let R=(0,H.useRef)(I);(0,H.useEffect)(()=>{if(R.current===I)return;R.current=I;let e=b.current;if(!e||S||I&&T)return;let t=I?E(e,{opacity:[0,1],y:[`0.35em`,`0em`],filter:[`blur(${i.blur.soft}px)`,`blur(0px)`]},{duration:i.duration.standard,ease:[...i.ease.enter]}):E(e,{opacity:[0,1]},{duration:i.duration.fast,ease:[...i.ease.enter]});return()=>t.complete()},[I,S,T]);let z=(0,H.useMemo)(()=>{let e=k.trim().toLocaleLowerCase();return e?t.filter(t=>[t.label,...t.keywords??[]].some(t=>t.toLocaleLowerCase().includes(e))):t},[t,k]),B=z.reduce((e,t,n)=>(t.disabled||e.push(n),e),[]);(0,H.useEffect)(()=>{if(!T)return;let e=P>=0?z[P]:void 0,t=e?x.current[e.value]:null,n=t?.parentElement;if(t&&n){let e=t.offsetTop,r=e+t.offsetHeight;e<n.scrollTop?n.scrollTop=e:r>n.scrollTop+n.clientHeight&&(n.scrollTop=r-n.clientHeight)}},[P,z,T]),(0,H.useEffect)(()=>{let e=e=>{y.current&&!y.current.contains(e.target)&&(O(!1),j(``))};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let ee=e=>{e.disabled||(w(e.value),a?.(e.value),j(``),O(!1),b.current?.focus())},V=e=>{e.preventDefault(),w(``),a?.(``),j(``),O(!0),b.current?.focus()},te=()=>{d||(O(!0),j(``),F(-1))},ne=e=>{if(!d){if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),!T){te();return}if(!B.length)return;let t=B.indexOf(P),n=e.key===`ArrowDown`?(t+1)%B.length:(t-1+B.length)%B.length;F(B[n]);return}if(e.key===`Enter`&&T&&P>=0){e.preventDefault();let t=z[P];t&&ee(t);return}if(e.key===`Escape`&&T){e.preventDefault(),O(!1),j(``);return}}},re=T?k:L?.label??``,ie=P>=0?z[P]:void 0;return(0,W.jsxs)(`div`,{ref:y,className:U.field,children:[(0,W.jsx)(`label`,{htmlFor:g,children:e}),(0,W.jsxs)(`div`,{className:[U.control,T?U.open:``,d?U.disabled:``,u??``].filter(Boolean).join(` `),children:[(0,W.jsx)(le,{className:U.searchIcon,size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,W.jsx)(`input`,{...p,ref:b,id:g,type:`text`,role:`combobox`,value:re,placeholder:L?.label??s,disabled:d,"aria-describedby":v,"aria-expanded":T,"aria-controls":T?_:void 0,"aria-autocomplete":`list`,"aria-activedescendant":T&&ie?`${g}-option-${ie.value}`:void 0,onFocus:e=>{f?.(e),te()},onClick:te,onChange:e=>{j(e.target.value),O(!0),F(-1)},onKeyDown:ne}),(0,W.jsx)(fe,{initial:!1,children:L&&!d&&(0,W.jsx)(M.button,{type:`button`,className:U.clear,"aria-label":`Clear selection`,onMouseDown:e=>e.preventDefault(),onClick:V,initial:S?{opacity:0}:{opacity:0,scale:.6,filter:`blur(${i.blur.subtle}px)`},animate:{opacity:1,scale:1,filter:`blur(0px)`,transition:S?{duration:i.duration.instant}:{...i.spring.snappy,opacity:{duration:i.duration.fast}}},exit:{opacity:0,...S?{}:{scale:.6,filter:`blur(${i.blur.subtle}px)`},transition:{duration:i.duration.instant,ease:[...i.ease.standard]}},whileTap:{scale:S?1:.96,transition:{duration:i.duration.instant,ease:[...i.ease.standard]}},children:(0,W.jsx)(A,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})}),(0,W.jsx)(N,{className:U.chevron,size:16,strokeWidth:1.75,"aria-hidden":`true`})]}),o&&(0,W.jsx)(`span`,{id:v,className:U.hint,children:o}),(0,W.jsx)(fe,{initial:!1,children:T&&(0,W.jsx)(M.div,{className:U.popover,initial:S?{opacity:0}:{opacity:0,y:-6,scale:.97},animate:{opacity:1,y:0,scale:1,transition:S?{duration:i.duration.instant}:{...i.spring.snappy,opacity:{duration:i.duration.fast,ease:[...i.ease.enter]}}},exit:{opacity:0,...S?{}:{y:-4,scale:.98},transition:{duration:i.duration.instant,ease:[...i.ease.standard]}},role:`presentation`,children:(0,W.jsx)(Et,{reduceMotion:S,children:(0,W.jsx)(`div`,{id:_,className:U.listbox,role:`listbox`,"aria-label":`${e} options`,children:z.length?z.map((e,t)=>(0,W.jsxs)(`div`,{ref:t=>{x.current[e.value]=t},id:`${g}-option-${e.value}`,className:U.option,"data-active":t===P?`true`:void 0,"data-disabled":e.disabled?`true`:void 0,role:`option`,"aria-selected":e.value===I,"aria-disabled":e.disabled||void 0,onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>!e.disabled&&F(t),onClick:()=>ee(e),children:[(0,W.jsx)(`span`,{children:e.label}),e.value===I&&(0,W.jsx)(D,{className:U.check,size:16,strokeWidth:1.75,"aria-hidden":`true`})]},e.value)):(0,W.jsx)(M.div,{className:U.empty,role:`status`,initial:!S&&{opacity:0,y:4,filter:`blur(${i.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},transition:{duration:i.duration.standard,ease:[...i.ease.enter]},children:c})})})})})]})});Dt.displayName=`Combobox`;var Ot=Object.defineProperty,kt=(e,t)=>Ot(e,`name`,{value:t,configurable:!0});function G(e){let t=H.useRef(e);return H.useEffect(()=>{t.current=e}),H.useMemo(()=>((...e)=>t.current?.(...e)),[])}kt(G,`useCallbackRef`);var At=Object.defineProperty,K=(e,t)=>At(e,`name`,{value:t,configurable:!0}),jt=`dismissableLayer.update`,Mt=`dismissableLayer.pointerDownOutside`,Nt=`dismissableLayer.focusOutside`,Pt,Ft=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),It=H.forwardRef(K(function(t,n){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=t,d=H.useContext(Ft),[f,p]=H.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=H.useState({}),_=v(n,p),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?y.indexOf(b):-1,S=f?y.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=H.useRef(!1),E=zt(e=>{o?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:H.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return w&&!t},[d.branches,w])}),D=Bt(e=>{if(i&&T.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},m),O=f?S===y.length-1:!1,k=G(e=>{e.key===`Escape`&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return H.useEffect(()=>{if(O)return m.addEventListener(`keydown`,k,{capture:!0}),()=>m.removeEventListener(`keydown`,k,{capture:!0})},[m,O,k]),H.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Pt=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Vt(),()=>{r&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Pt))}},[f,m,r,d]),H.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Vt())},[f,d]),H.useEffect(()=>{let e=K(()=>h({}),`handleUpdate`);return document.addEventListener(jt,e),()=>document.removeEventListener(jt,e)},[]),(0,W.jsx)(e.div,{...u,ref:_,style:{pointerEvents:C?w?`auto`:`none`:void 0,...t.style},onFocusCapture:g(t.onFocusCapture,D.onFocusCapture),onBlurCapture:g(t.onBlurCapture,D.onBlurCapture),onPointerDownCapture:g(t.onPointerDownCapture,E.onPointerDownCapture)})},`DismissableLayer`));function Lt(){let e=H.useContext(Ft),[t,n]=H.useState(null);return H.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}K(Lt,`useDismissableLayerSurface`);var Rt=K(()=>!0,`IS_TRUE`);function zt(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Rt}=t,s=G(e),c=H.useRef(!1),l=H.useRef(!1),u=H.useRef(new Map),d=H.useRef(()=>{});return H.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}K(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}K(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}K(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}K(p,`handleInteractionBubble`);let m=K(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Ht(Mt,s,p,{discrete:!0})};if(K(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:K(()=>c.current=!0,`onPointerDownCapture`)}}K(zt,`usePointerDownOutside`);function Bt(e,t=globalThis?.document){let n=G(e),r=H.useRef(!1);return H.useEffect(()=>{let e=K(e=>{e.target&&!r.current&&Ht(Nt,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:K(()=>r.current=!0,`onFocusCapture`),onBlurCapture:K(()=>r.current=!1,`onBlurCapture`)}}K(Bt,`useFocusOutside`);function Vt(){let e=new CustomEvent(jt);document.dispatchEvent(e)}K(Vt,`dispatchUpdate`);function Ht(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?L(i,a):i.dispatchEvent(a)}K(Ht,`handleAndDispatchCustomEvent`);var Ut=Object.defineProperty,q=(e,t)=>Ut(e,`name`,{value:t,configurable:!0}),Wt=`focusScope.autoFocusOnMount`,Gt=`focusScope.autoFocusOnUnmount`,Kt={bubbles:!1,cancelable:!0},qt=H.forwardRef(q(function(t,n){let{loop:r=!1,trapped:i=!1,branches:a,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=t,[l,u]=H.useState(null),d=G(o),f=G(s),p=H.useRef(null),m=v(n,u),h=H.useRef(a);H.useEffect(()=>{h.current=a});let g=H.useCallback(e=>e?l?.contains(e)?!0:!!h.current?.some(t=>t.contains(e)):!1,[l]),_=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(i){let e=function(e){if(_.paused||!l)return;let t=e.target;g(t)?p.current=t:an(p.current,{select:!0})},t=function(e){if(_.paused||!l)return;let t=e.relatedTarget;t!==null&&(g(t)||an(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&an(l)};q(e,`handleFocusIn`),q(t,`handleFocusOut`),q(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,l,_.paused,g]),H.useEffect(()=>{if(l){on.add(_);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(Wt,Kt);l.addEventListener(Wt,d),l.dispatchEvent(t),t.defaultPrevented||(Qt(ln(en(l)),{select:!0}),document.activeElement===e&&an(l))}return()=>{l.removeEventListener(Wt,d),setTimeout(()=>{let t=new CustomEvent(Gt,Kt);l.addEventListener(Gt,f),l.dispatchEvent(t),t.defaultPrevented||an(e??document.body,{select:!0}),l.removeEventListener(Gt,f),on.remove(_)},0)}}},[l,d,f,_]);let y=H.useCallback(e=>{if(!r&&!i||_.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=$t(t);i&&a?!e.shiftKey&&n===a?(e.preventDefault(),r&&an(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&an(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,_.paused]);return(0,W.jsx)(e.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})},`FocusScope`)),Jt=H.createContext(null);function Yt({registry:e,children:t}){return e?(0,W.jsx)(Jt.Provider,{value:e,children:t}):t}q(Yt,`FocusScopeBranchProvider`);function Xt(){let[e,t]=H.useState([]);return{nodes:e,registry:H.useMemo(()=>({add:q(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:q(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}q(Xt,`useFocusScopeBranchRegistry`);function Zt(e){let t=H.useContext(Jt);H.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}q(Zt,`useFocusScopeBranch`);function Qt(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(an(r,{select:t}),document.activeElement!==n)return}q(Qt,`focusFirst`);function $t(e){let t=en(e);return[tn(t,e),tn(t.reverse(),e)]}q($t,`getTabbableEdges`);function en(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:q(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},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}q(en,`getTabbableCandidates`);function tn(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):nn(r,{upTo:t})))return r}q(tn,`findVisible`);function nn(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}q(nn,`isHidden`);function rn(e){return e instanceof HTMLInputElement&&`select`in e}q(rn,`isSelectableInput`);function an(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rn(e)&&t&&e.select()}}q(an,`focus`);var on=sn();function sn(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=cn(e,t),e.unshift(t)},remove(t){e=cn(e,t),e[0]?.resume()}}}q(sn,`createFocusScopesStack`);function cn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}q(cn,`arrayRemove`);function ln(e){return e.filter(e=>e.tagName!==`A`)}q(ln,`removeLinks`);var un=te(P(),1),dn=Object.defineProperty,fn=H.forwardRef(((e,t)=>dn(e,`name`,{value:t,configurable:!0}))(function(t,n){let{container:r,...i}=t,[a,o]=H.useState(!1);p(()=>o(!0),[]);let s=r||a&&globalThis?.document?.body;return s?un.createPortal((0,W.jsx)(e.div,{...i,ref:n}),s):null},`Portal`)),pn=Object.defineProperty,mn=(e,t)=>pn(e,`name`,{value:t,configurable:!0}),hn=0,gn=null;function _n(e){return vn(),e.children}mn(_n,`FocusGuards`);function vn(){H.useEffect(()=>{gn||={start:yn(),end:yn()};let{start:e,end:t}=gn;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),hn++,()=>{hn===1&&(gn?.start.remove(),gn?.end.remove(),gn=null),hn=Math.max(0,hn-1)}},[])}mn(vn,`useFocusGuards`);function yn(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}mn(yn,`createFocusGuard`);var bn=function(){return bn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bn.apply(this,arguments)};function xn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Sn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Cn=`right-scroll-bar-position`,wn=`width-before-scroll-bar`,Tn=`with-scroll-bars-hidden`,En=`--removed-body-scroll-bar-size`;function Dn(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function On(e,t){var n=(0,H.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var kn=typeof window<`u`?H.useLayoutEffect:H.useEffect,An=new WeakMap;function jn(e,t){var n=On(t||null,function(t){return e.forEach(function(e){return Dn(e,t)})});return kn(function(){var t=An.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Dn(e,null)}),i.forEach(function(e){r.has(e)||Dn(e,a)})}An.set(n,e)},[e]),n}function Mn(e){return e}function Nn(e,t){t===void 0&&(t=Mn);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Pn(e){e===void 0&&(e={});var t=Nn(null);return t.options=bn({async:!0,ssr:!1},e),t}var Fn=function(e){var t=e.sideCar,n=xn(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return H.createElement(r,bn({},n))};Fn.isSideCarExport=!0;function In(e,t){return e.useMedium(t),Fn}var Ln=Pn(),Rn=function(){},zn=H.forwardRef(function(e,t){var n=H.useRef(null),r=H.useState({onScrollCapture:Rn,onWheelCapture:Rn,onTouchMoveCapture:Rn}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=xn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=jn([n,t]),C=bn(bn({},b),i);return H.createElement(H.Fragment,null,u&&H.createElement(x,{sideCar:Ln,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?H.cloneElement(H.Children.only(s),bn(bn({},C),{ref:S})):H.createElement(v,bn({},C,{className:c,ref:S}),s))});zn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zn.classNames={fullWidth:wn,zeroRight:Cn};var Bn=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Vn(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Bn();return t&&e.setAttribute(`nonce`,t),e}function Hn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Un(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Wn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Vn())&&(Hn(t,n),Un(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gn=function(){var e=Wn();return function(t,n){H.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Kn=function(){var e=Gn();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},qn={left:0,top:0,right:0,gap:0},Jn=function(e){return parseInt(e||``,10)||0},Yn=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Jn(n),Jn(r),Jn(i)]},Xn=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return qn;var t=Yn(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Zn=Kn(),Qn=`data-scroll-locked`,$n=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
+ .${Tn} {
3
+ overflow: hidden ${r};
4
+ padding-right: ${s}px ${r};
5
+ }
6
+ body[${Qn}] {
7
+ overflow: hidden ${r};
8
+ overscroll-behavior: contain;
9
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
10
+ padding-left: ${i}px;
11
+ padding-top: ${a}px;
12
+ padding-right: ${o}px;
13
+ margin-left:0;
14
+ margin-top:0;
15
+ margin-right: ${s}px ${r};
16
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17
+ }
18
+
19
+ .${Cn} {
20
+ right: ${s}px ${r};
21
+ }
22
+
23
+ .${wn} {
24
+ margin-right: ${s}px ${r};
25
+ }
26
+
27
+ .${Cn} .${Cn} {
28
+ right: 0 ${r};
29
+ }
30
+
31
+ .${wn} .${wn} {
32
+ margin-right: 0 ${r};
33
+ }
34
+
35
+ body[${Qn}] {
36
+ ${En}: ${s}px;
37
+ }
38
+ `},er=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},tr=function(){H.useEffect(function(){return document.body.setAttribute(Qn,(er()+1).toString()),function(){var e=er()-1;e<=0?document.body.removeAttribute(Qn):document.body.setAttribute(Qn,e.toString())}},[])},nr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;tr();var a=H.useMemo(function(){return Xn(i)},[i]);return H.createElement(Zn,{styles:$n(a,!t,i,n?``:`!important`)})},rr=!1;if(typeof window<`u`)try{var ir=Object.defineProperty({},"passive",{get:function(){return rr=!0,!0}});window.addEventListener(`test`,ir,ir),window.removeEventListener(`test`,ir,ir)}catch{rr=!1}var ar=rr?{passive:!1}:!1,or=function(e){return e.tagName===`TEXTAREA`},sr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!or(e)&&n[t]===`visible`)},cr=function(e){return sr(e,`overflowY`)},lr=function(e){return sr(e,`overflowX`)},ur=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),pr(e,r)){var i=mr(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dr=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},fr=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},pr=function(e,t){return e===`v`?cr(t):lr(t)},mr=function(e,t){return e===`v`?dr(t):fr(t)},hr=function(e,t){return e===`h`&&t===`rtl`?-1:1},gr=function(e,t,n,r,i){var a=hr(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=mr(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&pr(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},_r=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vr=function(e){return[e.deltaX,e.deltaY]},yr=function(e){return e&&`current`in e?e.current:e},br=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xr=function(e){return`
39
+ .block-interactivity-${e} {pointer-events: none;}
40
+ .allow-interactivity-${e} {pointer-events: all;}
41
+ `},Sr=0,Cr=[];function wr(e){var t=H.useRef([]),n=H.useRef([0,0]),r=H.useRef(),i=H.useState(Sr++)[0],a=H.useState(Kn)[0],o=H.useRef(e);H.useEffect(function(){o.current=e},[e]),H.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Sn([e.lockRef.current],(e.shards||[]).map(yr),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=H.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=_r(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ur(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ur(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return gr(h,t,e,h===`h`?s:c,!0)},[]),c=H.useCallback(function(e){var n=e;if(Cr.length&&Cr[Cr.length-1]===a){var r=`deltaY`in n?vr(n):_r(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&br(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(yr).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=H.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Tr(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=H.useCallback(function(e){n.current=_r(e),r.current=void 0},[]),d=H.useCallback(function(t){l(t.type,vr(t),t.target,s(t,e.lockRef.current))},[]),f=H.useCallback(function(t){l(t.type,_r(t),t.target,s(t,e.lockRef.current))},[]);H.useEffect(function(){return Cr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ar),document.addEventListener(`touchmove`,c,ar),document.addEventListener(`touchstart`,u,ar),function(){Cr=Cr.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ar),document.removeEventListener(`touchmove`,c,ar),document.removeEventListener(`touchstart`,u,ar)}},[]);var p=e.removeScrollBar,m=e.inert;return H.createElement(H.Fragment,null,m?H.createElement(a,{styles:xr(i)}):null,p?H.createElement(nr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Tr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Er=In(Ln,wr),Dr=H.forwardRef(function(e,t){return H.createElement(zn,bn({},e,{ref:t,sideCar:Er}))});Dr.classNames=zn.classNames;var Or=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},kr=new WeakMap,Ar=new WeakMap,jr={},Mr=0,Nr=function(e){return e&&(e.host||Nr(e.parentNode))},Pr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Nr(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})},Fr=function(e,t,n,r){var i=Pr(t,Array.isArray(e)?e:[e]);jr[n]||(jr[n]=new WeakMap);var a=jr[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=(kr.get(e)||0)+1,l=(a.get(e)||0)+1;kr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ar.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(),Mr++,function(){o.forEach(function(e){var t=kr.get(e)-1,i=a.get(e)-1;kr.set(e,t),a.set(e,i),t||(Ar.has(e)||e.removeAttribute(r),Ar.delete(e)),i||e.removeAttribute(n)}),Mr--,Mr||(kr=new WeakMap,kr=new WeakMap,Ar=new WeakMap,jr={})}},Ir=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Or(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Fr(r,i,n,`aria-hidden`)):function(){return null}},Lr=Object.defineProperty,J=(e,t)=>Lr(e,`name`,{value:t,configurable:!0}),Rr=`Dialog`,[zr,Br]=he(Rr),[Vr,Hr]=zr(Rr),Ur=J(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=H.useRef(null),c=H.useRef(null),{nodes:l,registry:u}=Xt(),[d,p]=f({prop:r,defaultProp:i??!1,onChange:a,caller:Rr}),[m,g]=H.useState(0),[_,v]=H.useState(0);return(0,W.jsx)(Vr,{scope:t,triggerRef:s,contentRef:c,contentId:h(),titleId:h(),descriptionId:h(),titlePresent:m>0,descriptionPresent:_>0,setTitleCount:g,setDescriptionCount:v,open:d,onOpenChange:p,onOpenToggle:H.useCallback(()=>p(e=>!e),[p]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),Wr=`DialogTrigger`,Gr=H.forwardRef(J(function(t,n){let{__scopeDialog:r,...i}=t,a=Hr(Wr,r),o=v(n,a.triggerRef);return(0,W.jsx)(e.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":ui(a.open),...i,ref:o,onClick:g(t.onClick,a.onOpenToggle)})},`DialogTrigger`)),Kr=`DialogPortal`,[qr,Jr]=zr(Kr,{forceMount:void 0}),Yr=J(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Hr(Kr,t);return(0,W.jsx)(qr,{scope:t,forceMount:n,children:H.Children.map(r,e=>(0,W.jsx)(R,{present:n||a.open,children:(0,W.jsx)(fn,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Xr=`DialogOverlay`,Zr=H.forwardRef(J(function(e,t){let n=Jr(Xr,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Hr(Xr,e.__scopeDialog);return a.modal?(0,W.jsx)(R,{present:r||a.open,children:(0,W.jsx)($r,{...i,ref:t})}):null},`DialogOverlay`)),Qr=c(`DialogOverlay.RemoveScroll`),$r=H.forwardRef(J(function(t,n){let{__scopeDialog:r,...i}=t,a=Hr(Xr,r),o=Lt(),s=v(n,o);return(0,W.jsx)(Dr,{as:Qr,allowPinchZoom:!0,shards:H.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,W.jsx)(e.div,{"data-state":ui(a.open),...i,ref:s,style:{pointerEvents:`auto`,...i.style}})})},`DialogOverlayImpl`)),ei=`DialogContent`,ti=H.forwardRef(J(function(e,t){let n=Jr(ei,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Hr(ei,e.__scopeDialog);return(0,W.jsx)(R,{present:r||a.open,children:a.modal?(0,W.jsx)(ni,{...i,ref:t}):(0,W.jsx)(ri,{...i,ref:t})})},`DialogContent`)),ni=H.forwardRef(J(function(e,t){let n=Hr(ei,e.__scopeDialog),r=H.useRef(null),i=v(t,n.contentRef,r);return H.useEffect(()=>{let e=r.current;if(e)return Ir(e)},[]),(0,W.jsx)(ii,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:g(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:g(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:g(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),ri=H.forwardRef(J(function(e,t){let n=Hr(ei,e.__scopeDialog),r=H.useRef(!1),i=H.useRef(!1);return(0,W.jsx)(ii,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),ii=H.forwardRef(J(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Hr(ei,n);return vn(),(0,W.jsx)(Yt,{registry:l.branchRegistry,children:(0,W.jsx)(qt,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,W.jsx)(It,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?li(o,l.descriptionId):o,"data-state":ui(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),ai=H.forwardRef(J(function(t,n){let{__scopeDialog:r,...i}=t,a=Hr(`DialogTitle`,r),{setTitleCount:o}=a;return p(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,W.jsx)(e.h2,{id:a.titleId,...i,ref:n})},`DialogTitle`)),oi=H.forwardRef(J(function(t,n){let{__scopeDialog:r,...i}=t,a=Hr(`DialogDescription`,r),{setDescriptionCount:o}=a;return p(()=>(o(e=>e+1),()=>o(e=>e-1)),[o]),(0,W.jsx)(e.p,{id:a.descriptionId,...i,ref:n})},`DialogDescription`)),si=`DialogClose`,ci=H.forwardRef(J(function(t,n){let{__scopeDialog:r,...i}=t,a=Hr(si,r);return(0,W.jsx)(e.button,{type:`button`,...i,ref:n,onClick:g(t.onClick,()=>a.onOpenChange(!1))})},`DialogClose`));function li(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}J(li,`concatAriaDescribedby`);function ui(e){return e?`open`:`closed`}J(ui,`getState`);var di={overlay:`_overlay_1vyy5_1`,content:`_content_1vyy5_5`,keyframes:`_keyframes_1vyy5_9`,"overlay-in":`_overlay-in_1vyy5_1`,"overlay-out":`_overlay-out_1vyy5_1`,"content-fade-in":`_content-fade-in_1vyy5_1`,"content-rise-in":`_content-rise-in_1vyy5_1`,"content-out":`_content-out_1vyy5_1`,header:`_header_1vyy5_16`,title:`_title_1vyy5_17`,description:`_description_1vyy5_18`,swap:`_swap_1vyy5_20`,close:`_close_1vyy5_24`,body:`_body_1vyy5_27`,"content-fade-out":`_content-fade-out_1vyy5_1`},fi=(0,H.createContext)(null);function pi({open:e,defaultOpen:t=!1,onOpenChange:n,...r}){let[i,a]=(0,H.useState)(t),o=e??i,s=(0,H.useCallback)(t=>{e===void 0&&a(t),n?.(t)},[e,n]);return(0,W.jsx)(fi.Provider,{value:o,children:(0,W.jsx)(Ur,{...r,open:o,onOpenChange:s})})}var mi={duration:i.duration.instant},hi={duration:i.duration.fast,ease:[...i.ease.standard]};function gi({text:e}){let t=ue();return(0,W.jsx)(fe,{mode:`popLayout`,initial:!1,children:(0,W.jsx)(M.span,{className:di.swap,initial:!t&&{opacity:0,y:`0.3em`,filter:`blur(${i.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.3em`,filter:`blur(${i.blur.subtle}px)`,transition:{duration:i.duration.fast,ease:[...i.ease.standard]}},transition:{duration:i.duration.standard,ease:[...i.ease.enter]},children:e},e)})}function _i({title:e,description:t,children:n,className:r,onPointerDownOutside:a,...o}){let s=(0,H.useContext)(fi),c=ue(),l=(0,H.useRef)({open:s,at:0});(0,H.useLayoutEffect)(()=>{l.current={open:s,at:performance.now()}},[s]);let u=e=>{a?.(e),s!==null&&(!l.current.open||e.detail.originalEvent.timeStamp<l.current.at)&&e.preventDefault()},d=[di.content,r].filter(Boolean).join(` `),f=(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`div`,{className:di.header,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(ai,{className:di.title,children:(0,W.jsx)(gi,{text:e})}),t?(0,W.jsx)(oi,{className:di.description,children:(0,W.jsx)(gi,{text:t})}):null]}),(0,W.jsx)(ci,{className:di.close,"aria-label":`Close dialog`,children:(0,W.jsx)(A,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,W.jsx)(`div`,{className:di.body,children:n})]});return s===null?(0,W.jsxs)(Yr,{children:[(0,W.jsx)(Zr,{className:`${di.overlay} ${di.keyframes}`}),(0,W.jsx)(ti,{...o,onPointerDownOutside:u,className:`${d} ${di.keyframes}`,children:f})]}):(0,W.jsx)(fe,{children:s&&(0,W.jsxs)(Yr,{forceMount:!0,children:[(0,W.jsx)(Zr,{asChild:!0,forceMount:!0,children:(0,W.jsx)(M.div,{className:di.overlay,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:c?mi:hi},transition:c?mi:{duration:i.duration.standard,ease:[...i.ease.enter]}})}),(0,W.jsx)(ti,{...o,onPointerDownOutside:u,asChild:!0,forceMount:!0,children:(0,W.jsx)(M.div,{className:d,initial:c?{opacity:0}:{opacity:0,y:8,scale:.96},animate:{opacity:1,y:0,scale:1},exit:c?{opacity:0,transition:mi}:{opacity:0,y:4,scale:.98,transition:hi},transition:c?mi:{default:i.spring.smooth,opacity:{duration:i.duration.fast,ease:[...i.ease.enter]}},children:f})})]},`dialog`)})}var vi=[`top`,`right`,`bottom`,`left`],yi=Math.min,bi=Math.max,xi=Math.round,Si=Math.floor,Ci=e=>({x:e,y:e}),wi={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ti(e,t,n){return bi(e,yi(t,n))}function Ei(e,t){return typeof e==`function`?e(t):e}function Di(e){return e.split(`-`)[0]}function Oi(e){return e.split(`-`)[1]}function ki(e){return e===`x`?`y`:`x`}function Ai(e){return e===`y`?`height`:`width`}function ji(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Mi(e){return ki(ji(e))}function Ni(e,t,n){n===void 0&&(n=!1);let r=Oi(e),i=Mi(e),a=Ai(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Hi(o)),[o,Hi(o)]}function Pi(e){let t=Hi(e);return[Fi(e),t,Fi(t)]}function Fi(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ii=[`left`,`right`],Li=[`right`,`left`],Ri=[`top`,`bottom`],zi=[`bottom`,`top`];function Bi(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Li:Ii:t?Ii:Li;case`left`:case`right`:return t?Ri:zi;default:return[]}}function Vi(e,t,n,r){let i=Oi(e),a=Bi(Di(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Fi)))),a}function Hi(e){let t=Di(e);return wi[t]+e.slice(t.length)}function Ui(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Wi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ui(e)}function Gi(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 Ki(e,t,n){let{reference:r,floating:i}=e,a=ji(t),o=Mi(t),s=Ai(o),c=Di(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}}let m=Oi(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function qi(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}=Ei(t,e),p=Wi(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Gi(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=Gi(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 Ji=50,Yi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:qi},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ki(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ji&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ki(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Xi=e=>({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}=Ei(e,t)||{};if(l==null)return{};let d=Wi(u),f={x:n,y:r},p=Mi(i),m=Ai(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=yi(d[_],T),D=yi(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Ti(E,k,O),j=!c.arrow&&Oi(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Zi=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ei(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Di(r),_=ji(o),v=Di(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Hi(o)]:Pi(o)),x=p!==`none`;!d&&x&&b.push(...Vi(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ni(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===ji(t)||T.every(e=>ji(e.placement)!==_||e.overflows[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=ji(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}if(r!==n)return{reset:{placement:n}}}return{}}}};function Qi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $i(e){return vi.some(t=>e[t]>=0)}var ea=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ei(e,t);switch(i){case`referenceHidden`:{let e=Qi(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$i(e)}}}case`escaped`:{let e=Qi(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:$i(e)}}}default:return{}}}}},ta=new Set([`left`,`top`]);async function na(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Di(n),s=Oi(n),c=ji(n)===`y`,l=ta.has(o)?-1:1,u=a&&c?-1:1,d=Ei(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 ra=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 na(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}}}}},ia=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}=Ei(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=ji(i),p=ki(f),m=u[p],h=u[f],g=(e,t)=>Ti(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},aa=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}=Ei(e,t),u={x:n,y:r},d=ji(i),f=ki(d),p=u[f],m=u[d],h=Ei(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};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;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ta.has(Di(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);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},oa=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Ei(e,t),c=await i.detectOverflow(t,s),l=Di(n),u=Oi(n),d=ji(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=yi(p-c[m],g),y=yi(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*bi(c.left,c.right):S=p-2*bi(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function sa(){return typeof window<`u`}function ca(e){return ua(e)?(e.nodeName||``).toLowerCase():`#document`}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function la(e){return((ua(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ua(e){return sa()?e instanceof Node||e instanceof Y(e).Node:!1}function da(e){return sa()?e instanceof Element||e instanceof Y(e).Element:!1}function fa(e){return sa()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function pa(e){return!sa()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function ma(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ha(e){return/^(table|td|th)$/.test(ca(e))}function ga(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var _a=/transform|translate|scale|rotate|perspective|filter/,va=/paint|layout|strict|content/,ya=e=>!!e&&e!==`none`,ba;function xa(e){let t=da(e)?Ta(e):e;return ya(t.transform)||ya(t.translate)||ya(t.scale)||ya(t.rotate)||ya(t.perspective)||!Ca()&&(ya(t.backdropFilter)||ya(t.filter))||_a.test(t.willChange||``)||va.test(t.contain||``)}function Sa(e){let t=Da(e);for(;fa(t)&&!wa(t);){if(xa(t))return t;if(ga(t))return null;t=Da(t)}return null}function Ca(){return ba??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ba}function wa(e){return/^(html|body|#document)$/.test(ca(e))}function Ta(e){return Y(e).getComputedStyle(e)}function Ea(e){return da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Da(e){if(ca(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||pa(e)&&e.host||la(e);return pa(t)?t.host:t}function Oa(e){let t=Da(e);return wa(t)?(e.ownerDocument||e).body:fa(t)&&ma(t)?t:Oa(t)}function ka(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Oa(e),i=r===e.ownerDocument?.body,a=Y(r);if(i){let e=Aa(a);return t.concat(a,a.visualViewport||[],ma(r)?r:[],e&&n?ka(e):[])}return t.concat(r,ka(r,[],n))}function Aa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ja(e){let t=Ta(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=fa(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=xi(n)!==a||xi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ma(e){return da(e)?e:e.contextElement}function Na(e){let t=Ma(e);if(!fa(t))return Ci(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ja(t),o=(a?xi(n.width):n.width)/r,s=(a?xi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Pa=Ci(0);function Fa(e){let t=Y(e);return!Ca()||!t.visualViewport?Pa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ia(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function La(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ma(e),o=Ci(1);t&&(r?da(r)&&(o=Na(r)):o=Na(e));let s=Ia(a,n,r)?Fa(a):Ci(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&&r){let e=Y(a),t=da(r)?Y(r):r,n=e,i=Aa(n);for(;i&&t!==n;){let e=Na(i),t=i.getBoundingClientRect(),r=Ta(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=Y(i),i=Aa(n)}}return Gi({width:u,height:d,x:c,y:l})}function Ra(e,t){let n=Ea(e).scrollLeft;return t?t.left+n:La(la(e)).left+n}function za(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ra(e,n),y:n.top+t.scrollTop}}function Ba(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=la(r),s=t?ga(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ci(1),u=Ci(0),d=fa(r);if((d||!a)&&((ca(r)!==`body`||ma(o))&&(c=Ea(r)),d)){let e=La(r);l=Na(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?za(o,c):Ci(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 Va(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ha(e){let t=Ea(e),n=e.ownerDocument.body,r=bi(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=bi(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ra(e),o=-t.scrollTop;return Ta(n).direction===`rtl`&&(a+=bi(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ua=25;function Wa(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Y(e),a=la(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Ca()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ra(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ua&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Ga(e,t){let n=La(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Na(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ka(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Wa(e,n,t);else if(t===`document`)r=Ha(la(e));else if(da(t))r=Ga(t,n);else{let n=Fa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Gi(r)}function qa(e,t){let n=t.get(e);if(n)return n;let r=ka(e,[],!1).filter(e=>da(e)&&ca(e)!==`body`),i=null,a=Ta(e).position===`fixed`,o=a?Da(e):e;for(;da(o)&&!wa(o);){let e=Ta(o),t=xa(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Da(o)}return t.set(e,r),r}function Ja(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ga(t)?[]:qa(t,this._c):[].concat(n),r],o=Ka(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ka(t,a[e],i);s=bi(n.top,s),c=yi(n.right,c),l=yi(n.bottom,l),u=bi(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ya(e){let{width:t,height:n}=ja(e);return{width:t,height:n}}function Xa(e,t,n){let r=fa(t),i=la(t),a=n===`fixed`,o=La(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ci(0);if((r||!a)&&((ca(t)!==`body`||ma(i))&&(s=Ea(t)),r)){let e=La(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ra(i));let l=i&&!r&&!a?za(i,s):Ci(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Za(e){return Ta(e).position===`static`}function Qa(e,t){if(!fa(e)||Ta(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return la(e)===n&&(n=n.ownerDocument.body),n}function $a(e,t){let n=Y(e);if(ga(e))return n;if(!fa(e)){let t=Da(e);for(;t&&!wa(t);){if(da(t)&&!Za(t))return t;t=Da(t)}return n}let r=Qa(e,t);for(;r&&ha(r)&&Za(r);)r=Qa(r,t);return r&&wa(r)&&Za(r)&&!xa(r)?n:r||Sa(e)||n}var eo=async function(e){let t=this.getOffsetParent||$a,n=this.getDimensions,r=await n(e.floating);return{reference:Xa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function to(e){return Ta(e).direction===`rtl`}var no={convertOffsetParentRelativeRectToViewportRelativeRect:Ba,getDocumentElement:la,getClippingRect:Ja,getOffsetParent:$a,getElementRects:eo,getClientRects:Va,getDimensions:Ya,getScale:Na,isElement:da,isRTL:to};function ro(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function io(e,t,n){let r=null,i,a=la(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Si(d),h=Si(a.clientWidth-(u+f)),g=Si(a.clientHeight-(d+p)),_=Si(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:bi(0,yi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ro(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Y(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ao(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ma(e),u=i||a?[...l?ka(l):[],...t?ka(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?io(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?La(e):null;c&&g();function g(){let t=La(e);h&&!ro(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var oo=ra,so=ia,co=Zi,lo=oa,uo=ea,fo=Xi,po=aa,mo=(e,t,n)=>{let r=new Map,i=n??{},a={...no,...i.platform,_c:r};return Yi(e,t,{...i,platform:a})},ho=typeof document<`u`?H.useLayoutEffect:function(){};function go(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!go(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!go(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function _o(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vo(e,t){let n=_o(e);return Math.round(t*n)/n}function yo(e){let t=H.useRef(e);return ho(()=>{t.current=e}),t}function bo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);go(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=yo(c),D=yo(i),O=yo(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),mo(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!go(w.current,t)&&(w.current=t,un.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);ho(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);ho(()=>(A.current=!0,()=>{A.current=!1}),[]),ho(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),N=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=vo(M.floating,u.x),r=vo(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,..._o(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var xo=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:fo({element:r.current,padding:i}).fn(n):r?fo({element:r,padding:i}).fn(n):{}}}},So=(e,t)=>{let n=oo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Co=(e,t)=>{let n=so(e);return{name:n.name,fn:n.fn,options:[e,t]}},wo=(e,t)=>({fn:po(e).fn,options:[e,t]}),To=(e,t)=>{let n=co(e);return{name:n.name,fn:n.fn,options:[e,t]}},Eo=(e,t)=>{let n=lo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Do=(e,t)=>{let n=uo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oo=(e,t)=>{let n=xo(e);return{name:n.name,fn:n.fn,options:[e,t]}},ko=Object.defineProperty,Ao=(e,t)=>ko(e,`name`,{value:t,configurable:!0}),jo={Partial:`partial`,Always:`always`},Mo={Optimized:`optimized`,Always:`always`},No=`Popper`,[Po,Fo]=he(No),[Io,Lo]=Po(No),Ro=Ao(e=>{let{__scopePopper:t,children:n}=e,[r,i]=H.useState(null),[a,o]=H.useState(void 0);return(0,W.jsx)(Io,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),zo=`PopperAnchor`,Bo=H.forwardRef(Ao(function(t,n){let{__scopePopper:r,virtualRef:i,...a}=t,o=Lo(zo,r),s=H.useRef(null),c=o.onAnchorChange,l=H.useCallback(e=>{s.current=e,e&&c(e)},[c]),u=v(n,l),d=H.useRef(null);H.useEffect(()=>{if(!i)return;let e=d.current;d.current=i.current,e!==d.current&&c(d.current)});let f=o.placementState&&qo(o.placementState),p=f?.[0],m=f?.[1];return i?null:(0,W.jsx)(e.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...a,ref:u})},`PopperAnchor`)),Vo=`PopperContent`,[Ho,Uo]=Po(Vo),Wo=H.forwardRef(Ao(function(t,r){let{__scopePopper:i,side:a=`bottom`,sideOffset:o=0,align:s=`center`,alignOffset:c=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m=jo.Partial,hideWhenDetached:h=!1,updatePositionStrategy:g=Mo.Optimized,onPlaced:_,...y}=t,b=Lo(Vo,i),[x,S]=H.useState(null),C=v(r,S),[w,T]=H.useState(null),E=n(w),D=E?.width??0,O=E?.height??0,k=a+(s===`center`?``:`-`+s),A=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(d)?d:[d],M=j.length>0,N={padding:A,boundary:j.filter(Go),altBoundary:M},{refs:P,floatingStyles:F,placement:I,isPositioned:L,middlewareData:R}=bo({strategy:`fixed`,placement:k,whileElementsMounted:Ao((...e)=>ao(...e,{animationFrame:g===Mo.Always}),`whileElementsMounted`),elements:{reference:b.anchor},middleware:[So({mainAxis:o+O,alignmentAxis:c}),u&&Co({mainAxis:!0,crossAxis:!1,limiter:m===jo.Partial?wo():void 0,...N}),u&&To({...N}),Eo({...N,apply:Ao(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),w&&Oo({element:w,padding:l}),Ko({arrowWidth:D,arrowHeight:O}),h&&Do({strategy:`referenceHidden`,...N,boundary:M?N.boundary:void 0})]}),z=b.setPlacementState;p(()=>(z(I),()=>{z(void 0)}),[I,z]);let[B,ee]=qo(I),V=G(_);p(()=>{L&&V?.()},[L,V]);let te=R.arrow?.x,ne=R.arrow?.y,re=R.arrow?.centerOffset!==0,[ie,ae]=H.useState();return p(()=>{x&&ae(window.getComputedStyle(x).zIndex)},[x]),(0,W.jsx)(`div`,{ref:P.setFloating,"data-radix-popper-content-wrapper":``,style:{...F,transform:L?F.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ie,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(` `),...R.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:t.dir,children:(0,W.jsx)(Ho,{scope:i,placedSide:B,placedAlign:ee,onArrowChange:T,arrowX:te,arrowY:ne,shouldHideArrow:re,children:(0,W.jsx)(e.div,{"data-side":B,"data-align":ee,...y,ref:C,style:{...y.style,animation:L?y.style?.animation:`none`}})})})},`PopperContent`));function Go(e){return e!==null}Ao(Go,`isNotNull`);var Ko=Ao(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=qo(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function qo(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Ao(qo,`getSideAndAlignFromPlacement`);var Jo=Object.defineProperty,Yo=(e,t)=>Jo(e,`name`,{value:t,configurable:!0}),Xo=!1;function Zo(){let[e,t]=H.useState(Xo);return H.useEffect(()=>{Xo||(Xo=!0,t(!0))},[]),e}Yo(Zo,`useIsHydrated`);var Qo=H.useSyncExternalStore;function $o(){return()=>{}}Yo($o,`subscribe`);function es(){return Qo($o,()=>!0,()=>!1)}Yo(es,`useIsHydratedModern`);var ts=typeof Qo==`function`?es:Zo,ns=Object.defineProperty,rs=(e,t)=>ns(e,`name`,{value:t,configurable:!0}),is=`rovingFocusGroup.onEntryFocus`,as={bubbles:!1,cancelable:!0},os=`RovingFocusGroup`,[ss,cs,ls]=a(os),[us,ds]=he(os,[ls]),fs={Vertical:`vertical`,Horizontal:`horizontal`},ps={LTR:`ltr`,RTL:`rtl`},[ms,hs]=us(os),gs=H.forwardRef(rs(function(e,t){return(0,W.jsx)(ss.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,W.jsx)(ss.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,W.jsx)(_s,{...e,ref:t})})})},`RovingFocusGroup`)),_s=H.forwardRef(rs(function(t,n){let{__scopeRovingFocusGroup:i,orientation:a,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...m}=t,h=H.useRef(null),_=v(n,h),y=r(s),[b,x]=f({prop:c,defaultProp:l??null,onChange:u,caller:os}),[S,C]=H.useState(!1),w=G(d),T=cs(i),E=H.useRef(!1),[D,O]=H.useState(0);return H.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(is,w),()=>e.removeEventListener(is,w)},[w]),(0,W.jsx)(ms,{scope:i,orientation:a,dir:y,loop:o,currentTabStopId:b,onItemFocus:H.useCallback(e=>x(e),[x]),onItemShiftTab:H.useCallback(()=>C(!0),[]),onFocusableItemAdd:H.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:H.useCallback(()=>O(e=>e-1),[]),children:(0,W.jsx)(e.div,{tabIndex:S||D===0?-1:0,"data-orientation":a,...m,ref:_,style:{outline:`none`,...t.style},onMouseDown:g(t.onMouseDown,()=>{E.current=!0}),onFocus:g(t.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(is,as);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable);Cs([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),p)}}E.current=!1}),onBlur:g(t.onBlur,()=>C(!1))})})},`RovingFocusGroupImpl`)),vs=`RovingFocusGroupItem`,ys=H.forwardRef(rs(function(t,n){let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...c}=t,l=h(),u=o||l,d=hs(vs,r),f=d.currentTabStopId===u,m=cs(r),{onFocusableItemAdd:_,onFocusableItemRemove:v,currentTabStopId:y}=d,b=ts();return p(()=>{if(b&&i)return _(),()=>v()},[b,i,_,v]),H.useEffect(()=>{if(!b&&i)return _(),()=>v()},[b,i,_,v]),(0,W.jsx)(ss.ItemSlot,{scope:r,id:u,focusable:i,active:a,children:(0,W.jsx)(e.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:n,onMouseDown:g(t.onMouseDown,e=>{i?d.onItemFocus(u):e.preventDefault()}),onFocus:g(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:g(t.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Ss(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?ws(n,r+1):n.slice(r+1)}setTimeout(()=>Cs(n))}}),children:typeof s==`function`?s({isCurrentTabStop:f,hasTabStop:y!=null}):s})})},`RovingFocusGroupItem`)),bs={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function xs(e,t){return t===ps.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}rs(xs,`getDirectionAwareKey`);function Ss(e,t,n){let r=xs(e.key,n);if(!(t===fs.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===fs.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return bs[r]}rs(Ss,`getFocusIntent`);function Cs(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}rs(Cs,`focusFirst`);function ws(e,t){return e.map((n,r)=>e[(t+r)%e.length])}rs(ws,`wrapArray`);var Ts=Object.defineProperty,X=(e,t)=>Ts(e,`name`,{value:t,configurable:!0}),Es=[`Enter`,` `],Ds=[`ArrowDown`,`PageUp`,`Home`],Os=[`ArrowUp`,`PageDown`,`End`],ks=[...Ds,...Os];[...Es],[...Es];var As=`Menu`,[js,Ms,Ns]=a(As),[Ps,Fs]=he(As,[Ns,Fo,ds]),Is=Fo(),Ls=ds(),[Rs,zs]=Ps(As),[Bs,Vs]=Ps(As),Hs=X(e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=e,c=Is(t),[l,u]=H.useState(null),d=H.useRef(!1),f=G(o),p=r(a);return H.useEffect(()=>{let e=X(()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=X(()=>d.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),H.useEffect(()=>{if(!n)return;let e=X(()=>f(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,f]),(0,W.jsx)(Ro,{...c,children:(0,W.jsx)(Rs,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,W.jsx)(Bs,{scope:t,onClose:H.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:i})})})},`Menu`),Us=H.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e,i=Is(n);return(0,W.jsx)(Bo,{...i,...r,ref:t})},`MenuAnchor`)),Ws=`MenuPortal`,[Gs,Ks]=Ps(Ws,{forceMount:void 0}),qs=X(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=zs(Ws,t);return(0,W.jsx)(Gs,{scope:t,forceMount:n,children:(0,W.jsx)(R,{present:n||a.open,children:(0,W.jsx)(fn,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Js=`MenuContent`,[Ys,Xs]=Ps(Js),Zs=H.forwardRef(X(function(e,t){let n=Ks(Js,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=zs(Js,e.__scopeMenu),o=Vs(Js,e.__scopeMenu);return(0,W.jsx)(js.Provider,{scope:e.__scopeMenu,children:(0,W.jsx)(R,{present:r||a.open,children:(0,W.jsx)(js.Slot,{scope:e.__scopeMenu,children:o.modal?(0,W.jsx)(Qs,{...i,ref:t}):(0,W.jsx)($s,{...i,ref:t})})})})},`MenuContent`)),Qs=H.forwardRef(X(function(e,t){let n=zs(Js,e.__scopeMenu),r=H.useRef(null),i=v(t,r);return H.useEffect(()=>{let e=r.current;if(e)return Ir(e)},[]),(0,W.jsx)(tc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:g(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),$s=H.forwardRef(X(function(e,t){let n=zs(Js,e.__scopeMenu);return(0,W.jsx)(tc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),ec=c(`MenuContent.ScrollLock`),tc=H.forwardRef(X(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,_=zs(Js,n),y=Vs(Js,n),b=Is(n),x=Ls(n),S=Ms(n),[C,w]=H.useState(null),T=H.useRef(null),[E,D]=H.useState(null);Zt(E);let{nodes:O,registry:k}=Xt(),A=!!(i||m),j=v(t,T,_.onContentChange,D),M=H.useRef(0),N=H.useRef(``),P=H.useRef(0),F=H.useRef(null),I=H.useRef(`right`),L=H.useRef(0),R=H.useMemo(()=>m?[T,...O.map(e=>({current:e}))]:[],[T,O,m]),z=m?Dr:H.Fragment,B=m?{as:ec,allowPinchZoom:!0,shards:R}:void 0,ee=X(e=>{let t=N.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=xc(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;X((function e(t){N.current=t,window.clearTimeout(M.current),t!==``&&(M.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);H.useEffect(()=>()=>window.clearTimeout(M.current),[]),vn();let V=H.useCallback(e=>I.current===F.current?.side&&Cc(e,F.current?.area),[]);return(0,W.jsx)(Ys,{scope:n,searchRef:N,onItemEnter:H.useCallback(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:H.useCallback(e=>{V(e)||(T.current?.focus(),w(null))},[V]),onTriggerLeave:H.useCallback(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:P,onPointerGraceIntentChange:H.useCallback(e=>{F.current=e},[]),children:(0,W.jsx)(Yt,{registry:A?k:null,children:(0,W.jsx)(z,{...B,children:(0,W.jsx)(qt,{asChild:!0,trapped:i,branches:O,onMountAutoFocus:g(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,W.jsx)(It,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,W.jsx)(gs,{asChild:!0,...x,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:g(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,W.jsx)(Wo,{role:`menu`,"aria-orientation":`vertical`,"data-state":gc(_.open),"data-radix-menu-content":``,dir:y.dir,...b,...h,ref:j,style:{outline:`none`,...h.style},onKeyDown:g(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ee(e.key));let i=T.current;if(e.target!==i||!ks.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);Os.includes(e.key)&&a.reverse(),yc(a)}),onBlur:g(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),N.current=``)}),onPointerMove:g(e.onPointerMove,wc(e=>{let t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>L.current?`right`:`left`;I.current=t,L.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),nc=`MenuItem`,rc=`menu.itemSelect`,ic=H.forwardRef(X(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=H.useRef(null),o=Vs(nc,e.__scopeMenu),s=Xs(nc,e.__scopeMenu),c=v(t,a),l=H.useRef(!1),u=X(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(rc,{bubbles:!0,cancelable:!0});e.addEventListener(rc,e=>r?.(e),{once:!0}),L(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,W.jsx)(ac,{...i,ref:c,disabled:n,onClick:g(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:g(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:g(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&Es.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),ac=H.forwardRef(X(function(t,n){let{__scopeMenu:r,disabled:i=!1,textValue:a,...o}=t,s=Xs(nc,r),c=Ls(r),l=H.useRef(null),u=v(n,l),[d,f]=H.useState(!1),[p,m]=H.useState(``);return H.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[o.children]),(0,W.jsx)(js.ItemSlot,{scope:r,disabled:i,textValue:a??p,children:(0,W.jsx)(ys,{asChild:!0,...c,focusable:!i,children:(0,W.jsx)(e.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...o,ref:u,onPointerMove:g(t.onPointerMove,wc(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:g(t.onPointerLeave,wc(e=>s.onItemLeave(e))),onFocus:g(t.onFocus,()=>f(!0)),onBlur:g(t.onBlur,()=>f(!1))})})})},`MenuItemImpl`)),oc=H.forwardRef(X(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,W.jsx)(uc,{scope:e.__scopeMenu,checked:n,children:(0,W.jsx)(ic,{role:`menuitemcheckbox`,"aria-checked":_c(n)?`mixed`:n,...i,ref:t,"data-state":vc(n),onSelect:g(i.onSelect,()=>r?.(_c(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[sc,cc]=Ps(`MenuRadioGroup`,{value:void 0,onValueChange:X(()=>{},`onValueChange`)}),lc=`MenuItemIndicator`,[uc,dc]=Ps(lc,{checked:!1}),fc=H.forwardRef(X(function(t,n){let{__scopeMenu:r,forceMount:i,...a}=t,o=dc(lc,r);return(0,W.jsx)(R,{present:i||_c(o.checked)||o.checked===!0,children:(0,W.jsx)(e.span,{...a,ref:n,"data-state":vc(o.checked)})})},`MenuItemIndicator`)),pc=H.forwardRef(X(function(t,n){let{__scopeMenu:r,...i}=t;return(0,W.jsx)(e.div,{role:`separator`,"aria-orientation":`horizontal`,...i,ref:n})},`MenuSeparator`)),[mc,hc]=Ps(`MenuSub`);function gc(e){return e?`open`:`closed`}X(gc,`getOpenState`);function _c(e){return e===`indeterminate`}X(_c,`isIndeterminate`);function vc(e){return _c(e)?`indeterminate`:e?`checked`:`unchecked`}X(vc,`getCheckedState`);function yc(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}X(yc,`focusFirst`);function bc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}X(bc,`wrapArray`);function xc(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=bc(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}X(xc,`getNextMatch`);function Sc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}X(Sc,`isPointInPolygon`);function Cc(e,t){return t?Sc({x:e.clientX,y:e.clientY},t):!1}X(Cc,`isPointerInGraceArea`);function wc(e){return t=>t.pointerType===`mouse`?e(t):void 0}X(wc,`whenMouse`);var Tc=Object.defineProperty,Ec=(e,t)=>Tc(e,`name`,{value:t,configurable:!0}),Dc=`DropdownMenu`,[Oc,kc]=he(Dc,[Fs]),Ac=Fs(),[jc,Mc]=Oc(Dc),Nc=Ec(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=Ac(t),l=H.useRef(null),[u,d]=f({prop:i,defaultProp:a??!1,onChange:o,caller:Dc});return(0,W.jsx)(jc,{scope:t,triggerId:h(),triggerRef:l,contentId:h(),open:u,onOpenChange:d,onOpenToggle:H.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,W.jsx)(Hs,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),Pc=`DropdownMenuTrigger`,Fc=H.forwardRef(Ec(function(t,n){let{__scopeDropdownMenu:r,disabled:i=!1,...a}=t,o=Mc(Pc,r),s=Ac(r),c=v(n,o.triggerRef);return(0,W.jsx)(Us,{asChild:!0,...s,children:(0,W.jsx)(e.button,{type:`button`,id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?`open`:`closed`,"data-disabled":i?``:void 0,disabled:i,...a,ref:c,onPointerDown:g(t.onPointerDown,e=>{!i&&e.button===0&&e.ctrlKey===!1&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:g(t.onKeyDown,e=>{i||([`Enter`,` `].includes(e.key)&&o.onOpenToggle(),e.key===`ArrowDown`&&o.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Ic=Ec(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Ac(t);return(0,W.jsx)(qs,{...r,...n})},`DropdownMenuPortal`),Lc=`DropdownMenuContent`,Rc=H.forwardRef(Ec(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Mc(Lc,n),a=Ac(n),o=H.useRef(!1);return(0,W.jsx)(Zs,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:g(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:g(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),zc=H.forwardRef(Ec(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ac(n);return(0,W.jsx)(ic,{...i,...r,ref:t})},`DropdownMenuItem`)),Bc=H.forwardRef(Ec(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ac(n);return(0,W.jsx)(oc,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),Vc=H.forwardRef(Ec(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ac(n);return(0,W.jsx)(fc,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),Hc=H.forwardRef(Ec(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Ac(n);return(0,W.jsx)(pc,{...i,...r,ref:t})},`DropdownMenuSeparator`)),Z={trigger:`_trigger_26wmo_1`,item:`_item_26wmo_7`,triggerIcon:`_triggerIcon_26wmo_8`,triggerIconOnly:`_triggerIconOnly_26wmo_10`,label:`_label_26wmo_11`,labelMeasure:`_labelMeasure_26wmo_12`,labelText:`_labelText_26wmo_13`,chevron:`_chevron_26wmo_14`,menu:`_menu_26wmo_18`,"menu-exit":`_menu-exit_26wmo_1`,highlight:`_highlight_26wmo_28`,icon:`_icon_26wmo_31`,separator:`_separator_26wmo_32`,destructive:`_destructive_26wmo_33`};function Uc({text:e}){let t=ue(),n=(0,H.useRef)(null),r=(0,H.useRef)(null),[a,o]=(0,H.useState)({width:`auto`,animate:!1});return(0,H.useLayoutEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(([t])=>{let n=e.textContent,i=r.current!==null&&r.current!==n;r.current=n,o({width:Math.ceil(t.borderBoxSize?.[0]?.inlineSize??e.offsetWidth),animate:i})});return t.observe(e),()=>t.disconnect()},[]),(0,W.jsxs)(M.span,{className:Z.label,initial:!1,animate:{width:a.width},transition:a.animate&&!t?i.spring.morph:{duration:0},children:[(0,W.jsx)(`span`,{ref:n,className:Z.labelMeasure,"aria-hidden":`true`,children:e}),(0,W.jsx)(fe,{mode:`popLayout`,initial:!1,children:(0,W.jsx)(M.span,{className:Z.labelText,initial:!t&&{opacity:0,y:`0.3em`,filter:`blur(${i.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.3em`,filter:`blur(${i.blur.subtle}px)`,transition:{duration:i.duration.fast,ease:[...i.ease.standard]}},transition:{duration:i.duration.standard,ease:[...i.ease.enter]},children:e},e)})]})}function Wc({label:e,items:t,icon:n,iconOnly:r}){let a=ue(),[o,s]=(0,H.useState)(null),c=(0,H.useRef)(!1),l=(0,H.useRef)(0);(0,H.useEffect)(()=>()=>window.clearTimeout(l.current),[]);function u(e){let t=e.target instanceof HTMLElement?e.target.closest(`[role="menuitem"]`):null;if(window.clearTimeout(l.current),!t){l.current=window.setTimeout(()=>s(null),c.current?70:0);return}let n={top:t.offsetTop,height:t.offsetHeight,danger:t.dataset.tone===`danger`},r=c.current;s(e=>({...n,glide:r&&e!==null}))}return(0,W.jsxs)(Nc,{onOpenChange:e=>{e&&(window.clearTimeout(l.current),s(null))},children:[(0,W.jsxs)(Fc,{className:[Z.trigger,r?Z.triggerIconOnly:``].filter(Boolean).join(` `),type:`button`,"aria-label":r?e:void 0,children:[n&&(0,W.jsx)(`span`,{className:Z.triggerIcon,"aria-hidden":`true`,children:n}),!r&&(0,W.jsx)(Uc,{text:e}),!r&&(0,W.jsx)(N,{className:Z.chevron,size:15,strokeWidth:1.8,"aria-hidden":`true`})]}),(0,W.jsx)(Ic,{children:(0,W.jsxs)(Rc,{className:Z.menu,sideOffset:6,align:`end`,collisionPadding:12,loop:!0,onFocus:u,onPointerMoveCapture:()=>{c.current=!0},onKeyDownCapture:()=>{c.current=!1},children:[(0,W.jsx)(M.span,{className:Z.highlight,"data-tone":o?.danger?`danger`:void 0,"aria-hidden":`true`,initial:!1,animate:o?{y:o.top,height:o.height,opacity:1}:{opacity:0},transition:{default:o?.glide&&!a?i.spring.snappy:{duration:0},opacity:{duration:a?0:.08}}}),t.map((e,t)=>(0,W.jsxs)(H.Fragment,{children:[e.separatorBefore&&(0,W.jsx)(Hc,{className:Z.separator}),(0,W.jsxs)(zc,{className:[Z.item,e.destructive?Z.destructive:``].filter(Boolean).join(` `),"data-tone":e.destructive?`danger`:void 0,style:{"--i":t},disabled:e.disabled,onSelect:e.onSelect,children:[e.icon&&(0,W.jsx)(`span`,{className:Z.icon,"aria-hidden":`true`,children:e.icon}),e.label]})]},e.label))]})})]})}var Gc=Object.defineProperty,Kc=(e,t)=>Gc(e,`name`,{value:t,configurable:!0});function qc(e,[t,n]){return Math.min(n,Math.max(t,e))}Kc(qc,`clamp`);var Jc=Object.defineProperty,Yc=(e,t)=>Jc(e,`name`,{value:t,configurable:!0});function Xc(e){let t=H.useRef({value:e,previous:e});return H.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Yc(Xc,`usePrevious`);var Zc=Object.defineProperty,Qc=(e,t)=>Zc(e,`name`,{value:t,configurable:!0}),$c=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),el=H.forwardRef(Qc(function(t,n){return(0,W.jsx)(e.span,{...t,ref:n,style:{...$c,...t.style}})},`VisuallyHidden`)),tl=Object.defineProperty,Q=(e,t)=>tl(e,`name`,{value:t,configurable:!0}),nl={ItemAligned:`item-aligned`,Popper:`popper`},rl={LTR:`ltr`,RTL:`rtl`},il=[` `,`Enter`,`ArrowUp`,`ArrowDown`],al=[` `,`Enter`],ol=`Select`,[sl,cl,ll]=a(ol),[ul,dl]=he(ol,[ll,Fo]),fl=Fo(),[pl,ml]=ul(ol),[hl,gl]=ul(ol);function _l(e){let{__scopeSelect:t,children:n,open:i,defaultOpen:a,onOpenChange:o,value:s,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:m,required:g,form:_,internal_do_not_use_render:v}=e,y=fl(t),[b,x]=H.useState(null),[S,C]=H.useState(null),[w,T]=H.useState(!1),E=r(u),[D,O]=f({prop:i,defaultProp:a??!1,onChange:o,caller:ol}),[k,A]=f({prop:s,defaultProp:c,onChange:l,caller:ol}),j=H.useRef(null),M=H.useRef(k);H.useEffect(()=>{let e=_?b?.ownerDocument.getElementById(_):b?.form;if(e instanceof HTMLFormElement){let t=Q(()=>A(M.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[_,b,A]);let N=!b||!!_||!!b.closest(`form`),[P,F]=H.useState(new Set),I=h(),L=Array.from(P).map(e=>e.props.value).join(`;`),R=H.useCallback(e=>{F(t=>new Set(t).add(e))},[]),z=H.useCallback(e=>{F(t=>{let n=new Set(t);return n.delete(e),n})},[]),B={required:g,trigger:b,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:I,value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:m,name:d,autoComplete:p,form:_,nativeOptions:P,nativeSelectKey:L,isFormControl:N};return(0,W.jsx)(Ro,{...y,children:(0,W.jsx)(pl,{scope:t,...B,children:(0,W.jsx)(sl.Provider,{scope:t,children:(0,W.jsx)(hl,{scope:t,onNativeOptionAdd:R,onNativeOptionRemove:z,children:iu(v)?v(B):n})})})})}Q(_l,`SelectProvider`);var vl=Q(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,W.jsx)(_l,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,W.jsxs)(W.Fragment,{children:[n,e?(0,W.jsx)(ru,{__scopeSelect:t}):null]})})},`Select`),yl=`SelectTrigger`,bl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,disabled:i=!1,...a}=t,o=fl(r),s=ml(yl,r),c=s.disabled||i,l=v(n,s.onTriggerChange),u=cl(r),d=H.useRef(`touch`),[f,p,m]=ou(e=>{let t=u().filter(e=>!e.disabled),n=su(t,e,t.find(e=>e.value===s.value));n!==void 0&&s.onValueChange(n.value)}),h=Q(e=>{c||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,W.jsx)(Bo,{asChild:!0,...o,children:(0,W.jsx)(e.button,{type:`button`,role:`combobox`,"aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":`none`,dir:s.dir,"data-state":s.open?`open`:`closed`,disabled:c,"data-disabled":c?``:void 0,"data-placeholder":au(s.value)?``:void 0,...a,ref:l,onClick:g(a.onClick,e=>{e.currentTarget.focus(),d.current!==`mouse`&&h(e)}),onPointerDown:g(a.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:g(a.onKeyDown,e=>{let t=f.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&p(e.key),!(t&&e.key===` `)&&il.includes(e.key)&&(h(),e.preventDefault())})})})},`SelectTrigger`)),xl=`SelectValue`,Sl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,className:i,style:a,children:o,placeholder:s=``,...c}=t,l=ml(xl,r),{onValueNodeHasChildrenChange:u}=l,d=o!==void 0,f=v(n,l.onValueNodeChange);p(()=>{u(d)},[u,d]);let m=au(l.value);return(0,W.jsx)(e.span,{...c,asChild:!m&&c.asChild,ref:f,style:{pointerEvents:`none`},children:(0,W.jsx)(H.Fragment,{children:m?s:o},m?`placeholder`:`value`)})},`SelectValue`)),Cl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,children:i,...a}=t;return(0,W.jsx)(e.span,{"aria-hidden":!0,...a,ref:n,children:i||`▼`})},`SelectIcon`)),[wl,Tl]=ul(`SelectPortal`,{forceMount:void 0}),El=Q(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,W.jsx)(wl,{scope:e.__scopeSelect,forceMount:n,children:(0,W.jsx)(fn,{asChild:!0,...r})})},`SelectPortal`),Dl=`SelectContent`,Ol=H.forwardRef(Q(function(e,t){let n=Tl(Dl,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=ml(Dl,e.__scopeSelect),[o,s]=H.useState();return p(()=>{s(new DocumentFragment)},[]),(0,W.jsx)(R,{present:r||a.open,children:({present:e})=>e?(0,W.jsx)(Pl,{...i,ref:t}):(0,W.jsx)(kl,{...i,fragment:o})})},`SelectContent`)),kl=H.forwardRef(Q(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?un.createPortal((0,W.jsx)(jl,{scope:n,children:(0,W.jsx)(sl.Slot,{scope:n,children:(0,W.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Al=10,[jl,Ml]=ul(Dl),Nl=c(`SelectContent.RemoveScroll`),Pl=H.forwardRef(Q(function(e,t){let{__scopeSelect:n}=e,{position:r=nl.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:_,...y}=e,b=ml(Dl,n),[x,S]=H.useState(null),[C,w]=H.useState(null),T=v(t,S),[E,D]=H.useState(null),[O,k]=H.useState(null),A=cl(n),[j,M]=H.useState(!1),N=H.useRef(!1);H.useEffect(()=>{if(x)return Ir(x)},[x]),vn();let P=H.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==i))return},[A,C]),F=H.useCallback(()=>P([E,x]),[P,E,x]);H.useEffect(()=>{j&&F()},[j,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=b;H.useEffect(()=>{if(x){let e={x:0,y:0},t=Q(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=Q(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(x)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[x,I,L]),H.useEffect(()=>{let e=Q(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[R,z]=ou(e=>{let t=A().filter(e=>!e.disabled),n=su(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),B=H.useCallback((e,t,n)=>{let r=!N.current&&!n;(b.value!==void 0&&b.value===t||r)&&(D(e),r&&(N.current=!0))},[b.value]),ee=H.useCallback(()=>x?.focus(),[x]),V=H.useCallback((e,t,n)=>{let r=!N.current&&!n;(b.value!==void 0&&b.value===t||r)&&k(e)},[b.value]),te=r===nl.Popper?Il:Fl,ne=te===Il?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:_}:{};return(0,W.jsx)(jl,{scope:n,content:x,viewport:C,onViewportChange:w,itemRefCallback:B,selectedItem:E,onItemLeave:ee,itemTextRefCallback:V,focusSelectedItem:F,selectedItemText:O,position:r,isPositioned:j,searchRef:R,children:(0,W.jsx)(Dr,{as:Nl,allowPinchZoom:!0,children:(0,W.jsx)(qt,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:g(i,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,W.jsx)(It,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,W.jsx)(te,{role:`listbox`,id:b.contentId,"data-state":b.open?`open`:`closed`,dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...ne,onPlaced:()=>M(!0),ref:T,style:{display:`flex`,flexDirection:`column`,outline:`none`,...y.style},onKeyDown:g(y.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&z(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Fl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,onPlaced:i,...a}=t,o=ml(Dl,r),s=Ml(Dl,r),[c,l]=H.useState(null),[u,d]=H.useState(null),f=v(n,d),m=cl(r),h=H.useRef(!1),g=H.useRef(!0),{viewport:_,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=s,S=H.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&u&&_&&y&&b){let e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if(o.dir!==rl.RTL){let i=r.left-t.left,a=n.left-i,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Al,d=qc(a,[Al,Math.max(Al,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let i=t.right-r.right,a=window.innerWidth-n.right-i,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Al,d=qc(a,[Al,Math.max(Al,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let a=m(),s=window.innerHeight-Al*2,l=_.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),v=parseInt(d.paddingBottom,10),x=f+p+l+v+g,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Al,D=s-E,O=y.offsetHeight/2,k=y.offsetTop+O,A=f+p+k,j=x-A;if(A<=E){let e=a.length>0&&y===a[a.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);c.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;c.style.top=`0px`;let t=Math.max(E,f+_.offsetTop+(e?w:0)+O)+j;c.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}c.style.margin=`${Al}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,i?.(),requestAnimationFrame(()=>h.current=!0)}},[m,o.trigger,o.valueNode,c,u,_,y,b,o.dir,i]);p(()=>S(),[S]);let[C,w]=H.useState();p(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);let T=H.useCallback(e=>{e&&g.current===!0&&(S(),x?.(),g.current=!1)},[S,x]);return(0,W.jsx)(Ll,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:T,children:(0,W.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,W.jsx)(e.div,{...a,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})},`SelectItemAlignedPosition`)),Il=H.forwardRef(Q(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Al,...a}=e,o=fl(n);return(0,W.jsx)(Wo,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Ll,Rl]=ul(Dl,{}),zl=`SelectViewport`,Bl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,nonce:i,...a}=t,o=Ml(zl,r),s=Rl(zl,r),c=v(n,o.onViewportChange),l=H.useRef(0);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,W.jsx)(sl.Slot,{scope:r,children:(0,W.jsx)(e.div,{"data-radix-select-viewport":``,role:`presentation`,...a,ref:c,style:{position:`relative`,flex:1,overflow:`hidden auto`,...a.style},onScroll:g(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(l.current-t.scrollTop);if(e>0){let r=window.innerHeight-Al*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}l.current=t.scrollTop})})})]})},`SelectViewport`)),[Vl,Hl]=ul(`SelectGroup`),Ul=`SelectItem`,[Wl,Gl]=ul(Ul),Kl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,value:i,disabled:a=!1,textValue:o,...s}=t,c=ml(Ul,r),l=Ml(Ul,r),u=c.value===i,[d,f]=H.useState(o??``),[p,m]=H.useState(!1),_=G(e=>l.itemRefCallback?.(e,i,a)),y=v(n,_),b=h(),x=H.useRef(`touch`),S=Q(()=>{c.onValueChange(i),c.onOpenChange(!1)},`handleSelect`);return(0,W.jsx)(Wl,{scope:r,value:i,disabled:a,textId:b,isSelected:u,onItemTextChange:H.useCallback(e=>{f(t=>t||(e?.textContent??``).trim())},[]),children:(0,W.jsx)(sl.ItemSlot,{scope:r,value:i,disabled:a,textValue:d,children:(0,W.jsx)(e.div,{role:`option`,"aria-labelledby":b,"data-highlighted":p?``:void 0,"aria-selected":u&&p,"data-state":u?`checked`:`unchecked`,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,tabIndex:a?void 0:-1,...s,ref:y,onFocus:g(s.onFocus,()=>m(!0)),onBlur:g(s.onBlur,()=>m(!1)),onClick:g(s.onClick,()=>{a||x.current!==`mouse`&&S()}),onPointerUp:g(s.onPointerUp,()=>{a||x.current===`mouse`&&S()}),onPointerDown:g(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:g(s.onPointerMove,e=>{x.current=e.pointerType,a?l.onItemLeave?.():x.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:g(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:g(s.onKeyDown,e=>{a||e.target!==e.currentTarget||(l.searchRef?.current===``||e.key!==` `)&&(al.includes(e.key)&&S(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),ql=`SelectItemText`,Jl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,className:i,style:a,...o}=t,s=ml(ql,r),c=Ml(ql,r),l=Gl(ql,r),u=gl(ql,r),[d,f]=H.useState(null),m=G(e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),h=v(n,f,l.onItemTextChange,m),g=d?.textContent,_=H.useMemo(()=>(0,W.jsx)(`option`,{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=u;return p(()=>(y(_),()=>b(_)),[y,b,_]),(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(e.span,{id:l.textId,...o,ref:h}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!au(s.value)?un.createPortal(o.children,s.valueNode):null]})},`SelectItemText`)),Yl=`SelectItemIndicator`,Xl=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,...i}=t;return Gl(Yl,r).isSelected?(0,W.jsx)(e.span,{"aria-hidden":!0,...i,ref:n}):null},`SelectItemIndicator`)),Zl=`SelectScrollUpButton`,Ql=H.forwardRef(Q(function(e,t){let n=Ml(Zl,e.__scopeSelect),r=Rl(Zl,e.__scopeSelect),[i,a]=H.useState(!1),o=v(t,r.onScrollButtonChange);return p(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,W.jsx)(tu,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),$l=`SelectScrollDownButton`,eu=H.forwardRef(Q(function(e,t){let n=Ml($l,e.__scopeSelect),r=Rl($l,e.__scopeSelect),[i,a]=H.useState(!1),o=v(t,r.onScrollButtonChange);return p(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,W.jsx)(tu,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),tu=H.forwardRef(Q(function(t,n){let{__scopeSelect:r,onAutoScroll:i,...a}=t,o=Ml(`SelectScrollButton`,r),s=H.useRef(null),c=cl(r),l=H.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return H.useEffect(()=>()=>l(),[l]),p(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,W.jsx)(e.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:g(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(i,50))}),onPointerMove:g(a.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(i,50))}),onPointerLeave:g(a.onPointerLeave,()=>{l()})})},`SelectScrollButtonImpl`)),nu=`SelectBubbleInput`,ru=H.forwardRef(Q(function({__scopeSelect:t,...n},r){let i=ml(nu,t),{value:a,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d}=i,{nativeOptions:f,nativeSelectKey:p}=i,m=H.useRef(null),h=v(r,m),g=a??``,_=Xc(g),y=Array.from(f).some(e=>(e.props.value??``)===``);return H.useEffect(()=>{let e=m.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(_!==g&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,g),e.dispatchEvent(t)}},[_,g]),(0,W.jsxs)(e.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>o(e.target.value),...n,style:{...$c,...n.style},ref:h,defaultValue:g,children:[au(a)&&!y?(0,W.jsx)(`option`,{value:``}):null,Array.from(f)]},p)},`SelectBubbleInput`));function iu(e){return typeof e==`function`}Q(iu,`isFunction`);function au(e){return e===``||e===void 0}Q(au,`shouldShowPlaceholder`);function ou(e){let t=G(e),n=H.useRef(``),r=H.useRef(0),i=H.useCallback(e=>{let i=n.current+e;t(i),Q((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=H.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return H.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Q(ou,`useTypeaheadSearch`);function su(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=cu(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Q(su,`findNextItem`);function cu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Q(cu,`wrapArray`);var $={field:`_field_1a9q6_1`,trigger:`_trigger_1a9q6_4`,valueText:`_valueText_1a9q6_9`,srOnly:`_srOnly_1a9q6_12`,chevron:`_chevron_1a9q6_13`,hint:`_hint_1a9q6_15`,content:`_content_1a9q6_18`,"select-in":`_select-in_1a9q6_1`,"select-out":`_select-out_1a9q6_1`,viewport:`_viewport_1a9q6_23`,item:`_item_1a9q6_24`,indicator:`_indicator_1a9q6_27`,"indicator-in":`_indicator-in_1a9q6_1`,scrollButton:`_scrollButton_1a9q6_28`,"select-fade":`_select-fade_1a9q6_1`,"select-fade-out":`_select-fade-out_1a9q6_1`},lu={enter:e=>({opacity:0,y:`${e*.35}em`,filter:`blur(${i.blur.soft}px)`}),center:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:i.duration.standard,ease:[...i.ease.enter]}},exit:e=>({opacity:0,y:`${e*-.3}em`,filter:`blur(${i.blur.subtle}px)`,transition:{duration:i.duration.fast,ease:[...i.ease.standard]}})},uu={enter:{opacity:0},center:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:i.duration.instant}},exit:{opacity:0,transition:{duration:i.duration.instant}}},du=(0,H.forwardRef)(function({label:e,description:t,placeholder:n=`Select an option`,options:r,id:i,className:a,disabled:o,onValueChange:s,...c},l){let u=(0,H.useId)(),d=i??u,f=t?`${d}-description`:void 0,p=ue(),[m,h]=(0,H.useState)(c.defaultValue??``),g=c.value??m,_=r.findIndex(e=>e.value===g),v=g?r[_]?.label??``:n,[y,b]=(0,H.useState)(_),[x,S]=(0,H.useState)(1);return y!==_&&(b(_),S(_>y?1:-1)),(0,W.jsxs)(`div`,{className:$.field,children:[(0,W.jsx)(`label`,{htmlFor:d,children:e}),(0,W.jsxs)(vl,{...c,disabled:o,onValueChange:e=>{h(e),s?.(e)},children:[(0,W.jsxs)(bl,{ref:l,id:d,"aria-describedby":f,className:[$.trigger,a].filter(Boolean).join(` `),children:[(0,W.jsx)(`span`,{className:$.srOnly,children:(0,W.jsx)(Sl,{placeholder:n})}),(0,W.jsx)(`span`,{className:$.valueText,"aria-hidden":`true`,children:(0,W.jsx)(fe,{initial:!1,custom:x,children:(0,W.jsx)(M.span,{"data-placeholder":g?void 0:``,custom:x,variants:p?uu:lu,initial:`enter`,animate:`center`,exit:`exit`,children:v},g?`value-${g}`:`placeholder`)})}),(0,W.jsx)(Cl,{className:$.chevron,children:(0,W.jsx)(N,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,W.jsx)(El,{children:(0,W.jsxs)(Ol,{className:$.content,position:`popper`,sideOffset:4,collisionPadding:12,children:[(0,W.jsx)(Ql,{className:$.scrollButton,children:(0,W.jsx)(xe,{size:16,strokeWidth:1.75,"aria-hidden":`true`})}),(0,W.jsx)(Bl,{className:$.viewport,children:r.map(e=>(0,W.jsxs)(Kl,{value:e.value,disabled:e.disabled,className:$.item,children:[(0,W.jsx)(Jl,{children:e.label}),(0,W.jsx)(Xl,{className:$.indicator,children:(0,W.jsx)(D,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]},e.value))}),(0,W.jsx)(eu,{className:$.scrollButton,children:(0,W.jsx)(N,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]})})]}),t&&(0,W.jsx)(`span`,{id:f,className:$.hint,children:t})]})}),fu={toast:`_toast_c20vg_1`,icon:`_icon_c20vg_16`,frame:`_frame_c20vg_28`,copy:`_copy_c20vg_34`,title:`_title_c20vg_43`,line:`_line_c20vg_52`,description:`_description_c20vg_59`,close:`_close_c20vg_66`},pu=()=>()=>{},mu={duration:i.duration.fast,ease:[...i.ease.standard]},hu={duration:i.duration.standard,ease:[...i.ease.enter]},gu={opacity:0,y:`0.3em`,filter:`blur(${i.blur.soft}px)`},_u={opacity:0,y:`-0.3em`,filter:`blur(${i.blur.subtle}px)`,transition:mu},vu={opacity:1,y:`0em`,filter:`blur(0px)`},yu={opacity:0,transition:{duration:i.duration.instant}},bu={distance:80,velocity:480};function xu(e){let t=x();return(0,W.jsx)(M.span,{...e,"aria-hidden":!t||e[`aria-hidden`]})}function Su({reduce:e,morphKey:t,children:n}){let r=(0,H.useRef)(null),a=(0,H.useRef)(null),o=me(`auto`),s=(0,H.useRef)(0);return(0,H.useLayoutEffect)(()=>{s.current=performance.now()},[t]),(0,H.useEffect)(()=>{let t=a.current;if(!t||typeof ResizeObserver>`u`)return;let n,c,l=()=>{o.jump(`auto`),r.current&&Object.assign(r.current.style,{overflow:``,height:`auto`})},u=new ResizeObserver(([a])=>{let u=a.borderBoxSize?.[0]?.blockSize??t.offsetHeight,d=o.get(),f=typeof d==`number`?d:n;if(n=u,c?.stop(),e||f===void 0||f===u||performance.now()-s.current>120)return l();r.current&&Object.assign(r.current.style,{overflow:`hidden`,height:`${f}px`}),c=E(o,[f,u],{...i.spring.smooth,onComplete:l})});return u.observe(t),()=>{u.disconnect(),c?.stop()}},[o,e]),(0,W.jsx)(M.div,{ref:r,className:fu.frame,style:{height:o},children:(0,W.jsx)(`div`,{ref:a,className:fu.copy,children:n})})}function Cu({title:e,description:t,open:n=!0,onOpenChange:r,duration:a=4500}){let o=ue(),s=(0,H.useSyncExternalStore)(pu,()=>!0,()=>!1),[c]=(0,H.useState)(s),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)(0),[p,m]=(0,H.useState)(n);n!==p&&(m(n),n&&(u(!1),f(0)));let h=n&&!l,g=(0,H.useRef)(null),_=me(0),v=(0,H.useRef)(0);function y(e){f(e),u(!0),r?.(!1)}(0,H.useEffect)(()=>{if(!h||!r||a<=0)return;let e=window.setTimeout(()=>{f(0),u(!0),r(!1)},a);return()=>window.clearTimeout(e)},[h,r,a]);function b(e,t){let n=Math.sign(t.offset.x||t.velocity.x);if(Math.abs(t.offset.x)<bu.distance&&Math.abs(t.velocity.x)<bu.velocity){E(_,0,{...i.spring.snappy,velocity:t.velocity.x});return}v.current=t.velocity.x,y(n*((g.current?.offsetWidth??320)+48))}let x=o?{hidden:{opacity:0},shown:{opacity:1,transition:{duration:i.duration.instant}},exit:yu}:{hidden:{opacity:0,x:0,y:16,scale:.96},shown:{opacity:1,x:0,y:0,scale:1,transition:{...i.spring.morph,opacity:hu}},exit:e=>e?{x:e,opacity:0,transition:{x:{type:`spring`,visualDuration:.3,bounce:0,velocity:v.current,restDelta:2,restSpeed:40},opacity:{duration:i.duration.exit}}}:{opacity:0,y:8,scale:.97,transition:{duration:i.duration.exit,ease:[...i.ease.standard]}}},S={initial:o?{opacity:0}:gu,animate:vu,exit:o?yu:_u,transition:o?{duration:i.duration.instant}:hu};return(0,W.jsx)(fe,{initial:c,custom:d,children:h&&(0,W.jsxs)(M.div,{ref:g,className:fu.toast,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,custom:d,variants:x,initial:`hidden`,animate:`shown`,exit:`exit`,style:{x:_},drag:o&&s?!1:`x`,dragMomentum:!1,onDragEnd:b,children:[(0,W.jsx)(`span`,{className:fu.icon,"aria-hidden":`true`,children:(0,W.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.25,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,W.jsx)(M.path,{d:`M4 12.5l5 5L20 6.5`,initial:!o&&{pathLength:0},animate:{pathLength:1},transition:{duration:i.duration.standard,ease:[...i.ease.enter],delay:.12}})})}),(0,W.jsxs)(Su,{reduce:o,morphKey:`${e}\n${t??``}`,children:[(0,W.jsx)(`strong`,{className:fu.title,children:(0,W.jsx)(fe,{mode:`popLayout`,initial:!1,children:(0,W.jsx)(xu,{className:fu.line,...S,children:e},e)})}),(0,W.jsx)(fe,{mode:`popLayout`,initial:!1,children:t?(0,W.jsx)(xu,{className:fu.description,...S,children:t},t):null})]}),(0,W.jsx)(`button`,{className:fu.close,type:`button`,"aria-label":`Dismiss notification`,onClick:()=>y(0),children:(0,W.jsx)(A,{width:16,height:16,strokeWidth:2,"aria-hidden":`true`})})]},`toast`)})}function wu({open:e,onOpenChange:t,title:n,description:r,children:i,footer:a,width:o=460}){return(0,W.jsx)(pi,{open:e,onOpenChange:t,children:(0,W.jsxs)(_i,{title:n,description:r,style:{width:`min(calc(100vw - 2rem), ${o}px)`},children:[i,a&&(0,W.jsx)(`div`,{className:I(`flex flex-wrap items-center justify-end gap-2`,i!==void 0&&`mt-6`),children:a})]})})}function Tu({label:e,icon:t,items:n,iconOnly:r}){return(0,W.jsx)(Wc,{label:e,icon:t,iconOnly:r,items:n.map(e=>({label:e.label,icon:e.icon,destructive:e.destructive,disabled:e.disabled,separatorBefore:e.separatorBefore,onSelect:e.onSelect}))})}var Eu=`__astra_empty__`,Du=e=>e===``?Eu:e,Ou=e=>e===Eu?``:e,ku=12;function Au({value:e,onChange:t,options:n,placeholder:r,className:i,disabled:a,label:o,ariaLabel:s}){let c=ae(),l=n.find(t=>t.value===e),u=b(o,s??r??l?.label),d=I(`min-w-0`,u.hidden&&`astra-label-hidden`,i);return n.length>ku?(0,W.jsx)(`div`,{className:d,children:(0,W.jsx)(Dt,{label:u.label,description:u.field?.description,placeholder:r??c(`common.search`),emptyMessage:c(`common.noResults`),value:e==null?``:Du(e),onValueChange:e=>t(Ou(e)),options:n.map(e=>({value:Du(e.value),label:e.detail&&e.detail!==e.label?`${e.label} · ${e.detail}`:e.label,disabled:e.disabled,keywords:e.detail?[e.detail]:void 0}))})}):(0,W.jsx)(`div`,{className:d,children:(0,W.jsx)(du,{label:u.label,description:u.field?.description,placeholder:r??c(`common.select`),disabled:a,value:e==null||e===``&&!l?``:Du(e),onValueChange:e=>t(Ou(e)),options:n.map(e=>({value:Du(e.value),label:e.label,disabled:e.disabled}))})})}var ju=(0,H.createContext)(null);function Mu({children:e}){let t=ae(),[n,r]=(0,H.useState)([]),[i,a]=(0,H.useState)(null),o=(0,H.useRef)(0),s=(0,H.useCallback)(e=>r(t=>t.filter(t=>t.id!==e)),[]),c=(0,H.useCallback)((e,t=`info`)=>{let n=++o.current;r(r=>[...r.slice(-2),{id:n,tone:t,text:e}]),t===`error`&&setTimeout(()=>s(n),8e3)},[s]),l=(0,H.useCallback)(e=>new Promise(t=>a({...e,resolve:t})),[]),u=e=>{i?.resolve(e),a(null)};return(0,W.jsxs)(ju.Provider,{value:{toast:c,confirm:l},children:[e,(0,W.jsx)(`div`,{className:`pointer-events-none fixed inset-x-0 bottom-5 z-[95] flex flex-col items-center gap-2 px-4`,children:n.map(e=>e.tone===`error`?(0,W.jsx)(`div`,{className:`pointer-events-auto w-[min(100%,26rem)] selectable`,children:(0,W.jsx)(oe,{tone:`danger`,title:t(`common.error`),onDismiss:()=>s(e.id),children:e.text})},e.id):(0,W.jsx)(`div`,{className:`pointer-events-auto flex w-full justify-center`,children:(0,W.jsx)(Cu,{title:e.text,open:!0,onOpenChange:t=>!t&&s(e.id)})},e.id))}),(0,W.jsx)(wu,{open:i!==null,onOpenChange:e=>!e&&u(!1),title:i?.title??``,description:i?.detail,width:420,footer:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(re,{onClick:()=>u(!1),children:t(`common.cancel`)}),(0,W.jsx)(re,{variant:i?.destructive?`destructive`:`primary`,onClick:()=>u(!0),autoFocus:!0,children:i?.confirmLabel??t(`common.confirm`)})]})})]})}function Nu(){let e=(0,H.useContext)(ju);if(!e)throw Error(`useFeedback outside FeedbackProvider`);return e}function Pu(e){return e instanceof Error?e.message:String(e)}export{He as $,Gr as A,yt as B,Ur as C,Zr as D,oi as E,Ct as F,ut as G,Xe as H,ht as I,lt as J,ft as K,gt as L,It as M,Tt as N,Yr as O,wt as P,et as Q,_t as R,Fo as S,ti as T,Ze as U,tt as V,Qe as W,pt as X,nt as Y,dt as Z,ys as _,Ce as _t,Pu as a,Ge as at,Bo as b,Nc as c,Me as ct,zc as d,Pe as dt,Ue as et,Vc as f,Ie as ft,gs as g,we as gt,Fc as h,Te as ht,wu as i,Le as it,fn as j,ai as k,Bc as l,Oe as lt,Hc as m,Fe as mt,Tu as n,qe as nt,Nu as o,We as ot,Ic as p,je as pt,ct as q,Au as r,Je as rt,el as s,Ve as st,Mu as t,Ye as tt,Rc as u,Ne as ut,ds as v,ye as vt,ci as w,Wo as x,Ro as y,vt as z};
@@ -1 +1 @@
1
- import{_t as e}from"./alert-D4IPjxz3.js";var t={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};t.node;var n=e(t);export{n as t};
1
+ import{vt as e}from"./alert-C-zJo-Vf.js";var t={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{_t as e}from"./alert-D4IPjxz3.js";var t={name:`power`,size:24,node:[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]};t.node;var n=e(t);export{n as t};
1
+ import{vt as e}from"./alert-C-zJo-Vf.js";var t={name:`power`,size:24,node:[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]};t.node;var n=e(t);export{n as t};
@@ -0,0 +1 @@
1
+ import{E as e,_i as t,gi as n,la as r,pa as i,ua as a,vi as o,vt as s,yi as c}from"./alert-C-zJo-Vf.js";var l={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};l.node;var u=s(l),d=i(a(),1),f={root:`_root_1erkf_1`,ring:`_ring_1erkf_16`,card:`_card_1erkf_26`,label:`_label_1erkf_46`,meta:`_meta_1erkf_46`,indicator:`_indicator_1erkf_48`,indicatorDot:`_indicatorDot_1erkf_61`,body:`_body_1erkf_64`,labelText:`_labelText_1erkf_66`,icon:`_icon_1erkf_67`,description:`_description_1erkf_70`},p=r(),m=[...e.ease.standard],h=((e,t)=>{let n=2*Math.PI/(e*1.2);return{type:`spring`,stiffness:n*n,damping:2*(1-t)*n,mass:1}})(.42,.14),g=()=>()=>{};function _(){let e=(0,d.useSyncExternalStore)(g,()=>!0,()=>!1);return!!o()&&e}var v=(0,d.forwardRef)(function({options:r,value:i,defaultValue:a=null,onValueChange:o,layout:s=`grid`,minColumnWidth:l=180,name:u,required:g,disabled:v=!1,className:y,style:b,...x},S){let C=_(),w=(0,d.useId)().replace(/[^a-zA-Z0-9_-]/g,``),T=(0,d.useRef)(null);(0,d.useImperativeHandle)(S,()=>T.current);let[E,D]=(0,d.useState)(a),O=i===void 0?E:i,k=r.findIndex(e=>e.value===O),A=e=>!v&&!e.disabled,j=k>=0&&A(r[k])?k:r.findIndex(A),M=e=>{e!==O&&(i===void 0&&D(e),o?.(e))},N=c(0),P=c(0),F=c(0),I=c(0),L=c(0),R=(0,d.useRef)(!1),z=(0,d.useCallback)(n=>{let r=k<0?null:T.current?.querySelector(`[data-card="${k}"]`);if(!r){L.set(0),R.current=!1;return}let i=[r.offsetLeft,r.offsetTop,r.offsetWidth,r.offsetHeight];if(!n||!R.current||C){N.jump(i[0]),P.jump(i[1]),F.jump(i[2]),I.jump(i[3]),!R.current&&!C&&n?(L.jump(0),t(L,1,{duration:e.duration.fast,ease:m})):L.jump(1),R.current=!0;return}t(N,i[0],h),t(P,i[1],h),t(F,i[2],h),t(I,i[3],h),L.set(1)},[I,L,C,k,F,N,P]),B=(0,d.useRef)(z);(0,d.useLayoutEffect)(()=>{B.current=z,z(!0)},[z]),(0,d.useLayoutEffect)(()=>{let e=T.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>B.current(!1));return t.observe(e),()=>t.disconnect()},[]);let V=()=>Array.from(T.current?.querySelectorAll(`[data-card]`)??[]),H=(e,t)=>{let n=e.key===`ArrowRight`||e.key===`ArrowDown`?1:e.key===`ArrowLeft`||e.key===`ArrowUp`?-1:0;if(e.key===` `||e.key===`Enter`){e.preventDefault(),A(r[t])&&M(r[t].value);return}if(!n&&e.key!==`Home`&&e.key!==`End`)return;e.preventDefault();let i=r.length,a=n&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&getComputedStyle(e.currentTarget).direction===`rtl`?-1:1,o=e.key===`Home`?-1:e.key===`End`?i:t,s=e.key===`Home`?1:e.key===`End`?-1:n*a;for(let e=0;e<i;e++)if(o=(o+s+i)%i,A(r[o])){V()[o]?.focus(),M(r[o].value);return}};return(0,p.jsxs)(`div`,{ref:T,role:`radiogroup`,"aria-disabled":v||void 0,"aria-required":g||void 0,className:[f.root,y].filter(Boolean).join(` `),"data-layout":s,style:{"--min-column":`${l}px`,...b},...x,children:[(0,p.jsx)(n.span,{className:f.ring,style:{x:N,y:P,width:F,height:I,opacity:L},"aria-hidden":`true`}),r.map((t,r)=>{let i=r===k,a=!A(t),o=`${w}-${r}-label`,s=`${w}-${r}-description`,c=a&&t.disabledReason?t.disabledReason:t.description;return(0,p.jsxs)(`div`,{role:`radio`,"data-card":r,className:f.card,"aria-checked":i,"aria-disabled":a||void 0,"aria-labelledby":o,"aria-describedby":c?s:void 0,tabIndex:r===j?0:-1,"data-checked":i||void 0,onClick:()=>{a||M(t.value)},onKeyDown:e=>H(e,r),children:[(0,p.jsx)(`span`,{className:f.indicator,"aria-hidden":`true`,children:(0,p.jsx)(n.span,{className:f.indicatorDot,initial:!1,animate:{scale:+!!i},transition:C?{duration:0}:e.spring.snappy})}),(0,p.jsxs)(`span`,{className:f.body,children:[(0,p.jsxs)(`span`,{id:o,className:f.label,children:[t.icon&&(0,p.jsx)(`span`,{className:f.icon,children:t.icon}),(0,p.jsx)(`span`,{className:f.labelText,children:t.label})]}),c&&(0,p.jsx)(`span`,{id:s,className:f.description,children:c})]}),t.meta&&(0,p.jsx)(`span`,{className:f.meta,children:t.meta})]},t.value)}),u&&(0,p.jsx)(`input`,{type:`hidden`,name:u,value:O??``,required:g})]})});export{u as n,v as t};
@@ -1 +1 @@
1
- import{_t as e}from"./alert-D4IPjxz3.js";var t={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};t.node;var n=e(t);export{n as t};
1
+ import{vt as e}from"./alert-C-zJo-Vf.js";var t={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};t.node;var n=e(t);export{n as t};
@@ -7,12 +7,12 @@
7
7
  <link rel="icon" type="image/png" href="/favicon.png" />
8
8
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
9
9
  <title>Astra</title>
10
- <script type="module" crossorigin src="/assets/index-CdtIrMPt.js"></script>
11
- <link rel="modulepreload" crossorigin href="/assets/alert-D4IPjxz3.js">
12
- <link rel="modulepreload" crossorigin href="/assets/overlays-BX48Gd4h.js">
10
+ <script type="module" crossorigin src="/assets/index-CNdW2eN9.js"></script>
11
+ <link rel="modulepreload" crossorigin href="/assets/alert-C-zJo-Vf.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/overlays-BBHZHl4R.js">
13
13
  <link rel="stylesheet" crossorigin href="/assets/alert-DwSJjne8.css">
14
14
  <link rel="stylesheet" crossorigin href="/assets/overlays-BJrN5PWt.css">
15
- <link rel="stylesheet" crossorigin href="/assets/index-nu-lKbLD.css">
15
+ <link rel="stylesheet" crossorigin href="/assets/index-DSv7xAxU.css">
16
16
  </head>
17
17
  <body>
18
18
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidotnet/server-linux-arm64",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Astra self-contained server binary for Linux (arm64).",
5
5
  "license": "MIT",
6
6
  "os": [