-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2839.async.js
More file actions
2 lines (2 loc) · 38.9 KB
/
2839.async.js
File metadata and controls
2 lines (2 loc) · 38.9 KB
1
2
!(function(){"use strict";var sn=Object.defineProperty,dn=Object.defineProperties;var un=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable;var Ut=(x,w,c)=>w in x?sn(x,w,{enumerable:!0,configurable:!0,writable:!0,value:c}):x[w]=c,m=(x,w)=>{for(var c in w||(w={}))jt.call(w,c)&&Ut(x,c,w[c]);if(ke)for(var c of ke(w))Nt.call(w,c)&&Ut(x,c,w[c]);return x},E=(x,w)=>dn(x,un(w));var Y=(x,w)=>{var c={};for(var y in x)jt.call(x,y)&&w.indexOf(y)<0&&(c[y]=x[y]);if(x!=null&&ke)for(var y of ke(x))w.indexOf(y)<0&&Nt.call(x,y)&&(c[y]=x[y]);return c};(self.webpackChunk=self.webpackChunk||[]).push([[2839],{32839:function(x,w,c){c.d(w,{K:function(){return Zr}});var y=c(85893);function Le(e){const i=e,{isSelected:t,disableAnimation:r}=i,n=Y(i,["isSelected","disableAnimation"]);return(0,y.jsx)("svg",E(m({"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18"},n),{children:(0,y.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})}))}function Ie(e){const i=e,{isSelected:t,disableAnimation:r}=i,n=Y(i,["isSelected","disableAnimation"]);return(0,y.jsx)("svg",E(m({stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24"},n),{children:(0,y.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}))}function be(e){const i=e,{isIndeterminate:t}=i,r=Y(i,["isIndeterminate"]),n=t?Ie:Le;return(0,y.jsx)(n,m({},r))}var Ke=c(46347),[ve,Re]=(0,Ke.k)({name:"CheckboxGroupContext",strict:!1}),pe=c(76733),p=c(67294),Gt=c(99373);function qe(e={}){let{isReadOnly:t}=e,[r,n]=(0,Gt.z)(e.isSelected,e.defaultSelected||!1,e.onChange);function i(l){t||n(l)}function d(){t||n(!r)}return{isSelected:r,setSelected:i,toggle:d}}var _e=c(55344),Wt=c(65512),Xt=(0,_e.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Wt.ID],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}}),cn=(0,_e.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),Yt=c(27794),zt=c(14943),Qt=c(18419),Zt=c(2459),et=c(11086),tt=c(37127),V=c(50262),rt=c(52046),Jt=c(54720),Oe=c(49869),qt=c(14868),ge=c(48750);function nt(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}let _t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),$e=new Map;function er(e){let[t,r]=$eKkEp$useState(e),n=$eKkEp$useRef(null),i=$eKkEp$useSSRSafeId(t),d=$eKkEp$useCallback(l=>{n.current=l},[]);return _t&&$e.set(i,d),$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let l=i;return()=>{$e.delete(l)}},[i]),$eKkEp$useEffect(()=>{let l=n.current;l&&(n.current=null,r(l))}),i}function tr(e,t){if(e===t)return e;let r=$e.get(e);if(r)return r(t),t;let n=$e.get(t);return n?(n(e),e):t}function fn(e=[]){let t=er(),[r,n]=$1dbecbe27a04f9af$export$14d238f342723f25(t),i=$eKkEp$useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(i,[t,i,...e]),r}function at(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=at(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function rr(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=at(e))&&(n&&(n+=" "),n+=t);return n}var nr=rr;function Z(...e){let t=m({},e[0]);for(let r=1;r<e.length;r++){let n=e[r];for(let i in n){let d=t[i],l=n[i];typeof d=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=nt(d,l):(i==="className"||i==="UNSAFE_className")&&typeof d=="string"&&typeof l=="string"?t[i]=nr(d,l):i==="id"&&d&&l?t.id=tr(d,l):t[i]=l!==void 0?l:d}}return t}const ar=new Set(["id"]),ir=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),or=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),lr=/^(data-.*)$/;function sr(e,t={}){let{labelable:r,isLink:n,propNames:i}=t,d={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(ar.has(l)||r&&ir.has(l)||n&&or.has(l)||i!=null&&i.has(l)||lr.test(l))&&(d[l]=e[l]);return d}const Me=typeof document!="undefined"?p.useLayoutEffect:()=>{};function J(e){const t=(0,p.useRef)(null);return Me(()=>{t.current=e},[e]),(0,p.useCallback)((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function dr(e,t,r){let n=(0,p.useRef)(t),i=J(()=>{r&&r(n.current)});(0,p.useEffect)(()=>{var d;let l=e==null||(d=e.current)===null||d===void 0?void 0:d.form;return l==null||l.addEventListener("reset",i),()=>{l==null||l.removeEventListener("reset",i)}},[e,i])}const O=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},re=e=>e&&"window"in e&&e.window===e?e:O(e).defaultView||window;let ne=new Map,De=new Set;function it(){if(typeof window=="undefined")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let i=ne.get(n.target);i||(i=new Set,ne.set(n.target,i),n.target.addEventListener("transitioncancel",r,{once:!0})),i.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let i=ne.get(n.target);if(i&&(i.delete(n.propertyName),i.size===0&&(n.target.removeEventListener("transitioncancel",r),ne.delete(n.target)),ne.size===0)){for(let d of De)d();De.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document!="undefined"&&(document.readyState!=="loading"?it():document.addEventListener("DOMContentLoaded",it));function ot(e){requestAnimationFrame(()=>{ne.size===0?e():De.add(e)})}function q(e){if(ur())e.focus({preventScroll:!0});else{let t=cr(e);e.focus(),fr(t)}}let he=null;function ur(){if(he==null){he=!1;try{document.createElement("div").focus({get preventScroll(){return he=!0,!0}})}catch(e){}}return he}function cr(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function fr(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function me(e){var t;return typeof window=="undefined"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Ae(e){var t;return typeof window!="undefined"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function j(e){let t=null;return()=>(t==null&&(t=e()),t)}const ae=j(function(){return Ae(/^Mac/i)}),br=j(function(){return Ae(/^iPhone/i)}),lt=j(function(){return Ae(/^iPad/i)||ae()&&navigator.maxTouchPoints>1}),Fe=j(function(){return br()||lt()}),bn=j(function(){return ae()||Fe()}),vr=j(function(){return me(/AppleWebKit/i)&&!pr()}),pr=j(function(){return me(/Chrome/i)}),st=j(function(){return me(/Android/i)}),gr=j(function(){return me(/Firefox/i)});function Be(e){return e.mozInputSource===0&&e.isTrusted?!0:st()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $r(e){return!st()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}let N=null,ue=new Set,ce=new Map,_=!1,He=!1;const hr={Tab:!0,Escape:!0};function ye(e,t){for(let r of ue)r(e,t)}function mr(e){return!(e.metaKey||!ae()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Pe(e){_=!0,mr(e)&&(N="keyboard",ye("keyboard",e))}function A(e){N="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(_=!0,ye("pointer",e))}function dt(e){Be(e)&&(_=!0,N="virtual")}function ut(e){e.target===window||e.target===document||(!_&&!He&&(N="virtual",ye("virtual",e)),_=!1,He=!1)}function ct(){_=!1,He=!0}function Te(e){if(typeof window=="undefined"||ce.get(re(e)))return;const t=re(e),r=O(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){_=!0,n.apply(this,arguments)},r.addEventListener("keydown",Pe,!0),r.addEventListener("keyup",Pe,!0),r.addEventListener("click",dt,!0),t.addEventListener("focus",ut,!0),t.addEventListener("blur",ct,!1),typeof PointerEvent!="undefined"?(r.addEventListener("pointerdown",A,!0),r.addEventListener("pointermove",A,!0),r.addEventListener("pointerup",A,!0)):(r.addEventListener("mousedown",A,!0),r.addEventListener("mousemove",A,!0),r.addEventListener("mouseup",A,!0)),t.addEventListener("beforeunload",()=>{ft(e)},{once:!0}),ce.set(t,{focus:n})}const ft=(e,t)=>{const r=re(e),n=O(e);t&&n.removeEventListener("DOMContentLoaded",t),ce.has(r)&&(r.HTMLElement.prototype.focus=ce.get(r).focus,n.removeEventListener("keydown",Pe,!0),n.removeEventListener("keyup",Pe,!0),n.removeEventListener("click",dt,!0),r.removeEventListener("focus",ut,!0),r.removeEventListener("blur",ct,!1),typeof PointerEvent!="undefined"?(n.removeEventListener("pointerdown",A,!0),n.removeEventListener("pointermove",A,!0),n.removeEventListener("pointerup",A,!0)):(n.removeEventListener("mousedown",A,!0),n.removeEventListener("mousemove",A,!0),n.removeEventListener("mouseup",A,!0)),ce.delete(r))};function yr(e){const t=O(e);let r;return t.readyState!=="loading"?Te(e):(r=()=>{Te(e)},t.addEventListener("DOMContentLoaded",r)),()=>ft(e,r)}typeof document!="undefined"&&yr();function bt(){return N!=="pointer"}function Pr(){return N}function vn(e){N=e,ye(e,null)}function pn(){Te();let[e,t]=$28AnR$useState(N);return $28AnR$useEffect(()=>{let r=()=>{t(N)};return ue.add(r),()=>{ue.delete(r)}},[]),$28AnR$useIsSSR()?null:e}const Tr=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Er(e,t,r){var n;const i=typeof window!="undefined"?$28AnR$getOwnerWindow(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,d=typeof window!="undefined"?$28AnR$getOwnerWindow(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window!="undefined"?$28AnR$getOwnerWindow(r==null?void 0:r.target).HTMLElement:HTMLElement,b=typeof window!="undefined"?$28AnR$getOwnerWindow(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||(r==null?void 0:r.target)instanceof i&&!Tr.has(r==null||(n=r.target)===null||n===void 0?void 0:n.type)||(r==null?void 0:r.target)instanceof d||(r==null?void 0:r.target)instanceof l&&(r==null?void 0:r.target.isContentEditable),!(e&&t==="keyboard"&&r instanceof b&&!hr[r.key])}function gn(e={}){let{isTextInput:t,autoFocus:r}=e,[n,i]=$28AnR$useState(r||bt());return xr(d=>{i(d)},[t],{isTextInput:t}),{isFocusVisible:n}}function xr(e,t,r){Te(),$28AnR$useEffect(()=>{let n=(i,d)=>{Er(!!(r!=null&&r.isTextInput),i,d)&&e(bt())};return ue.add(n),()=>{ue.delete(n)}},t)}function wr(e){const t=O(e);if(Pr()==="virtual"){let r=t.activeElement;ot(()=>{t.activeElement===r&&e.isConnected&&q(e)})}else q(e)}function vt(e,t){Me(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}class Sr{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Cr(e){let t=(0,p.useRef)({isFocused:!1,observer:null});Me(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=J(n=>{e==null||e(n)});return(0,p.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=n.target,d=l=>{t.current.isFocused=!1,i.disabled&&r(new Sr("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",d,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let b=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:b})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:b}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function kr(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e;const d=(0,p.useCallback)(f=>{if(f.target===f.currentTarget)return n&&n(f),i&&i(!1),!0},[n,i]),l=Cr(d),b=(0,p.useCallback)(f=>{const h=O(f.target);f.target===f.currentTarget&&h.activeElement===f.target&&(r&&r(f),i&&i(!0),l(f))},[i,r,l]);return{focusProps:{onFocus:!t&&(r||i||n)?b:void 0,onBlur:!t&&(n||i)?d:void 0}}}function pt(e){if(!e)return;let t=!0;return r=>{let n=E(m({},r),{preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}});e(n),t&&r.stopPropagation()}}function Lr(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:pt(e.onKeyDown),onKeyUp:pt(e.onKeyUp)}}}let gt=p.createContext(null);function Ir(e){let t=(0,p.useContext)(gt)||{};vt(t,e);let i=t,{ref:r}=i;return Y(i,["ref"])}function $n(e,t){let l=e,{children:r}=l,n=Y(l,["children"]),i=$h8xso$useObjectRef(t),d=E(m({},n),{ref:i});return $h8xso$react.createElement(gt.Provider,{value:d},r)}let hn=null;function Kr(e,t){let{focusProps:r}=kr(e),{keyboardProps:n}=Lr(e),i=Z(r,n),d=Ir(t),l=e.isDisabled?{}:d,b=(0,p.useRef)(e.autoFocus);return(0,p.useEffect)(()=>{b.current&&t.current&&wr(t.current),b.current=!1},[t]),{focusableProps:Z(E(m({},i),{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),l)}}let ie="default",Ve="",Ee=new WeakMap;function $t(e){if(Fe()){if(ie==="default"){const t=O(e);Ve=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ie="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ee.set(e,e.style.userSelect),e.style.userSelect="none")}function xe(e){if(Fe()){if(ie!=="disabled")return;ie="restoring",setTimeout(()=>{ot(()=>{if(ie==="restoring"){const t=O(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ve||""),Ve="",ie="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ee.has(e)){let t=Ee.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ee.delete(e)}}const ht=p.createContext({register:()=>{}});ht.displayName="PressResponderContext";var Rr=c(57121),Or=c(82463),mt=c(25321);function Mr(){let e=(0,p.useRef)(new Map),t=(0,p.useCallback)((i,d,l,b)=>{let f=b!=null&&b.once?(...h)=>{e.current.delete(l),l(...h)}:l;e.current.set(l,{type:d,eventTarget:i,fn:f,options:b}),i.addEventListener(d,l,b)},[]),r=(0,p.useCallback)((i,d,l,b)=>{var f;let h=((f=e.current.get(l))===null||f===void 0?void 0:f.fn)||l;i.removeEventListener(d,h,b),e.current.delete(l)},[]),n=(0,p.useCallback)(()=>{e.current.forEach((i,d)=>{r(i.eventTarget,i.type,d,i.options)})},[r]);return(0,p.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}const yt=(0,p.createContext)({isNative:!0,open:Ar,useHref:e=>e});function mn(e){let{children:t,navigate:r,useHref:n}=e,i=$g3jFn$useMemo(()=>({isNative:!1,open:(d,l,b,f)=>{Tt(d,h=>{Dr(h,l)?r(b,f):ee(h,l)})},useHref:n||(d=>d)}),[r,n]);return $g3jFn$react.createElement(yt.Provider,{value:i},t)}function Pt(){return $g3jFn$useContext(yt)}function Dr(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function ee(e,t,r=!0){var n,i;let{metaKey:d,ctrlKey:l,altKey:b,shiftKey:f}=t;gr()&&(!((i=window.event)===null||i===void 0||(n=i.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(ae()?d=!0:l=!0);let h=vr()&&ae()&&!lt()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:d,ctrlKey:l,altKey:b,shiftKey:f}):new MouseEvent("click",{metaKey:d,ctrlKey:l,altKey:b,shiftKey:f,bubbles:!0,cancelable:!0});ee.isOpening=r,q(e),e.dispatchEvent(h),ee.isOpening=!1}ee.isOpening=!1;function Tt(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Ar(e,t){Tt(e,r=>ee(r,t))}function yn(e){let t=Pt();return{"data-href":e.href?t.useHref(e.href):void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Pn(e){return{"data-href":e.href,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function Tn(e){let t=Pt();return{href:e!=null&&e.href?t.useHref(e==null?void 0:e.href):void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function Fr(e){let t=(0,p.useContext)(ht);if(t){let r=t,{register:n}=r,i=Y(r,["register"]);e=Z(i,e),n()}return vt(t,e.ref),e}var we=new WeakMap;class Se{continuePropagation(){(0,mt._)(this,we,!1)}get shouldStopPropagation(){return(0,Rr._)(this,we)}constructor(t,r,n,i){(0,Or._)(this,we,{writable:!0,value:void 0}),(0,mt._)(this,we,!0);var d;let l=(d=i==null?void 0:i.target)!==null&&d!==void 0?d:n.currentTarget;const b=l==null?void 0:l.getBoundingClientRect();let f,h=0,v,I=null;n.clientX!=null&&n.clientY!=null&&(v=n.clientX,I=n.clientY),b&&(v!=null&&I!=null?(f=v-b.left,h=I-b.top):(f=b.width/2,h=b.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=f,this.y=h}}const Et=Symbol("linkClicked");function xt(e){let fe=Fr(e),{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:d,isDisabled:l,isPressed:b,preventFocusOnPress:f,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:v,ref:I}=fe,U=Y(fe,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[W,K]=(0,p.useState)(!1),S=(0,p.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:k,removeAllGlobalListeners:B}=Mr(),M=J((a,g)=>{let L=S.current;if(l||L.didFirePressStart)return!1;let u=!0;if(L.isTriggeringEvent=!0,n){let $=new Se("pressstart",g,a);n($),u=$.shouldStopPropagation}return r&&r(!0),L.isTriggeringEvent=!1,L.didFirePressStart=!0,K(!0),u}),C=J((a,g,L=!0)=>{let u=S.current;if(!u.didFirePressStart)return!1;u.ignoreClickAfterPress=!0,u.didFirePressStart=!1,u.isTriggeringEvent=!0;let $=!0;if(i){let o=new Se("pressend",g,a);i(o),$=o.shouldStopPropagation}if(r&&r(!1),K(!1),t&&L&&!l){let o=new Se("press",g,a);t(o),$&&($=o.shouldStopPropagation)}return u.isTriggeringEvent=!1,$}),H=J((a,g)=>{let L=S.current;if(l)return!1;if(d){L.isTriggeringEvent=!0;let u=new Se("pressup",g,a);return d(u),L.isTriggeringEvent=!1,u.shouldStopPropagation}return!0}),D=J(a=>{let g=S.current;g.isPressed&&g.target&&(g.isOverTarget&&g.pointerType!=null&&C(G(g.target,a),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,B(),v||xe(g.target))}),F=J(a=>{h&&D(a)}),Ce=(0,p.useMemo)(()=>{let a=S.current,g={onKeyDown(u){if(je(u.nativeEvent,u.currentTarget)&&u.currentTarget.contains(u.target)){var $;St(u.target,u.key)&&u.preventDefault();let o=!0;if(!a.isPressed&&!u.repeat){a.target=u.currentTarget,a.isPressed=!0,o=M(u,"keyboard");let s=u.currentTarget,P=T=>{je(T,s)&&!T.repeat&&s.contains(T.target)&&a.target&&H(G(a.target,T),"keyboard")};k(O(u.currentTarget),"keyup",nt(P,L),!0)}o&&u.stopPropagation(),u.metaKey&&ae()&&(($=a.metaKeyEvents)===null||$===void 0||$.set(u.key,u.nativeEvent))}else u.key==="Meta"&&(a.metaKeyEvents=new Map)},onClick(u){if(!(u&&!u.currentTarget.contains(u.target))&&u&&u.button===0&&!a.isTriggeringEvent&&!ee.isOpening){let $=!0;if(l&&u.preventDefault(),!a.ignoreClickAfterPress&&!a.ignoreEmulatedMouseEvents&&!a.isPressed&&(a.pointerType==="virtual"||Be(u.nativeEvent))){!l&&!f&&q(u.currentTarget);let o=M(u,"virtual"),s=H(u,"virtual"),P=C(u,"virtual");$=o&&s&&P}a.ignoreEmulatedMouseEvents=!1,a.ignoreClickAfterPress=!1,$&&u.stopPropagation()}}},L=u=>{var $;if(a.isPressed&&a.target&&je(u,a.target)){var o;St(u.target,u.key)&&u.preventDefault();let P=u.target;C(G(a.target,u),"keyboard",a.target.contains(P)),B(),u.key!=="Enter"&&Ue(a.target)&&a.target.contains(P)&&!u[Et]&&(u[Et]=!0,ee(a.target,u,!1)),a.isPressed=!1,(o=a.metaKeyEvents)===null||o===void 0||o.delete(u.key)}else if(u.key==="Meta"&&(!(($=a.metaKeyEvents)===null||$===void 0)&&$.size)){var s;let P=a.metaKeyEvents;a.metaKeyEvents=void 0;for(let T of P.values())(s=a.target)===null||s===void 0||s.dispatchEvent(new KeyboardEvent("keyup",T))}};if(typeof PointerEvent!="undefined"){g.onPointerDown=s=>{if(s.button!==0||!s.currentTarget.contains(s.target))return;if($r(s.nativeEvent)){a.pointerType="virtual";return}Ne(s.currentTarget)&&s.preventDefault(),a.pointerType=s.pointerType;let P=!0;a.isPressed||(a.isPressed=!0,a.isOverTarget=!0,a.activePointerId=s.pointerId,a.target=s.currentTarget,!l&&!f&&q(s.currentTarget),v||$t(a.target),P=M(s,a.pointerType),k(O(s.currentTarget),"pointermove",u,!1),k(O(s.currentTarget),"pointerup",$,!1),k(O(s.currentTarget),"pointercancel",o,!1)),P&&s.stopPropagation()},g.onMouseDown=s=>{s.currentTarget.contains(s.target)&&s.button===0&&(Ne(s.currentTarget)&&s.preventDefault(),s.stopPropagation())},g.onPointerUp=s=>{!s.currentTarget.contains(s.target)||a.pointerType==="virtual"||s.button===0&&oe(s,s.currentTarget)&&H(s,a.pointerType||s.pointerType)};let u=s=>{s.pointerId===a.activePointerId&&(a.target&&oe(s,a.target)?!a.isOverTarget&&a.pointerType!=null&&(a.isOverTarget=!0,M(G(a.target,s),a.pointerType)):a.target&&a.isOverTarget&&a.pointerType!=null&&(a.isOverTarget=!1,C(G(a.target,s),a.pointerType,!1),F(s)))},$=s=>{s.pointerId===a.activePointerId&&a.isPressed&&s.button===0&&a.target&&(oe(s,a.target)&&a.pointerType!=null?C(G(a.target,s),a.pointerType):a.isOverTarget&&a.pointerType!=null&&C(G(a.target,s),a.pointerType,!1),a.isPressed=!1,a.isOverTarget=!1,a.activePointerId=null,a.pointerType=null,B(),v||xe(a.target))},o=s=>{D(s)};g.onDragStart=s=>{s.currentTarget.contains(s.target)&&D(s)}}else{g.onMouseDown=o=>{if(o.button!==0||!o.currentTarget.contains(o.target))return;if(Ne(o.currentTarget)&&o.preventDefault(),a.ignoreEmulatedMouseEvents){o.stopPropagation();return}a.isPressed=!0,a.isOverTarget=!0,a.target=o.currentTarget,a.pointerType=Be(o.nativeEvent)?"virtual":"mouse",!l&&!f&&q(o.currentTarget),M(o,a.pointerType)&&o.stopPropagation(),k(O(o.currentTarget),"mouseup",u,!1)},g.onMouseEnter=o=>{if(!o.currentTarget.contains(o.target))return;let s=!0;a.isPressed&&!a.ignoreEmulatedMouseEvents&&a.pointerType!=null&&(a.isOverTarget=!0,s=M(o,a.pointerType)),s&&o.stopPropagation()},g.onMouseLeave=o=>{if(!o.currentTarget.contains(o.target))return;let s=!0;a.isPressed&&!a.ignoreEmulatedMouseEvents&&a.pointerType!=null&&(a.isOverTarget=!1,s=C(o,a.pointerType,!1),F(o)),s&&o.stopPropagation()},g.onMouseUp=o=>{o.currentTarget.contains(o.target)&&!a.ignoreEmulatedMouseEvents&&o.button===0&&H(o,a.pointerType||"mouse")};let u=o=>{if(o.button===0){if(a.isPressed=!1,B(),a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.target&&oe(o,a.target)&&a.pointerType!=null?C(G(a.target,o),a.pointerType):a.target&&a.isOverTarget&&a.pointerType!=null&&C(G(a.target,o),a.pointerType,!1),a.isOverTarget=!1}};g.onTouchStart=o=>{if(!o.currentTarget.contains(o.target))return;let s=Br(o.nativeEvent);if(!s)return;a.activePointerId=s.identifier,a.ignoreEmulatedMouseEvents=!0,a.isOverTarget=!0,a.isPressed=!0,a.target=o.currentTarget,a.pointerType="touch",!l&&!f&&q(o.currentTarget),v||$t(a.target),M(z(a.target,o),a.pointerType)&&o.stopPropagation(),k(re(o.currentTarget),"scroll",$,!0)},g.onTouchMove=o=>{if(!o.currentTarget.contains(o.target))return;if(!a.isPressed){o.stopPropagation();return}let s=wt(o.nativeEvent,a.activePointerId),P=!0;s&&oe(s,o.currentTarget)?!a.isOverTarget&&a.pointerType!=null&&(a.isOverTarget=!0,P=M(z(a.target,o),a.pointerType)):a.isOverTarget&&a.pointerType!=null&&(a.isOverTarget=!1,P=C(z(a.target,o),a.pointerType,!1),F(z(a.target,o))),P&&o.stopPropagation()},g.onTouchEnd=o=>{if(!o.currentTarget.contains(o.target))return;if(!a.isPressed){o.stopPropagation();return}let s=wt(o.nativeEvent,a.activePointerId),P=!0;s&&oe(s,o.currentTarget)&&a.pointerType!=null?(H(z(a.target,o),a.pointerType),P=C(z(a.target,o),a.pointerType)):a.isOverTarget&&a.pointerType!=null&&(P=C(z(a.target,o),a.pointerType,!1)),P&&o.stopPropagation(),a.isPressed=!1,a.activePointerId=null,a.isOverTarget=!1,a.ignoreEmulatedMouseEvents=!0,a.target&&!v&&xe(a.target),B()},g.onTouchCancel=o=>{o.currentTarget.contains(o.target)&&(o.stopPropagation(),a.isPressed&&D(z(a.target,o)))};let $=o=>{a.isPressed&&o.target.contains(a.target)&&D({currentTarget:a.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};g.onDragStart=o=>{o.currentTarget.contains(o.target)&&D(o)}}return g},[k,l,f,B,v,D,F,C,M,H]);return(0,p.useEffect)(()=>()=>{var a;v||xe((a=S.current.target)!==null&&a!==void 0?a:void 0)},[v]),{isPressed:b||W,pressProps:Z(U,Ce)}}function Ue(e){return e.tagName==="A"&&e.hasAttribute("href")}function je(e,t){const{key:r,code:n}=e,i=t,d=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof re(i).HTMLInputElement&&!Ct(i,r)||i instanceof re(i).HTMLTextAreaElement||i.isContentEditable)&&!((d==="link"||!d&&Ue(i))&&r!=="Enter")}function Br(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function wt(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===t)return i}return null}function z(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function G(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Hr(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Vr(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function oe(e,t){let r=t.getBoundingClientRect(),n=Hr(e);return Vr(r,n)}function Ne(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function St(e,t){return e instanceof HTMLInputElement?!Ct(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ue(e)}const Ur=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ct(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Ur.has(e.type)}function jr(e,t,r){let{isDisabled:n=!1,isReadOnly:i=!1,value:d,name:l,children:b,"aria-label":f,"aria-labelledby":h,validationState:v="valid",isInvalid:I}=e,U=F=>{F.stopPropagation(),t.setSelected(F.target.checked)},W=b!=null,K=f!=null||h!=null;!W&&!K&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:S,isPressed:k}=xt({isDisabled:n}),{pressProps:B,isPressed:M}=xt({isDisabled:n||i,onPress(){t.toggle()}}),{focusableProps:C}=Kr(e,r),H=Z(S,C),D=sr(e,{labelable:!0});return dr(r,t.isSelected,t.setSelected),{labelProps:Z(B,{onClick:F=>F.preventDefault()}),inputProps:Z(D,m(E(m({"aria-invalid":I||v==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:U,disabled:n},d==null?{}:{value:d}),{name:l,type:"checkbox"}),H)),isSelected:t.isSelected,isPressed:k||M,isDisabled:n,isReadOnly:i,isInvalid:I||v==="invalid"}}function kt(e,t,r){let n=(0,ge.Q3)(E(m({},e),{value:t.isSelected})),{isInvalid:i,validationErrors:d,validationDetails:l}=n.displayValidation,{labelProps:b,inputProps:f,isSelected:h,isPressed:v,isDisabled:I,isReadOnly:U}=jr(E(m({},e),{isInvalid:i}),t,r);(0,qt.Q)(e,n,r);let{isIndeterminate:W,isRequired:K,validationBehavior:S="aria"}=e;return(0,p.useEffect)(()=>{r.current&&(r.current.indeterminate=!!W)}),{labelProps:b,inputProps:E(m({},f),{checked:h,"aria-required":K&&S==="aria"||void 0,required:K&&S==="native"}),isSelected:h,isPressed:v,isDisabled:I,isReadOnly:U,isInvalid:i,validationErrors:d,validationDetails:l}}const Nr=new WeakMap;function Gr(e,t,r){const n=qe({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(k){k?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(k)}});let{name:i,descriptionId:d,errorMessageId:l,validationBehavior:b}=Nr.get(t);var f;b=(f=e.validationBehavior)!==null&&f!==void 0?f:b;let{realtimeValidation:h}=(0,ge.Q3)(E(m({},e),{value:n.isSelected,name:void 0,validationBehavior:"aria"})),v=(0,p.useRef)(ge.PS),I=()=>{t.setInvalid(e.value,h.isInvalid?h:v.current)};(0,p.useEffect)(I);let U=t.realtimeValidation.isInvalid?t.realtimeValidation:h,W=b==="native"?t.displayValidation:U;var K;let S=kt(E(m({},e),{isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||i,isRequired:(K=e.isRequired)!==null&&K!==void 0?K:t.isRequired,validationBehavior:b,[ge.tL]:{realtimeValidation:U,displayValidation:W,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(k){v.current=k,I()}}}),n,r);return E(m({},S),{inputProps:E(m({},S.inputProps),{"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,d].filter(Boolean).join(" ")||void 0})})}var Wr=c(93387),Xr=c(48255);function Yr(e={}){var t,r,n,i,d,l,b,f;const h=(0,pe.w)(),v=Re(),I=!!v,Vt=e,{as:U,ref:W,value:K="",children:S,icon:k,name:B,isRequired:M,isReadOnly:C=!1,autoFocus:H=!1,isSelected:D,size:F=(t=v==null?void 0:v.size)!=null?t:"md",color:Ce=(r=v==null?void 0:v.color)!=null?r:"primary",radius:fe=v==null?void 0:v.radius,lineThrough:a=(n=v==null?void 0:v.lineThrough)!=null?n:!1,isDisabled:g=(i=v==null?void 0:v.isDisabled)!=null?i:!1,disableAnimation:L=(l=(d=v==null?void 0:v.disableAnimation)!=null?d:h==null?void 0:h.disableAnimation)!=null?l:!1,validationState:u,isInvalid:$=u?u==="invalid":(b=v==null?void 0:v.isInvalid)!=null?b:!1,isIndeterminate:o=!1,validationBehavior:s=(f=v==null?void 0:v.validationBehavior)!=null?f:"aria",defaultSelected:P,classNames:T,className:Jr,onValueChange:It}=Vt,le=Y(Vt,["as","ref","value","children","icon","name","isRequired","isReadOnly","autoFocus","isSelected","size","color","radius","lineThrough","isDisabled","disableAnimation","validationState","isInvalid","isIndeterminate","validationBehavior","defaultSelected","classNames","className","onValueChange"]);v&&V.Ts&&(D&&(0,rt.Z)("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),P&&(0,rt.Z)("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const qr=U||"label",_r=(0,p.useRef)(null),se=(0,p.useRef)(null);let Ge=e.onChange;if(I){const R=()=>{v.groupState.resetValidation()};Ge=(0,et.t)(R,Ge)}const We=(0,p.useId)(),Xe=(0,p.useMemo)(()=>({name:B,value:K,children:S,autoFocus:H,defaultSelected:P,validationBehavior:s,isIndeterminate:o,isRequired:M,isInvalid:$,isSelected:D,isDisabled:g,isReadOnly:C,"aria-label":(0,Jt.x)(le["aria-label"],S),"aria-labelledby":le["aria-labelledby"]||We,onChange:It}),[K,B,We,S,H,$,o,g,C,D,P,s,le["aria-label"],le["aria-labelledby"],It]),Kt=qe(Xe),{inputProps:te,isSelected:de,isDisabled:X,isReadOnly:Ye,isPressed:en}=I?Gr(m({},Xe),v.groupState,se):kt(m({},Xe),Kt,se),Rt=X||Ye,[tn,Ot]=(0,p.useState)(!1),{pressProps:Mt}=(0,zt.r)({isDisabled:Rt,onPressStart(R){R.pointerType!=="keyboard"&&Ot(!0)},onPressEnd(R){R.pointerType!=="keyboard"&&Ot(!1)}}),Dt=Rt?!1:tn||en,{hoverProps:At,isHovered:ze}=(0,Qt.X)({isDisabled:te.disabled}),{focusProps:Ft,isFocused:Qe,isFocusVisible:Ze}=(0,Zt.F)({autoFocus:te.autoFocus}),Q=(0,p.useMemo)(()=>Xt({color:Ce,size:F,radius:fe,isInvalid:$,lineThrough:a,isDisabled:X,disableAnimation:L}),[Ce,F,fe,$,a,X,L]);(0,Wr.G)(()=>{if(!se.current)return;const R=!!se.current.checked;Kt.setSelected(R)},[se.current]);const Je=(0,Yt.W)(Ge),Bt=(0,p.useCallback)(R=>{if(Ye||X){R.preventDefault();return}Je==null||Je(R)},[Ye,X,Je]),Ht=(0,Oe.W)(T==null?void 0:T.base,Jr),rn=(0,p.useCallback)(()=>m({ref:_r,className:Q.base({class:Ht}),"data-disabled":(0,V.PB)(X),"data-selected":(0,V.PB)(de||o),"data-invalid":(0,V.PB)($),"data-hover":(0,V.PB)(ze),"data-focus":(0,V.PB)(Qe),"data-pressed":(0,V.PB)(Dt),"data-readonly":(0,V.PB)(te.readOnly),"data-focus-visible":(0,V.PB)(Ze),"data-indeterminate":(0,V.PB)(o)},(0,tt.d)(At,Mt,le)),[Q,Ht,X,de,o,$,ze,Qe,Dt,te.readOnly,Ze,At,Mt,le]),nn=(0,p.useCallback)((R={})=>E(m({},R),{"aria-hidden":!0,className:(0,Oe.W)(Q.wrapper({class:(0,Oe.W)(T==null?void 0:T.wrapper,R==null?void 0:R.className)}))}),[Q,T==null?void 0:T.wrapper]),an=(0,p.useCallback)(()=>E(m({ref:(0,Xr.l)(se,W)},(0,tt.d)(te,Ft)),{onChange:(0,et.t)(te.onChange,Bt)}),[te,Ft,Bt]),on=(0,p.useCallback)(()=>({id:We,className:Q.label({class:T==null?void 0:T.label})}),[Q,T==null?void 0:T.label,X,de,$]),ln=(0,p.useCallback)(()=>({isSelected:de,isIndeterminate:o,disableAnimation:L,className:Q.icon({class:T==null?void 0:T.icon})}),[Q,T==null?void 0:T.icon,de,o,L]);return{Component:qr,icon:k,children:S,isSelected:de,isDisabled:X,isInvalid:$,isFocused:Qe,isHovered:ze,isFocusVisible:Ze,getBaseProps:rn,getWrapperProps:nn,getInputProps:an,getLabelProps:on,getIconProps:ln}}var zr=c(15607),Qr=c(73699),Lt=(0,zr.Gp)((e,t)=>{const{Component:r,children:n,icon:i=(0,y.jsx)(be,{}),getBaseProps:d,getWrapperProps:l,getInputProps:b,getIconProps:f,getLabelProps:h}=Yr(E(m({},e),{ref:t})),v=typeof i=="function"?i(f()):(0,p.cloneElement)(i,f());return(0,y.jsxs)(r,E(m({},d()),{children:[(0,y.jsx)(Qr.T,{elementType:"span",children:(0,y.jsx)("input",m({},b()))}),(0,y.jsx)("span",E(m({},l()),{children:v})),n&&(0,y.jsx)("span",E(m({},h()),{children:n}))]}))});Lt.displayName="NextUI.Checkbox";var Zr=Lt},27794:function(x,w,c){c.d(w,{W:function(){return Ie}});var y=c(67294),Le=c(93387);function Ie(be,Ke=[]){const ve=(0,y.useRef)(be);return(0,Le.G)(()=>{ve.current=be}),(0,y.useCallback)((...Re)=>{var pe;return(pe=ve.current)==null?void 0:pe.call(ve,...Re)},Ke)}}}]);
}());