@pg-boss/dashboard 1.1.1 → 1.1.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.
- package/build/client/assets/MenuTrigger-CoRd-BqL.js +1 -0
- package/build/client/assets/{_index-9fLquIe1.js → _index-BTx7NRR8.js} +1 -1
- package/build/client/assets/{badge-B5ZugmiV.js → badge-DBD4CzAv.js} +1 -1
- package/build/client/assets/{button-Djse56Dx.js → button-Ba8FWhqs.js} +1 -1
- package/build/client/assets/{chevron-down-B4tDL9Ah.js → chevron-down-CYa4FYmp.js} +1 -1
- package/build/client/assets/chunk-UVKPFVEO-YfSfkVr_.js +26 -0
- package/build/client/assets/{createLucideIcon-B0YqJFaz.js → createLucideIcon-Bt-yXILq.js} +1 -1
- package/build/client/assets/db-link-CU7IJqbq.js +1 -0
- package/build/client/assets/dialog-Dkx42Rkd.js +1 -0
- package/build/client/assets/{entry.client-Szv-xmaE.js → entry.client-DXZUROTm.js} +4 -4
- package/build/client/assets/{error-card-CXoOCvsg.js → error-card-D-uZRy_l.js} +1 -1
- package/build/client/assets/{filter-select-DXyBBVm8.js → filter-select-Tk_CBvrn.js} +1 -1
- package/build/client/assets/{index-x2yWco1W.js → index-DuhoQwUK.js} +1 -1
- package/build/client/assets/{jobs-CM6xcK-O.js → jobs-ouYjIGAi.js} +1 -1
- package/build/client/assets/manifest-72f6b3e9.js +1 -0
- package/build/client/assets/{pagination-C4yyCmBA.js → pagination-BItl293Q.js} +1 -1
- package/build/client/assets/{queues._index-Dn3ieC5d.js → queues._index-_ID9kaow.js} +1 -1
- package/build/client/assets/{queues._name-GrviLLx2.js → queues._name-DwdbQND-.js} +1 -1
- package/build/client/assets/{queues._name.jobs._jobId-s_wYs79w.js → queues._name.jobs._jobId-DrgG3VBb.js} +1 -1
- package/build/client/assets/{queues.create-Ch3Mqw52.js → queues.create-CmVW5UVm.js} +1 -1
- package/build/client/assets/{root-D0qqtdF7.js → root-DDqOT0vL.js} +1 -1
- package/build/client/assets/{schedules-DwnuuhxF.js → schedules-B6ixYsvz.js} +1 -1
- package/build/client/assets/{schedules._name._key-DJn-u3Cm.js → schedules._name._key-CXTVKoOc.js} +1 -1
- package/build/client/assets/{schedules.new-CQuE2Uhz.js → schedules.new-Dmasri9v.js} +1 -1
- package/build/client/assets/{send-DVfuC6NR.js → send-CqR34Z50.js} +1 -1
- package/build/client/assets/{table-CtSLyG7m.js → table-Au2E5mnP.js} +1 -1
- package/build/client/assets/useOpenInteractionType-mgYMZAa8.js +12 -0
- package/build/client/assets/{warnings-DqRQYomb.js → warnings-Dj3qacgN.js} +1 -1
- package/build/server/assets/server-build.js +115 -43
- package/package.json +14 -14
- package/build/client/assets/MenuTrigger-CEHCnGow.js +0 -1
- package/build/client/assets/chunk-LFPYN7LY-Cj1DJmJR.js +0 -26
- package/build/client/assets/db-link-DmvfwdX4.js +0 -1
- package/build/client/assets/dialog-CQzw3QVH.js +0 -1
- package/build/client/assets/manifest-acaa4b8e.js +0 -1
- package/build/client/assets/useOpenInteractionType-Ss_6xZdw.js +0 -12
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T,t as He,p as et,J as tt}from"./chunk-LFPYN7LY-Cj1DJmJR.js";function rt(e,...t){const r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(o=>r.searchParams.append("args[]",o)),`Base UI error #${e}; visit ${r} for the full message.`}const xe={};function Ne(e,t){const r=T.useRef(xe);return r.current===xe&&(r.current=e(t)),r}function ve(e,t,r,o){const n=Ne(Me).current;return nt(n,e,t,r,o)&&Oe(n,[e,t,r,o]),n.callback}function ot(e){const t=Ne(Me).current;return st(t,e)&&Oe(t,e),t.callback}function Me(){return{callback:null,cleanup:null,refs:[]}}function nt(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function st(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function Oe(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){const o=Array(t.length).fill(null);for(let n=0;n<t.length;n+=1){const s=t[n];if(s!=null)switch(typeof s){case"function":{const a=s(r);typeof a=="function"&&(o[n]=a);break}case"object":{s.current=r;break}}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){const s=t[n];if(s!=null)switch(typeof s){case"function":{const a=o[n];typeof a=="function"?a():s(null);break}case"object":{s.current=null;break}}}}}}}const at=parseInt(T.version,10);function it(e){return at>=e}function Ae(e){if(!T.isValidElement(e))return null;const t=e,r=t.props;return(it(19)?r?.ref:t.ref)??null}function le(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function lt(e,t){const r={};for(const o in e){const n=e[o];if(t?.hasOwnProperty(o)){const s=t[o](n);s!=null&&Object.assign(r,s);continue}n===!0?r[`data-${o.toLowerCase()}`]="":n&&(r[`data-${o.toLowerCase()}`]=n.toString())}return r}function ct(e,t){return typeof e=="function"?e(t):e}function dt(e,t){return typeof e=="function"?e(t):e}const D={};function ut(e,t,r,o,n){let s={...ce(e,D)};return t&&(s=ee(s,t)),r&&(s=ee(s,r)),o&&(s=ee(s,o)),s}function mt(e){if(e.length===0)return D;if(e.length===1)return ce(e[0],D);let t={...ce(e[0],D)};for(let r=1;r<e.length;r+=1)t=ee(t,e[r]);return t}function ee(e,t){return _e(t)?t(e):ft(e,t)}function ft(e,t){if(!t)return e;for(const r in t){const o=t[r];switch(r){case"style":{e[r]=le(e.style,o);break}case"className":{e[r]=je(e.className,o);break}default:bt(r,o)?e[r]=pt(e[r],o):e[r]=o}}return e}function bt(e,t){const r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function _e(e){return typeof e=="function"}function ce(e,t){return _e(e)?e(t):e??D}function pt(e,t){return t?e?r=>{if(ht(r)){const n=r;gt(n);const s=t(n);return n.baseUIHandlerPrevented||e?.(n),s}const o=t(r);return e?.(r),o}:t:e}function gt(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function je(e,t){return t?e?t+" "+e:t:e}function ht(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function kr(){}const wr=Object.freeze([]),$=Object.freeze({});function yt(e,t,r={}){const o=t.render,n=kt(t,r);if(r.enabled===!1)return null;const s=r.state??$;return xt(e,o,n,s)}function kt(e,t={}){const{className:r,style:o,render:n}=e,{state:s=$,ref:a,props:m,stateAttributesMapping:c,enabled:f=!0}=t,p=f?ct(r,s):void 0,g=f?dt(o,s):void 0,h=f?lt(s,c):$,y=f?le(h,Array.isArray(m)?mt(m):m)??$:$;return typeof document<"u"&&(f?Array.isArray(a)?y.ref=ot([y.ref,Ae(n),...a]):y.ref=ve(y.ref,Ae(n),a):ve(null,null)),f?(p!==void 0&&(y.className=je(y.className,p)),g!==void 0&&(y.style=le(y.style,g)),y):$}const wt=Symbol.for("react.lazy");function xt(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);const n=ut(r,t.props);n.ref=r.ref;let s=t;return s?.$$typeof===wt&&(s=T.Children.toArray(t)[0]),T.cloneElement(s,n)}if(e&&typeof e=="string")return vt(e,r);throw new Error(rt(8))}function vt(e,t){return e==="button"?T.createElement("button",{type:"button",...t,key:t.key}):e==="img"?T.createElement("img",{alt:"",...t,key:t.key}):T.createElement(e,t)}function Le(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Le(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Ge(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Le(e))&&(o&&(o+=" "),o+=t);return o}const At=(e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},St=(e,t)=>({classGroupId:e,validator:t}),Ve=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),te="-",Se=[],Ct="arbitrary..",zt=e=>{const t=Et(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Pt(a);const m=a.split(te),c=m[0]===""&&m.length>1?1:0;return We(m,c,t)},getConflictingClassGroupIds:(a,m)=>{if(m){const c=o[a],f=r[a];return c?f?At(f,c):c:f||Se}return r[a]||Se}}},We=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],s=r.nextPart.get(n);if(s){const f=We(e,t+1,s);if(f)return f}const a=r.validators;if(a===null)return;const m=t===0?e.join(te):e.slice(t).join(te),c=a.length;for(let f=0;f<c;f++){const p=a[f];if(p.validator(m))return p.classGroupId}},Pt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?Ct+o:void 0})(),Et=e=>{const{theme:t,classGroups:r}=e;return It(r,t)},It=(e,t)=>{const r=Ve();for(const o in e){const n=e[o];ue(n,r,o,t)}return r},ue=(e,t,r,o)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Rt(a,t,r,o)}},Rt=(e,t,r,o)=>{if(typeof e=="string"){Tt(e,t,r);return}if(typeof e=="function"){Nt(e,t,r,o);return}Mt(e,t,r,o)},Tt=(e,t,r)=>{const o=e===""?t:$e(t,e);o.classGroupId=r},Nt=(e,t,r,o)=>{if(Ot(e)){ue(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(St(r,e))},Mt=(e,t,r,o)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,c]=n[a];ue(c,$e(t,m),r,o)}},$e=(e,t)=>{let r=e;const o=t.split(te),n=o.length;for(let s=0;s<n;s++){const a=o[s];let m=r.nextPart.get(a);m||(m=Ve(),r.nextPart.set(a,m)),r=m}return r},Ot=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,_t=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const n=(s,a)=>{r[s]=a,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(s){let a=r[s];if(a!==void 0)return a;if((a=o[s])!==void 0)return n(s,a),a},set(s,a){s in r?r[s]=a:n(s,a)}}},de="!",Ce=":",jt=[],ze=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),Lt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const s=[];let a=0,m=0,c=0,f;const p=n.length;for(let S=0;S<p;S++){const x=n[S];if(a===0&&m===0){if(x===Ce){s.push(n.slice(c,S)),c=S+1;continue}if(x==="/"){f=S;continue}}x==="["?a++:x==="]"?a--:x==="("?m++:x===")"&&m--}const g=s.length===0?n:n.slice(c);let h=g,y=!1;g.endsWith(de)?(h=g.slice(0,-1),y=!0):g.startsWith(de)&&(h=g.slice(1),y=!0);const P=f&&f>c?f-c:void 0;return ze(s,y,h,P)};if(t){const n=t+Ce,s=o;o=a=>a.startsWith(n)?s(a.slice(n.length)):ze(jt,!1,a,void 0,!0)}if(r){const n=o;o=s=>r({className:s,parseClassName:n})}return o},Gt=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{const o=[];let n=[];for(let s=0;s<r.length;s++){const a=r[s],m=a[0]==="[",c=t.has(a);m||c?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(a)):n.push(a)}return n.length>0&&(n.sort(),o.push(...n)),o}},Vt=e=>({cache:_t(e.cacheSize),parseClassName:Lt(e),sortModifiers:Gt(e),...zt(e)}),Wt=/\s+/,$t=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=t,a=[],m=e.trim().split(Wt);let c="";for(let f=m.length-1;f>=0;f-=1){const p=m[f],{isExternal:g,modifiers:h,hasImportantModifier:y,baseClassName:P,maybePostfixModifierPosition:S}=r(p);if(g){c=p+(c.length>0?" "+c:c);continue}let x=!!S,M=o(x?P.substring(0,S):P);if(!M){if(!x){c=p+(c.length>0?" "+c:c);continue}if(M=o(P),!M){c=p+(c.length>0?" "+c:c);continue}x=!1}const Y=h.length===0?"":h.length===1?h[0]:s(h).join(":"),B=y?Y+de:Y,G=B+M;if(a.indexOf(G)>-1)continue;a.push(G);const V=n(M,x);for(let O=0;O<V.length;++O){const F=V[O];a.push(B+F)}c=p+(c.length>0?" "+c:c)}return c},Bt=(...e)=>{let t=0,r,o,n="";for(;t<e.length;)(r=e[t++])&&(o=Be(r))&&(n&&(n+=" "),n+=o);return n},Be=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Be(e[o]))&&(r&&(r+=" "),r+=t);return r},Ft=(e,...t)=>{let r,o,n,s;const a=c=>{const f=t.reduce((p,g)=>g(p),e());return r=Vt(f),o=r.cache.get,n=r.cache.set,s=m,m(c)},m=c=>{const f=o(c);if(f)return f;const p=$t(c,r);return n(c,p),p};return s=a,(...c)=>s(Bt(...c))},Ut=[],k=e=>{const t=r=>r[e]||Ut;return t.isThemeGetter=!0,t},Fe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ue=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>Dt.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),ie=e=>e.endsWith("%")&&b(e.slice(0,-1)),E=e=>Yt.test(e),De=()=>!0,Zt=e=>qt.test(e)&&!Jt.test(e),me=()=>!1,Kt=e=>Qt.test(e),Ht=e=>Xt.test(e),er=e=>!i(e)&&!l(e),tr=e=>N(e,Je,me),i=e=>Fe.test(e),j=e=>N(e,Qe,Zt),Pe=e=>N(e,cr,b),rr=e=>N(e,Ze,De),or=e=>N(e,Xe,me),Ee=e=>N(e,Ye,me),nr=e=>N(e,qe,Ht),K=e=>N(e,Ke,Kt),l=e=>Ue.test(e),U=e=>L(e,Qe),sr=e=>L(e,Xe),Ie=e=>L(e,Ye),ar=e=>L(e,Je),ir=e=>L(e,qe),H=e=>L(e,Ke,!0),lr=e=>L(e,Ze,!0),N=(e,t,r)=>{const o=Fe.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},L=(e,t,r=!1)=>{const o=Ue.exec(e);return o?o[1]?t(o[1]):r:!1},Ye=e=>e==="position"||e==="percentage",qe=e=>e==="image"||e==="url",Je=e=>e==="length"||e==="size"||e==="bg-size",Qe=e=>e==="length",cr=e=>e==="number",Xe=e=>e==="family-name",Ze=e=>e==="number"||e==="weight",Ke=e=>e==="shadow",dr=()=>{const e=k("color"),t=k("font"),r=k("text"),o=k("font-weight"),n=k("tracking"),s=k("leading"),a=k("breakpoint"),m=k("container"),c=k("spacing"),f=k("radius"),p=k("shadow"),g=k("inset-shadow"),h=k("text-shadow"),y=k("drop-shadow"),P=k("blur"),S=k("perspective"),x=k("aspect"),M=k("ease"),Y=k("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...G(),l,i],O=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],d=()=>[l,i,c],C=()=>[I,"full","auto",...d()],fe=()=>[R,"none","subgrid",l,i],be=()=>["auto",{span:["full",R,l,i]},R,l,i],q=()=>[R,"auto",l,i],pe=()=>["auto","min","max","fr",l,i],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...d()],_=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],oe=()=>[I,"screen","full","dvw","lvw","svw","min","max","fit",...d()],ne=()=>[I,"screen","full","lh","dvh","lvh","svh","min","max","fit",...d()],u=()=>[e,l,i],ge=()=>[...G(),Ie,Ee,{position:[l,i]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",ar,tr,{size:[l,i]}],se=()=>[ie,U,j],v=()=>["","none","full",f,l,i],A=()=>["",b,U,j],J=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],w=()=>[b,ie,Ie,Ee],we=()=>["","none",P,l,i],Q=()=>["none",b,l,i],X=()=>["none",b,l,i],ae=()=>[b,l,i],Z=()=>[I,"full",...d()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[E],breakpoint:[E],color:[De],container:[E],"drop-shadow":[E],ease:["in","out","in-out"],font:[er],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[E],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[E],shadow:[E],spacing:["px",b],text:[E],"text-shadow":[E],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,i,l,x]}],container:["container"],columns:[{columns:[b,i,l,m]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",l,i]}],basis:[{basis:[I,"full","auto",m,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,I,"auto","initial","none",i]}],grow:[{grow:["",b,l,i]}],shrink:[{shrink:["",b,l,i]}],order:[{order:[R,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":fe()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":fe()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pbs:[{pbs:d()}],pbe:[{pbe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[m,"screen",..._()]}],"min-w":[{"min-w":[m,"screen","none",..._()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",r,U,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,lr,rr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ie,i]}],"font-family":[{font:[sr,or,t]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,l,i]}],"line-clamp":[{"line-clamp":[b,"none",l,Pe]}],leading:[{leading:[s,...d()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:u()}],"text-color":[{text:u()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",l,j]}],"text-decoration-color":[{decoration:u()}],"underline-offset":[{"underline-offset":[b,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,l,i],radial:["",l,i],conic:[R,l,i]},ir,nr]}],"bg-color":[{bg:u()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:u()}],"gradient-via":[{via:u()}],"gradient-to":[{to:u()}],rounded:[{rounded:v()}],"rounded-s":[{"rounded-s":v()}],"rounded-e":[{"rounded-e":v()}],"rounded-t":[{"rounded-t":v()}],"rounded-r":[{"rounded-r":v()}],"rounded-b":[{"rounded-b":v()}],"rounded-l":[{"rounded-l":v()}],"rounded-ss":[{"rounded-ss":v()}],"rounded-se":[{"rounded-se":v()}],"rounded-ee":[{"rounded-ee":v()}],"rounded-es":[{"rounded-es":v()}],"rounded-tl":[{"rounded-tl":v()}],"rounded-tr":[{"rounded-tr":v()}],"rounded-br":[{"rounded-br":v()}],"rounded-bl":[{"rounded-bl":v()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:u()}],"border-color-x":[{"border-x":u()}],"border-color-y":[{"border-y":u()}],"border-color-s":[{"border-s":u()}],"border-color-e":[{"border-e":u()}],"border-color-bs":[{"border-bs":u()}],"border-color-be":[{"border-be":u()}],"border-color-t":[{"border-t":u()}],"border-color-r":[{"border-r":u()}],"border-color-b":[{"border-b":u()}],"border-color-l":[{"border-l":u()}],"divide-color":[{divide:u()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,l,i]}],"outline-w":[{outline:["",b,U,j]}],"outline-color":[{outline:u()}],shadow:[{shadow:["","none",p,H,K]}],"shadow-color":[{shadow:u()}],"inset-shadow":[{"inset-shadow":["none",g,H,K]}],"inset-shadow-color":[{"inset-shadow":u()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:u()}],"ring-offset-w":[{"ring-offset":[b,j]}],"ring-offset-color":[{"ring-offset":u()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":u()}],"text-shadow":[{"text-shadow":["none",h,H,K]}],"text-shadow-color":[{"text-shadow":u()}],opacity:[{opacity:[b,l,i]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":w()}],"mask-image-linear-to-pos":[{"mask-linear-to":w()}],"mask-image-linear-from-color":[{"mask-linear-from":u()}],"mask-image-linear-to-color":[{"mask-linear-to":u()}],"mask-image-t-from-pos":[{"mask-t-from":w()}],"mask-image-t-to-pos":[{"mask-t-to":w()}],"mask-image-t-from-color":[{"mask-t-from":u()}],"mask-image-t-to-color":[{"mask-t-to":u()}],"mask-image-r-from-pos":[{"mask-r-from":w()}],"mask-image-r-to-pos":[{"mask-r-to":w()}],"mask-image-r-from-color":[{"mask-r-from":u()}],"mask-image-r-to-color":[{"mask-r-to":u()}],"mask-image-b-from-pos":[{"mask-b-from":w()}],"mask-image-b-to-pos":[{"mask-b-to":w()}],"mask-image-b-from-color":[{"mask-b-from":u()}],"mask-image-b-to-color":[{"mask-b-to":u()}],"mask-image-l-from-pos":[{"mask-l-from":w()}],"mask-image-l-to-pos":[{"mask-l-to":w()}],"mask-image-l-from-color":[{"mask-l-from":u()}],"mask-image-l-to-color":[{"mask-l-to":u()}],"mask-image-x-from-pos":[{"mask-x-from":w()}],"mask-image-x-to-pos":[{"mask-x-to":w()}],"mask-image-x-from-color":[{"mask-x-from":u()}],"mask-image-x-to-color":[{"mask-x-to":u()}],"mask-image-y-from-pos":[{"mask-y-from":w()}],"mask-image-y-to-pos":[{"mask-y-to":w()}],"mask-image-y-from-color":[{"mask-y-from":u()}],"mask-image-y-to-color":[{"mask-y-to":u()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":w()}],"mask-image-radial-to-pos":[{"mask-radial-to":w()}],"mask-image-radial-from-color":[{"mask-radial-from":u()}],"mask-image-radial-to-color":[{"mask-radial-to":u()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":w()}],"mask-image-conic-to-pos":[{"mask-conic-to":w()}],"mask-image-conic-from-color":[{"mask-conic-from":u()}],"mask-image-conic-to-color":[{"mask-conic-to":u()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:we()}],brightness:[{brightness:[b,l,i]}],contrast:[{contrast:[b,l,i]}],"drop-shadow":[{"drop-shadow":["","none",y,H,K]}],"drop-shadow-color":[{"drop-shadow":u()}],grayscale:[{grayscale:["",b,l,i]}],"hue-rotate":[{"hue-rotate":[b,l,i]}],invert:[{invert:["",b,l,i]}],saturate:[{saturate:[b,l,i]}],sepia:[{sepia:["",b,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[b,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[b,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,l,i]}],"backdrop-invert":[{"backdrop-invert":["",b,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[b,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[b,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",b,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",l,i]}],ease:[{ease:["linear","initial",M,l,i]}],delay:[{delay:[b,l,i]}],animate:[{animate:["none",Y,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,l,i]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:u()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:u()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mbs":[{"scroll-mbs":d()}],"scroll-mbe":[{"scroll-mbe":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pbs":[{"scroll-pbs":d()}],"scroll-pbe":[{"scroll-pbe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...u()]}],"stroke-w":[{stroke:[b,U,j,Pe]}],stroke:[{stroke:["none",...u()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ur=Ft(dr);function mr(...e){return ur(Ge(e))}function xr(e){const t=Math.floor((Date.now()-e.getTime())/1e3);return t<60?"just now":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}function vr(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}function Ar(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"})}const fr=["created","retry","active","completed","cancelled","failed"],br="pending",pr="all",Sr={created:"gray",retry:"warning",active:"primary",completed:"success",cancelled:"gray",failed:"error"},Cr=[{value:pr,label:"All States"},{value:br,label:"Pending"},...fr.map(e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1)}))],gr=["slow_query","queue_backlog","clock_skew"],zr={slow_query:"warning",queue_backlog:"error",clock_skew:"gray"},hr={slow_query:"Slow Query",queue_backlog:"Queue Backlog",clock_skew:"Clock Skew"},Pr=[{value:null,label:"All Types"},...gr.map(e=>({value:e,label:hr[e]}))];function Er(e){if(!e)return"-";if(typeof e=="string")return e;try{const t=e,r=[];return t.elapsed&&r.push(`${t.elapsed.toFixed(2)}s`),t.name&&r.push(`queue: ${t.name}`),t.queuedCount&&r.push(`queued: ${t.queuedCount}`),t.seconds&&r.push(`skew: ${t.seconds.toFixed(1)}s`),t.direction&&r.push(`(${t.direction})`),r.length>0?r.join(", "):JSON.stringify(e)}catch{return String(e)}}const Re=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Te=Ge,Ir=(e,t)=>r=>{var o;if(t?.variants==null)return Te(e,r?.class,r?.className);const{variants:n,defaultVariants:s}=t,a=Object.keys(n).map(f=>{const p=r?.[f],g=s?.[f];if(p===null)return null;const h=Re(p)||Re(g);return n[f][h]}),m=r&&Object.entries(r).reduce((f,p)=>{let[g,h]=p;return h===void 0||(f[g]=h),f},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,p)=>{let{class:g,className:h,...y}=p;return Object.entries(y).every(P=>{let[S,x]=P;return Array.isArray(x)?x.includes({...s,...m}[S]):{...s,...m}[S]===x})?[...f,g,h]:f},[]);return Te(e,a,c,r?.class,r?.className)};function Rr(e){return yt(e.defaultTagName??"div",e,e)}function Tr({to:e,children:t,className:r,...o}){const[n]=He(),s=n.get("db");let a;if(typeof e=="string"){const m=new URL(e,"http://localhost");s&&!m.searchParams.has("db")&&m.searchParams.set("db",s),a=m.pathname+m.search}else if(typeof e=="object"&&e!==null){const m=e.pathname||"",c=e.search||"",f=e.hash||"",p=new URLSearchParams(c.replace(/^\?/,""));s&&!p.has("db")&&p.set("db",s);const g=p.toString();a=m+(g?`?${g}`:"")+f}else a=String(e);return et.jsx(tt,{to:a,className:mr("cursor-pointer",r),...o,children:t})}export{Tr as D,$ as E,Cr as J,kr as N,hr as W,Ir as a,zr as b,mr as c,Sr as d,vr as e,xr as f,rt as g,ve as h,yt as i,Ne as j,wr as k,gt as l,ut as m,it as n,Pr as o,Er as p,Ar as q,Rr as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s,p as u}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{g as B,i as v,j as K,c as P}from"./db-link-DmvfwdX4.js";import{c as L}from"./createLucideIcon-B0YqJFaz.js";import{av as q,aw as X,ax as Y,_ as A,k as U,az as G,aA as J,aC as Q,aB as Z,ay as ee,aE as te,R as oe,N as ne,an as se,P as ae,ao as re,aq as ie,ar as h,ad as V,ae as $,u as le,aR as de,b as z,aS as N,aa as ce,af as ue,ac as pe,ag as ge,aj as fe,ak as me,at as xe}from"./useOpenInteractionType-Ss_6xZdw.js";const Ce=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],he=L("x",Ce);function Se(t){const{store:e,parentContext:o,actionsRef:c}=t,a=e.useState("open"),r=e.useState("disablePointerDismissal"),d=e.useState("modal"),i=e.useState("popupElement"),{openMethod:n,triggerProps:p,reset:m}=q(a);X(e);const{forceUnmount:g}=Y(a,e,()=>{m()}),x=A(f=>{const C=U(f);return C.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},C}),S=s.useCallback(()=>{e.setOpen(!1,x(G))},[e,x]);s.useImperativeHandle(c,()=>({unmount:g,close:S}),[g,S]);const l=J({popupStore:e,onOpenChange:e.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[R,y]=s.useState(0),b=R===0,w=Q(l),T=Z(l,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:d==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(f){if(!e.context.outsidePressEnabledRef.current||"button"in f&&f.button!==0||"touches"in f&&f.touches.length!==1)return!1;const C=oe(f);if(b&&!r){const O=C;return d&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===O||e.context.backdropRef.current===O||ne(O,i)&&!O?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:b});ee(a&&d===!0,i);const{getReferenceProps:E,getFloatingProps:k,getTriggerProps:I}=te([w,T]);e.useContextCallback("onNestedDialogOpen",f=>{y(f+1)}),e.useContextCallback("onNestedDialogClose",()=>{y(0)}),s.useEffect(()=>(o?.onNestedDialogOpen&&a&&o.onNestedDialogOpen(R),o?.onNestedDialogClose&&!a&&o.onNestedDialogClose(),()=>{o?.onNestedDialogClose&&a&&o.onNestedDialogClose()}),[a,o,R]);const M=s.useMemo(()=>E(p),[E,p]),j=s.useMemo(()=>I(p),[I,p]),F=s.useMemo(()=>k(),[k]);e.useSyncedValues({openMethod:n,activeTriggerProps:M,inactiveTriggerProps:j,popupProps:F,floatingRootContext:l,nestedOpenDialogCount:R})}const W=s.createContext(void 0);function D(t){const e=s.useContext(W);if(t===!1&&e===void 0)throw new Error(B(27));return e}const Re={...re,modal:h(t=>t.modal),nested:h(t=>t.nested),nestedOpenDialogCount:h(t=>t.nestedOpenDialogCount),disablePointerDismissal:h(t=>t.disablePointerDismissal),openMethod:h(t=>t.openMethod),descriptionElementId:h(t=>t.descriptionElementId),titleElementId:h(t=>t.titleElementId),viewportElement:h(t=>t.viewportElement),role:h(t=>t.role)};class ye extends se{constructor(e){super(De(e),{popupRef:s.createRef(),backdropRef:s.createRef(),internalBackdropRef:s.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new ae,onOpenChange:void 0,onOpenChangeComplete:void 0},Re)}setOpen=(e,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!e&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,o),o.isCanceled)return;const c={open:e,nativeEvent:o.event,reason:o.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",c);const a={open:e},r=o.trigger?.id??null;(r||e)&&(a.activeTriggerId=r,a.activeTriggerElement=o.trigger??null),this.update(a)}}function De(t={}){return{...ie(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...t}}const be={...V,...$},Pe=s.forwardRef(function(e,o){const{render:c,className:a,forceRender:r=!1,...d}=e,{store:i}=D(),n=i.useState("open"),p=i.useState("nested"),m=i.useState("mounted"),g=i.useState("transitionStatus");return v("div",e,{state:{open:n,transitionStatus:g},ref:[i.context.backdropRef,o],stateAttributesMapping:be,props:[{role:"presentation",hidden:!m,style:{userSelect:"none",WebkitUserSelect:"none"}},d],enabled:r||!p})}),ve=s.forwardRef(function(e,o){const{render:c,className:a,disabled:r=!1,nativeButton:d=!0,...i}=e,{store:n}=D(),p=n.useState("open");function m(l){p&&n.setOpen(!1,U(de,l.nativeEvent))}const{getButtonProps:g,buttonRef:x}=le({disabled:r,native:d});return v("button",e,{state:{disabled:r},ref:[o,x],props:[{onClick:m},i,g]})}),Ee=s.forwardRef(function(e,o){const{render:c,className:a,id:r,...d}=e,{store:i}=D(),n=z(r);return i.useSyncedValueWithCleanup("descriptionElementId",n),v("p",e,{ref:o,props:[{id:n},d]})});let ke=(function(t){return t.nestedDialogs="--nested-dialogs",t})({}),Ie=(function(t){return t[t.open=N.open]="open",t[t.closed=N.closed]="closed",t[t.startingStyle=N.startingStyle]="startingStyle",t[t.endingStyle=N.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t})({});const _=s.createContext(void 0);function Oe(){const t=s.useContext(_);if(t===void 0)throw new Error(B(26));return t}const Ne={...V,...$,nestedDialogOpen(t){return t?{[Ie.nestedDialogOpen]:""}:null}},we=s.forwardRef(function(e,o){const{className:c,finalFocus:a,initialFocus:r,render:d,...i}=e,{store:n}=D(),p=n.useState("descriptionElementId"),m=n.useState("disablePointerDismissal"),g=n.useState("floatingRootContext"),x=n.useState("popupProps"),S=n.useState("modal"),l=n.useState("mounted"),R=n.useState("nested"),y=n.useState("nestedOpenDialogCount"),b=n.useState("open"),w=n.useState("openMethod"),T=n.useState("titleElementId"),E=n.useState("transitionStatus"),k=n.useState("role");Oe(),ce({open:b,ref:n.context.popupRef,onComplete(){b&&n.context.onOpenChangeComplete?.(!0)}});function I(C){return C==="touch"?n.context.popupRef.current:!0}const M=r===void 0?I:r,j=y>0,f=v("div",e,{state:{open:b,nested:R,transitionStatus:E,nestedDialogOpen:j},props:[x,{"aria-labelledby":T??void 0,"aria-describedby":p??void 0,role:k,tabIndex:-1,hidden:!l,onKeyDown(C){ue.has(C.key)&&C.stopPropagation()},style:{[ke.nestedDialogs]:y}},i],ref:[o,n.context.popupRef,n.useStateSetter("popupElement")],stateAttributesMapping:Ne});return u.jsx(pe,{context:g,openInteractionType:w,disabled:!l,closeOnFocusOut:!m,initialFocus:M,returnFocus:a,modal:S!==!1,restoreFocus:"popup",children:f})}),Te=s.forwardRef(function(e,o){const{keepMounted:c=!1,...a}=e,{store:r}=D(),d=r.useState("mounted"),i=r.useState("modal"),n=r.useState("open");return d||c?u.jsx(_.Provider,{value:c,children:u.jsxs(ge,{ref:o,...a,children:[d&&i===!0&&u.jsx(fe,{ref:r.context.internalBackdropRef,inert:me(!n)}),e.children]})}):null}),Me=s.forwardRef(function(e,o){const{render:c,className:a,id:r,...d}=e,{store:i}=D(),n=z(r);return i.useSyncedValueWithCleanup("titleElementId",n),v("h2",e,{ref:o,props:[{id:n},d]})});function je(t){const{children:e,open:o,defaultOpen:c=!1,onOpenChange:a,onOpenChangeComplete:r,disablePointerDismissal:d=!1,modal:i=!0,actionsRef:n,handle:p,triggerId:m,defaultTriggerId:g=null}=t,x=D(!0),S=!!x,l=K(()=>p?.store??new ye({open:c,openProp:o,activeTriggerId:g,triggerIdProp:m,modal:i,disablePointerDismissal:d,nested:S})).current;xe(()=>{o===void 0&&l.state.open===!1&&c===!0&&l.update({open:!0,activeTriggerId:g})}),l.useControlledProp("openProp",o),l.useControlledProp("triggerIdProp",m),l.useSyncedValues({disablePointerDismissal:d,nested:S,modal:i}),l.useContextCallback("onOpenChange",a),l.useContextCallback("onOpenChangeComplete",r);const R=l.useState("payload");Se({store:l,actionsRef:n,parentContext:x?.store.context});const y=s.useMemo(()=>({store:l}),[l]);return u.jsx(W.Provider,{value:y,children:typeof e=="function"?e({payload:R}):e})}const Le=je,Fe=Te,H=s.forwardRef(({className:t,...e},o)=>u.jsx(Pe,{ref:o,className:P("fixed inset-0 z-50 bg-gray-900/50 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0",t),...e}));H.displayName="DialogBackdrop";const Be=s.forwardRef(({className:t,children:e,hideCloseButton:o=!1,...c},a)=>u.jsxs(Fe,{children:[u.jsx(H,{}),u.jsxs(we,{ref:a,className:P("fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%]","bg-white rounded-lg shadow-xl p-6","dark:bg-gray-900 dark:border dark:border-gray-800","data-open:animate-in data-closed:animate-out","data-closed:fade-out-0 data-open:fade-in-0","data-closed:zoom-out-95 data-open:zoom-in-95","data-closed:slide-out-to-left-1/2 data-closed:slide-out-to-top-[48%]","data-open:slide-in-from-left-1/2 data-open:slide-in-from-top-[48%]",t),...c,children:[e,!o&&u.jsxs(ve,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 disabled:pointer-events-none dark:ring-offset-gray-900 dark:text-gray-400 dark:hover:text-gray-100",children:[u.jsx(he,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Be.displayName="DialogContent";const Ue=({className:t,...e})=>u.jsx("div",{className:P("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});Ue.displayName="DialogHeader";const Ve=({className:t,...e})=>u.jsx("div",{className:P("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Ve.displayName="DialogFooter";const $e=s.forwardRef(({className:t,...e},o)=>u.jsx(Me,{ref:o,className:P("text-lg font-semibold text-gray-900 dark:text-gray-100",t),...e}));$e.displayName="DialogTitle";const ze=s.forwardRef(({className:t,...e},o)=>u.jsx(Ee,{ref:o,className:P("text-sm text-gray-600 dark:text-gray-400",t),...e}));ze.displayName="DialogDescription";export{Le as D,Be as a,Ue as b,$e as c,ze as d,Ve as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-Szv-xmaE.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/index-x2yWco1W.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-D0qqtdF7.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/index-x2yWco1W.js","/assets/db-link-DmvfwdX4.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/MenuTrigger-CEHCnGow.js","/assets/useOpenInteractionType-Ss_6xZdw.js"],"css":["/assets/root-Bpb4WtY4.css"]},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/_index-9fLquIe1.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/jobs":{"id":"routes/jobs","parentId":"root","path":"jobs","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/jobs-CM6xcK-O.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/filter-select-DXyBBVm8.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/queues._index":{"id":"routes/queues._index","parentId":"root","path":"queues","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues._index-Dn3ieC5d.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/filter-select-DXyBBVm8.js","/assets/table-CtSLyG7m.js"],"css":[]},"routes/queues.create":{"id":"routes/queues.create","parentId":"root","path":"queues/create","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues.create-Ch3Mqw52.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/chevron-down-B4tDL9Ah.js","/assets/error-card-CXoOCvsg.js","/assets/createLucideIcon-B0YqJFaz.js"],"css":[]},"routes/queues.$name":{"id":"routes/queues.$name","parentId":"root","path":"queues/:name","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues._name-GrviLLx2.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/filter-select-DXyBBVm8.js","/assets/dialog-CQzw3QVH.js","/assets/error-card-CXoOCvsg.js","/assets/chevron-down-B4tDL9Ah.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/MenuTrigger-CEHCnGow.js","/assets/useOpenInteractionType-Ss_6xZdw.js","/assets/index-x2yWco1W.js"],"css":[]},"routes/queues.$name.jobs.$jobId":{"id":"routes/queues.$name.jobs.$jobId","parentId":"root","path":"queues/:name/jobs/:jobId","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/queues._name.jobs._jobId-s_wYs79w.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/dialog-CQzw3QVH.js","/assets/error-card-CXoOCvsg.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/useOpenInteractionType-Ss_6xZdw.js","/assets/index-x2yWco1W.js"],"css":[]},"routes/schedules":{"id":"routes/schedules","parentId":"root","path":"schedules","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/schedules-DwnuuhxF.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/schedules.$name.$key":{"id":"routes/schedules.$name.$key","parentId":"root","path":"schedules/:name/:key","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/schedules._name._key-DJn-u3Cm.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/dialog-CQzw3QVH.js","/assets/error-card-CXoOCvsg.js","/assets/createLucideIcon-B0YqJFaz.js","/assets/useOpenInteractionType-Ss_6xZdw.js","/assets/index-x2yWco1W.js"],"css":[]},"routes/schedules.new":{"id":"routes/schedules.new","parentId":"root","path":"schedules/new","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/schedules.new-CQuE2Uhz.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/send":{"id":"routes/send","parentId":"root","path":"send","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/send-DVfuC6NR.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/db-link-DmvfwdX4.js","/assets/button-Djse56Dx.js","/assets/error-card-CXoOCvsg.js"],"css":[]},"routes/warnings":{"id":"routes/warnings","parentId":"root","path":"warnings","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/warnings-DqRQYomb.js","imports":["/assets/chunk-LFPYN7LY-Cj1DJmJR.js","/assets/button-Djse56Dx.js","/assets/badge-B5ZugmiV.js","/assets/table-CtSLyG7m.js","/assets/pagination-C4yyCmBA.js","/assets/filter-select-DXyBBVm8.js","/assets/error-card-CXoOCvsg.js","/assets/db-link-DmvfwdX4.js"],"css":[]}},"url":"/assets/manifest-acaa4b8e.js","version":"acaa4b8e"};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{a as f,I as sn,p as z,r as an}from"./chunk-LFPYN7LY-Cj1DJmJR.js";import{j as he,g as cn,m as nr,l as Lt,E as ve,i as rr,h as Dt,n as un,N as ln}from"./db-link-DmvfwdX4.js";import{a as Pt}from"./index-x2yWco1W.js";const ws=500,Ts=500,xs={style:{transition:"none"}},or="data-base-ui-click-trigger",Cs={fallbackAxisSide:"none"},Is={fallbackAxisSide:"end"},sr={clipPath:"inset(50%)",position:"fixed",top:0,left:0};let Le=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const ir={[Le.startingStyle]:""},ar={[Le.endingStyle]:""},Os={transitionStatus(e){return e==="starting"?ir:e==="ending"?ar:null}};let At=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Le.startingStyle]="startingStyle",e[e.endingStyle=Le.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),Wt=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const cr={[Wt.popupOpen]:"",[Wt.pressed]:""},ur={[At.open]:""},lr={[At.closed]:""},fr={[At.anchorHidden]:""},ks={open(e){return e?cr:null}},Ps={open(e){return e?ur:lr},anchorHidden(e){return e?fr:null}},dr="none",Vt="trigger-press",pr="trigger-hover",As="trigger-focus",fn="outside-press",Ns="item-press",Ms="close-press",dn="focus-out",hr="escape-key",Fs="list-navigation",Ls="cancel-open",Ds="sibling-open",Ws="imperative-action",dt=sn[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],gr=dt&&dt!==f.useLayoutEffect?dt:e=>e();function A(e){const t=he(br).current;return t.next=e,gr(t.effect),t.trampoline}function br(){const e={next:void 0,callback:mr,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function mr(){}function it(){return typeof window<"u"}function De(e){return Nt(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vr(e){var t;return(t=(Nt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nt(e){return it()?e instanceof Node||e instanceof re(e).Node:!1}function te(e){return it()?e instanceof Element||e instanceof re(e).Element:!1}function Z(e){return it()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function Rt(e){return!it()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}const yr=new Set(["inline","contents"]);function We(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!yr.has(o)}const Er=new Set(["table","td","th"]);function Vs(e){return Er.has(De(e))}const Sr=[":popover-open",":modal"];function Rr(e){return Sr.some(t=>{try{return e.matches(t)}catch{return!1}})}const wr=["transform","translate","scale","rotate","perspective"],Tr=["transform","translate","scale","rotate","perspective","filter"],xr=["paint","layout","strict","content"];function Cr(e){const t=pn(),n=te(e)?at(e):e;return wr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tr.some(r=>(n.willChange||"").includes(r))||xr.some(r=>(n.contain||"").includes(r))}function _s(e){let t=Je(e);for(;Z(t)&&!Ne(t);){if(Cr(t))return t;if(Rr(t))return null;t=Je(t)}return null}function pn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ir=new Set(["html","body","#document"]);function Ne(e){return Ir.has(De(e))}function at(e){return re(e).getComputedStyle(e)}function Bs(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(De(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rt(e)&&e.host||vr(e);return Rt(t)?t.host:t}function hn(e){const t=Je(e);return Ne(t)?e.ownerDocument?e.ownerDocument.body:e.body:Z(t)&&We(t)?t:hn(t)}function Me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=hn(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=re(o);if(s){const i=Or(a);return t.concat(a,a.visualViewport||[],We(o)?o:[],i&&n?Me(i):[])}return t.concat(o,Me(o,[],n))}function Or(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const kr={...sn},Pr=()=>{},B=typeof document<"u"?f.useLayoutEffect:Pr,Ar=f.createContext(void 0);function Nr(e=!1){const t=f.useContext(Ar);if(t===void 0&&!e)throw new Error(cn(16));return t}function Mr(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:s}=e,a=r&&t!==!1,i=r&&t===!1;return{props:f.useMemo(()=>{const c={onKeyDown(p){n&&t&&p.key!=="Tab"&&p.preventDefault()}};return r||(c.tabIndex=o,!s&&n&&(c.tabIndex=t?o:-1)),(s&&(t||a)||!s&&n)&&(c["aria-disabled"]=n),s&&(!t||i)&&(c.disabled=n),c},[r,n,t,a,i,s,o])}}function js(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,s=f.useRef(null),a=Nr(!0)!==void 0,i=A(()=>{const m=s.current;return!!(m?.tagName==="A"&&m?.href)}),{props:l}=Mr({focusableWhenDisabled:n,disabled:t,composite:a,tabIndex:r,isNativeButton:o}),c=f.useCallback(()=>{const m=s.current;Fr(m)&&a&&t&&l.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,l.disabled,a]);B(c,[c]);const p=f.useCallback((m={})=>{const{onClick:h,onMouseDown:v,onKeyUp:y,onKeyDown:E,onPointerDown:T,...O}=m;return nr({type:o?"button":void 0,onClick(R){if(t){R.preventDefault();return}h?.(R)},onMouseDown(R){t||v?.(R)},onKeyDown(R){if(t||(Lt(R),E?.(R)),R.baseUIHandlerPrevented)return;const F=R.target===R.currentTarget&&!o&&!i()&&!t,x=R.key==="Enter",L=R.key===" ";F&&((L||x)&&R.preventDefault(),x&&h?.(R))},onKeyUp(R){t||(Lt(R),y?.(R)),!R.baseUIHandlerPrevented&&R.target===R.currentTarget&&!o&&!t&&R.key===" "&&h?.(R)},onPointerDown(R){if(t){R.preventDefault();return}T?.(R)}},o?void 0:{role:"button"},l,O)},[t,l,o,i]),u=A(m=>{s.current=m,c()});return{getButtonProps:p,buttonRef:u}}function Fr(e){return Z(e)&&e.tagName==="BUTTON"}let _t=0;function Lr(e,t="mui"){const[n,r]=f.useState(e),o=e||n;return f.useEffect(()=>{n==null&&(_t+=1,r(`${t}-${_t}`))},[n,t]),o}const Bt=kr.useId;function Ve(e,t){if(Bt!==void 0){const n=Bt();return e??(t?`${t}-${n}`:n)}return Lr(e,t)}function $s(e){return Ve(e,"base-ui")}function pe(e,t,n,r){let o=!1,s=!1;const a=ve;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...a}}const Dr=[];function gn(e){f.useEffect(e,Dr)}const Ye=null;class Wr{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const Ke=new Wr;class ne{static create(){return new ne}static request(t){return Ke.request(t)}static cancel(t){return Ke.cancel(t)}currentId=Ye;request(t){this.cancel(),this.currentId=Ke.request(()=>{this.currentId=Ye,t()})}cancel=()=>{this.currentId!==Ye&&(Ke.cancel(this.currentId),this.currentId=Ye)};disposeEffect=()=>this.cancel}function bn(){const e=he(ne.create).current;return gn(e.disposeEffect),e}function Vr(e,t=!1,n=!1){const[r,o]=f.useState(e&&t?"idle":void 0),[s,a]=f.useState(e);return e&&!s&&(a(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),B(()=>{if(!e&&s&&r!=="ending"&&n){const i=ne.request(()=>{o("ending")});return()=>{ne.cancel(i)}}},[e,s,r,n]),B(()=>{if(!e||t)return;const i=ne.request(()=>{o(void 0)});return()=>{ne.cancel(i)}},[t,e]),B(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");const i=ne.request(()=>{o("idle")});return()=>{ne.cancel(i)}},[t,e,s,o,r]),f.useMemo(()=>({mounted:s,setMounted:a,transitionStatus:r}),[s,r])}function se(e){return e==null?e:"current"in e?e.current:e}function _r(e,t=!1,n=!0){const r=bn();return A((o,s=null)=>{r.cancel();function a(){Pt.flushSync(o)}const i=se(e);if(i==null)return;const l=i;if(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)o();else{let c=function(){const u=Le.startingStyle;if(!l.hasAttribute(u)){r.request(p);return}const m=new MutationObserver(()=>{l.hasAttribute(u)||(m.disconnect(),p())});m.observe(l,{attributes:!0,attributeFilter:[u]}),s?.addEventListener("abort",()=>m.disconnect(),{once:!0})},p=function(){Promise.all(l.getAnimations().map(u=>u.finished)).then(()=>{s?.aborted||a()}).catch(()=>{const u=l.getAnimations();if(n){if(s?.aborted)return;a()}else u.length>0&&u.some(m=>m.pending||m.playState!=="finished")&&p()})};if(t){c();return}r.request(p)}})}function Br(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,s=A(o),a=_r(r,n,!1);f.useEffect(()=>{if(!t)return;const i=new AbortController;return a(s,i.signal),()=>{i.abort()}},[t,n,s,a])}const Ae=0;class Se{static create(){return new Se}currentId=Ae;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ae,n()},t)}isStarted(){return this.currentId!==Ae}clear=()=>{this.currentId!==Ae&&(clearTimeout(this.currentId),this.currentId=Ae)};disposeEffect=()=>this.clear}function Ze(){const e=he(Se.create).current;return gn(e.disposeEffect),e}function pt(e){const t=he(jr,e).current;return t.next=e,B(t.effect),t}function jr(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function $(e){return e?.ownerDocument||document}const we=typeof navigator<"u",ht=Hr(),mn=Kr(),vn=Yr(),yn=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),En=ht.platform==="MacIntel"&&ht.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(ht.platform),$r=we&&/apple/i.test(navigator.vendor),wt=we&&/android/i.test(mn)||/android/i.test(vn),Hs=we&&mn.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,Sn=vn.includes("jsdom/");function Hr(){if(!we)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Yr(){if(!we)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Kr(){if(!we)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const Tt="data-base-ui-focusable",Rn="active",wn="selected",qr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Ys="ArrowLeft",Ks="ArrowRight",qs="ArrowUp",Us="ArrowDown";function de(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function _(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Rt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Gs(e,t){if(!te(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute("data-trigger-disabled");for(const[,r]of t.entries())if(_(r,n))return!r.hasAttribute("data-trigger-disabled");return!1}function ie(e){return"composedPath"in e?e.composedPath()[0]:e.target}function J(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Ur(e){return e.matches("html,body")}function Tn(e){return Z(e)&&e.matches(qr)}function jt(e){return e?e.getAttribute("role")==="combobox"&&Tn(e):!1}function zs(e){if(!e||Sn)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function xt(e){return e?e.hasAttribute(Tt)?e:e.querySelector(`[${Tt}]`)||e:null}function ye(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...ye(e,o.id,n)])}function $t(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(s=>s.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function Gr(e){e.preventDefault(),e.stopPropagation()}function zr(e){return"nativeEvent"in e}function Xr(e){return e.pointerType===""&&e.isTrusted?!0:wt&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Jr(e){return Sn?!1:!wt&&e.width===0&&e.height===0||wt&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Xs(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Zr(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}var Qr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Qe=Qr.join(","),xn=typeof Element>"u",Re=xn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,et=!xn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},tt=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",a=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):tt(t.parentNode));return a},eo=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Cn=function(t,n,r){if(tt(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Qe));return n&&Re.call(t,Qe)&&o.unshift(t),o=o.filter(r),o},nt=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var a=s.shift();if(!tt(a,!1))if(a.tagName==="SLOT"){var i=a.assignedElements(),l=i.length?i:a.children,c=nt(l,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:a,candidates:c})}else{var p=Re.call(a,Qe);p&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),m=!tt(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&m){var h=nt(u===!0?a.children:u.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:a,candidates:h})}else s.unshift.apply(s,a.children)}}return o},In=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},On=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||eo(t))&&!In(t)?0:t.tabIndex},to=function(t,n){var r=On(t);return r<0&&n&&!In(t)?0:r},no=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},kn=function(t){return t.tagName==="INPUT"},ro=function(t){return kn(t)&&t.type==="hidden"},oo=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},so=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},io=function(t){if(!t.name)return!0;var n=t.form||et(t),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var s=so(o,t.form);return!s||s===t},ao=function(t){return kn(t)&&t.type==="radio"},co=function(t){return ao(t)&&!io(t)},uo=function(t){var n,r=t&&et(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var a,i,l;for(s=!!((a=o)!==null&&a!==void 0&&(i=a.ownerDocument)!==null&&i!==void 0&&i.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!s&&o;){var c,p,u;r=et(o),o=(c=r)===null||c===void 0?void 0:c.host,s=!!((p=o)!==null&&p!==void 0&&(u=p.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return s},Ht=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},lo=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var a=Re.call(t,"details>summary:first-of-type"),i=a?t.parentElement:t;if(Re.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var c=t.parentElement,p=et(t);if(c&&!c.shadowRoot&&o(c)===!0)return Ht(t);t.assignedSlot?t=t.assignedSlot:!c&&p!==t.ownerDocument?t=p.host:t=c}t=l}if(uo(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ht(t);return!1},fo=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Re.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Ct=function(t,n){return!(n.disabled||ro(n)||lo(n,t)||oo(n)||fo(n))},It=function(t,n){return!(co(n)||On(n)<0||!Ct(t,n))},po=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Pn=function(t){var n=[],r=[];return t.forEach(function(o,s){var a=!!o.scopeParent,i=a?o.scopeParent:o,l=to(i,a),c=a?Pn(o.candidates):i;l===0?a?n.push.apply(n,c):n.push(i):r.push({documentOrder:s,tabIndex:l,item:o,isScope:a,content:c})}),r.sort(no).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},_e=function(t,n){n=n||{};var r;return n.getShadowRoot?r=nt([t],n.includeContainer,{filter:It.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:po}):r=Cn(t,n.includeContainer,It.bind(null,n)),Pn(r)},ho=function(t,n){n=n||{};var r;return n.getShadowRoot?r=nt([t],n.includeContainer,{filter:Ct.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Cn(t,n.includeContainer,Ct.bind(null,n)),r},An=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Re.call(t,Qe)===!1?!1:It(n,t)};const Te=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Nn(e,t){const n=_e(e,Te()),r=n.length;if(r===0)return;const o=de($(e)),s=n.indexOf(o),a=s===-1?t===1?0:r-1:s+t;return n[a]}function Mn(e){return Nn($(e).body,1)||e}function Fn(e){return Nn($(e).body,-1)||e}function Ln(e,t){if(!e)return null;const n=_e($(e).body,Te()),r=n.length;if(r===0)return null;const o=n.indexOf(e);if(o===-1)return null;const s=(o+t+r)%r;return n[s]}function Js(e){return Ln(e,1)}function Zs(e){return Ln(e,-1)}function Fe(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!_(n,r)}function go(e){_e(e,Te()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Yt(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function Dn(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class bo{nodesRef={current:[]};events=Dn();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const Wn=f.createContext(null),Vn=f.createContext(null),ct=()=>f.useContext(Wn)?.id||null,Mt=e=>{const t=f.useContext(Vn);return e??t};function Qs(e){const t=Ve(),n=Mt(e),r=ct();return B(()=>{if(!t)return;const o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function ei(e){const{children:t,id:n}=e,r=ct();return z.jsx(Wn.Provider,{value:f.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function ti(e){const{children:t,externalTree:n}=e,r=he(()=>n??new bo).current;return z.jsx(Vn.Provider,{value:r,children:t})}function rt(e){return`data-base-ui-${e}`}const mo={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},_n={...mo,position:"fixed",top:0,left:0},ot=f.forwardRef(function(t,n){const[r,o]=f.useState();B(()=>{$r&&o("button")},[]);const s={tabIndex:0,role:r};return z.jsx("span",{...t,ref:n,style:_n,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});let Kt=0;function gt(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Kt);const s=()=>e?.focus({preventScroll:n});o?s():Kt=requestAnimationFrame(s)}const Ee={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function qt(e){return e==="inert"?Ee.inert:e==="aria-hidden"?Ee["aria-hidden"]:Ee.none}let qe=new WeakSet,Ue={},bt=0;const Bn=e=>e&&(e.host||Bn(e.parentNode)),vo=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Bn(n);return e.contains(r)?r:null}).filter(n=>n!=null);function yo(e,t,n,r){const o="data-base-ui-inert",s=r?"inert":n?"aria-hidden":null,a=vo(t,e),i=new Set,l=new Set(a),c=[];Ue[o]||(Ue[o]=new WeakMap);const p=Ue[o];a.forEach(u),m(t),i.clear();function u(h){!h||i.has(h)||(i.add(h),h.parentNode&&u(h.parentNode))}function m(h){!h||l.has(h)||[].forEach.call(h.children,v=>{if(De(v)!=="script")if(i.has(v))m(v);else{const y=s?v.getAttribute(s):null,E=y!==null&&y!=="false",T=qt(s),O=(T.get(v)||0)+1,M=(p.get(v)||0)+1;T.set(v,O),p.set(v,M),c.push(v),O===1&&E&&qe.add(v),M===1&&v.setAttribute(o,""),!E&&s&&v.setAttribute(s,s==="inert"?"":"true")}})}return bt+=1,()=>{c.forEach(h=>{const v=qt(s),E=(v.get(h)||0)-1,T=(p.get(h)||0)-1;v.set(h,E),p.set(h,T),E||(!qe.has(h)&&s&&h.removeAttribute(s),qe.delete(h)),T||h.removeAttribute(o)}),bt-=1,bt||(Ee.inert=new WeakMap,Ee["aria-hidden"]=new WeakMap,Ee.none=new WeakMap,qe=new WeakSet,Ue={})}}function Eo(e,t=!1,n=!1){const r=$(e[0]).body;return yo(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const jn=f.createContext(null),$n=()=>f.useContext(jn),So=rt("portal");function Ro(e={}){const{ref:t,container:n,componentProps:r=ve,elementProps:o}=e,s=Ve(),i=$n()?.portalNode,[l,c]=f.useState(null),[p,u]=f.useState(null),m=A(E=>{E!==null&&u(E)}),h=f.useRef(null);B(()=>{if(n===null){h.current&&(h.current=null,u(null),c(null));return}if(s==null)return;const E=(n&&(Nt(n)?n:n.current))??i??document.body;if(E==null){h.current&&(h.current=null,u(null),c(null));return}h.current!==E&&(h.current=E,u(null),c(E))},[n,i,s]);const v=rr("div",r,{ref:[t,m],props:[{id:s,[So]:""},o]});return{portalNode:p,portalSubtree:l&&v?Pt.createPortal(v,l):null}}const ni=f.forwardRef(function(t,n){const{children:r,container:o,className:s,render:a,renderGuards:i,...l}=t,{portalNode:c,portalSubtree:p}=Ro({container:o,ref:n,componentProps:t,elementProps:l}),u=f.useRef(null),m=f.useRef(null),h=f.useRef(null),v=f.useRef(null),[y,E]=f.useState(null),T=y?.modal,O=y?.open,M=typeof i=="boolean"?i:!!y&&!y.modal&&y.open&&!!c;f.useEffect(()=>{if(!c||T)return;function F(x){c&&x.relatedTarget&&Fe(x)&&(x.type==="focusin"?Yt:go)(c)}return c.addEventListener("focusin",F,!0),c.addEventListener("focusout",F,!0),()=>{c.removeEventListener("focusin",F,!0),c.removeEventListener("focusout",F,!0)}},[c,T]),f.useEffect(()=>{!c||O||Yt(c)},[O,c]);const R=f.useMemo(()=>({beforeOutsideRef:u,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:v,portalNode:c,setFocusManagerState:E}),[c]);return z.jsxs(f.Fragment,{children:[p,z.jsxs(jn.Provider,{value:R,children:[M&&c&&z.jsx(ot,{"data-type":"outside",ref:u,onFocus:F=>{if(Fe(F,c))h.current?.focus();else{const x=y?y.domReference:null;Fn(x)?.focus()}}}),M&&c&&z.jsx("span",{"aria-owns":c.id,style:sr}),c&&Pt.createPortal(r,c),M&&c&&z.jsx(ot,{"data-type":"outside",ref:m,onFocus:F=>{if(Fe(F,c))v.current?.focus();else{const x=y?y.domReference:null;Mn(x)?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,pe(dn,F.nativeEvent))}}})]})]})});function wo(e,t){const n=re(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Ut=20;let ue=[];function Ft(){ue=ue.filter(e=>e.deref()?.isConnected)}function To(e){Ft(),e&&De(e)!=="body"&&(ue.push(new WeakRef(e)),ue.length>Ut&&(ue=ue.slice(-Ut)))}function mt(){return Ft(),ue[ue.length-1]?.deref()}function xo(e){if(!e)return null;const t=Te();return An(e,t)?e:_e(e,t)[0]||e}function Co(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():at(e).display!=="none"}function Gt(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=Te(),o=ho(e,n).filter(a=>{const i=a.getAttribute("data-tabindex")||"";return An(a,n)||a.hasAttribute("data-tabindex")&&!i.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function ri(e){const{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:s=!0,restoreFocus:a=!1,modal:i=!0,closeOnFocusOut:l=!0,openInteractionType:c="",nextFocusableElement:p,previousFocusableElement:u,beforeContentFocusGuardRef:m,externalTree:h}=e,v="rootStore"in t?t.rootStore:t,y=v.useState("open"),E=v.useState("domReferenceElement"),T=v.useState("floatingElement"),{events:O,dataRef:M}=v.context,R=A(()=>M.current.floatingContext?.nodeId),F=o===!1,x=jt(E)&&F,L=f.useRef(["content"]),D=pt(o),q=pt(s),xe=pt(c),H=Mt(h),k=$n(),Be=f.useRef(null),Ce=f.useRef(null),Y=f.useRef(!1),U=f.useRef(!1),Ie=f.useRef(!1),Q=f.useRef(-1),ae=f.useRef(""),ge=f.useRef(""),Oe=f.useRef(null),le=f.useRef(null),oe=Dt(Oe,m,k?.beforeInsideRef),ut=Dt(le,k?.afterInsideRef),be=Ze(),je=Ze(),me=bn(),fe=k!=null,C=xt(T),ee=A((g=C)=>g?_e(g,Te()):[]),ce=A(g=>{const b=ee(g);return L.current.map(()=>b).filter(Boolean).flat()});f.useEffect(()=>{if(r||!i)return;function g(N){N.key==="Tab"&&_(C,de($(C)))&&ee().length===0&&!x&&Gr(N)}const b=$(C);return b.addEventListener("keydown",g),()=>{b.removeEventListener("keydown",g)}},[r,E,C,i,L,x,ee,ce]),f.useEffect(()=>{if(r||!y)return;const g=$(C);function b(){Ie.current=!1}function N(I){const S=ie(I),W=_(T,S)||_(E,S)||_(k?.portalNode,S);Ie.current=!W,ge.current=I.pointerType||"keyboard",S?.closest(`[${or}]`)&&(U.current=!0)}function w(){ge.current="keyboard"}return g.addEventListener("pointerdown",N,!0),g.addEventListener("pointerup",b,!0),g.addEventListener("pointercancel",b,!0),g.addEventListener("keydown",w,!0),()=>{g.removeEventListener("pointerdown",N,!0),g.removeEventListener("pointerup",b,!0),g.removeEventListener("pointercancel",b,!0),g.removeEventListener("keydown",w,!0)}},[r,T,E,C,y,k]),f.useEffect(()=>{if(r||!l)return;const g=$(C);function b(){U.current=!0,je.start(0,()=>{U.current=!1})}function N(K){const P=ie(K),X=ee().indexOf(P);X!==-1&&(Q.current=X)}function w(K){const P=K.relatedTarget,V=K.currentTarget,X=ie(K);queueMicrotask(()=>{const ke=R(),$e=v.context.triggerElements,lt=P?.hasAttribute(rt("focus-guard"))&&[Oe.current,le.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,se(u),se(p)].includes(P),ft=!(_(E,P)||_(T,P)||_(P,T)||_(k?.portalNode,P)||P!=null&&$e.hasElement(P)||$e.hasMatchingElement(G=>_(G,P))||lt||H&&(ye(H.nodesRef.current,ke).find(G=>_(G.context?.elements.floating,P)||_(G.context?.elements.domReference,P))||$t(H.nodesRef.current,ke).find(G=>[G.context?.elements.floating,xt(G.context?.elements.floating)].includes(P)||G.context?.elements.domReference===P)));if(V===E&&C&&Gt(C,L),a&&V!==E&&!Co(X)&&de(g)===g.body){if(Z(C)&&(C.focus(),a==="popup")){me.request(()=>{C.focus()});return}const G=Q.current,Pe=ee(),He=Pe[G]||Pe[Pe.length-1]||C;Z(He)&&He.focus()}if(M.current.insideReactTree){M.current.insideReactTree=!1;return}(x||!i)&&P&&ft&&!U.current&&(x||P!==mt())&&(Y.current=!0,v.setOpen(!1,pe(dn,K)))})}function I(){Ie.current||(M.current.insideReactTree=!0,be.start(0,()=>{M.current.insideReactTree=!1}))}const S=Z(E)?E:null,W=[];if(!(!T&&!S))return S&&(S.addEventListener("focusout",w),S.addEventListener("pointerdown",b),W.push(()=>{S.removeEventListener("focusout",w),S.removeEventListener("pointerdown",b)})),T&&(T.addEventListener("focusin",N),T.addEventListener("focusout",w),k&&(T.addEventListener("focusout",I,!0),W.push(()=>{T.removeEventListener("focusout",I,!0)})),W.push(()=>{T.removeEventListener("focusin",N),T.removeEventListener("focusout",w)})),()=>{W.forEach(K=>{K()})}},[r,E,T,C,i,H,k,v,l,a,ee,x,R,L,M,be,je,me,p,u]),f.useEffect(()=>{if(r||!T||!y)return;const g=Array.from(k?.portalNode?.querySelectorAll(`[${rt("portal")}]`)||[]),N=(H?$t(H.nodesRef.current,R()):[]).find(I=>jt(I.context?.elements.domReference||null))?.context?.elements.domReference,w=[T,N,...g,Be.current,Ce.current,Oe.current,le.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,se(u),se(p),x?E:null].filter(I=>I!=null);return Eo(w,i||x)},[y,r,E,T,i,L,k,x,H,R,p,u]),B(()=>{if(!y||r||!Z(C))return;const g=$(C),b=de(g);queueMicrotask(()=>{const N=ce(C),w=D.current,I=typeof w=="function"?w(xe.current||""):w;if(I===void 0||I===!1)return;let S;I===!0||I===null?S=N[0]||C:S=se(I),S=S||N[0]||C,!_(C,b)&>(S,{preventScroll:S===C})})},[r,y,C,F,ce,D,xe]),B(()=>{if(r||!C)return;const g=$(C),b=de(g);To(b);function N(S){if(S.open||(ae.current=wo(S.nativeEvent,ge.current)),S.reason===pr&&S.nativeEvent.type==="mouseleave"&&(Y.current=!0),S.reason===fn)if(S.nested)Y.current=!1;else if(Xr(S.nativeEvent)||Jr(S.nativeEvent))Y.current=!1;else{let W=!1;document.createElement("div").focus({get preventScroll(){return W=!0,!1}}),W?Y.current=!1:Y.current=!0}}O.on("openchange",N);const w=g.createElement("span");w.setAttribute("tabindex","-1"),w.setAttribute("aria-hidden","true"),Object.assign(w.style,_n),fe&&E&&E.insertAdjacentElement("afterend",w);function I(){const S=q.current;let W=typeof S=="function"?S(ae.current):S;if(W===void 0||W===!1)return null;if(W===null&&(W=!0),typeof W=="boolean"){const P=E||mt();return P&&P.isConnected?P:w}const K=E||mt()||w;return se(W)||K}return()=>{O.off("openchange",N);const S=de(g),W=_(T,S)||H&&ye(H.nodesRef.current,R(),!1).some(P=>_(P.context?.elements.floating,S)),K=I();queueMicrotask(()=>{const P=xo(K),V=typeof q.current!="boolean";q.current&&!Y.current&&Z(P)&&(!(!V&&P!==S&&S!==g.body)||W)&&P.focus({preventScroll:!0}),w.remove(),Y.current=!1})}},[r,T,C,q,M,O,H,fe,E,R]),B(()=>{if(!yn||y||!T)return;const g=de($(T));!Z(g)||!Tn(g)||_(T,g)&&g.blur()},[y,T]),B(()=>{if(!(r||!k))return k.setFocusManagerState({modal:i,closeOnFocusOut:l,open:y,onOpenChange:v.setOpen,domReference:E}),()=>{k.setFocusManagerState(null)}},[r,k,i,y,v,l,E]),B(()=>{if(!(r||!C))return Gt(C,L),()=>{queueMicrotask(Ft)}},[r,C,L]);const d=!r&&(i?!x:!0)&&(fe||i);return z.jsxs(f.Fragment,{children:[d&&z.jsx(ot,{"data-type":"inside",ref:oe,onFocus:g=>{if(i){const b=ce();gt(b[b.length-1])}else k?.portalNode&&(Y.current=!1,Fe(g,k.portalNode)?Mn(E)?.focus():se(u??k.beforeOutsideRef)?.focus())}}),n,d&&z.jsx(ot,{"data-type":"inside",ref:ut,onFocus:g=>{i?gt(ce()[0]):k?.portalNode&&(l&&(Y.current=!0),Fe(g,k.portalNode)?Fn(E)?.focus():se(p??k.afterOutsideRef)?.focus())}})]})}const Io={intentional:"onClick",sloppy:"onPointerDown"};function Oo(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function oi(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("referenceElement"),a=n.useState("domReferenceElement"),{onOpenChange:i,dataRef:l}=n.context,{enabled:c=!0,escapeKey:p=!0,outsidePress:u=!0,outsidePressEvent:m="sloppy",referencePress:h=!1,referencePressEvent:v="sloppy",ancestorScroll:y=!1,bubbles:E,externalTree:T}=t,O=Mt(T),M=A(typeof u=="function"?u:()=>!1),R=typeof u=="function"?M:u,F=f.useRef(!1),{escapeKey:x,outsidePress:L}=Oo(E),D=f.useRef(null),q=Ze(),xe=Ze(),H=A(()=>{xe.clear(),l.current.insideReactTree=!1}),k=f.useRef(!1),Be=f.useRef(""),Ce=A(d=>{Be.current=d.pointerType}),Y=A(()=>{const d=Be.current,g=d==="pen"||!d?"mouse":d,b=typeof m=="function"?m():m;return typeof b=="string"?b:b[g]}),U=A(d=>{if(!r||!c||!p||d.key!=="Escape"||k.current)return;const g=l.current.floatingContext?.nodeId,b=O?ye(O.nodesRef.current,g):[];if(!x&&b.length>0){let I=!0;if(b.forEach(S=>{S.context?.open&&!S.context.dataRef.current.__escapeKeyBubbles&&(I=!1)}),!I)return}const N=zr(d)?d.nativeEvent:d,w=pe(hr,N);n.setOpen(!1,w),!x&&!w.isPropagationAllowed&&d.stopPropagation()}),Ie=A(d=>{const g=Y();return g==="intentional"&&d.type!=="click"||g==="sloppy"&&d.type==="click"}),Q=A(()=>{l.current.insideReactTree=!0,xe.start(0,H)}),ae=A((d,g=!1)=>{if(Ie(d)){H();return}if(l.current.insideReactTree){H();return}if(Y()==="intentional"&&g||typeof R=="function"&&!R(d))return;const b=ie(d),N=`[${rt("inert")}]`,w=$(n.select("floatingElement")).querySelectorAll(N),I=n.context.triggerElements;if(b&&(I.hasElement(b)||I.hasMatchingElement(V=>_(V,b))))return;let S=te(b)?b:null;for(;S&&!Ne(S);){const V=Je(S);if(Ne(V)||!te(V))break;S=V}if(w.length&&te(b)&&!Ur(b)&&!_(b,n.select("floatingElement"))&&Array.from(w).every(V=>!_(S,V)))return;if(Z(b)&&!("touches"in d)){const V=Ne(b),X=at(b),ke=/auto|scroll/,$e=V||ke.test(X.overflowX),lt=V||ke.test(X.overflowY),ft=$e&&b.clientWidth>0&&b.scrollWidth>b.clientWidth,G=lt&&b.clientHeight>0&&b.scrollHeight>b.clientHeight,Pe=X.direction==="rtl",He=G&&(Pe?d.offsetX<=b.offsetWidth-b.clientWidth:d.offsetX>b.clientWidth),tr=ft&&d.offsetY>b.clientHeight;if(He||tr)return}const W=l.current.floatingContext?.nodeId,K=O&&ye(O.nodesRef.current,W).some(V=>J(d,V.context?.elements.floating));if(J(d,n.select("floatingElement"))||J(d,n.select("domReferenceElement"))||K)return;const P=O?ye(O.nodesRef.current,W):[];if(P.length>0){let V=!0;if(P.forEach(X=>{X.context?.open&&!X.context.dataRef.current.__outsidePressBubbles&&(V=!1)}),!V)return}n.setOpen(!1,pe(fn,d)),H()}),ge=A(d=>{Y()!=="sloppy"||d.pointerType==="touch"||!n.select("open")||!c||J(d,n.select("floatingElement"))||J(d,n.select("domReferenceElement"))||ae(d)}),Oe=A(d=>{if(Y()!=="sloppy"||!n.select("open")||!c||J(d,n.select("floatingElement"))||J(d,n.select("domReferenceElement")))return;const g=d.touches[0];g&&(D.current={startTime:Date.now(),startX:g.clientX,startY:g.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},q.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}),le=A(d=>{const g=ie(d);function b(){Oe(d),g?.removeEventListener(d.type,b)}g?.addEventListener(d.type,b)}),oe=A(d=>{const g=F.current;if(F.current=!1,q.clear(),d.type==="mousedown"&&D.current&&!D.current.dismissOnMouseDown)return;const b=ie(d);function N(){d.type==="pointerdown"?ge(d):ae(d,g),b?.removeEventListener(d.type,N)}b?.addEventListener(d.type,N)}),ut=A(d=>{if(Y()!=="sloppy"||!D.current||J(d,n.select("floatingElement"))||J(d,n.select("domReferenceElement")))return;const g=d.touches[0];if(!g)return;const b=Math.abs(g.clientX-D.current.startX),N=Math.abs(g.clientY-D.current.startY),w=Math.sqrt(b*b+N*N);w>5&&(D.current.dismissOnTouchEnd=!0),w>10&&(ae(d),q.clear(),D.current=null)}),be=A(d=>{const g=ie(d);function b(){ut(d),g?.removeEventListener(d.type,b)}g?.addEventListener(d.type,b)}),je=A(d=>{Y()!=="sloppy"||!D.current||J(d,n.select("floatingElement"))||J(d,n.select("domReferenceElement"))||(D.current.dismissOnTouchEnd&&ae(d),q.clear(),D.current=null)}),me=A(d=>{const g=ie(d);function b(){je(d),g?.removeEventListener(d.type,b)}g?.addEventListener(d.type,b)});f.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=x,l.current.__outsidePressBubbles=L;const d=new Se;function g(S){n.setOpen(!1,pe(dr,S))}function b(){d.clear(),k.current=!0}function N(){d.start(pn()?5:0,()=>{k.current=!1})}const w=$(o);w.addEventListener("pointerdown",Ce,!0),p&&(w.addEventListener("keydown",U),w.addEventListener("compositionstart",b),w.addEventListener("compositionend",N)),R&&(w.addEventListener("click",oe,!0),w.addEventListener("pointerdown",oe,!0),w.addEventListener("touchstart",le,!0),w.addEventListener("touchmove",be,!0),w.addEventListener("touchend",me,!0),w.addEventListener("mousedown",oe,!0));let I=[];return y&&(te(a)&&(I=Me(a)),te(o)&&(I=I.concat(Me(o))),!te(s)&&s&&s.contextElement&&(I=I.concat(Me(s.contextElement)))),I=I.filter(S=>S!==w.defaultView?.visualViewport),I.forEach(S=>{S.addEventListener("scroll",g,{passive:!0})}),()=>{w.removeEventListener("pointerdown",Ce,!0),p&&(w.removeEventListener("keydown",U),w.removeEventListener("compositionstart",b),w.removeEventListener("compositionend",N)),R&&(w.removeEventListener("click",oe,!0),w.removeEventListener("pointerdown",oe,!0),w.removeEventListener("touchstart",le,!0),w.removeEventListener("touchmove",be,!0),w.removeEventListener("touchend",me,!0),w.removeEventListener("mousedown",oe,!0)),I.forEach(S=>{S.removeEventListener("scroll",g)}),d.clear(),F.current=!1}},[l,o,s,a,p,R,r,i,y,c,x,L,U,ae,oe,ge,le,be,me,Ce,n]),f.useEffect(H,[R,H]);const fe=f.useMemo(()=>({onKeyDown:U,...h&&{[Io[v]]:d=>{n.setOpen(!1,pe(Vt,d.nativeEvent))},...v!=="intentional"&&{onClick(d){n.setOpen(!1,pe(Vt,d.nativeEvent))}}}}),[U,n,h,v]),C=A(d=>{const g=ie(d.nativeEvent);!_(n.select("floatingElement"),g)||d.button!==0||(F.current=!0)}),ee=A(d=>{!r||!c||d.button!==0||(F.current=!0)}),ce=f.useMemo(()=>({onKeyDown:U,onPointerDown:C,onMouseDown:C,onMouseUp:C,onClickCapture:Q,onMouseDownCapture(d){Q(),ee(d)},onPointerDownCapture(d){Q(),ee(d)},onMouseUpCapture:Q,onTouchEndCapture:Q,onTouchMoveCapture:Q}),[U,C,Q,ee]);return f.useMemo(()=>c?{reference:fe,floating:ce,trigger:fe}:{},[c,fe,ce])}var st=Symbol("NOT_FOUND");function ko(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Po(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ao(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var zt=e=>Array.isArray(e)?e:[e];function No(e){const t=Array.isArray(e[0])?e[0]:e;return Ao(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Mo(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function Fo(e){let t;return{get(n){return t&&e(t.key,n)?t.value:st},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Lo(e,t){let n=[];function r(i){const l=n.findIndex(c=>t(i,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return st}function o(i,l){r(i)===st&&(n.unshift({key:i,value:l}),n.length>e&&n.pop())}function s(){return n}function a(){n=[]}return{get:r,put:o,getEntries:s,clear:a}}var Do=(e,t)=>e===t;function Wo(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function Vo(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Do,maxSize:o=1,resultEqualityCheck:s}=n,a=Wo(r);let i=0;const l=o<=1?Fo(a):Lo(o,a);function c(){let p=l.get(arguments);if(p===st){if(p=e.apply(null,arguments),i++,s){const m=l.getEntries().find(h=>s(h.value,p));m&&(p=m.value,i!==0&&i--)}l.put(arguments,p)}return p}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>i,c.resetResultsCount=()=>{i=0},c}var _o=class{constructor(e){this.value=e}deref(){return this.value}},Bo=typeof WeakRef<"u"?WeakRef:_o,jo=0,Xt=1;function Ge(){return{s:jo,v:void 0,o:null,p:null}}function Hn(e,t={}){let n=Ge();const{resultEqualityCheck:r}=t;let o,s=0;function a(){let i=n;const{length:l}=arguments;for(let u=0,m=l;u<m;u++){const h=arguments[u];if(typeof h=="function"||typeof h=="object"&&h!==null){let v=i.o;v===null&&(i.o=v=new WeakMap);const y=v.get(h);y===void 0?(i=Ge(),v.set(h,i)):i=y}else{let v=i.p;v===null&&(i.p=v=new Map);const y=v.get(h);y===void 0?(i=Ge(),v.set(h,i)):i=y}}const c=i;let p;if(i.s===Xt)p=i.v;else if(p=e.apply(null,arguments),s++,r){const u=o?.deref?.()??o;u!=null&&r(u,p)&&(p=u,s!==0&&s--),o=typeof p=="object"&&p!==null||typeof p=="function"?new Bo(p):p}return c.s=Xt,c.v=p,p}return a.clearCache=()=>{n=Ge(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function Yn(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,a=0,i,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),ko(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const p={...n,...l},{memoize:u,memoizeOptions:m=[],argsMemoize:h=Hn,argsMemoizeOptions:v=[]}=p,y=zt(m),E=zt(v),T=No(o),O=u(function(){return s++,c.apply(null,arguments)},...y),M=h(function(){a++;const F=Mo(T,arguments);return i=O.apply(null,F),i},...E);return Object.assign(M,{resultFunc:c,memoizedResultFunc:O,dependencies:T,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>i,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:u,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var $o=Yn(Hn),Ho=Object.assign((e,t=$o)=>{Po(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,i,l)=>(a[n[l]]=i,a),{}))},{withTypes:()=>Ho});Yn({memoize:Vo,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const j=(e,t,n,r,o,s,...a)=>{if(a.length>0)throw new Error(cn(1));let i;if(e)i=e;else throw new Error("Missing arguments");return i};var vt={exports:{}},yt={};var Jt;function Yo(){if(Jt)return yt;Jt=1;var e=an();function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,a=e.useDebugValue;function i(u,m){var h=m(),v=r({inst:{value:h,getSnapshot:m}}),y=v[0].inst,E=v[1];return s(function(){y.value=h,y.getSnapshot=m,l(y)&&E({inst:y})},[u,h,m]),o(function(){return l(y)&&E({inst:y}),u(function(){l(y)&&E({inst:y})})},[u]),a(h),h}function l(u){var m=u.getSnapshot;u=u.value;try{var h=m();return!n(u,h)}catch{return!0}}function c(u,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:i;return yt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,yt}var Zt;function Kn(){return Zt||(Zt=1,vt.exports=Yo()),vt.exports}var qn=Kn(),Et={exports:{}},St={};var Qt;function Ko(){if(Qt)return St;Qt=1;var e=an(),t=Kn();function n(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,a=e.useEffect,i=e.useMemo,l=e.useDebugValue;return St.useSyncExternalStoreWithSelector=function(c,p,u,m,h){var v=s(null);if(v.current===null){var y={hasValue:!1,value:null};v.current=y}else y=v.current;v=i(function(){function T(x){if(!O){if(O=!0,M=x,x=m(x),h!==void 0&&y.hasValue){var L=y.value;if(h(L,x))return R=L}return R=x}if(L=R,r(M,x))return L;var D=m(x);return h!==void 0&&h(L,D)?(M=x,L):(M=x,R=D)}var O=!1,M,R,F=u===void 0?null:u;return[function(){return T(p())},F===null?void 0:function(){return T(F())}]},[p,u,m,h]);var E=o(c,v[0],v[1]);return a(function(){y.hasValue=!0,y.value=E},[E]),l(E),E},St}var en;function qo(){return en||(en=1,Et.exports=Ko()),Et.exports}var Uo=qo();const Ot=[];let kt;function Go(){return kt}function zo(e){Ot.push(e)}function Xo(e){const t=(n,r)=>{const o=he(Jo).current;let s;try{kt=o;for(const a of Ot)a.before(o);s=e(n,r);for(const a of Ot)a.after(o);o.didInitialize=!0}finally{kt=void 0}return s};return t.displayName=e.displayName||e.name,t}function si(e){return f.forwardRef(Xo(e))}function Jo(){return{didInitialize:!1}}const Zo=un(19),Qo=Zo?ts:ns;function Un(e,t,n,r,o){return Qo(e,t,n,r,o)}function es(e,t,n,r,o){const s=f.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return qn.useSyncExternalStore(e.subscribe,s,s)}zo({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,o))&&(t=!0,r.value=o,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const o of e.syncHooks)n.add(o.store);const r=[];for(const o of n)r.push(o.subscribe(t));return()=>{for(const o of r)o()}}),qn.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ts(e,t,n,r,o){const s=Go();if(!s)return es(e,t,n,r,o);const a=s.syncIndex;s.syncIndex+=1;let i;return s.didInitialize?(i=s.syncHooks[a],(i.store!==e||i.selector!==t||!Object.is(i.a1,n)||!Object.is(i.a2,r)||!Object.is(i.a3,o))&&(i.store!==e&&(s.didChangeStore=!0),i.store=e,i.selector=t,i.a1=n,i.a2=r,i.a3=o,i.didChange=!0)):(i={store:e,selector:t,a1:n,a2:r,a3:o,value:t(e.getSnapshot(),n,r,o),didChange:!1},s.syncHooks.push(i)),i.value}function ns(e,t,n,r,o){return Uo.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,o))}class rs{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,o){return Un(this,t,n,r,o)}}class os extends rs{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){f.useDebugValue(t),B(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){const r=this;B(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);B(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){f.useDebugValue(t);const r=n!==void 0;B(()=>{r&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r])}select(t,n,r,o){const s=this.selectors[t];return s(this.state,n,r,o)}useState(t,n,r,o){return f.useDebugValue(t),Un(this,this.selectors[t],n,r,o)}useContextCallback(t,n){f.useDebugValue(t);const r=A(n??ln);this.context[t]=r}useStateSetter(t){const n=f.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(s=>{const a=r(s);if(!Object.is(o,a)){const i=o;o=a,n(a,i,this)}})}}const ss={open:j(e=>e.open),domReferenceElement:j(e=>e.domReferenceElement),referenceElement:j(e=>e.positionReference??e.referenceElement),floatingElement:j(e=>e.floatingElement),floatingId:j(e=>e.floatingId)};class Gn extends os{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:s,...a}=t;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:Dn(),nested:n,noEmit:r,triggerElements:s},ss)}setOpen=(t,n)=>{if((!t||!this.state.open||Zr(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function is(e,t){const n=f.useRef(null),r=f.useRef(null);return f.useCallback(o=>{if(e!==void 0){if(n.current!==null){const s=n.current,a=r.current,i=t.context.triggerElements.getById(s);a&&i===a&&t.context.triggerElements.delete(s),n.current=null,r.current=null}o!==null&&(n.current=e,r.current=o,t.context.triggerElements.add(e,o))}},[t,e])}function ii(e,t,n,r){const o=n.useState("isMountedByTrigger",e),s=is(e,n),a=A(i=>{if(s(i),!i||!n.select("open"))return;const l=n.select("activeTriggerId");if(l===e){n.update({activeTriggerElement:i,...r});return}l==null&&n.update({activeTriggerId:e,activeTriggerElement:i,...r})});return B(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:o}}function ai(e){const t=e.useState("open");B(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function ci(e,t,n){const{mounted:r,setMounted:o,transitionStatus:s}=Vr(e);t.useSyncedValues({mounted:r,transitionStatus:s});const a=A(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),i=t.useState("preventUnmountingOnClose");return Br({enabled:!i,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:s}}class as{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function cs(){return new Gn({open:!1,floatingElement:null,referenceElement:null,triggerElements:new as,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function ui(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:"idle",floatingRootContext:cs(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ve,inactiveTriggerProps:ve,popupProps:ve}}const ze=j(e=>e.triggerIdProp??e.activeTriggerId),li={open:j(e=>e.openProp??e.open),mounted:j(e=>e.mounted),transitionStatus:j(e=>e.transitionStatus),floatingRootContext:j(e=>e.floatingRootContext),preventUnmountingOnClose:j(e=>e.preventUnmountingOnClose),payload:j(e=>e.payload),activeTriggerId:ze,activeTriggerElement:j(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:j((e,t)=>t!==void 0&&ze(e)===t),isOpenedByTrigger:j((e,t)=>t!==void 0&&ze(e)===t&&e.open),isMountedByTrigger:j((e,t)=>t!==void 0&&ze(e)===t&&e.mounted),triggerProps:j((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:j(e=>e.popupProps),popupElement:j(e=>e.popupElement),positionerElement:j(e=>e.positionerElement)};function fi(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,s=Ve(),a=ct()!=null,i=t.useState("open"),l=t.useState("activeTriggerElement"),c=t.useState(r?"popupElement":"positionerElement"),p=t.context.triggerElements,u=he(()=>new Gn({open:i,referenceElement:l,floatingElement:c,triggerElements:p,onOpenChange:o,floatingId:s,nested:a,noEmit:n})).current;return B(()=>{const m={open:i,floatingId:s,referenceElement:l,floatingElement:c};te(l)&&(m.domReferenceElement=l),u.state.positionReference===u.state.referenceElement&&(m.positionReference=l),u.update(m)},[i,s,l,c,u]),u.context.onOpenChange=o,u.context.nested=a,u.context.noEmit=n,u}function di(e=[]){const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),r=e.map(c=>c?.item),o=e.map(c=>c?.trigger),s=f.useCallback(c=>Xe(c,e,"reference"),t),a=f.useCallback(c=>Xe(c,e,"floating"),n),i=f.useCallback(c=>Xe(c,e,"item"),r),l=f.useCallback(c=>Xe(c,e,"trigger"),o);return f.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:i,getTriggerProps:l}),[s,a,i,l])}function Xe(e,t,n){const r=new Map,o=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[Tt]="");for(const a in e)o&&e&&(a===Rn||a===wn)||(s[a]=e[a]);for(let a=0;a<t.length;a+=1){let i;const l=t[a]?.[n];typeof l=="function"?i=e?l(e):null:i=l,i&&tn(s,i,o,r)}return tn(s,e,o,r),s}function tn(e,t,n,r){for(const o in t){const s=t[o];n&&(o===Rn||o===wn)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof s=="function"&&(r.get(o)?.push(s),e[o]=(...a)=>r.get(o)?.map(i=>i(...a)).find(i=>i!==void 0))):e[o]=s)}}const us=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pi(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),s=n.useState("domReferenceElement"),a=n.useState("floatingElement"),{role:i="dialog"}=t,l=Ve(),c=s?.id||l,p=f.useMemo(()=>xt(a)?.id||o,[a,o]),u=us.get(i)??i,h=ct()!=null,v=f.useMemo(()=>u==="tooltip"||i==="label"?ve:{"aria-haspopup":u==="alertdialog"?"dialog":u,"aria-expanded":"false",...u==="listbox"&&{role:"combobox"},...u==="menu"&&h&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[u,h,i]),y=f.useMemo(()=>u==="tooltip"||i==="label"?{[`aria-${i==="label"?"labelledby":"describedby"}`]:r?p:void 0}:{...v,"aria-expanded":r?"true":"false","aria-controls":r?p:void 0,...u==="menu"&&{id:c}},[u,p,r,c,i,v]),E=f.useMemo(()=>{const O={id:p,...u&&{role:u}};return u==="tooltip"||i==="label"?O:{...O,...u==="menu"&&{"aria-labelledby":c}}},[u,p,c,i]),T=f.useCallback(({active:O,selected:M})=>{const R={role:"option",...O&&{id:`${p}-fui-option`}};switch(i){case"select":case"combobox":return{...R,"aria-selected":M}}return{}},[p,i]);return f.useMemo(()=>({reference:y,floating:E,item:T,trigger:v}),[y,E,v,T])}const zn="ArrowUp",Xn="ArrowDown",Jn="ArrowLeft",Zn="ArrowRight",Qn="Home",er="End",ls=new Set([Jn,Zn]),fs=new Set([zn,Xn]),ds=new Set([...ls,...fs]);[...ds];const hi=new Set([zn,Xn,Jn,Zn,Qn,er]);function gi(e){return un(19)?e:e?"true":void 0}const bi=f.forwardRef(function(t,n){const{cutout:r,...o}=t;let s;if(r){const a=r?.getBoundingClientRect();s=`polygon(
|
|
2
|
-
0% 0%,
|
|
3
|
-
100% 0%,
|
|
4
|
-
100% 100%,
|
|
5
|
-
0% 100%,
|
|
6
|
-
0% 0%,
|
|
7
|
-
${a.left}px ${a.top}px,
|
|
8
|
-
${a.left}px ${a.bottom}px,
|
|
9
|
-
${a.right}px ${a.bottom}px,
|
|
10
|
-
${a.right}px ${a.top}px,
|
|
11
|
-
${a.left}px ${a.top}px
|
|
12
|
-
)`}return z.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function mi(e){const t=f.useRef(!0);t.current&&(t.current=!1,e())}let nn={},rn={},on="";function ps(e){if(typeof document>"u")return!1;const t=$(e);return re(t).innerWidth-t.documentElement.clientWidth>0}function hs(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=$(e),r=n.documentElement,o=n.body,s=We(r)?r:o,a=s.style.overflowY,i=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",s.style.overflowY="scroll";const l=s.offsetWidth;s.style.overflowY="hidden";const c=s.offsetWidth;return s.style.overflowY=a,r.style.scrollbarGutter=i,l===c}function gs(e){const t=$(e),n=t.documentElement,r=t.body,o=We(n)?n:r,s={overflowY:o.style.overflowY,overflowX:o.style.overflowX};return Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,s)}}function bs(e){const t=$(e),n=t.documentElement,r=t.body,o=re(n);let s=0,a=0,i=!1;const l=ne.create();if(yn&&(o.visualViewport?.scale??1)!==1)return()=>{};function c(){const m=o.getComputedStyle(n),h=o.getComputedStyle(r),E=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,a=n.scrollLeft,nn={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},on=n.style.scrollBehavior,rn={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const T=n.scrollHeight>n.clientHeight,O=n.scrollWidth>n.clientWidth,M=m.overflowY==="scroll"||h.overflowY==="scroll",R=m.overflowX==="scroll"||h.overflowX==="scroll",F=Math.max(0,o.innerWidth-r.clientWidth),x=Math.max(0,o.innerHeight-r.clientHeight),L=parseFloat(h.marginTop)+parseFloat(h.marginBottom),D=parseFloat(h.marginLeft)+parseFloat(h.marginRight),q=We(n)?n:r;if(i=hs(e),i){n.style.scrollbarGutter=E,q.style.overflowY="hidden",q.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:E,overflowY:"hidden",overflowX:"hidden"}),(T||M)&&(n.style.overflowY="scroll"),(O||R)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:L||x?`calc(100dvh - ${L+x}px)`:"100dvh",width:D||F?`calc(100vw - ${D+F}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function p(){Object.assign(n.style,nn),Object.assign(r.style,rn),i||(n.scrollTop=s,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=on)}function u(){p(),l.request(c)}return c(),o.addEventListener("resize",u),()=>{l.cancel(),p(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",u)}}class ms{lockCount=0;restore=null;timeoutLock=Se.create();timeoutUnlock=Se.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=$(t).documentElement,o=re(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=ln;return}const s=En||!ps(t);this.restore=s?gs(t):bs(t)}}const vs=new ms;function vi(e=!0,t=null){B(()=>{if(e)return vs.acquire(t)},[e,t])}function ys(e){const t=f.useRef(""),n=f.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:f.useCallback(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o?e(o,o.pointerType):e(o,t.current),t.current=""},[e]),onPointerDown:n}}function yi(e){const[t,n]=f.useState(null),r=A((i,l)=>{e||n(l||(En?"touch":""))}),o=f.useCallback(()=>{n(null)},[]),{onClick:s,onPointerDown:a}=ys(r);return f.useMemo(()=>({openMethod:t,reset:o,triggerProps:{onClick:s,onPointerDown:a}}),[t,o,s,a])}export{pr as $,qs as A,Vs as B,Cr as C,_s as D,De as E,We as F,Bs as G,Ve as H,ct as I,Gn as J,Mt as K,rt as L,de as M,_ as N,Gs as O,as as P,As as Q,ie as R,zs as S,$ as T,Hs as U,$r as V,hr as W,gn as X,qr as Y,Se as Z,A as _,B as a,pt as a0,xt as a1,jt as a2,gt as a3,Fs as a4,dn as a5,Xr as a6,Jr as a7,ye as a8,xs as a9,fi as aA,oi as aB,pi as aC,ws as aD,di as aE,ti as aF,Nr as aG,si as aH,ii as aI,Ls as aJ,Zs as aK,Fe as aL,Js as aM,Mn as aN,ks as aO,ot as aP,Ts as aQ,Ms as aR,At as aS,Br as aa,fn as ab,ri as ac,Ps as ad,Os as ae,hi as af,ni as ag,Cs as ah,Is as ai,bi as aj,gi as ak,ei as al,Ds as am,os as an,li as ao,bo as ap,ui as aq,j as ar,Xo as as,mi as at,Qs as au,yi as av,ai as aw,ci as ax,vi as ay,Ws as az,$s as b,Us as c,Ys as d,Ks as e,Xs as f,bn as g,Ze as h,Ns as i,Zr as j,pe as k,Tn as l,Me as m,te as n,vr as o,re as p,Or as q,at as r,Gr as s,Vt as t,js as u,Z as v,pn as w,Rr as x,Je as y,Ne as z};
|