2 lines
400 KiB
JavaScript
2 lines
400 KiB
JavaScript
/*! For license information please see 63.js.LICENSE.txt */
|
||
"use strict";(self.webpackChunkkms=self.webpackChunkkms||[]).push([[63],{1020:(e,t,o)=>{var n=o(4914),r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,o){var n,a={},c=null,d=null;for(n in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:r,type:e,key:c,ref:d,props:a,_owner:i.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},3063:(e,t,o)=>{o.r(t),o.d(t,{Accordion:()=>wl,AccordionChevron:()=>ll,AccordionControl:()=>ml,AccordionItem:()=>hl,AccordionPanel:()=>yl,ActionIcon:()=>Zs,ActionIconGroup:()=>Gs,ActionIconGroupSection:()=>qs,Affix:()=>Nl,Alert:()=>Rl,AlphaSlider:()=>mp,Anchor:()=>Ml,AngleSlider:()=>Fl,AppShell:()=>cc,AppShellAside:()=>Gl,AppShellFooter:()=>Ul,AppShellHeader:()=>Yl,AppShellMain:()=>Zl,AppShellNavbar:()=>rc,AppShellSection:()=>sc,AspectRatio:()=>mc,Autocomplete:()=>id,Avatar:()=>bd,AvatarGroup:()=>md,BackgroundImage:()=>Sd,Badge:()=>Pd,Blockquote:()=>Dd,Box:()=>jo,Breadcrumbs:()=>Od,Burger:()=>Ld,Button:()=>Xd,ButtonGroup:()=>Hd,ButtonGroupSection:()=>Kd,Card:()=>ru,CardSection:()=>tu,Center:()=>iu,CheckIcon:()=>Qc,Checkbox:()=>_u,CheckboxCard:()=>bu,CheckboxGroup:()=>Cu,CheckboxIndicator:()=>ju,Chip:()=>$u,ChipGroup:()=>zu,CloseButton:()=>oi,CloseIcon:()=>Js,Code:()=>Vu,Collapse:()=>$o,ColorInput:()=>Dp,ColorPicker:()=>jp,ColorSchemeScript:()=>$t,ColorSwatch:()=>Ku,Combobox:()=>Jc,ComboboxChevron:()=>Sc,ComboboxClearButton:()=>Nc,ComboboxDropdown:()=>jc,ComboboxDropdownTarget:()=>Rc,ComboboxEmpty:()=>_c,ComboboxEventsTarget:()=>Tc,ComboboxFooter:()=>Oc,ComboboxGroup:()=>Ac,ComboboxHeader:()=>Lc,ComboboxHiddenInput:()=>Fc,ComboboxOption:()=>Vc,ComboboxOptions:()=>Wc,ComboboxSearch:()=>Kc,ComboboxTarget:()=>qc,Container:()=>Mp,CopyButton:()=>$p,DEFAULT_THEME:()=>Xe,Dialog:()=>Vp,DirectionContext:()=>Do,DirectionProvider:()=>To,Divider:()=>Kp,Drawer:()=>bm,DrawerBody:()=>Zp,DrawerCloseButton:()=>Qp,DrawerContent:()=>tm,DrawerHeader:()=>nm,DrawerOverlay:()=>am,DrawerRoot:()=>pm,DrawerStack:()=>hm,DrawerTitle:()=>ym,FLEX_STYLE_PROPS_DATA:()=>Ji,FOCUS_CLASS_NAMES:()=>it,Fieldset:()=>Sm,FileButton:()=>km,FileInput:()=>Rm,Flex:()=>tl,FloatingArrow:()=>xs,FloatingIndicator:()=>al,FocusTrap:()=>Cs,FocusTrapInitialFocus:()=>Ss,Grid:()=>Hm,GridCol:()=>Lm,Group:()=>si,HeadlessMantineProvider:()=>Zt,Highlight:()=>Zm,HoverCard:()=>af,HoverCardDropdown:()=>tf,HoverCardTarget:()=>nf,HueSlider:()=>xp,Image:()=>df,Indicator:()=>hf,InlineStyles:()=>so,Input:()=>qi,InputBase:()=>Zi,InputClearButton:()=>Pi,InputDescription:()=>Ti,InputError:()=>Mi,InputLabel:()=>Li,InputPlaceholder:()=>Bi,InputWrapper:()=>Gi,JsonInput:()=>Of,Kbd:()=>Lf,List:()=>Uf,ListItem:()=>Wf,Loader:()=>Bs,LoadingOverlay:()=>Zf,MANTINE_TRANSITIONS:()=>us,MantineContext:()=>lt,MantineProvider:()=>Xt,MantineThemeContext:()=>ot,MantineThemeProvider:()=>at,Mark:()=>qm,Menu:()=>ph,MenuDivider:()=>oh,MenuDropdown:()=>rh,MenuItem:()=>sh,MenuLabel:()=>lh,MenuTarget:()=>dh,Modal:()=>Oh,ModalBase:()=>ci,ModalBaseBody:()=>vi,ModalBaseCloseButton:()=>yi,ModalBaseContent:()=>gi,ModalBaseHeader:()=>bi,ModalBaseOverlay:()=>xi,ModalBaseTitle:()=>Ci,ModalBody:()=>yh,ModalCloseButton:()=>bh,ModalContent:()=>xh,ModalHeader:()=>Sh,ModalOverlay:()=>kh,ModalRoot:()=>Rh,ModalStack:()=>Dh,ModalTitle:()=>Th,MultiSelect:()=>tv,NativeScrollArea:()=>Si,NativeSelect:()=>rv,NavLink:()=>lv,Notification:()=>pv,NumberFormatter:()=>Wv,NumberInput:()=>ey,OptionalPortal:()=>cs,OptionsDropdown:()=>ad,Overlay:()=>as,Pagination:()=>by,PaginationControl:()=>ay,PaginationDots:()=>ly,PaginationFirst:()=>py,PaginationItems:()=>fy,PaginationLast:()=>my,PaginationNext:()=>dy,PaginationPrevious:()=>uy,PaginationRoot:()=>yy,Paper:()=>es,PasswordInput:()=>Sy,Pill:()=>qh,PillGroup:()=>Gh,PillsInput:()=>Qh,PillsInputField:()=>Zh,PinInput:()=>Ey,Popover:()=>Ts,PopoverDropdown:()=>js,PopoverTarget:()=>Rs,Portal:()=>ls,Progress:()=>By,ProgressLabel:()=>zy,ProgressRoot:()=>Ay,ProgressSection:()=>Ly,Radio:()=>sg,RadioCard:()=>Yy,RadioGroup:()=>Zy,RadioIcon:()=>Jy,RadioIndicator:()=>og,RangeSlider:()=>jb,Rating:()=>vg,RemoveScroll:()=>W,RingProgress:()=>Ag,STYlE_PROPS_DATA:()=>lo,ScrollArea:()=>Ha,ScrollAreaAutosize:()=>Wa,SegmentedControl:()=>Bg,Select:()=>Hg,SemiCircleProgress:()=>qg,SimpleGrid:()=>eb,Skeleton:()=>rb,Slider:()=>Sb,Space:()=>Rb,Spoiler:()=>Ib,Stack:()=>Mb,Stepper:()=>Kb,StepperCompleted:()=>Lb,StepperStep:()=>Hb,Switch:()=>ew,SwitchGroup:()=>Xb,Table:()=>bw,TableCaption:()=>pw,TableOfContents:()=>Sw,TableScrollContainer:()=>vw,TableTbody:()=>dw,TableTd:()=>iw,TableTfoot:()=>uw,TableTh:()=>sw,TableThead:()=>cw,TableTr:()=>lw,Tabs:()=>Mw,TabsList:()=>Rw,TabsPanel:()=>_w,TabsTab:()=>Iw,TagsInput:()=>Fw,Text:()=>Tl,TextInput:()=>Vw,Textarea:()=>If,ThemeIcon:()=>Kw,Timeline:()=>ex,TimelineItem:()=>Zw,Title:()=>sx,Tooltip:()=>Dg,TooltipFloating:()=>Cg,TooltipGroup:()=>jg,Transition:()=>fs,Tree:()=>Cx,TypographyStylesProvider:()=>kx,UnstyledButton:()=>Ua,VisuallyHidden:()=>Xa,alpha:()=>Ue,camelToKebabCase:()=>q,closeOnEscape:()=>pe,colorsTuple:()=>Dt,convertCssVariables:()=>Vt,convertHsvaTo:()=>wp,createEventHandler:()=>be,createOptionalContext:()=>ae,createPolymorphicComponent:()=>wo,createSafeContext:()=>re,createScopedKeydownHandler:()=>le,createTheme:()=>Qt,createUseExternalEvents:()=>je,createVarsResolver:()=>De,darken:()=>$e,deepMerge:()=>U,defaultCssVariablesResolver:()=>Ut,defaultLoaders:()=>$s,defaultOptionsFilter:()=>od,defaultVariantColorsResolver:()=>qe,em:()=>Q,extractStyleProps:()=>io,factory:()=>Eo,filterProps:()=>ee,findClosestNumber:()=>Ee,findElementAncestor:()=>ie,getAutoContrastValue:()=>_t,getBaseValue:()=>Ce,getBreakpointValue:()=>we,getCSSColorVariables:()=>Ht,getContextItemIndex:()=>Se,getContrastColor:()=>Rt,getDefaultZIndex:()=>de,getEnv:()=>Pe,getFloatingPosition:()=>ts,getFontSize:()=>ve,getGradient:()=>Ge,getLabelsLockup:()=>yc,getLineHeight:()=>ye,getOptionsLockup:()=>vc,getParsedComboboxData:()=>hc,getPrimaryContrastColor:()=>Et,getPrimaryShade:()=>Le,getRadius:()=>he,getRefProp:()=>_e,getSafeId:()=>se,getShadow:()=>ge,getSize:()=>me,getSortedBreakpoints:()=>xe,getSpacing:()=>fe,getStyleObject:()=>bo,getThemeColor:()=>We,getTransitionProps:()=>gg,getTreeExpandedState:()=>vx,getWithProps:()=>Ro,isColorValid:()=>dp,isElement:()=>oe,isLightColor:()=>Ve,isMantineColorScheme:()=>kt,isNumberLike:()=>te,isOptionsGroup:()=>td,isVirtualColor:()=>Gt,keys:()=>G,lighten:()=>Pt,localStorageColorSchemeManager:()=>jt,luminance:()=>Be,mantineHtmlProps:()=>no,memoize:()=>Re,mergeMantineTheme:()=>tt,mergeThemeOverrides:()=>eo,noop:()=>ue,parseColor:()=>up,parseStyleProps:()=>yo,parseThemeColor:()=>He,polymorphicFactory:()=>_o,px:()=>Y,rem:()=>J,resolveClassNames:()=>Oe,resolveStyles:()=>Me,rgba:()=>Ke,stylesToString:()=>ao,toRgba:()=>Ae,useCheckboxCardContext:()=>hu,useCheckboxGroupContext:()=>mu,useCombobox:()=>Yc,useComboboxTargetProps:()=>Dc,useComputedColorScheme:()=>Mt,useDelayedHover:()=>Em,useDirection:()=>Io,useDrawerStackContext:()=>fm,useDrawersStack:()=>Ah,useFloatingAutoUpdate:()=>Es,useHovered:()=>Ne,useInputProps:()=>Yi,useInputWrapperContext:()=>Ei,useMantineClassNamesPrefix:()=>ut,useMantineColorScheme:()=>Tt,useMantineContext:()=>ct,useMantineCssVariablesResolver:()=>dt,useMantineEnv:()=>yt,useMantineIsHeadless:()=>ft,useMantineStyleNonce:()=>pt,useMantineStylesTransform:()=>vt,useMantineSxTransform:()=>ht,useMantineTheme:()=>rt,useMantineWithStaticClasses:()=>mt,useMatches:()=>oo,useModalStackContext:()=>_h,useModalsStack:()=>Mh,useProps:()=>Jt,useProviderColorScheme:()=>Ot,useRadioCardContext:()=>Gy,useRandomClassName:()=>go,useResolvedStylesApi:()=>st,useSafeMantineTheme:()=>nt,useStyles:()=>Nt,useTree:()=>yx,useVirtualizedCombobox:()=>Ip,validateMantineTheme:()=>et,virtualColor:()=>Wt});var n=function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function r(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var a=o(4914),s=o.t(a,2),i=o.n(a),l="right-scroll-bar-position",c="width-before-scroll-bar";function d(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var u="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,p=new WeakMap;function m(e){return e}var f=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=m);var o=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(e){var r=t(e,n);return o.push(r),function(){o=o.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(n=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){n=!0;var t=[];if(o.length){var r=o;o=[],r.forEach(e),t=o}var a=function(){var o=t;t=[],o.forEach(e)},s=function(){return Promise.resolve().then(a)};s(),o={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),o}}}}}(null);return t.options=n({async:!0,ssr:!1},e),t}(),h=function(){},v=a.forwardRef(function(e,t){var o=a.useRef(null),s=a.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),i=s[0],l=s[1],c=e.forwardProps,m=e.children,v=e.className,y=e.removeScrollBar,g=e.enabled,b=e.shards,w=e.sideCar,x=e.noRelative,C=e.noIsolation,S=e.inert,N=e.allowPinchZoom,k=e.as,j=void 0===k?"div":k,P=e.gapMode,R=r(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=w,_=function(e,t){var o,n,r,s=(o=t||null,n=function(t){return e.forEach(function(e){return d(e,t)})},(r=(0,a.useState)(function(){return{value:o,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}})[0]).callback=n,r.facade);return u(function(){var t=p.get(s);if(t){var o=new Set(t),n=new Set(e),r=s.current;o.forEach(function(e){n.has(e)||d(e,null)}),n.forEach(function(e){o.has(e)||d(e,r)})}p.set(s,e)},[e]),s}([o,t]),D=n(n({},R),i);return a.createElement(a.Fragment,null,g&&a.createElement(E,{sideCar:f,removeScrollBar:y,shards:b,noRelative:x,noIsolation:C,inert:S,setCallbacks:l,allowPinchZoom:!!N,lockRef:o,gapMode:P}),c?a.cloneElement(a.Children.only(m),n(n({},D),{ref:_})):a.createElement(j,n({},D,{className:v,ref:_}),m))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:c,zeroRight:l};var y=function(e){var t=e.sideCar,o=r(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return a.createElement(s,n({},o))};y.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o.nc;return t&&e.setAttribute("nonce",t),e}())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e,t=(e=g(),function(t,o){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&o])});return function(e){var o=e.styles,n=e.dynamic;return t(o,n),null}},w={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},C=b(),S="data-scroll-locked",N=function(e,t,o,n){var r=e.left,a=e.top,s=e.right,i=e.gap;return void 0===o&&(o="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(S,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===o&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===o&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(c," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(c," .").concat(c," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(S,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},k=function(){var e=parseInt(document.body.getAttribute(S)||"0",10);return isFinite(e)?e:0},j=function(e){var t=e.noRelative,o=e.noImportant,n=e.gapMode,r=void 0===n?"margin":n;a.useEffect(function(){return document.body.setAttribute(S,(k()+1).toString()),function(){var e=k()-1;e<=0?document.body.removeAttribute(S):document.body.setAttribute(S,e.toString())}},[]);var s=a.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=function(e){var t=window.getComputedStyle(document.body),o=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[x(o),x(n),x(r)]}(e),o=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-o+t[2]-t[0])}}(r)},[r]);return a.createElement(C,{styles:N(s,!t,r,o?"":"!important")})},P=!1;if("undefined"!=typeof window)try{var R=Object.defineProperty({},"passive",{get:function(){return P=!0,!0}});window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch(e){P=!1}var E=!!P&&{passive:!1},_=function(e,t){if(!(e instanceof Element))return!1;var o=window.getComputedStyle(e);return"hidden"!==o[t]&&!(o.overflowY===o.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===o[t])},D=function(e,t){var o=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),I(e,n)){var r=T(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==o.body);return!1},I=function(e,t){return"v"===e?function(e){return _(e,"overflowY")}(t):function(e){return _(e,"overflowX")}(t)},T=function(e,t){return"v"===e?[(o=t).scrollTop,o.scrollHeight,o.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var o},z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},O=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},A=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},$=0,L=[];function F(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const B=(V=function(e){var t=a.useRef([]),o=a.useRef([0,0]),n=a.useRef(),r=a.useState($++)[0],s=a.useState(b)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=function(e,t,o){if(o||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var r,a=z(e),s=o.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=D(u,d);if(!p)return!0;if(p?r=u:(r="v"===u?"h":"v",p=D(u,d)),!p)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=r),!r)return!0;var m=n.current||r;return function(e,t,o,n){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=r*n,s=o.target,i=t.contains(s),l=!1,c=a>0,d=0,u=0;do{if(!s)break;var p=T(e,s),m=p[0],f=p[1]-p[2]-r*m;(m||f)&&I(e,s)&&(d+=f,u+=m);var h=s.parentNode;s=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!i&&s!==document.body||i&&(t.contains(s)||t===s));return(c&&(Math.abs(d)<1||!1)||!c&&(Math.abs(u)<1||!1))&&(l=!0),l}(m,t,e,"h"===m?l:c)},[]),c=a.useCallback(function(e){var o=e;if(L.length&&L[L.length-1]===s){var n="deltaY"in o?O(o):z(o),r=t.current.filter(function(e){return e.name===o.type&&(e.target===o.target||o.target===e.shadowParent)&&(t=e.delta,r=n,t[0]===r[0]&&t[1]===r[1]);var t,r})[0];if(r&&r.should)o.cancelable&&o.preventDefault();else if(!r){var a=(i.current.shards||[]).map(M).filter(Boolean).filter(function(e){return e.contains(o.target)});(a.length>0?l(o,a[0]):!i.current.noIsolation)&&o.cancelable&&o.preventDefault()}}},[]),d=a.useCallback(function(e,o,n,r){var a={name:e,delta:o,target:n,should:r,shadowParent:F(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=a.useCallback(function(e){o.current=z(e),n.current=void 0},[]),p=a.useCallback(function(t){d(t.type,O(t),t.target,l(t,e.lockRef.current))},[]),m=a.useCallback(function(t){d(t.type,z(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return L.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,E),document.addEventListener("touchmove",c,E),document.addEventListener("touchstart",u,E),function(){L=L.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,E),document.removeEventListener("touchmove",c,E),document.removeEventListener("touchstart",u,E)}},[]);var f=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(s,{styles:A(r)}):null,f?a.createElement(j,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},f.useMedium(V),y);var V,H=a.forwardRef(function(e,t){return a.createElement(v,n({},e,{ref:t,sideCar:B}))});H.classNames=v.classNames;const W=H;function G(e){return Object.keys(e)}function K(e){return e&&"object"==typeof e&&!Array.isArray(e)}function U(e,t){const o={...e},n=t;return K(e)&&K(t)&&Object.keys(t).forEach(t=>{K(n[t])?o[t]=t in e?U(o[t],n[t]):n[t]:o[t]=n[t]}),o}function q(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Y(e){const t=function(e){return"string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e}(e);return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}function X(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function Z(e,{shouldScale:t=!1}={}){return function o(n){if(0===n||"0"===n)return`0${e}`;if("number"==typeof n){const o=`${n/16}${e}`;return t?X(o):o}if("string"==typeof n){if(""===n)return n;if(n.startsWith("calc(")||n.startsWith("clamp(")||n.includes("rgba("))return n;if(n.includes(","))return n.split(",").map(e=>o(e)).join(",");if(n.includes(" "))return n.split(" ").map(e=>o(e)).join(" ");if(n.includes(e))return t?X(n):n;const r=n.replace("px","");if(!Number.isNaN(Number(r))){const o=`${Number(r)/16}${e}`;return t?X(o):o}}return n}}const J=Z("rem",{shouldScale:!0}),Q=Z("em");function ee(e){return Object.keys(e).reduce((t,o)=>(void 0!==e[o]&&(t[o]=e[o]),t),{})}function te(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function oe(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==a.Fragment}var ne=o(4848);function re(e){const t=(0,a.createContext)(null);return[({children:e,value:o})=>(0,ne.jsx)(t.Provider,{value:o,children:e}),()=>{const o=(0,a.useContext)(t);if(null===o)throw new Error(e);return o}]}function ae(e=null){const t=(0,a.createContext)(e);return[({children:e,value:o})=>(0,ne.jsx)(t.Provider,{value:o,children:e}),()=>(0,a.useContext)(t)]}function se(e,t){return o=>{if("string"!=typeof o||0===o.trim().length)throw new Error(t);return`${e}-${o}`}}function ie(e,t){let o=e;for(;(o=o.parentElement)&&!o.matches(t););return o}function le({parentSelector:e,siblingSelector:t,onKeyDown:o,loop:n=!0,activateOnFocus:r=!1,dir:a="rtl",orientation:s}){return i=>{o?.(i);const l=Array.from(ie(i.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>function(e,t,o){return ie(e,o)===ie(t,o)}(i.currentTarget,t,e)),c=l.findIndex(e=>i.currentTarget===e),d=function(e,t,o){for(let o=e+1;o<t.length;o+=1)if(!t[o].disabled)return o;if(o)for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e;return e}(c,l,n),u=function(e,t,o){for(let o=e-1;o>=0;o-=1)if(!t[o].disabled)return o;if(o)for(let e=t.length-1;e>-1;e-=1)if(!t[e].disabled)return e;return e}(c,l,n),p="rtl"===a?u:d,m="rtl"===a?d:u;switch(i.key){case"ArrowRight":"horizontal"===s&&(i.stopPropagation(),i.preventDefault(),l[p].focus(),r&&l[p].click());break;case"ArrowLeft":"horizontal"===s&&(i.stopPropagation(),i.preventDefault(),l[m].focus(),r&&l[m].click());break;case"ArrowUp":"vertical"===s&&(i.stopPropagation(),i.preventDefault(),l[u].focus(),r&&l[u].click());break;case"ArrowDown":"vertical"===s&&(i.stopPropagation(),i.preventDefault(),l[d].focus(),r&&l[d].click());break;case"Home":i.stopPropagation(),i.preventDefault(),!l[0].disabled&&l[0].focus();break;case"End":{i.stopPropagation(),i.preventDefault();const e=l.length-1;!l[e].disabled&&l[e].focus();break}}}}const ce={app:100,modal:200,popover:300,overlay:400,max:9999};function de(e){return ce[e]}const ue=()=>{};function pe(e,t={active:!0}){return"function"==typeof e&&t.active?o=>{"Escape"===o.key&&(e(o),t.onTrigger?.())}:t.onKeyDown||ue}function me(e,t="size",o=!0){if(void 0!==e)return te(e)?o?J(e):e:`var(--${t}-${e})`}function fe(e){return me(e,"mantine-spacing")}function he(e){return void 0===e?"var(--mantine-radius-default)":me(e,"mantine-radius")}function ve(e){return me(e,"mantine-font-size")}function ye(e){return me(e,"mantine-line-height",!1)}function ge(e){if(e)return me(e,"mantine-shadow",!1)}function be(e,t){return o=>{e?.(o),t?.(o)}}function we(e,t){return Y(e in t?t[e]:e)}function xe(e,t){const o=e.map(e=>({value:e,px:we(e,t)}));return o.sort((e,t)=>e.px-t.px),o}function Ce(e){return"object"==typeof e&&null!==e?"base"in e?e.base:void 0:e}function Se(e,t,o){return o?Array.from(ie(o,t)?.querySelectorAll(e)||[]).findIndex(e=>e===o):null}function Ne(){const[e,t]=(0,a.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}var ke=o(8705);function je(e){return[function(t){const o=Object.keys(t).reduce((o,n)=>(o[`${e}:${n}`]=e=>t[n](e.detail),o),{});(0,ke.useIsomorphicEffect)(()=>(Object.keys(o).forEach(e=>{window.removeEventListener(e,o[e]),window.addEventListener(e,o[e])}),()=>Object.keys(o).forEach(e=>{window.removeEventListener(e,o[e])})),[o])},function(t){return(...o)=>{return n=`${e}:${String(t)}`,r=o[0],void window.dispatchEvent(new CustomEvent(n,{detail:r}));var n,r}}]}function Pe(){return"undefined"!=typeof process?"production":"development"}function Re(e){const t=new Map;return(...o)=>{const n=JSON.stringify(o);if(t.has(n))return t.get(n);const r=e(...o);return t.set(n,r),r}}function Ee(e,t){return 0===t.length?e:t.reduce((t,o)=>Math.abs(o-e)<Math.abs(t-e)?o:t)}function _e(e){const t=a.version;return"string"!=typeof a.version||t.startsWith("18.")?e?.ref:e?.props?.ref}function De(e){return e}function Ie(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=Ie(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}const Te=function(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=Ie(e))&&(n&&(n+=" "),n+=t);return n},ze={};function Oe({theme:e,classNames:t,props:o,stylesCtx:n}){return function(e){const t={};return e.forEach(e=>{Object.entries(e).forEach(([e,o])=>{t[e]?t[e]=Te(t[e],o):t[e]=o})}),t}((Array.isArray(t)?t:[t]).map(t=>"function"==typeof t?t(e,o,n):t||ze))}function Me({theme:e,styles:t,props:o,stylesCtx:n}){return(Array.isArray(t)?t:[t]).reduce((t,r)=>"function"==typeof r?{...t,...r(e,o,n)}:{...t,...r},{})}function Ae(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){const e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}const o=parseInt(t,16);return{r:o>>16&255,g:o>>8&255,b:255&o,a:1}}(e):e.startsWith("rgb")?function(e){const[t,o,n,r]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:o,b:n,a:void 0===r?1:r}}(e):e.startsWith("hsl")?function(e){const t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};const o=parseInt(t[1],10),n=parseInt(t[2],10)/100,r=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,s=(1-Math.abs(2*r-1))*n,i=o/60,l=s*(1-Math.abs(i%2-1)),c=r-s/2;let d,u,p;return i>=0&&i<1?(d=s,u=l,p=0):i>=1&&i<2?(d=l,u=s,p=0):i>=2&&i<3?(d=0,u=s,p=l):i>=3&&i<4?(d=0,u=l,p=s):i>=4&&i<5?(d=l,u=0,p=s):(d=s,u=0,p=l),{r:Math.round(255*(d+c)),g:Math.round(255*(u+c)),b:Math.round(255*(p+c)),a:a||1}}(e):{r:0,g:0,b:0,a:1}}function $e(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;const{r:o,g:n,b:r,a}=Ae(e),s=1-t,i=e=>Math.round(e*s);return`rgba(${i(o)}, ${i(n)}, ${i(r)}, ${a})`}function Le(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function Fe(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Be(e){if(e.startsWith("oklch("))return(function(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;const{r:t,g:o,b:n}=Ae(e),r=o/255,a=n/255;return.2126*Fe(t/255)+.7152*Fe(r)+.0722*Fe(a)}function Ve(e,t=.179){return!e.startsWith("var(")&&Be(e)>t}function He({color:e,theme:t,colorScheme:o}){if("string"!=typeof e)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got "+typeof e);if("bright"===e)return{color:e,value:"dark"===o?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Ve("dark"===o?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===o?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ve("dark"===o?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Ve("white"===e?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[n,r]=e.split("."),a=r?Number(r):void 0,s=n in t.colors;if(s){const e=void 0!==a?t.colors[n][a]:t.colors[n][Le(t,o||"light")];return{color:n,value:e,shade:a,isThemeColor:s,isLight:Ve(e,t.luminanceThreshold),variable:r?`--mantine-color-${n}-${a}`:`--mantine-color-${n}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:Ve(e,t.luminanceThreshold),shade:a,variable:void 0}}function We(e,t){const o=He({color:e||t.primaryColor,theme:t});return o.variable?`var(${o.variable})`:e}function Ge(e,t){const o={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},n=We(o.from,t),r=We(o.to,t);return`linear-gradient(${o.deg}deg, ${n} 0%, ${r} 100%)`}function Ke(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${100*(1-t)}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:o,g:n,b:r}=Ae(e);return`rgba(${o}, ${n}, ${r}, ${t})`}const Ue=Ke,qe=({color:e,theme:t,variant:o,gradient:n,autoContrast:r})=>{const a=He({color:e,theme:t}),s="boolean"==typeof r?r:t.autoContrast;if("filled"===o){const t=s&&a.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return a.isThemeColor?void 0===a.shade?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${J(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${9===a.shade?8:a.shade+1})`,color:t,border:`${J(1)} solid transparent`}:{background:e,hover:$e(e,.1),color:t,border:`${J(1)} solid transparent`}}if("light"===o){if(a.isThemeColor){if(void 0===a.shade)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${J(1)} solid transparent`};const o=t.colors[a.color][a.shade];return{background:Ke(o,.1),hover:Ke(o,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${J(1)} solid transparent`}}return{background:Ke(e,.1),hover:Ke(e,.12),color:e,border:`${J(1)} solid transparent`}}return"outline"===o?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${J(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Ke(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${J(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:"transparent",hover:Ke(e,.05),color:e,border:`${J(1)} solid ${e}`}:"subtle"===o?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${J(1)} solid transparent`}:{background:"transparent",hover:Ke(t.colors[a.color][a.shade],.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${J(1)} solid transparent`}:{background:"transparent",hover:Ke(e,.12),color:e,border:`${J(1)} solid transparent`}:"transparent"===o?a.isThemeColor?void 0===a.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${J(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${J(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${J(1)} solid transparent`}:"white"===o?a.isThemeColor?void 0===a.shade?{background:"var(--mantine-color-white)",hover:$e(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${J(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:$e(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${J(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:$e(t.white,.01),color:e,border:`${J(1)} solid transparent`}:"gradient"===o?{background:Ge(n,t),hover:Ge(n,t),color:"var(--mantine-color-white)",border:"none"}:"default"===o?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${J(1)} solid var(--mantine-color-default-border)`}:{}},Ye="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Xe={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:qe,autoContrast:!1,luminanceThreshold:.3,fontFamily:Ye,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Ye,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:J(34),lineHeight:"1.3"},h2:{fontSize:J(26),lineHeight:"1.35"},h3:{fontSize:J(22),lineHeight:"1.4"},h4:{fontSize:J(18),lineHeight:"1.45"},h5:{fontSize:J(16),lineHeight:"1.5"},h6:{fontSize:J(14),lineHeight:"1.5"}}},fontSizes:{xs:J(12),sm:J(14),md:J(16),lg:J(18),xl:J(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:J(2),sm:J(4),md:J(8),lg:J(16),xl:J(32)},spacing:{xs:J(10),sm:J(12),md:J(16),lg:J(20),xl:J(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${J(1)} ${J(3)} rgba(0, 0, 0, 0.05), 0 ${J(1)} ${J(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${J(1)} ${J(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${J(10)} ${J(15)} ${J(-5)}, rgba(0, 0, 0, 0.04) 0 ${J(7)} ${J(7)} ${J(-5)}`,md:`0 ${J(1)} ${J(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${J(20)} ${J(25)} ${J(-5)}, rgba(0, 0, 0, 0.04) 0 ${J(10)} ${J(10)} ${J(-5)}`,lg:`0 ${J(1)} ${J(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${J(28)} ${J(23)} ${J(-7)}, rgba(0, 0, 0, 0.04) 0 ${J(12)} ${J(12)} ${J(-7)}`,xl:`0 ${J(1)} ${J(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${J(36)} ${J(28)} ${J(-7)}, rgba(0, 0, 0, 0.04) 0 ${J(17)} ${J(17)} ${J(-7)}`},other:{},components:{}},Ze="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Je="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Qe(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function et(e){if(!(e.primaryColor in e.colors))throw new Error(Ze);if(!("object"!=typeof e.primaryShade||Qe(e.primaryShade.dark)&&Qe(e.primaryShade.light)))throw new Error(Je);if("number"==typeof e.primaryShade&&!Qe(e.primaryShade))throw new Error(Je)}function tt(e,t){if(!t)return et(e),e;const o=U(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(o.headings.fontFamily=t.fontFamily),et(o),o}const ot=(0,a.createContext)(null),nt=()=>(0,a.useContext)(ot)||Xe;function rt(){const e=(0,a.useContext)(ot);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function at({theme:e,children:t,inherit:o=!0}){const n=nt(),r=(0,a.useMemo)(()=>tt(o?n:Xe,e),[e,n,o]);return(0,ne.jsx)(ot.Provider,{value:r,children:t})}function st({classNames:e,styles:t,props:o,stylesCtx:n}){const r=rt();return{resolvedClassNames:Oe({theme:r,classNames:e,props:o,stylesCtx:n||void 0}),resolvedStyles:Me({theme:r,styles:t,props:o,stylesCtx:n||void 0})}}at.displayName="@mantine/core/MantineThemeProvider";const it={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},lt=(0,a.createContext)(null);function ct(){const e=(0,a.useContext)(lt);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function dt(){return ct().cssVariablesResolver}function ut(){return ct().classNamesPrefix}function pt(){return ct().getStyleNonce}function mt(){return ct().withStaticClasses}function ft(){return ct().headless}function ht(){return ct().stylesTransform?.sx}function vt(){return ct().stylesTransform?.styles}function yt(){return ct().env||"default"}function gt({selector:e,stylesCtx:t,theme:o,classNames:n,props:r}){return Oe({theme:o,classNames:n,props:r,stylesCtx:t})[e]}function bt({theme:e,options:t,themeName:o,selector:n,classNamesPrefix:r,classNames:a,classes:s,unstyled:i,className:l,rootSelector:c,props:d,stylesCtx:u,withStaticClasses:p,headless:m,transformedStyles:f}){return Te(function({theme:e,options:t,unstyled:o}){return Te(t?.focusable&&!o&&(e.focusClassName||it[e.focusRing]),t?.active&&!o&&e.activeClassName)}({theme:e,options:t,unstyled:i||m}),function({themeName:e,theme:t,selector:o,props:n,stylesCtx:r}){return e.map(e=>Oe({theme:t,classNames:t.components[e]?.classNames,props:n,stylesCtx:r})?.[o])}({theme:e,themeName:o,selector:n,props:d,stylesCtx:u}),function({options:e,classes:t,selector:o,unstyled:n}){return e?.variant&&!n?t[`${o}--${e.variant}`]:void 0}({options:t,classes:s,selector:n,unstyled:i}),gt({selector:n,stylesCtx:u,theme:e,classNames:a,props:d}),gt({selector:n,stylesCtx:u,theme:e,classNames:f,props:d}),function({selector:e,stylesCtx:t,options:o,props:n,theme:r}){return Oe({theme:r,classNames:o?.classNames,props:o?.props||n,stylesCtx:t})[e]}({selector:n,stylesCtx:u,options:t,props:d,theme:e}),function({rootSelector:e,selector:t,className:o}){return e===t?o:void 0}({rootSelector:c,selector:n,className:l}),function({selector:e,classes:t,unstyled:o}){return o?void 0:t[e]}({selector:n,classes:s,unstyled:i||m}),p&&!m&&function({themeName:e,classNamesPrefix:t,selector:o,withStaticClass:n}){return!1===n?[]:e.map(e=>`${t}-${e}-${o}`)}({themeName:o,classNamesPrefix:r,selector:n,withStaticClass:t?.withStaticClass}),t?.className)}function wt({theme:e,themeName:t,props:o,stylesCtx:n,selector:r}){return t.map(t=>Me({theme:e,styles:e.components[t]?.styles,props:o,stylesCtx:n})[r]).reduce((e,t)=>({...e,...t}),{})}function xt({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((e,o)=>({...e,...xt({style:o,theme:t})}),{}):"function"==typeof e?e(t):null==e?{}:e}function Ct({vars:e,varsResolver:t,theme:o,props:n,stylesCtx:r,selector:a,themeName:s,headless:i}){return function(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(o=>{e[o]={...e[o],...ee(t[o])}}),e),{})}([i?{}:t?.(o,n,r),...s.map(e=>o.components?.[e]?.vars?.(o,n,r)),e?.(o,n,r)])?.[a]}function St({theme:e,themeName:t,selector:o,options:n,props:r,stylesCtx:a,rootSelector:s,styles:i,style:l,vars:c,varsResolver:d,headless:u,withStylesTransform:p}){return{...!p&&wt({theme:e,themeName:t,props:r,stylesCtx:a,selector:o}),...!p&&Me({theme:e,styles:i,props:r,stylesCtx:a})[o],...!p&&Me({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:a})[o],...Ct({theme:e,props:r,stylesCtx:a,vars:c,varsResolver:d,selector:o,themeName:t,headless:u}),...s===o?xt({style:l,theme:e}):null,...xt({style:n?.style,theme:e})}}function Nt({name:e,classes:t,props:o,stylesCtx:n,className:r,style:a,rootSelector:s="root",unstyled:i,classNames:l,styles:c,vars:d,varsResolver:u}){const p=rt(),m=ut(),f=mt(),h=ft(),v=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:y,getTransformedStyles:g}=function({props:e,stylesCtx:t,themeName:o}){const n=rt(),r=vt()?.();return{getTransformedStyles:a=>r?[...a.map(o=>r(o,{props:e,theme:n,ctx:t})),...o.map(o=>r(n.components[o]?.styles,{props:e,theme:n,ctx:t}))].filter(Boolean):[],withStylesTransform:!!r}}({props:o,stylesCtx:n,themeName:v});return(e,b)=>({className:bt({theme:p,options:b,themeName:v,selector:e,classNamesPrefix:m,classNames:l,classes:t,unstyled:i,className:r,rootSelector:s,props:o,stylesCtx:n,withStaticClasses:f,headless:h,transformedStyles:g([b?.styles,c])}),style:St({theme:p,themeName:v,selector:e,options:b,props:o,stylesCtx:n,rootSelector:s,styles:c,style:a,vars:d,varsResolver:u,headless:h,withStylesTransform:y})})}function kt(e){return"auto"===e||"dark"===e||"light"===e}function jt({key:e="mantine-color-scheme-value"}={}){let t;return{get:t=>{if("undefined"==typeof window)return t;try{const o=window.localStorage.getItem(e);return kt(o)?o:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:o=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&kt(t.newValue)&&o(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}function Pt(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, white ${100*t}%)`;const{r:o,g:n,b:r,a}=Ae(e),s=e=>Math.round(e+(255-e)*t);return`rgba(${s(o)}, ${s(n)}, ${s(r)}, ${a})`}function Rt({color:e,theme:t,autoContrast:o}){return("boolean"==typeof o?o:t.autoContrast)&&He({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Et(e,t){return Rt({color:e.colors[e.primaryColor][Le(e,t)],theme:e,autoContrast:null})}function _t(e,t){return"boolean"==typeof e?e:t.autoContrast}function Dt(e){return Array.isArray(e)?e:Array(10).fill(e)}function It(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(e=>e.remove())}function Tt({keepTransitions:e}={}){const t=(0,a.useRef)(ue),o=(0,a.useRef)(-1),n=(0,a.useContext)(lt),r=pt(),s=(0,a.useRef)(r?.());if(!n)throw new Error("[@mantine/core] MantineProvider was not found in tree");const i=r=>{n.setColorScheme(r),t.current=e?()=>{}:It(s.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},l=(0,ke.useColorScheme)("light",{getInitialValueInEffect:!1}),c="auto"===n.colorScheme?l:n.colorScheme,d=(0,a.useCallback)(()=>i("light"===c?"dark":"light"),[i,c]);return(0,a.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(o.current)},[]),{colorScheme:n.colorScheme,setColorScheme:i,clearColorScheme:()=>{n.clearColorScheme(),t.current=e?()=>{}:It(s.current),window.clearTimeout(o.current),o.current=window.setTimeout(()=>{t.current?.()},10)},toggleColorScheme:d}}function zt(e,t){const o="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,n="auto"!==e?e:o?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",n)}function Ot({manager:e,defaultColorScheme:t,getRootElement:o,forceColorScheme:n}){const r=(0,a.useRef)(null),[s,i]=(0,a.useState)(()=>e.get(t)),l=n||s,c=(0,a.useCallback)(t=>{n||(zt(t,o),i(t),e.set(t))},[e.set,l,n]),d=(0,a.useCallback)(()=>{i(t),zt(t,o),e.clear()},[e.clear,t]);return(0,a.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),(0,ke.useIsomorphicEffect)(()=>{zt(e.get(t),o)},[]),(0,a.useEffect)(()=>{if(n)return zt(n,o),()=>{};void 0===n&&zt(s,o),"undefined"!=typeof window&&"matchMedia"in window&&(r.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===s&&zt(e.matches?"dark":"light",o)};return r.current?.addEventListener("change",e),()=>r.current?.removeEventListener("change",e)},[s,n]),{colorScheme:l,setColorScheme:c,clearColorScheme:d}}function Mt(e,t={getInitialValueInEffect:!0}){const o=(0,ke.useColorScheme)(e,t),{colorScheme:n}=Tt();return"auto"===n?o:n}const At=({defaultColorScheme:e,localStorageKey:t,forceColorScheme:o})=>o?`document.documentElement.setAttribute("data-mantine-color-scheme", '${o}');`:`try {\n var _colorScheme = window.localStorage.getItem("${t}");\n var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${e}";\n var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";\n document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);\n} catch (e) {}\n`;function $t({defaultColorScheme:e="light",localStorageKey:t="mantine-color-scheme-value",forceColorScheme:o,...n}){const r=["light","dark","auto"].includes(e)?e:"light";return(0,ne.jsx)("script",{...n,"data-mantine-script":!0,dangerouslySetInnerHTML:{__html:At({defaultColorScheme:r,localStorageKey:t,forceColorScheme:o})}})}function Lt(){const e=rt(),t=pt(),o=G(e.breakpoints).reduce((t,o)=>{const n=e.breakpoints[o].includes("px"),r=Y(e.breakpoints[o]);return`${t}@media (max-width: ${n?r-.1+"px":Q(r-.1)}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${n?`${r}px`:Q(r)}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return(0,ne.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:o}})}function Ft(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join("")}function Bt(e,t){return(Array.isArray(e)?e:[e]).reduce((e,t)=>`${t}{${e}}`,t)}function Vt(e,t){const o=Ft(e.variables),n=o?Bt(t,o):"",r=Ft(e.dark),a=Ft(e.light);return`${n}${r?Bt(":host"===t?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,r):""}${a?Bt(":host"===t?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,a):""}`}function Ht({theme:e,color:t,colorScheme:o,name:n=t,withColorValues:r=!0}){if(!e.colors[t])return{};if("light"===o){const o=Le(e,"light"),a={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-filled)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${o})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${9===o?8:o+1})`,[`--mantine-color-${n}-light`]:Ue(e.colors[t][o],.1),[`--mantine-color-${n}-light-hover`]:Ue(e.colors[t][o],.12),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${o})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${o})`,[`--mantine-color-${n}-outline-hover`]:Ue(e.colors[t][o],.05)};return r?{[`--mantine-color-${n}-0`]:e.colors[t][0],[`--mantine-color-${n}-1`]:e.colors[t][1],[`--mantine-color-${n}-2`]:e.colors[t][2],[`--mantine-color-${n}-3`]:e.colors[t][3],[`--mantine-color-${n}-4`]:e.colors[t][4],[`--mantine-color-${n}-5`]:e.colors[t][5],[`--mantine-color-${n}-6`]:e.colors[t][6],[`--mantine-color-${n}-7`]:e.colors[t][7],[`--mantine-color-${n}-8`]:e.colors[t][8],[`--mantine-color-${n}-9`]:e.colors[t][9],...a}:a}const a=Le(e,"dark"),s={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-4)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${a})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${9===a?8:a+1})`,[`--mantine-color-${n}-light`]:Ue(e.colors[t][Math.max(0,a-2)],.15),[`--mantine-color-${n}-light-hover`]:Ue(e.colors[t][Math.max(0,a-2)],.2),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${Math.max(a-5,0)})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${Math.max(a-4,0)})`,[`--mantine-color-${n}-outline-hover`]:Ue(e.colors[t][Math.max(a-4,0)],.05)};return r?{[`--mantine-color-${n}-0`]:e.colors[t][0],[`--mantine-color-${n}-1`]:e.colors[t][1],[`--mantine-color-${n}-2`]:e.colors[t][2],[`--mantine-color-${n}-3`]:e.colors[t][3],[`--mantine-color-${n}-4`]:e.colors[t][4],[`--mantine-color-${n}-5`]:e.colors[t][5],[`--mantine-color-${n}-6`]:e.colors[t][6],[`--mantine-color-${n}-7`]:e.colors[t][7],[`--mantine-color-${n}-8`]:e.colors[t][8],[`--mantine-color-${n}-9`]:e.colors[t][9],...s}:s}function Wt(e){const t=Dt(Array.from({length:10}).map((t,o)=>`var(--mantine-color-${e.name}-${o})`));return Object.defineProperty(t,"mantine-virtual-color",{enumerable:!1,writable:!1,configurable:!1,value:!0}),Object.defineProperty(t,"dark",{enumerable:!1,writable:!1,configurable:!1,value:e.dark}),Object.defineProperty(t,"light",{enumerable:!1,writable:!1,configurable:!1,value:e.light}),Object.defineProperty(t,"name",{enumerable:!1,writable:!1,configurable:!1,value:e.name}),t}function Gt(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}function Kt(e,t,o){G(t).forEach(n=>Object.assign(e,{[`--mantine-${o}-${n}`]:t[n]}))}const Ut=e=>{const t=Le(e,"light"),o=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:J(e.defaultRadius),n={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":o,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":Et(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":Et(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};Kt(n.variables,e.breakpoints,"breakpoint"),Kt(n.variables,e.spacing,"spacing"),Kt(n.variables,e.fontSizes,"font-size"),Kt(n.variables,e.lineHeights,"line-height"),Kt(n.variables,e.shadows,"shadow"),Kt(n.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((t,o)=>{n.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${e.primaryColor}-${o})`}),G(e.colors).forEach(t=>{const o=e.colors[t];if(Gt(o))return Object.assign(n.light,Ht({theme:e,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),void Object.assign(n.dark,Ht({theme:e,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));o.forEach((e,o)=>{n.variables[`--mantine-color-${t}-${o}`]=e}),Object.assign(n.light,Ht({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(n.dark,Ht({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))});const r=e.headings.sizes;return G(r).forEach(t=>{n.variables[`--mantine-${t}-font-size`]=r[t].fontSize,n.variables[`--mantine-${t}-line-height`]=r[t].lineHeight,n.variables[`--mantine-${t}-font-weight`]=r[t].fontWeight||e.headings.fontWeight}),n},qt=Ut(Xe);function Yt({cssVariablesSelector:e,deduplicateCssVariables:t}){const o=rt(),n=pt(),r=function({theme:e,generator:t}){const o=Ut(e),n=t?.(e);return n?U(o,n):o}({theme:o,generator:dt()}),a=":root"===e&&t,s=Vt(a?function(e){const t={variables:{},light:{},dark:{}};return G(e.variables).forEach(o=>{qt.variables[o]!==e.variables[o]&&(t.variables[o]=e.variables[o])}),G(e.light).forEach(o=>{qt.light[o]!==e.light[o]&&(t.light[o]=e.light[o])}),G(e.dark).forEach(o=>{qt.dark[o]!==e.dark[o]&&(t.dark[o]=e.dark[o])}),t}(r):r,e);return s?(0,ne.jsx)("style",{"data-mantine-styles":!0,nonce:n?.(),dangerouslySetInnerHTML:{__html:`${s}${a?"":(i=e,`\n ${i}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n ${i}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n`)}`}}):null;var i}function Xt({theme:e,children:t,getStyleNonce:o,withStaticClasses:n=!0,withGlobalClasses:r=!0,deduplicateCssVariables:a=!0,withCssVariables:s=!0,cssVariablesSelector:i=":root",classNamesPrefix:l="mantine",colorSchemeManager:c=jt(),defaultColorScheme:d="light",getRootElement:u=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:m,stylesTransform:f,env:h}){const{colorScheme:v,setColorScheme:y,clearColorScheme:g}=Ot({defaultColorScheme:d,forceColorScheme:m,manager:c,getRootElement:u});return function({respectReducedMotion:e,getRootElement:t}){(0,ke.useIsomorphicEffect)(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:u}),(0,ne.jsx)(lt.Provider,{value:{colorScheme:v,setColorScheme:y,clearColorScheme:g,getRootElement:u,classNamesPrefix:l,getStyleNonce:o,cssVariablesResolver:p,cssVariablesSelector:i,withStaticClasses:n,stylesTransform:f,env:h},children:(0,ne.jsxs)(at,{theme:e,children:[s&&(0,ne.jsx)(Yt,{cssVariablesSelector:i,deduplicateCssVariables:a}),r&&(0,ne.jsx)(Lt,{}),t]})})}function Zt({children:e,theme:t}){return(0,ne.jsx)(lt.Provider,{value:{colorScheme:"auto",setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:"mantine",cssVariablesSelector:":root",withStaticClasses:!1,headless:!0},children:(0,ne.jsx)(at,{theme:t,children:e})})}function Jt(e,t,o){const n=rt(),r=n.components[e]?.defaultProps;return{...t,..."function"==typeof r?r(n):r,...ee(o)}}function Qt(e){return e}function eo(...e){return e.reduce((e,t)=>U(e,t),{})}Yt.displayName="@mantine/CssVariables",function(){const e=console.error;console.error=(...t)=>{t.length>1&&"string"==typeof t[0]&&t[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof t[1]&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}(),Xt.displayName="@mantine/core/MantineProvider",Zt.displayName="@mantine/core/HeadlessMantineProvider";const to=["xs","sm","md","lg","xl"];function oo(e,t){const o=rt(),n=[(0,ke.useMediaQuery)(`(min-width: ${o.breakpoints.xs})`,!1,t),(0,ke.useMediaQuery)(`(min-width: ${o.breakpoints.sm})`,!1,t),(0,ke.useMediaQuery)(`(min-width: ${o.breakpoints.md})`,!1,t),(0,ke.useMediaQuery)(`(min-width: ${o.breakpoints.lg})`,!1,t),(0,ke.useMediaQuery)(`(min-width: ${o.breakpoints.xl})`,!1,t)].findLastIndex(e=>e);return function(e,t){if(!t)return e.base;let o=to.indexOf(t);for(;o>=0;){if(to[o]in e)return e[to[o]];o-=1}return e.base}(e,to[n])}const no={suppressHydrationWarning:!0,"data-mantine-color-scheme":"light"};function ro(e){return G(e).reduce((t,o)=>void 0!==e[o]?`${t}${q(o)}:${e[o]};`:t,"").trim()}function ao({selector:e,styles:t,media:o,container:n}){const r=t?ro(t):"",a=Array.isArray(o)?o.map(t=>`@media${t.query}{${e}{${ro(t.styles)}}}`):[],s=Array.isArray(n)?n.map(t=>`@container ${t.query}{${e}{${ro(t.styles)}}}`):[];return`${r?`${e}{${r}}`:""}${a.join("")}${s.join("")}`.trim()}function so(e){const t=pt();return(0,ne.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:ao(e)}})}function io(e){const{m:t,mx:o,my:n,mt:r,mb:a,ml:s,mr:i,me:l,ms:c,p:d,px:u,py:p,pt:m,pb:f,pl:h,pr:v,pe:y,ps:g,bd:b,bg:w,c:x,opacity:C,ff:S,fz:N,fw:k,lts:j,ta:P,lh:R,fs:E,tt:_,td:D,w:I,miw:T,maw:z,h:O,mih:M,mah:A,bgsz:$,bgp:L,bgr:F,bga:B,pos:V,top:H,left:W,bottom:G,right:K,inset:U,display:q,flex:Y,hiddenFrom:X,visibleFrom:Z,lightHidden:J,darkHidden:Q,sx:te,...oe}=e;return{styleProps:ee({m:t,mx:o,my:n,mt:r,mb:a,ml:s,mr:i,me:l,ms:c,p:d,px:u,py:p,pt:m,pb:f,pl:h,pr:v,pe:y,ps:g,bd:b,bg:w,c:x,opacity:C,ff:S,fz:N,fw:k,lts:j,ta:P,lh:R,fs:E,tt:_,td:D,w:I,miw:T,maw:z,h:O,mih:M,mah:A,bgsz:$,bgp:L,bgr:F,bga:B,pos:V,top:H,left:W,bottom:G,right:K,inset:U,display:q,flex:Y,hiddenFrom:X,visibleFrom:Z,lightHidden:J,darkHidden:Q,sx:te}),rest:oe}}const lo={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function co(e,t){const o=He({color:e,theme:t});return"dimmed"===o.color?"var(--mantine-color-dimmed)":"bright"===o.color?"var(--mantine-color-bright)":o.variable?`var(${o.variable})`:o.color}const uo={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},po=["h1","h2","h3","h4","h5","h6"],mo=["h1","h2","h3","h4","h5","h6"],fo={color:co,textColor:function(e,t){const o=He({color:e,theme:t});return o.isThemeColor&&void 0===o.shade?`var(--mantine-color-${o.color}-text)`:co(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&po.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?J(e):e},spacing:function(e,t){if("number"==typeof e)return J(e);if("string"==typeof e){const o=e.replace("-","");if(!(o in t.spacing))return J(e);const n=`--mantine-spacing-${o}`;return e.startsWith("-")?`calc(var(${n}) * -1)`:`var(${n})`}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?J(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&mo.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in uo?uo[e]:e},border:function(e,t){if("number"==typeof e)return J(e);if("string"==typeof e){const[o,n,...r]=e.split(" ").filter(e=>""!==e.trim());let a=`${J(o)}`;return n&&(a+=` ${n}`),r.length>0&&(a+=` ${co(r.join(" "),t)}`),a.trim()}return e}};function ho(e){return e.replace("(min-width: ","").replace("em)","")}function vo(e,t){return"object"==typeof e&&null!==e&&t in e?e[t]:e}function yo({styleProps:e,data:t,theme:o}){return function({media:e,...t}){return{...t,media:Object.keys(e).sort((e,t)=>Number(ho(e))-Number(ho(t))).map(t=>({query:t,styles:e[t]}))}}(G(e).reduce((n,r)=>{if("hiddenFrom"===r||"visibleFrom"===r||"sx"===r)return n;const a=t[r],s=Array.isArray(a.property)?a.property:[a.property],i="object"==typeof(l=e[r])&&null!==l?"base"in l?l.base:void 0:l;var l;if(!function(e){if("object"!=typeof e||null===e)return!1;const t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(e[r]))return s.forEach(e=>{n.inlineStyles[e]=fo[a.type](i,o)}),n;n.hasResponsiveStyles=!0;const c=function(e){return"object"==typeof e&&null!==e?G(e).filter(e=>"base"!==e):[]}(e[r]);return s.forEach(t=>{i&&(n.styles[t]=fo[a.type](i,o)),c.forEach(s=>{const i=`(min-width: ${o.breakpoints[s]})`;n.media[i]={...n.media[i],[t]:fo[a.type](vo(e[r],s),o)}})}),n},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function go(){return`__m__-${(0,a.useId)().replace(/:/g,"")}`}function bo(e,t){return Array.isArray(e)?[...e].reduce((e,o)=>({...e,...bo(o,t)}),{}):"function"==typeof e?e(t):null==e?{}:e}function wo(e){return e}function xo(e){return e.startsWith("data-")?e:`data-${e}`}function Co(e){return e?"string"==typeof e?{[xo(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Co(t)}),{}):(t=e,Object.keys(t).reduce((e,o)=>{const n=t[o];return void 0===n||""===n||!1===n||null===n||(e[xo(o)]=t[o]),e},{})):null;var t}function So(e,t){return Array.isArray(e)?[...e].reduce((e,o)=>({...e,...So(o,t)}),{}):"function"==typeof e?e(t):null==e?{}:e}function No({theme:e,style:t,vars:o,styleProps:n}){return{...So(t,e),...So(o,e),...n}}const ko=(0,a.forwardRef)(({component:e,style:t,__vars:o,className:n,variant:r,mod:a,size:s,hiddenFrom:i,visibleFrom:l,lightHidden:c,darkHidden:d,renderRoot:u,__size:p,...m},f)=>{const h=rt(),v=e||"div",{styleProps:y,rest:g}=io(m),b=ht(),w=b?.()?.(y.sx),x=go(),C=yo({styleProps:y,theme:h,data:lo}),S={ref:f,style:No({theme:h,style:t,vars:o,styleProps:C.inlineStyles}),className:Te(n,w,{[x]:C.hasResponsiveStyles,"mantine-light-hidden":c,"mantine-dark-hidden":d,[`mantine-hidden-from-${i}`]:i,[`mantine-visible-from-${l}`]:l}),"data-variant":r,"data-size":te(s)?void 0:s||void 0,size:p,...Co(a),...g};return(0,ne.jsxs)(ne.Fragment,{children:[C.hasResponsiveStyles&&(0,ne.jsx)(so,{selector:`.${x}`,styles:C.styles,media:C.media}),"function"==typeof u?u(S):(0,ne.jsx)(v,{...S})]})});ko.displayName="@mantine/core/Box";const jo=ko;function Po(e){return e}function Ro(e){const t=e;return e=>{const o=(0,a.forwardRef)((o,n)=>(0,ne.jsx)(t,{...e,...o,ref:n}));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o}}function Eo(e){const t=(0,a.forwardRef)(e);return t.extend=Po,t.withProps=e=>{const o=(0,a.forwardRef)((o,n)=>(0,ne.jsx)(t,{...e,...o,ref:n}));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o},t}function _o(e){const t=(0,a.forwardRef)(e);return t.withProps=e=>{const o=(0,a.forwardRef)((o,n)=>(0,ne.jsx)(t,{...e,...o,ref:n}));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o},t.extend=Po,t}const Do=(0,a.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Io(){return(0,a.useContext)(Do)}function To({children:e,initialDirection:t="ltr",detectDirection:o=!0}){const[n,r]=(0,a.useState)(t),s=e=>{r(e),document.documentElement.setAttribute("dir",e)};return(0,ke.useIsomorphicEffect)(()=>{if(o){const e=document.documentElement.getAttribute("dir");"rtl"!==e&&"ltr"!==e||s(e)}},[]),(0,ne.jsx)(Do.Provider,{value:{dir:n,toggleDirection:()=>s("ltr"===n?"rtl":"ltr"),setDirection:s},children:e})}var zo=o(6672);function Oo(e){return e?.current?e.current.scrollHeight:"auto"}const Mo="undefined"!=typeof window&&window.requestAnimationFrame;const Ao={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},$o=Eo((e,t)=>{const{children:o,in:n,transitionDuration:r,transitionTimingFunction:s,style:i,onTransitionEnd:l,animateOpacity:c,...d}=Jt("Collapse",Ao,e),u=rt(),p=(0,ke.useReducedMotion)(),m=u.respectReducedMotion&&p?0:r,f=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:o=()=>{},opened:n}){const r=(0,a.useRef)(null),s={height:0,overflow:"hidden"},[i,l]=(0,a.useState)(n?{}:s),c=e=>{(0,zo.flushSync)(()=>l(e))},d=e=>{c(t=>({...t,...e}))};function u(o){const n=e||function(e){if(!e||"string"==typeof e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(o);return{transition:`height ${n}ms ${t}, opacity ${n}ms ${t}`}}(0,ke.useDidUpdate)(()=>{"function"==typeof Mo&&Mo(n?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),Mo(()=>{const e=Oo(r);d({...u(e),height:e})})}:()=>{const e=Oo(r);d({...u(e),willChange:"height",height:e}),Mo(()=>d({height:0,overflow:"hidden"}))})},[n]);const p=e=>{if(e.target===r.current&&"height"===e.propertyName)if(n){const e=Oo(r);e===i.height?c({}):d({height:e}),o()}else 0===i.height&&(c(s),o())};return function({style:e={},refKey:t="ref",...o}={}){const s=o[t],l={"aria-hidden":!n,...o,[t]:(0,ke.mergeRefs)(r,s),onTransitionEnd:p,style:{boxSizing:"border-box",...e,...i}};return a.version.startsWith("18")?n||(l.inert=""):l.inert=!n,l}}({opened:n,transitionDuration:m,transitionTimingFunction:s,onTransitionEnd:l});return 0===m?n?(0,ne.jsx)(jo,{...d,children:o}):null:(0,ne.jsx)(jo,{...f({style:{opacity:n||!c?1:0,transition:c?`opacity ${m}ms ${s}`:"none",...bo(i,u)},ref:t,...d}),children:o})});function Lo(){return"undefined"!=typeof window}function Fo(e){return Ho(e)?(e.nodeName||"").toLowerCase():"#document"}function Bo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vo(e){var t;return null==(t=(Ho(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ho(e){return!!Lo()&&(e instanceof Node||e instanceof Bo(e).Node)}function Wo(e){return!!Lo()&&(e instanceof Element||e instanceof Bo(e).Element)}function Go(e){return!!Lo()&&(e instanceof HTMLElement||e instanceof Bo(e).HTMLElement)}function Ko(e){return!(!Lo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Bo(e).ShadowRoot)}$o.displayName="@mantine/core/Collapse";const Uo=new Set(["inline","contents"]);function qo(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!Uo.has(r)}const Yo=new Set(["table","td","th"]);function Xo(e){return Yo.has(Fo(e))}const Zo=[":popover-open",":modal"];function Jo(e){return Zo.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Qo=["transform","translate","scale","rotate","perspective"],en=["transform","translate","scale","rotate","perspective","filter"],tn=["paint","layout","strict","content"];function on(e){const t=nn(),o=Wo(e)?sn(e):e;return Qo.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||en.some(e=>(o.willChange||"").includes(e))||tn.some(e=>(o.contain||"").includes(e))}function nn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const rn=new Set(["html","body","#document"]);function an(e){return rn.has(Fo(e))}function sn(e){return Bo(e).getComputedStyle(e)}function ln(e){return Wo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cn(e){if("html"===Fo(e))return e;const t=e.assignedSlot||e.parentNode||Ko(e)&&e.host||Vo(e);return Ko(t)?t.host:t}function dn(e){const t=cn(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:Go(t)&&qo(t)?t:dn(t)}function un(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const r=dn(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),s=Bo(r);if(a){const e=pn(s);return t.concat(s,s.visualViewport||[],qo(r)?r:[],e&&o?un(e):[])}return t.concat(r,un(r,[],o))}function pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mn(e){let t=e.activeElement;for(;null!=(null==(o=t)||null==(o=o.shadowRoot)?void 0:o.activeElement);){var o;t=t.shadowRoot.activeElement}return t}function fn(e,t){if(!e||!t)return!1;const o=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(o&&Ko(o)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function hn(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function vn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:o}=e;return t+"/"+o}).join(" "):navigator.userAgent}function yn(){const e=/android/i;return e.test(hn())||e.test(vn())}function gn(e,t){const o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function bn(e){return(null==e?void 0:e.ownerDocument)||document}function wn(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const o=e;return null!=o.target&&t.contains(o.target)}function xn(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Cn=Math.min,Sn=Math.max,Nn=Math.round,kn=Math.floor,jn=e=>({x:e,y:e}),Pn={left:"right",right:"left",bottom:"top",top:"bottom"},Rn={start:"end",end:"start"};function En(e,t,o){return Sn(e,Cn(t,o))}function _n(e,t){return"function"==typeof e?e(t):e}function Dn(e){return e.split("-")[0]}function In(e){return e.split("-")[1]}function Tn(e){return"x"===e?"y":"x"}function zn(e){return"y"===e?"height":"width"}const On=new Set(["top","bottom"]);function Mn(e){return On.has(Dn(e))?"y":"x"}function An(e){return Tn(Mn(e))}function $n(e){return e.replace(/start|end/g,e=>Rn[e])}const Ln=["left","right"],Fn=["right","left"],Bn=["top","bottom"],Vn=["bottom","top"];function Hn(e){return e.replace(/left|right|bottom|top/g,e=>Pn[e])}function Wn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Gn(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Kn(e,t,o){let{reference:n,floating:r}=e;const a=Mn(t),s=An(t),i=zn(s),l=Dn(t),c="y"===a,d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,p=n[i]/2-r[i]/2;let m;switch(l){case"top":m={x:d,y:n.y-r.height};break;case"bottom":m={x:d,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:u};break;case"left":m={x:n.x-r.width,y:u};break;default:m={x:n.x,y:n.y}}switch(In(t)){case"start":m[s]-=p*(o&&c?-1:1);break;case"end":m[s]+=p*(o&&c?-1:1)}return m}async function Un(e,t){var o;void 0===t&&(t={});const{x:n,y:r,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:m=0}=_n(t,e),f=Wn(m),h=i[p?"floating"===u?"reference":"floating":u],v=Gn(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(h)))||o?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating)),b=await(null==a.isElement?void 0:a.isElement(g))&&await(null==a.getScale?void 0:a.getScale(g))||{x:1,y:1},w=Gn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+f.top)/b.y,bottom:(w.bottom-v.bottom+f.bottom)/b.y,left:(v.left-w.left+f.left)/b.x,right:(w.right-v.right+f.right)/b.x}}function qn(e){const t=Cn(...e.map(e=>e.left)),o=Cn(...e.map(e=>e.top));return{x:t,y:o,width:Sn(...e.map(e=>e.right))-t,height:Sn(...e.map(e=>e.bottom))-o}}const Yn=new Set(["left","top"]);function Xn(e){const t=sn(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Go(e),a=r?e.offsetWidth:o,s=r?e.offsetHeight:n,i=Nn(o)!==a||Nn(n)!==s;return i&&(o=a,n=s),{width:o,height:n,$:i}}function Zn(e){return Wo(e)?e:e.contextElement}function Jn(e){const t=Zn(e);if(!Go(t))return jn(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:a}=Xn(t);let s=(a?Nn(o.width):o.width)/n,i=(a?Nn(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),i&&Number.isFinite(i)||(i=1),{x:s,y:i}}const Qn=jn(0);function er(e){const t=Bo(e);return nn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qn}function tr(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),a=Zn(e);let s=jn(1);t&&(n?Wo(n)&&(s=Jn(n)):s=Jn(e));const i=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==Bo(e))&&t}(a,o,n)?er(a):jn(0);let l=(r.left+i.x)/s.x,c=(r.top+i.y)/s.y,d=r.width/s.x,u=r.height/s.y;if(a){const e=Bo(a),t=n&&Wo(n)?Bo(n):n;let o=e,r=pn(o);for(;r&&n&&t!==o;){const e=Jn(r),t=r.getBoundingClientRect(),n=sn(r),a=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=s,o=Bo(r),r=pn(o)}}return Gn({width:d,height:u,x:l,y:c})}function or(e,t){const o=ln(e).scrollLeft;return t?t.left+o:tr(Vo(e)).left+o}function nr(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-or(e,o),y:o.top+t.scrollTop}}const rr=new Set(["absolute","fixed"]);function ar(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=Bo(e),n=Vo(e),r=o.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(r){a=r.width,s=r.height;const e=nn();(!e||e&&"fixed"===t)&&(i=r.offsetLeft,l=r.offsetTop)}const c=or(n);if(c<=0){const e=n.ownerDocument,t=e.body,o=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,s=Math.abs(n.clientWidth-t.clientWidth-r);s<=25&&(a-=s)}else c<=25&&(a+=c);return{width:a,height:s,x:i,y:l}}(e,o);else if("document"===t)n=function(e){const t=Vo(e),o=ln(e),n=e.ownerDocument.body,r=Sn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Sn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+or(e);const i=-o.scrollTop;return"rtl"===sn(n).direction&&(s+=Sn(t.clientWidth,n.clientWidth)-r),{width:r,height:a,x:s,y:i}}(Vo(e));else if(Wo(t))n=function(e,t){const o=tr(e,!0,"fixed"===t),n=o.top+e.clientTop,r=o.left+e.clientLeft,a=Go(e)?Jn(e):jn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:r*a.x,y:n*a.y}}(t,o);else{const o=er(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gn(n)}function sr(e,t){const o=cn(e);return!(o===t||!Wo(o)||an(o))&&("fixed"===sn(o).position||sr(o,t))}function ir(e,t,o){const n=Go(t),r=Vo(t),a="fixed"===o,s=tr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=jn(0);function c(){l.x=or(r)}if(n||!n&&!a)if(("body"!==Fo(t)||qo(r))&&(i=ln(t)),n){const e=tr(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();a&&!n&&r&&c();const d=!r||n||a?jn(0):nr(r,i);return{x:s.left+i.scrollLeft-l.x-d.x,y:s.top+i.scrollTop-l.y-d.y,width:s.width,height:s.height}}function lr(e){return"static"===sn(e).position}function cr(e,t){if(!Go(e)||"fixed"===sn(e).position)return null;if(t)return t(e);let o=e.offsetParent;return Vo(e)===o&&(o=o.ownerDocument.body),o}function dr(e,t){const o=Bo(e);if(Jo(e))return o;if(!Go(e)){let t=cn(e);for(;t&&!an(t);){if(Wo(t)&&!lr(t))return t;t=cn(t)}return o}let n=cr(e,t);for(;n&&Xo(n)&&lr(n);)n=cr(n,t);return n&&an(n)&&lr(n)&&!on(n)?o:n||function(e){let t=cn(e);for(;Go(t)&&!an(t);){if(on(t))return t;if(Jo(t))return null;t=cn(t)}return null}(e)||o}const ur={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const a="fixed"===r,s=Vo(n),i=!!t&&Jo(t.floating);if(n===s||i&&a)return o;let l={scrollLeft:0,scrollTop:0},c=jn(1);const d=jn(0),u=Go(n);if((u||!u&&!a)&&(("body"!==Fo(n)||qo(s))&&(l=ln(n)),Go(n))){const e=tr(n);c=Jn(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const p=!s||u||a?jn(0):nr(s,l);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:Vo,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const a=[..."clippingAncestors"===o?Jo(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=un(e,[],!1).filter(e=>Wo(e)&&"body"!==Fo(e)),r=null;const a="fixed"===sn(e).position;let s=a?cn(e):e;for(;Wo(s)&&!an(s);){const t=sn(s),o=on(s);o||"fixed"!==t.position||(r=null),(a?!o&&!r:!o&&"static"===t.position&&r&&rr.has(r.position)||qo(s)&&!o&&sr(e,s))?n=n.filter(e=>e!==s):r=t,s=cn(s)}return t.set(e,n),n}(t,this._c):[].concat(o),n],s=a[0],i=a.reduce((e,o)=>{const n=ar(t,o,r);return e.top=Sn(n.top,e.top),e.right=Cn(n.right,e.right),e.bottom=Cn(n.bottom,e.bottom),e.left=Sn(n.left,e.left),e},ar(t,s,r));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:dr,getElementRects:async function(e){const t=this.getOffsetParent||dr,o=this.getDimensions,n=await o(e.floating);return{reference:ir(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Xn(e);return{width:t,height:o}},getScale:Jn,isElement:Wo,isRTL:function(e){return"rtl"===sn(e).direction}};function pr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const mr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:a,placement:s,middlewareData:i}=t,l=await async function(e,t){const{placement:o,platform:n,elements:r}=e,a=await(null==n.isRTL?void 0:n.isRTL(r.floating)),s=Dn(o),i=In(o),l="y"===Mn(o),c=Yn.has(s)?-1:1,d=a&&l?-1:1,u=_n(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof f&&(m="end"===i?-1*f:f),l?{x:m*d,y:p*c}:{x:p*c,y:m*d}}(t,e);return s===(null==(o=i.offset)?void 0:o.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:s}}}}},fr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=_n(e,t),c={x:o,y:n},d=await Un(t,l),u=Mn(Dn(r)),p=Tn(u);let m=c[p],f=c[u];if(a){const e="y"===p?"bottom":"right";m=En(m+d["y"===p?"top":"left"],m,m-d[e])}if(s){const e="y"===u?"bottom":"right";f=En(f+d["y"===u?"top":"left"],f,f-d[e])}const h=i.fn({...t,[p]:m,[u]:f});return{...h,data:{x:h.x-o,y:h.y-n,enabled:{[p]:a,[u]:s}}}}}},hr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...v}=_n(e,t);if(null!=(o=a.arrow)&&o.alignmentOffset)return{};const y=Dn(r),g=Mn(i),b=Dn(i)===i,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(b||!h?[Hn(i)]:function(e){const t=Hn(e);return[$n(e),t,$n(t)]}(i)),C="none"!==f;!p&&C&&x.push(...function(e,t,o,n){const r=In(e);let a=function(e,t,o){switch(e){case"top":case"bottom":return o?t?Fn:Ln:t?Ln:Fn;case"left":case"right":return t?Bn:Vn;default:return[]}}(Dn(e),"start"===o,n);return r&&(a=a.map(e=>e+"-"+r),t&&(a=a.concat(a.map($n)))),a}(i,h,f,w));const S=[i,...x],N=await Un(t,v),k=[];let j=(null==(n=a.flip)?void 0:n.overflows)||[];if(d&&k.push(N[y]),u){const e=function(e,t,o){void 0===o&&(o=!1);const n=In(e),r=An(e),a=zn(r);let s="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hn(s)),[s,Hn(s)]}(r,s,w);k.push(N[e[0]],N[e[1]])}if(j=[...j,{placement:r,overflows:k}],!k.every(e=>e<=0)){var P,R;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=S[e];if(t&&("alignment"!==u||g===Mn(t)||j.every(e=>Mn(e.placement)!==g||e.overflows[0]>0)))return{data:{index:e,overflows:j},reset:{placement:t}};let o=null==(R=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:R.placement;if(!o)switch(m){case"bestFit":{var E;const e=null==(E=j.filter(e=>{if(C){const t=Mn(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:E[0];e&&(o=e);break}case"initialPlacement":o=i}if(r!==o)return{reset:{placement:o}}}return{}}}},vr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,n;const{placement:r,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=_n(e,t),d=await Un(t,c),u=Dn(r),p=In(r),m="y"===Mn(r),{width:f,height:h}=a.floating;let v,y;"top"===u||"bottom"===u?(v=u,y=p===(await(null==s.isRTL?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,v="end"===p?"top":"bottom");const g=h-d.top-d.bottom,b=f-d.left-d.right,w=Cn(h-d[v],g),x=Cn(f-d[y],b),C=!t.middlewareData.shift;let S=w,N=x;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(N=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=g),C&&!p){const e=Sn(d.left,0),t=Sn(d.right,0),o=Sn(d.top,0),n=Sn(d.bottom,0);m?N=f-2*(0!==e||0!==t?e+t:Sn(d.left,d.right)):S=h-2*(0!==o||0!==n?o+n:Sn(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:S});const k=await s.getDimensions(i.floating);return f!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},yr=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:d=0}=_n(e,t)||{};if(null==c)return{};const u=Wn(d),p={x:o,y:n},m=An(r),f=zn(m),h=await s.getDimensions(c),v="y"===m,y=v?"top":"left",g=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=a.reference[f]+a.reference[m]-p[m]-a.floating[f],x=p[m]-a.reference[m],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=C?C[b]:0;S&&await(null==s.isElement?void 0:s.isElement(C))||(S=i.floating[b]||a.floating[f]);const N=w/2-x/2,k=S/2-h[f]/2-1,j=Cn(u[y],k),P=Cn(u[g],k),R=j,E=S-h[f]-P,_=S/2-h[f]/2+N,D=En(R,_,E),I=!l.arrow&&null!=In(r)&&_!==D&&a.reference[f]/2-(_<R?j:P)-h[f]/2<0,T=I?_<R?_-R:_-E:0;return{[m]:p[m]+T,data:{[m]:D,centerOffset:_-D-T,...I&&{alignmentOffset:T}},reset:I}}}),gr=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:o,elements:n,rects:r,platform:a,strategy:s}=t,{padding:i=2,x:l,y:c}=_n(e,t),d=Array.from(await(null==a.getClientRects?void 0:a.getClientRects(n.reference))||[]),u=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),o=[];let n=null;for(let e=0;e<t.length;e++){const r=t[e];!n||r.y-n.y>n.height/2?o.push([r]):o[o.length-1].push(r),n=r}return o.map(e=>Gn(qn(e)))}(d),p=Gn(qn(d)),m=Wn(i),f=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find(e=>l>e.left-m.left&&l<e.right+m.right&&c>e.top-m.top&&c<e.bottom+m.bottom)||p;if(u.length>=2){if("y"===Mn(o)){const e=u[0],t=u[u.length-1],n="top"===Dn(o),r=e.top,a=t.bottom,s=n?e.left:t.left,i=n?e.right:t.right;return{top:r,bottom:a,left:s,right:i,width:i-s,height:a-r,x:s,y:r}}const e="left"===Dn(o),t=Sn(...u.map(e=>e.right)),n=Cn(...u.map(e=>e.left)),r=u.filter(o=>e?o.left===n:o.right===t),a=r[0].top,s=r[r.length-1].bottom;return{top:a,bottom:s,left:n,right:t,width:t-n,height:s-a,x:n,y:a}}return p}},floating:n.floating,strategy:s});return r.reference.x!==f.reference.x||r.reference.y!==f.reference.y||r.reference.width!==f.reference.width||r.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},br=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:o,y:n,placement:r,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=_n(e,t),d={x:o,y:n},u=Mn(r),p=Tn(u);let m=d[p],f=d[u];const h=_n(i,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,o=a.reference[p]+a.reference[e]-v.mainAxis;m<t?m=t:m>o&&(m=o)}if(c){var y,g;const e="y"===p?"width":"height",t=Yn.has(Dn(r)),o=a.reference[u]-a.floating[e]+(t&&(null==(y=s.offset)?void 0:y[u])||0)+(t?0:v.crossAxis),n=a.reference[u]+a.reference[e]+(t?0:(null==(g=s.offset)?void 0:g[u])||0)-(t?v.crossAxis:0);f<o?f=o:f>n&&(f=n)}return{[p]:m,[u]:f}}}},wr=(e,t,o)=>{const n=new Map,r={platform:ur,...o},a={...r.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:a=[],platform:s}=o,i=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=Kn(c,n,l),p=n,m={},f=0;for(let o=0;o<i.length;o++){const{name:a,fn:h}=i[o],{x:v,y,data:g,reset:b}=await h({x:d,y:u,initialPlacement:n,placement:p,strategy:r,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=y?y:u,m={...m,[a]:{...m[a],...g}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:d,y:u}=Kn(c,p,l))),o=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:m}})(e,t,{...r,platform:a})};var xr="undefined"!=typeof document?a.useLayoutEffect:function(){};function Cr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let o,n,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!Cr(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;0!==n--;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;0!==n--;){const o=r[n];if(!("_owner"===o&&e.$$typeof||Cr(e[o],t[o])))return!1}return!0}return e!=e&&t!=t}function Sr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nr(e,t){const o=Sr(e);return Math.round(t*o)/o}function kr(e){const t=a.useRef(e);return xr(()=>{t.current=e}),t}const jr=e=>({name:"arrow",options:e,fn(t){const{element:o,padding:n}="function"==typeof e?e(t):e;return o&&(r=o,{}.hasOwnProperty.call(r,"current"))?null!=o.current?yr({element:o.current,padding:n}).fn(t):{}:o?yr({element:o,padding:n}).fn(t):{};var r}}),Pr=(e,t)=>({...mr(e),options:[e,t]}),Rr=(e,t)=>({...fr(e),options:[e,t]}),Er=(e,t)=>({...br(e),options:[e,t]}),_r=(e,t)=>({...hr(e),options:[e,t]}),Dr=(e,t)=>({...vr(e),options:[e,t]}),Ir=(e,t)=>({...gr(e),options:[e,t]}),Tr=(e,t)=>({...jr(e),options:[e,t]});const zr={...s},Or=zr.useInsertionEffect||(e=>e());function Mr(e){const t=a.useRef(()=>{});return Or(()=>{t.current=e}),a.useCallback(function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return null==t.current?void 0:t.current(...o)},[])}var Ar="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;let $r=!1,Lr=0;const Fr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Lr++,Br=zr.useId||function(){const[e,t]=a.useState(()=>$r?Fr():void 0);return Ar(()=>{null==e&&t(Fr())},[]),a.useEffect(()=>{$r=!0},[]),e};const Vr=a.createContext(null),Hr=a.createContext(null),Wr=()=>{var e;return(null==(e=a.useContext(Vr))?void 0:e.id)||null},Gr=()=>a.useContext(Hr);function Kr(e){return"data-floating-ui-"+e}function Ur(e){const t=(0,a.useRef)(e);return Ar(()=>{t.current=e}),t}const qr=Kr("safe-polygon");function Yr(e,t,o){return o&&!gn(o)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Xr(e,t){void 0===t&&(t={});const{open:o,onOpenChange:n,dataRef:r,events:s,elements:i}=e,{enabled:l=!0,delay:c=0,handleClose:d=null,mouseOnly:u=!1,restMs:p=0,move:m=!0}=t,f=Gr(),h=Wr(),v=Ur(d),y=Ur(c),g=Ur(o),b=a.useRef(),w=a.useRef(-1),x=a.useRef(),C=a.useRef(-1),S=a.useRef(!0),N=a.useRef(!1),k=a.useRef(()=>{}),j=a.useRef(!1),P=a.useCallback(()=>{var e;const t=null==(e=r.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[r]);a.useEffect(()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(C.current),S.current=!0,j.current=!1)}},[l,s]),a.useEffect(()=>{if(!l)return;if(!v.current)return;if(!o)return;function e(e){P()&&n(!1,e,"hover")}const t=bn(i.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[i.floating,o,n,l,v,P]);const R=a.useCallback(function(e,t,o){void 0===t&&(t=!0),void 0===o&&(o="hover");const r=Yr(y.current,"close",b.current);r&&!x.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>n(!1,e,o),r)):t&&(clearTimeout(w.current),n(!1,e,o))},[y,n]),E=Mr(()=>{k.current(),x.current=void 0}),_=Mr(()=>{if(N.current){const e=bn(i.floating).body;e.style.pointerEvents="",e.removeAttribute(qr),N.current=!1}}),D=Mr(()=>!!r.current.openEvent&&["click","mousedown"].includes(r.current.openEvent.type));a.useEffect(()=>{if(l&&Wo(i.domReference)){var e;const n=i.domReference;return o&&n.addEventListener("mouseleave",s),null==(e=i.floating)||e.addEventListener("mouseleave",s),m&&n.addEventListener("mousemove",t,{once:!0}),n.addEventListener("mouseenter",t),n.addEventListener("mouseleave",a),()=>{var e;o&&n.removeEventListener("mouseleave",s),null==(e=i.floating)||e.removeEventListener("mouseleave",s),m&&n.removeEventListener("mousemove",t),n.removeEventListener("mouseenter",t),n.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(w.current),S.current=!1,u&&!gn(b.current)||p>0&&!Yr(y.current,"open"))return;const t=Yr(y.current,"open",b.current);t?w.current=window.setTimeout(()=>{g.current||n(!0,e,"hover")},t):o||n(!0,e,"hover")}function a(e){if(D())return;k.current();const t=bn(i.floating);if(clearTimeout(C.current),j.current=!1,v.current&&r.current.floatingContext){o||clearTimeout(w.current),x.current=v.current({...r.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){_(),E(),D()||R(e,!0,"safe-polygon")}});const n=x.current;return t.addEventListener("mousemove",n),void(k.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==b.current||!fn(i.floating,e.relatedTarget))&&R(e)}function s(e){D()||r.current.floatingContext&&(null==v.current||v.current({...r.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){_(),E(),D()||R(e)}})(e))}},[i,l,e,u,p,m,R,E,_,n,o,g,f,y,v,r,D]),Ar(()=>{var e;if(l&&o&&null!=(e=v.current)&&e.__options.blockPointerEvents&&P()){N.current=!0;const e=i.floating;if(Wo(i.domReference)&&e){var t;const o=bn(i.floating).body;o.setAttribute(qr,"");const n=i.domReference,r=null==f||null==(t=f.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),o.style.pointerEvents="none",n.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{o.style.pointerEvents="",n.style.pointerEvents="",e.style.pointerEvents=""}}}},[l,o,h,i,f,v,P]),Ar(()=>{o||(b.current=void 0,j.current=!1,E(),_())},[o,E,_]),a.useEffect(()=>()=>{E(),clearTimeout(w.current),clearTimeout(C.current),_()},[l,i.domReference,E,_]);const I=a.useMemo(()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){S.current||g.current||n(!0,t,"hover")}u&&!gn(b.current)||o||0===p||j.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(C.current),"touch"===b.current?r():(j.current=!0,C.current=window.setTimeout(r,p)))}}},[u,n,o,g,p]),T=a.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){D()||R(e.nativeEvent,!1)}}),[R,D]);return a.useMemo(()=>l?{reference:I,floating:T}:{},[l,I,T])}const Zr=()=>{},Jr=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Zr,setState:Zr,isInstantPhase:!1});function Qr(e){const{children:t,delay:o,timeoutMs:n=0}=e,[r,s]=a.useReducer((e,t)=>({...e,...t}),{delay:o,timeoutMs:n,initialDelay:o,currentId:null,isInstantPhase:!1}),i=a.useRef(null),l=a.useCallback(e=>{s({currentId:e})},[]);return Ar(()=>{r.currentId?null===i.current?i.current=r.currentId:r.isInstantPhase||s({isInstantPhase:!0}):(r.isInstantPhase&&s({isInstantPhase:!1}),i.current=null)},[r.currentId,r.isInstantPhase]),a.createElement(Jr.Provider,{value:a.useMemo(()=>({...r,setState:s,setCurrentId:l}),[r,l])},t)}function ea(e,t){let o=e.filter(e=>{var o;return e.parentId===t&&(null==(o=e.context)?void 0:o.open)}),n=o;for(;n.length;)n=e.filter(e=>{var t;return null==(t=n)?void 0:t.some(t=>{var o;return e.parentId===t.id&&(null==(o=e.context)?void 0:o.open)})}),o=o.concat(n);return o}const ta="data-floating-ui-focusable",oa={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},na={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ra=e=>{var t,o;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(o=null==e?void 0:e.outsidePress)||o}};function aa(e,t){void 0===t&&(t={});const{open:o,onOpenChange:n,elements:r,dataRef:s}=e,{enabled:i=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:f,capture:h}=t,v=Gr(),y=Mr("function"==typeof c?c:()=>!1),g="function"==typeof c?y:c,b=a.useRef(!1),w=a.useRef(!1),{escapeKey:x,outsidePress:C}=ra(f),{escapeKey:S,outsidePress:N}=ra(h),k=a.useRef(!1),j=Mr(e=>{var t;if(!o||!i||!l||"Escape"!==e.key)return;if(k.current)return;const r=null==(t=s.current.floatingContext)?void 0:t.nodeId,a=v?ea(v.nodesRef.current,r):[];if(!x&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach(t=>{var o;null==(o=t.context)||!o.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}n(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),P=Mr(e=>{var t;const o=()=>{var t;j(e),null==(t=xn(e))||t.removeEventListener("keydown",o)};null==(t=xn(e))||t.addEventListener("keydown",o)}),R=Mr(e=>{var t;const o=b.current;b.current=!1;const a=w.current;if(w.current=!1,"click"===d&&a)return;if(o)return;if("function"==typeof g&&!g(e))return;const i=xn(e),l="["+Kr("inert")+"]",c=bn(r.floating).querySelectorAll(l);let u=Wo(i)?i:null;for(;u&&!an(u);){const e=cn(u);if(an(e)||!Wo(e))break;u=e}if(c.length&&Wo(i)&&!i.matches("html,body")&&!fn(i,r.floating)&&Array.from(c).every(e=>!fn(u,e)))return;if(Go(i)&&D){const t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,o=i.clientHeight>0&&i.scrollHeight>i.clientHeight;let n=o&&e.offsetX>i.clientWidth;if(o&&"rtl"===sn(i).direction&&(n=e.offsetX<=i.offsetWidth-i.clientWidth),n||t&&e.offsetY>i.clientHeight)return}const p=null==(t=s.current.floatingContext)?void 0:t.nodeId,m=v&&ea(v.nodesRef.current,p).some(t=>{var o;return wn(e,null==(o=t.context)?void 0:o.elements.floating)});if(wn(e,r.floating)||wn(e,r.domReference)||m)return;const f=v?ea(v.nodesRef.current,p):[];if(f.length>0){let e=!0;if(f.forEach(t=>{var o;null==(o=t.context)||!o.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}n(!1,e,"outside-press")}),E=Mr(e=>{var t;const o=()=>{var t;R(e),null==(t=xn(e))||t.removeEventListener(d,o)};null==(t=xn(e))||t.addEventListener(d,o)});a.useEffect(()=>{if(!o||!i)return;s.current.__escapeKeyBubbles=x,s.current.__outsidePressBubbles=C;let e=-1;function t(e){n(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),k.current=!0}function c(){e=window.setTimeout(()=>{k.current=!1},nn()?5:0)}const u=bn(r.floating);l&&(u.addEventListener("keydown",S?P:j,S),u.addEventListener("compositionstart",a),u.addEventListener("compositionend",c)),g&&u.addEventListener(d,N?E:R,N);let p=[];return m&&(Wo(r.domReference)&&(p=un(r.domReference)),Wo(r.floating)&&(p=p.concat(un(r.floating))),!Wo(r.reference)&&r.reference&&r.reference.contextElement&&(p=p.concat(un(r.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{l&&(u.removeEventListener("keydown",S?P:j,S),u.removeEventListener("compositionstart",a),u.removeEventListener("compositionend",c)),g&&u.removeEventListener(d,N?E:R,N),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[s,r,l,g,d,o,n,m,i,x,C,j,S,P,R,N,E]),a.useEffect(()=>{b.current=!1},[g,d]);const _=a.useMemo(()=>({onKeyDown:j,[oa[p]]:e=>{u&&n(!1,e.nativeEvent,"reference-press")}}),[j,n,u,p]),D=a.useMemo(()=>({onKeyDown:j,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[na[d]]:()=>{b.current=!0}}),[j,d]);return a.useMemo(()=>i?{reference:_,floating:D}:{},[i,_,D])}function sa(e){void 0===e&&(e={});const{nodeId:t}=e,o=function(e){const{open:t=!1,onOpenChange:o,elements:n}=e,r=Br(),s=a.useRef({}),[i]=a.useState(()=>function(){const e=new Map;return{emit(t,o){var n;null==(n=e.get(t))||n.forEach(e=>e(o))},on(t,o){e.set(t,[...e.get(t)||[],o])},off(t,o){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==o))||[])}}}()),l=null!=Wr(),[c,d]=a.useState(n.reference),u=Mr((e,t,n)=>{s.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==o||o(e,t,n)}),p=a.useMemo(()=>({setPositionReference:d}),[]),m=a.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return a.useMemo(()=>({dataRef:s,open:t,onOpenChange:u,elements:m,events:i,floatingId:r,refs:p}),[t,u,m,i,r,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||o,r=n.elements,[s,i]=a.useState(null),[l,c]=a.useState(null),d=(null==r?void 0:r.domReference)||s,u=a.useRef(null),p=Gr();Ar(()=>{d&&(u.current=d)},[d]);const m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,p]=a.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=a.useState(n);Cr(m,n)||f(n);const[h,v]=a.useState(null),[y,g]=a.useState(null),b=a.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=a.useCallback(e=>{e!==N.current&&(N.current=e,g(e))},[]),x=s||h,C=i||y,S=a.useRef(null),N=a.useRef(null),k=a.useRef(u),j=null!=c,P=kr(c),R=kr(r),E=kr(d),_=a.useCallback(()=>{if(!S.current||!N.current)return;const e={placement:t,strategy:o,middleware:m};R.current&&(e.platform=R.current),wr(S.current,N.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};D.current&&!Cr(k.current,t)&&(k.current=t,zo.flushSync(()=>{p(t)}))})},[m,t,o,R,E]);xr(()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const D=a.useRef(!1);xr(()=>(D.current=!0,()=>{D.current=!1}),[]),xr(()=>{if(x&&(S.current=x),C&&(N.current=C),x&&C){if(P.current)return P.current(x,C,_);_()}},[x,C,_,P,j]);const I=a.useMemo(()=>({reference:S,floating:N,setReference:b,setFloating:w}),[b,w]),T=a.useMemo(()=>({reference:x,floating:C}),[x,C]),z=a.useMemo(()=>{const e={position:o,left:0,top:0};if(!T.floating)return e;const t=Nr(T.floating,u.x),n=Nr(T.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...Sr(T.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}},[o,l,T.floating,u.x,u.y]);return a.useMemo(()=>({...u,update:_,refs:I,elements:T,floatingStyles:z}),[u,_,I,T,z])}({...e,elements:{...r,...l&&{reference:l}}}),f=a.useCallback(e=>{const t=Wo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),m.refs.setReference(t)},[m.refs]),h=a.useCallback(e=>{(Wo(e)||null===e)&&(u.current=e,i(e)),(Wo(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!Wo(e))&&m.refs.setReference(e)},[m.refs]),v=a.useMemo(()=>({...m.refs,setReference:h,setPositionReference:f,domReference:u}),[m.refs,h,f]),y=a.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),g=a.useMemo(()=>({...m,...n,refs:v,elements:y,nodeId:t}),[m,v,y,t,n]);return Ar(()=>{n.dataRef.current.floatingContext=g;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=g)}),a.useMemo(()=>({...m,context:g,refs:v,elements:y}),[m,v,y,g])}function ia(e,t){void 0===t&&(t={});const{open:o,onOpenChange:n,events:r,dataRef:s,elements:i}=e,{enabled:l=!0,visibleOnly:c=!0}=t,d=a.useRef(!1),u=a.useRef(),p=a.useRef(!0);a.useEffect(()=>{if(!l)return;const e=Bo(i.domReference);function t(){!o&&Go(i.domReference)&&i.domReference===mn(bn(i.domReference))&&(d.current=!0)}function n(){p.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}},[i.domReference,o,l]),a.useEffect(()=>{if(l)return r.on("openchange",e),()=>{r.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(d.current=!0)}},[r,l]),a.useEffect(()=>()=>{clearTimeout(u.current)},[]);const m=a.useMemo(()=>({onPointerDown(e){(function(e){return!vn().includes("jsdom/")&&(!yn()&&0===e.width&&0===e.height||yn()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)})(e.nativeEvent)||(p.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;const t=xn(e.nativeEvent);if(c&&Wo(t))try{if(/apple/i.test(navigator.vendor)&&hn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!p.current&&(!Go(o=t)||!o.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")))return}var o;n(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;const t=e.relatedTarget,o=e.nativeEvent,r=Wo(t)&&t.hasAttribute(Kr("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=mn(i.domReference?i.domReference.ownerDocument:document);(t||a!==i.domReference)&&(fn(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,a)||fn(i.domReference,a)||r||n(!1,o,"focus"))})}}),[s,i.domReference,n,c]);return a.useMemo(()=>l?{reference:m}:{},[l,m])}const la="active",ca="selected";function da(e,t,o){const n=new Map,r="item"===o;let a=e;if(r&&e){const{[la]:t,[ca]:o,...n}=e;a=n}return{..."floating"===o&&{tabIndex:-1,[ta]:""},...a,...t.map(t=>{const n=t?t[o]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[o,a]=t;var s;r&&[la,ca].includes(o)||(0===o.indexOf("on")?(n.has(o)||n.set(o,[]),"function"==typeof a&&(null==(s=n.get(o))||s.push(a),e[o]=function(){for(var e,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return null==(e=n.get(o))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)})):e[o]=a)}),e):e,{})}}const ua=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pa(e,t){var o;void 0===t&&(t={});const{open:n,floatingId:r}=e,{enabled:s=!0,role:i="dialog"}=t,l=null!=(o=ua.get(i))?o:i,c=Br(),d=null!=Wr(),u=a.useMemo(()=>"tooltip"===l||"label"===i?{["aria-"+("label"===i?"labelledby":"describedby")]:n?r:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":n?r:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&d&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}},[l,r,d,n,c,i]),p=a.useMemo(()=>{const e={id:r,...l&&{role:l}};return"tooltip"===l||"label"===i?e:{...e,..."menu"===l&&{"aria-labelledby":c}}},[l,r,c,i]),m=a.useCallback(e=>{let{active:t,selected:o}=e;const n={role:"option",...t&&{id:r+"-option"}};switch(i){case"select":return{...n,"aria-selected":t&&o};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}},[r,i]);return a.useMemo(()=>s?{reference:u,floating:p,item:m}:{},[s,u,p,m])}const[ma,fa]=re("ScrollArea.Root component was not found in tree");function ha(e,t){const o=(0,ke.useCallbackRef)(t);(0,ke.useIsomorphicEffect)(()=>{let t=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(o)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,o])}const va=(0,a.forwardRef)((e,t)=>{const{style:o,...n}=e,r=fa(),[s,i]=(0,a.useState)(0),[l,c]=(0,a.useState)(0),d=Boolean(s&&l);return ha(r.scrollbarX,()=>{const e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),c(e)}),ha(r.scrollbarY,()=>{const e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),i(e)}),d?(0,ne.jsx)("div",{...n,ref:t,style:{...o,width:s,height:l}}):null}),ya=(0,a.forwardRef)((e,t)=>{const o=fa(),n=Boolean(o.scrollbarX&&o.scrollbarY);return"scroll"!==o.type&&n?(0,ne.jsx)(va,{...e,ref:t}):null}),ga={scrollHideDelay:1e3,type:"hover"},ba=(0,a.forwardRef)((e,t)=>{const o=Jt("ScrollAreaRoot",ga,e),{type:n,scrollHideDelay:r,scrollbars:s,...i}=o,[l,c]=(0,a.useState)(null),[d,u]=(0,a.useState)(null),[p,m]=(0,a.useState)(null),[f,h]=(0,a.useState)(null),[v,y]=(0,a.useState)(null),[g,b]=(0,a.useState)(0),[w,x]=(0,a.useState)(0),[C,S]=(0,a.useState)(!1),[N,k]=(0,a.useState)(!1),j=(0,ke.useMergedRef)(t,e=>c(e));return(0,ne.jsx)(ma,{value:{type:n,scrollHideDelay:r,scrollArea:l,viewport:d,onViewportChange:u,content:p,onContentChange:m,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:v,onScrollbarYChange:y,scrollbarYEnabled:N,onScrollbarYEnabledChange:k,onCornerWidthChange:b,onCornerHeightChange:x},children:(0,ne.jsx)(jo,{...i,ref:j,__vars:{"--sa-corner-width":"xy"!==s?"0px":`${g}px`,"--sa-corner-height":"xy"!==s?"0px":`${w}px`}})})});function wa(e,t){const o=e/t;return Number.isNaN(o)?0:o}function xa(e){const t=wa(e.viewport,e.content),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-o)*t;return Math.max(n,18)}function Ca(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function Sa(e,t,o="ltr"){const n=xa(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-r,s=t.content-t.viewport,i=a-n,l=function(e,[t,o]){return Math.min(o,Math.max(t,e))}(e,"ltr"===o?[0,s]:[-1*s,0]);return Ca([0,s],[0,i])(l)}function Na(e,t){return e>0&&e<t}function ka(e){return e?parseInt(e,10):0}function ja(e,t,{checkForDefaultPrevented:o=!0}={}){return n=>{e?.(n),!1!==o&&n.defaultPrevented||t?.(n)}}ba.displayName="@mantine/core/ScrollAreaRoot";const[Pa,Ra]=re("ScrollAreaScrollbar was not found in tree"),Ea=(0,a.forwardRef)((e,t)=>{const{sizes:o,hasThumb:n,onThumbChange:r,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:u,...p}=e,m=fa(),[f,h]=(0,a.useState)(null),v=(0,ke.useMergedRef)(t,e=>h(e)),y=(0,a.useRef)(null),g=(0,a.useRef)(""),{viewport:b}=m,w=o.content-o.viewport,x=(0,ke.useCallbackRef)(d),C=(0,ke.useCallbackRef)(l),S=(0,ke.useDebouncedCallback)(u,10),N=e=>{if(y.current){const t=e.clientX-y.current.left,o=e.clientY-y.current.top;c({x:t,y:o})}};return(0,a.useEffect)(()=>{const e=e=>{const t=e.target,o=f?.contains(t);o&&x(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,f,w,x]),(0,a.useEffect)(C,[o,C]),ha(f,S),ha(m.content,S),(0,ne.jsx)(Pa,{value:{scrollbar:f,hasThumb:n,onThumbChange:(0,ke.useCallbackRef)(r),onThumbPointerUp:(0,ke.useCallbackRef)(s),onThumbPositionChange:C,onThumbPointerDown:(0,ke.useCallbackRef)(i)},children:(0,ne.jsx)("div",{...p,ref:v,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:ja(e.onPointerDown,e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),y.current=f.getBoundingClientRect(),g.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",N(e))}),onPointerMove:ja(e.onPointerMove,N),onPointerUp:ja(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=g.current,y.current=null}})})}),_a=(0,a.forwardRef)((e,t)=>{const{sizes:o,onSizesChange:n,style:r,...s}=e,i=fa(),[l,c]=(0,a.useState)(),d=(0,a.useRef)(null),u=(0,ke.useMergedRef)(t,d,i.onScrollbarXChange);return(0,a.useEffect)(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,ne.jsx)(Ea,{"data-orientation":"horizontal",...s,ref:u,sizes:o,style:{...r,"--sa-thumb-width":`${xa(o)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,o)=>{if(i.viewport){const n=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),Na(n,o)&&t.preventDefault()}},onResize:()=>{d.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:ka(l.paddingLeft),paddingEnd:ka(l.paddingRight)}})}})});_a.displayName="@mantine/core/ScrollAreaScrollbarX";const Da=(0,a.forwardRef)((e,t)=>{const{sizes:o,onSizesChange:n,style:r,...s}=e,i=fa(),[l,c]=(0,a.useState)(),d=(0,a.useRef)(null),u=(0,ke.useMergedRef)(t,d,i.onScrollbarYChange);return(0,a.useEffect)(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),(0,ne.jsx)(Ea,{...s,"data-orientation":"vertical",ref:u,sizes:o,style:{"--sa-thumb-height":`${xa(o)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,o)=>{if(i.viewport){const n=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),Na(n,o)&&t.preventDefault()}},onResize:()=>{d.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:ka(l.paddingTop),paddingEnd:ka(l.paddingBottom)}})}})});Da.displayName="@mantine/core/ScrollAreaScrollbarY";const Ia=(0,a.forwardRef)((e,t)=>{const{orientation:o="vertical",...n}=e,{dir:r}=Io(),s=fa(),i=(0,a.useRef)(null),l=(0,a.useRef)(0),[c,d]=(0,a.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=wa(c.viewport,c.content),p={...n,sizes:c,onSizesChange:d,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>{i.current=e},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:e=>{l.current=e}},m=(e,t)=>function(e,t,o,n="ltr"){const r=xa(o),a=t||r/2,s=r-a,i=o.scrollbar.paddingStart+a,l=o.scrollbar.size-o.scrollbar.paddingEnd-s,c=o.content-o.viewport;return Ca([i,l],"ltr"===n?[0,c]:[-1*c,0])(e)}(e,l.current,c,t);return"horizontal"===o?(0,ne.jsx)(_a,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const e=Sa(s.viewport.scrollLeft,c,r);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollLeft=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollLeft=m(e,r))}}):"vertical"===o?(0,ne.jsx)(Da,{...p,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const e=Sa(s.viewport.scrollTop,c);0===c.scrollbar.size?i.current.style.setProperty("--thumb-opacity","0"):i.current.style.setProperty("--thumb-opacity","1"),i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollTop=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollTop=m(e))}}):null});Ia.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Ta=(0,a.forwardRef)((e,t)=>{const o=fa(),{forceMount:n,...r}=e,[s,i]=(0,a.useState)(!1),l="horizontal"===e.orientation,c=(0,ke.useDebouncedCallback)(()=>{if(o.viewport){const e=o.viewport.offsetWidth<o.viewport.scrollWidth,t=o.viewport.offsetHeight<o.viewport.scrollHeight;i(l?e:t)}},10);return ha(o.viewport,c),ha(o.content,c),n||s?(0,ne.jsx)(Ia,{"data-state":s?"visible":"hidden",...r,ref:t}):null});Ta.displayName="@mantine/core/ScrollAreaScrollbarAuto";const za=(0,a.forwardRef)((e,t)=>{const{forceMount:o,...n}=e,r=fa(),[s,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{const{scrollArea:e}=r;let t=0;if(e){const o=()=>{window.clearTimeout(t),i(!0)},n=()=>{t=window.setTimeout(()=>i(!1),r.scrollHideDelay)};return e.addEventListener("pointerenter",o),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",o),e.removeEventListener("pointerleave",n)}}},[r.scrollArea,r.scrollHideDelay]),o||s?(0,ne.jsx)(Ta,{"data-state":s?"visible":"hidden",...n,ref:t}):null});za.displayName="@mantine/core/ScrollAreaScrollbarHover";const Oa=(0,a.forwardRef)((e,t)=>{const{forceMount:o,...n}=e,r=fa(),s="horizontal"===e.orientation,[i,l]=(0,a.useState)("hidden"),c=(0,ke.useDebouncedCallback)(()=>l("idle"),100);return(0,a.useEffect)(()=>{if("idle"===i){const e=window.setTimeout(()=>l("hidden"),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[i,r.scrollHideDelay]),(0,a.useEffect)(()=>{const{viewport:e}=r,t=s?"scrollLeft":"scrollTop";if(e){let o=e[t];const n=()=>{const n=e[t];o!==n&&(l("scrolling"),c()),o=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[r.viewport,s,c]),o||"hidden"!==i?(0,ne.jsx)(Ia,{"data-state":"hidden"===i?"hidden":"visible",...n,ref:t,onPointerEnter:ja(e.onPointerEnter,()=>l("interacting")),onPointerLeave:ja(e.onPointerLeave,()=>l("idle"))}):null}),Ma=(0,a.forwardRef)((e,t)=>{const{forceMount:o,...n}=e,r=fa(),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=r,l="horizontal"===e.orientation;return(0,a.useEffect)(()=>(l?s(!0):i(!0),()=>{l?s(!1):i(!1)}),[l,s,i]),"hover"===r.type?(0,ne.jsx)(za,{...n,ref:t,forceMount:o}):"scroll"===r.type?(0,ne.jsx)(Oa,{...n,ref:t,forceMount:o}):"auto"===r.type?(0,ne.jsx)(Ta,{...n,ref:t,forceMount:o}):"always"===r.type?(0,ne.jsx)(Ia,{...n,ref:t}):null});Ma.displayName="@mantine/core/ScrollAreaScrollbar";const Aa=(0,a.forwardRef)((e,t)=>{const{style:o,...n}=e,r=fa(),s=Ra(),{onThumbPositionChange:i}=s,l=(0,ke.useMergedRef)(t,e=>s.onThumbChange(e)),c=(0,a.useRef)(void 0),d=(0,ke.useDebouncedCallback)(()=>{c.current&&(c.current(),c.current=void 0)},100);return(0,a.useEffect)(()=>{const{viewport:e}=r;if(e){const t=()=>{if(d(),!c.current){const t=function(e,t=()=>{}){let o={left:e.scrollLeft,top:e.scrollTop},n=0;return function r(){const a={left:e.scrollLeft,top:e.scrollTop},s=o.left!==a.left,i=o.top!==a.top;(s||i)&&t(),o=a,n=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(n)}(e,i);c.current=t,i()}};return i(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[r.viewport,d,i]),(0,ne.jsx)("div",{"data-state":s.hasThumb?"visible":"hidden",...n,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...o},onPointerDownCapture:ja(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),o=e.clientX-t.left,n=e.clientY-t.top;s.onThumbPointerDown({x:o,y:n})}),onPointerUp:ja(e.onPointerUp,s.onThumbPointerUp)})});Aa.displayName="@mantine/core/ScrollAreaThumb";const $a=(0,a.forwardRef)((e,t)=>{const{forceMount:o,...n}=e,r=Ra();return o||r.hasThumb?(0,ne.jsx)(Aa,{ref:t,...n}):null});$a.displayName="@mantine/core/ScrollAreaThumb";const La=(0,a.forwardRef)(({children:e,style:t,...o},n)=>{const r=fa(),a=(0,ke.useMergedRef)(n,r.onViewportChange);return(0,ne.jsx)(jo,{...o,ref:a,style:{overflowX:r.scrollbarXEnabled?"scroll":"hidden",overflowY:r.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,ne.jsx)("div",{style:{minWidth:"100%"},ref:r.onContentChange,children:e})})});La.displayName="@mantine/core/ScrollAreaViewport";var Fa={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Ba={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Va=(e,{scrollbarSize:t,overscrollBehavior:o})=>({root:{"--scrollarea-scrollbar-size":J(t),"--scrollarea-over-scroll-behavior":o}}),Ha=Eo((e,t)=>{const o=Jt("ScrollArea",Ba,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,scrollbarSize:c,vars:d,type:u,scrollHideDelay:p,viewportProps:m,viewportRef:f,onScrollPositionChange:h,children:v,offsetScrollbars:y,scrollbars:g,onBottomReached:b,onTopReached:w,overscrollBehavior:x,...C}=o,[S,N]=(0,a.useState)(!1),[k,j]=(0,a.useState)(!1),[P,R]=(0,a.useState)(!1),E=Nt({name:"ScrollArea",props:o,classes:Fa,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:d,varsResolver:Va}),_=(0,a.useRef)(null),D=(I=[f,_],a.useMemo(()=>I.every(e=>null==e)?null:e=>{I.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})},I));var I;return(0,a.useEffect)(()=>{if(!_.current)return;if("present"!==y)return;const e=_.current,t=new ResizeObserver(()=>{const{scrollHeight:t,clientHeight:o,scrollWidth:n,clientWidth:r}=e;j(t>o),R(n>r)});return t.observe(e),()=>t.disconnect()},[_,y]),(0,ne.jsxs)(ba,{type:"never"===u?"always":u,scrollHideDelay:p,ref:t,scrollbars:g,...E("root"),...C,children:[(0,ne.jsx)(La,{...m,...E("viewport",{style:m?.style}),ref:D,"data-offset-scrollbars":!0===y?"xy":y||void 0,"data-scrollbars":g||void 0,"data-horizontal-hidden":"present"!==y||P?void 0:"true","data-vertical-hidden":"present"!==y||k?void 0:"true",onScroll:e=>{m?.onScroll?.(e),h?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});const{scrollTop:t,scrollHeight:o,clientHeight:n}=e.currentTarget;t-(o-n)>=-.6&&b?.(),0===t&&w?.()},children:v}),("xy"===g||"x"===g)&&(0,ne.jsx)(Ma,{...E("scrollbar"),orientation:"horizontal","data-hidden":"never"===u||"present"===y&&!P||void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:(0,ne.jsx)($a,{...E("thumb")})}),("xy"===g||"y"===g)&&(0,ne.jsx)(Ma,{...E("scrollbar"),orientation:"vertical","data-hidden":"never"===u||"present"===y&&!k||void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:(0,ne.jsx)($a,{...E("thumb")})}),(0,ne.jsx)(ya,{...E("corner"),"data-hovered":S||void 0,"data-hidden":"never"===u||void 0})]})});Ha.displayName="@mantine/core/ScrollArea";const Wa=Eo((e,t)=>{const{children:o,classNames:n,styles:r,scrollbarSize:a,scrollHideDelay:s,type:i,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:u,unstyled:p,variant:m,viewportProps:f,scrollbars:h,style:v,vars:y,onBottomReached:g,onTopReached:b,...w}=Jt("ScrollAreaAutosize",Ba,e);return(0,ne.jsx)(jo,{...w,ref:t,style:[{display:"flex",overflow:"auto"},v],children:(0,ne.jsx)(jo,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,ne.jsx)(Ha,{classNames:n,styles:r,scrollHideDelay:s,scrollbarSize:a,type:i,dir:l,offsetScrollbars:c,viewportRef:d,onScrollPositionChange:u,unstyled:p,variant:m,viewportProps:f,vars:y,scrollbars:h,onBottomReached:g,onTopReached:b,children:o})})})});Ha.classes=Fa,Wa.displayName="@mantine/core/ScrollAreaAutosize",Wa.classes=Fa,Ha.Autosize=Wa;var Ga={root:"m_87cf2631"};const Ka={__staticSelector:"UnstyledButton"},Ua=_o((e,t)=>{const o=Jt("UnstyledButton",Ka,e),{className:n,component:r="button",__staticSelector:a,unstyled:s,classNames:i,styles:l,style:c,...d}=o,u=Nt({name:a,props:o,classes:Ga,className:n,style:c,classNames:i,styles:l,unstyled:s});return(0,ne.jsx)(jo,{...u("root",{focusable:!0}),component:r,ref:t,type:"button"===r?"button":void 0,...d})});Ua.classes=Ga,Ua.displayName="@mantine/core/UnstyledButton";var qa={root:"m_515a97f8"};const Ya={},Xa=Eo((e,t)=>{const o=Jt("VisuallyHidden",Ya,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,...c}=o,d=Nt({name:"VisuallyHidden",classes:qa,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i});return(0,ne.jsx)(jo,{component:"span",ref:t,...d("root"),...c})});Xa.classes=qa,Xa.displayName="@mantine/core/VisuallyHidden";var Za={root:"m_1b7284a3"};const Ja={},Qa=(e,{radius:t,shadow:o})=>({root:{"--paper-radius":void 0===t?void 0:he(t),"--paper-shadow":ge(o)}}),es=_o((e,t)=>{const o=Jt("Paper",Ja,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,withBorder:l,vars:c,radius:d,shadow:u,variant:p,mod:m,...f}=o,h=Nt({name:"Paper",props:o,classes:Za,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:c,varsResolver:Qa});return(0,ne.jsx)(jo,{ref:t,mod:[{"data-with-border":l},m],...h("root"),variant:p,...f})});function ts(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,o]=t.split("-"),n="right"===e?"left":"right";return void 0===o?n:`${n}-${o}`}return t}es.classes=Za,es.displayName="@mantine/core/Paper";var os={root:"m_9814e45f"};const ns={zIndex:de("modal")},rs=(e,{gradient:t,color:o,backgroundOpacity:n,blur:r,radius:a,zIndex:s})=>({root:{"--overlay-bg":t||(void 0!==o||void 0!==n)&&Ke(o||"#000",n??.6)||void 0,"--overlay-filter":r?`blur(${J(r)})`:void 0,"--overlay-radius":void 0===a?void 0:he(a),"--overlay-z-index":s?.toString()}}),as=_o((e,t)=>{const o=Jt("Overlay",ns,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,fixed:c,center:d,children:u,radius:p,zIndex:m,gradient:f,blur:h,color:v,backgroundOpacity:y,mod:g,...b}=o,w=Nt({name:"Overlay",props:o,classes:os,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:rs});return(0,ne.jsx)(jo,{ref:t,...w("root"),mod:[{center:d,fixed:c},g],...b,children:u})});function ss(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}as.classes=os,as.displayName="@mantine/core/Overlay";const is={},ls=Eo((e,t)=>{const{children:o,target:n,reuseTargetNode:r,...s}=Jt("Portal",is,e),[i,l]=(0,a.useState)(!1),c=(0,a.useRef)(null);return(0,ke.useIsomorphicEffect)(()=>(l(!0),c.current=function({target:e,reuseTargetNode:t,...o}){if(e)return"string"==typeof e?document.querySelector(e)||ss(o):e;if(t){const e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;const t=ss(o);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return ss(o)}({target:n,reuseTargetNode:r,...s}),(0,ke.assignRef)(t,c.current),n||r||!c.current||document.body.appendChild(c.current),()=>{n||r||!c.current||document.body.removeChild(c.current)}),[n]),i&&c.current?(0,zo.createPortal)((0,ne.jsx)(ne.Fragment,{children:o}),c.current):null});ls.displayName="@mantine/core/Portal";const cs=Eo(({withinPortal:e=!0,children:t,...o},n)=>"test"!==yt()&&e?(0,ne.jsx)(ls,{ref:n,...o,children:t}):(0,ne.jsx)(ne.Fragment,{children:t}));cs.displayName="@mantine/core/OptionalPortal";const ds=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===e?10:-10}px)`},transitionProperty:"transform, opacity"}),us={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...ds("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...ds("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...ds("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...ds("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...ds("top"),common:{transformOrigin:"top right"}}},ps={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function ms({transition:e,state:t,duration:o,timingFunction:n}){const r={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${o}ms`,transitionTimingFunction:n};return"string"==typeof e?e in us?{transitionProperty:us[e].transitionProperty,...r,...us[e].common,...us[e][ps[t]]}:{}:{transitionProperty:e.transitionProperty,...r,...e.common,...e[ps[t]]}}function fs({keepMounted:e,transition:t="fade",duration:o=250,exitDuration:n=o,mounted:r,children:s,timingFunction:i="ease",onExit:l,onEntered:c,onEnter:d,onExited:u,enterDelay:p,exitDelay:m}){const f=yt(),{transitionDuration:h,transitionStatus:v,transitionTimingFunction:y}=function({duration:e,exitDuration:t,timingFunction:o,mounted:n,onEnter:r,onExit:s,onEntered:i,onExited:l,enterDelay:c,exitDelay:d}){const u=rt(),p=(0,ke.useReducedMotion)(),m=!!u.respectReducedMotion&&p,[f,h]=(0,a.useState)(m?0:e),[v,y]=(0,a.useState)(n?"entered":"exited"),g=(0,a.useRef)(-1),b=(0,a.useRef)(-1),w=(0,a.useRef)(-1);function x(){window.clearTimeout(g.current),window.clearTimeout(b.current),cancelAnimationFrame(w.current)}const C=o=>{x();const n=o?r:s,a=o?i:l,c=m?0:o?e:t;h(c),0===c?("function"==typeof n&&n(),"function"==typeof a&&a(),y(o?"entered":"exited")):w.current=requestAnimationFrame(()=>{zo.flushSync(()=>{y(o?"pre-entering":"pre-exiting")}),w.current=requestAnimationFrame(()=>{"function"==typeof n&&n(),y(o?"entering":"exiting"),g.current=window.setTimeout(()=>{"function"==typeof a&&a(),y(o?"entered":"exited")},c)})})};return(0,ke.useDidUpdate)(()=>{var e;e=n,x(),"number"==typeof(e?c:d)?b.current=window.setTimeout(()=>{C(e)},e?c:d):C(e)},[n]),(0,a.useEffect)(()=>()=>{x()},[]),{transitionDuration:f,transitionStatus:v,transitionTimingFunction:o||"ease"}}({mounted:r,exitDuration:n,duration:o,timingFunction:i,onExit:l,onEntered:c,onEnter:d,onExited:u,enterDelay:p,exitDelay:m});return 0===h||"test"===f?r?(0,ne.jsx)(ne.Fragment,{children:s({})}):e?s({display:"none"}):null:"exited"===v?e?s({display:"none"}):null:(0,ne.jsx)(ne.Fragment,{children:s(ms({transition:t,duration:h,state:v,timingFunction:y}))})}fs.displayName="@mantine/core/Transition";const[hs,vs]=re("Popover component was not found in the tree");function ys(e,t,o,n){return"center"===e||"center"===n?{top:t}:"end"===e?{bottom:o}:"start"===e?{top:o}:{}}function gs(e,t,o,n,r){return"center"===e||"center"===n?{left:t}:"end"===e?{["ltr"===r?"right":"left"]:o}:"start"===e?{["ltr"===r?"left":"right"]:o}:{}}const bs={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function ws({position:e,arrowSize:t,arrowOffset:o,arrowRadius:n,arrowPosition:r,arrowX:a,arrowY:s,dir:i}){const[l,c="center"]=e.split("-"),d={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[bs[l]]:n},u=-t/2;return"left"===l?{...d,...ys(c,s,o,r),right:u,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...d,...ys(c,s,o,r),left:u,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...d,...gs(c,a,o,r,i),bottom:u,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...d,...gs(c,a,o,r,i),top:u,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const xs=(0,a.forwardRef)(({position:e,arrowSize:t,arrowOffset:o,arrowRadius:n,arrowPosition:r,visible:a,arrowX:s,arrowY:i,style:l,...c},d)=>{const{dir:u}=Io();return a?(0,ne.jsx)("div",{...c,ref:d,style:{...l,...ws({position:e,arrowSize:t,arrowOffset:o,arrowRadius:n,arrowPosition:r,dir:u,arrowX:s,arrowY:i})}}):null});function Cs({children:e,active:t=!0,refProp:o="ref",innerRef:n}){const r=(0,ke.useFocusTrap)(t),s=(0,ke.useMergedRef)(r,n);return oe(e)?(0,a.cloneElement)(e,{[o]:s}):e}function Ss(e){return(0,ne.jsx)(Xa,{tabIndex:-1,"data-autofocus":!0,...e})}xs.displayName="@mantine/core/FloatingArrow",Cs.displayName="@mantine/core/FocusTrap",Ss.displayName="@mantine/core/FocusTrapInitialFocus",Cs.InitialFocus=Ss;var Ns={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const ks={},js=Eo((e,t)=>{const o=Jt("PopoverDropdown",ks,e),{className:n,style:r,vars:a,children:s,onKeyDownCapture:i,variant:l,classNames:c,styles:d,...u}=o,p=vs(),m=(0,ke.useFocusReturn)({opened:p.opened,shouldReturnFocus:p.returnFocus}),f=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},h=(0,ke.useMergedRef)(t,p.floating);return p.disabled?null:(0,ne.jsx)(cs,{...p.portalProps,withinPortal:p.withinPortal,children:(0,ne.jsx)(fs,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:"number"==typeof p.transitionProps?.exitDuration?p.transitionProps.exitDuration:p.transitionProps?.duration,children:e=>(0,ne.jsx)(Cs,{active:p.trapFocus&&p.opened,innerRef:h,children:(0,ne.jsxs)(jo,{...f,...u,variant:l,onKeyDownCapture:pe(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:m,onKeyDown:i}),"data-position":p.placement,"data-fixed":"fixed"===p.floatingStrategy||void 0,...p.getStyles("dropdown",{className:n,props:o,classNames:c,styles:d,style:[{...e,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:"target"===p.width?void 0:J(p.width)},p.resolvedStyles.dropdown,d?.dropdown,r]}),children:[s,(0,ne.jsx)(xs,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:o,classNames:c,styles:d})})]})})})})});js.classes=Ns,js.displayName="@mantine/core/PopoverDropdown";const Ps={refProp:"ref",popupType:"dialog"},Rs=Eo((e,t)=>{const{children:o,refProp:n,popupType:r,...s}=Jt("PopoverTarget",Ps,e);if(!oe(o))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=s,l=vs(),c=(0,ke.useMergedRef)(l.reference,_e(o),t),d=l.withRoles?{"aria-haspopup":r,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,a.cloneElement)(o,{...i,...d,...l.targetProps,className:Te(l.targetProps.className,i.className,o.props.className),[n]:c,...l.controlled?null:{onClick:l.onToggle}})});function Es({opened:e,floating:t,position:o,positionDependencies:n}){const[r,s]=(0,a.useState)(0);(0,a.useEffect)(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return function(e,t,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Zn(e),d=r||a?[...c?un(c):[],...un(t)]:[];d.forEach(e=>{r&&e.addEventListener("scroll",o,{passive:!0}),a&&e.addEventListener("resize",o)});const u=c&&i?function(e,t){let o,n=null;const r=Vo(e);function a(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function s(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:m}=c;if(i||t(),!p||!m)return;const f={rootMargin:-kn(u)+"px "+-kn(r.clientWidth-(d+p))+"px "+-kn(r.clientHeight-(u+m))+"px "+-kn(d)+"px",threshold:Sn(0,Cn(1,l))||1};let h=!0;function v(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return s();n?s(!1,n):o=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||pr(c,e.getBoundingClientRect())||s(),h=!1}try{n=new IntersectionObserver(v,{...f,root:r.ownerDocument})}catch(e){n=new IntersectionObserver(v,f)}n.observe(e)}(!0),a}(c,o):null;let p,m=-1,f=null;s&&(f=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),o()}),c&&!l&&f.observe(c),f.observe(t));let h=l?tr(e):null;return l&&function t(){const n=tr(e);h&&!pr(h,n)&&o(),h=n,p=requestAnimationFrame(t)}(),o(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",o),a&&e.removeEventListener("resize",o)}),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,r,o]),(0,ke.useDidUpdate)(()=>{t.update()},n),(0,ke.useDidUpdate)(()=>{s(e=>e+1)},[e])}function _s(e,t){const o=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),n=[Pr(e.offset)];return o.shift&&n.push(Rr("boolean"==typeof o.shift?{limiter:Er(),padding:5}:{limiter:Er(),padding:5,...o.shift})),o.flip&&n.push("boolean"==typeof o.flip?_r():_r(o.flip)),o.inline&&n.push("boolean"==typeof o.inline?Ir():Ir(o.inline)),n.push(Tr({element:e.arrowRef,padding:e.arrowOffset})),(o.size||"target"===e.width)&&n.push(Dr({..."boolean"==typeof o.size?{}:o.size,apply({rects:n,availableWidth:r,availableHeight:a,...s}){const i=t(),l=i.refs.floating.current?.style??{};o.size&&("object"==typeof o.size&&o.size.apply?o.size.apply({rects:n,availableWidth:r,availableHeight:a,...s}):Object.assign(l,{maxWidth:`${r}px`,maxHeight:`${a}px`})),"target"===e.width&&Object.assign(l,{width:`${n.reference.width}px`})}})),n}Rs.displayName="@mantine/core/PopoverTarget";const Ds={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:de("popover"),__staticSelector:"Popover",width:"max-content"},Is=(e,{radius:t,shadow:o})=>({dropdown:{"--popover-radius":void 0===t?void 0:he(t),"--popover-shadow":ge(o)}});function Ts(e){const t=Jt("Popover",Ds,e),{children:o,position:n,offset:r,onPositionChange:s,positionDependencies:i,opened:l,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:u,width:p,middlewares:m,withArrow:f,arrowSize:h,arrowOffset:v,arrowRadius:y,arrowPosition:g,unstyled:b,classNames:w,styles:x,closeOnClickOutside:C,withinPortal:S,portalProps:N,closeOnEscape:k,clickOutsideEvents:j,trapFocus:P,onClose:R,onDismiss:E,onOpen:_,onChange:D,zIndex:I,radius:T,shadow:z,id:O,defaultOpened:M,__staticSelector:A,withRoles:$,disabled:L,returnFocus:F,variant:B,keepMounted:V,vars:H,floatingStrategy:W,withOverlay:G,overlayProps:K,...U}=t,q=Nt({name:A,props:t,classes:Ns,classNames:w,styles:x,unstyled:b,rootSelector:"dropdown",vars:H,varsResolver:Is}),{resolvedStyles:Y}=st({classNames:w,styles:x,props:t}),X=(0,a.useRef)(null),[Z,J]=(0,a.useState)(null),[Q,ee]=(0,a.useState)(null),{dir:te}=Io(),oe=(0,ke.useId)(O),re=function(e){const[t,o]=(0,ke.useUncontrolled)({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),n=(0,a.useRef)(t),r=sa({strategy:e.strategy,placement:e.position,middleware:_s(e,()=>r)});return Es({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:r}),(0,ke.useDidUpdate)(()=>{e.onPositionChange?.(r.placement)},[r.placement]),(0,ke.useDidUpdate)(()=>{t!==n.current&&(t?e.onOpen?.():e.onClose?.()),n.current=t},[t,e.onClose,e.onOpen]),{floating:r,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{t&&!e.disabled&&o(!1)},onToggle:()=>!e.disabled&&o(!t)}}({middlewares:m,width:p,position:ts(te,n),offset:"number"==typeof r?r+(f?h/2:0):r,arrowRef:X,arrowOffset:v,onPositionChange:s,positionDependencies:i,opened:l,defaultOpened:M,onChange:D,onOpen:_,onClose:R,onDismiss:E,strategy:W,disabled:L});(0,ke.useClickOutside)(()=>{C&&(re.onClose(),E?.())},j,[Z,Q]);const ae=(0,a.useCallback)(e=>{J(e),re.floating.refs.setReference(e)},[re.floating.refs.setReference]),se=(0,a.useCallback)(e=>{ee(e),re.floating.refs.setFloating(e)},[re.floating.refs.setFloating]),ie=(0,a.useCallback)(()=>{c?.onExited?.(),d?.()},[c?.onExited,d]),le=(0,a.useCallback)(()=>{c?.onEntered?.(),u?.()},[c?.onEntered,u]);return(0,ne.jsxs)(hs,{value:{returnFocus:F,disabled:L,controlled:re.controlled,reference:ae,floating:se,x:re.floating.x,y:re.floating.y,arrowX:re.floating?.middlewareData?.arrow?.x,arrowY:re.floating?.middlewareData?.arrow?.y,opened:re.opened,arrowRef:X,transitionProps:{...c,onExited:ie,onEntered:le},width:p,withArrow:f,arrowSize:h,arrowOffset:v,arrowRadius:y,arrowPosition:g,placement:re.floating.placement,trapFocus:P,withinPortal:S,portalProps:N,zIndex:I,radius:T,shadow:z,closeOnEscape:k,onDismiss:E,onClose:re.onClose,onToggle:re.onToggle,getTargetId:()=>`${oe}-target`,getDropdownId:()=>`${oe}-dropdown`,withRoles:$,targetProps:U,__staticSelector:A,classNames:w,styles:x,unstyled:b,variant:B,keepMounted:V,getStyles:q,resolvedStyles:Y,floatingStrategy:W},children:[o,G&&(0,ne.jsx)(fs,{transition:"fade",mounted:re.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:e=>(0,ne.jsx)(cs,{withinPortal:S,children:(0,ne.jsx)(as,{...K,...q("overlay",{className:K?.className,style:[e,K?.style]})})})})]})}Ts.Target=Rs,Ts.Dropdown=js,Ts.displayName="@mantine/core/Popover",Ts.extend=e=>e;var zs={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const Os=(0,a.forwardRef)(({className:e,...t},o)=>(0,ne.jsxs)(jo,{component:"span",className:Te(zs.barsLoader,e),...t,ref:o,children:[(0,ne.jsx)("span",{className:zs.bar}),(0,ne.jsx)("span",{className:zs.bar}),(0,ne.jsx)("span",{className:zs.bar})]}));Os.displayName="@mantine/core/Bars";const Ms=(0,a.forwardRef)(({className:e,...t},o)=>(0,ne.jsxs)(jo,{component:"span",className:Te(zs.dotsLoader,e),...t,ref:o,children:[(0,ne.jsx)("span",{className:zs.dot}),(0,ne.jsx)("span",{className:zs.dot}),(0,ne.jsx)("span",{className:zs.dot})]}));Ms.displayName="@mantine/core/Dots";const As=(0,a.forwardRef)(({className:e,...t},o)=>(0,ne.jsx)(jo,{component:"span",className:Te(zs.ovalLoader,e),...t,ref:o}));As.displayName="@mantine/core/Oval";const $s={bars:Os,oval:As,dots:Ms},Ls={loaders:$s,type:"oval"},Fs=(e,{size:t,color:o})=>({root:{"--loader-size":me(t,"loader-size"),"--loader-color":o?We(o,e):void 0}}),Bs=Eo((e,t)=>{const o=Jt("Loader",Ls,e),{size:n,color:r,type:a,vars:s,className:i,style:l,classNames:c,styles:d,unstyled:u,loaders:p,variant:m,children:f,...h}=o,v=Nt({name:"Loader",props:o,classes:zs,className:i,style:l,classNames:c,styles:d,unstyled:u,vars:s,varsResolver:Fs});return f?(0,ne.jsx)(jo,{...v("root"),ref:t,...h,children:f}):(0,ne.jsx)(jo,{...v("root"),ref:t,component:p[a],variant:m,size:n,...h})});Bs.defaultLoaders=$s,Bs.classes=zs,Bs.displayName="@mantine/core/Loader";var Vs={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const Hs={orientation:"horizontal"},Ws=(e,{borderWidth:t})=>({group:{"--ai-border-width":J(t)}}),Gs=Eo((e,t)=>{const o=Jt("ActionIconGroup",Hs,e),{className:n,style:r,classNames:a,styles:s,unstyled:i,orientation:l,vars:c,borderWidth:d,variant:u,mod:p,...m}=Jt("ActionIconGroup",Hs,e),f=Nt({name:"ActionIconGroup",props:o,classes:Vs,className:n,style:r,classNames:a,styles:s,unstyled:i,vars:c,varsResolver:Ws,rootSelector:"group"});return(0,ne.jsx)(jo,{...f("group"),ref:t,variant:u,mod:[{"data-orientation":l},p],role:"group",...m})});Gs.classes=Vs,Gs.displayName="@mantine/core/ActionIconGroup";const Ks={},Us=(e,{radius:t,color:o,gradient:n,variant:r,autoContrast:a,size:s})=>{const i=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:n,variant:r||"filled",autoContrast:a});return{groupSection:{"--section-height":me(s,"section-height"),"--section-padding-x":me(s,"section-padding-x"),"--section-fz":ve(s),"--section-radius":void 0===t?void 0:he(t),"--section-bg":o||r?i.background:void 0,"--section-color":i.color,"--section-bd":o||r?i.border:void 0}}},qs=Eo((e,t)=>{const o=Jt("ActionIconGroupSection",Ks,e),{className:n,style:r,classNames:a,styles:s,unstyled:i,vars:l,variant:c,gradient:d,radius:u,autoContrast:p,...m}=Jt("ActionIconGroupSection",Ks,e),f=Nt({name:"ActionIconGroupSection",props:o,classes:Vs,className:n,style:r,classNames:a,styles:s,unstyled:i,vars:l,varsResolver:Us,rootSelector:"groupSection"});return(0,ne.jsx)(jo,{...f("groupSection"),ref:t,variant:c,...m})});qs.classes=Vs,qs.displayName="@mantine/core/ActionIconGroupSection";const Ys={},Xs=(e,{size:t,radius:o,variant:n,gradient:r,color:a,autoContrast:s})=>{const i=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:r,variant:n||"filled",autoContrast:s});return{root:{"--ai-size":me(t,"ai-size"),"--ai-radius":void 0===o?void 0:he(o),"--ai-bg":a||n?i.background:void 0,"--ai-hover":a||n?i.hover:void 0,"--ai-hover-color":a||n?i.hoverColor:void 0,"--ai-color":i.color,"--ai-bd":a||n?i.border:void 0}}},Zs=_o((e,t)=>{const o=Jt("ActionIcon",Ys,e),{className:n,unstyled:r,variant:a,classNames:s,styles:i,style:l,loading:c,loaderProps:d,size:u,color:p,radius:m,__staticSelector:f,gradient:h,vars:v,children:y,disabled:g,"data-disabled":b,autoContrast:w,mod:x,...C}=o,S=Nt({name:["ActionIcon",f],props:o,className:n,style:l,classes:Vs,classNames:s,styles:i,unstyled:r,vars:v,varsResolver:Xs});return(0,ne.jsxs)(Ua,{...S("root",{active:!g&&!c&&!b}),...C,unstyled:r,variant:a,size:u,disabled:g||c,ref:t,mod:[{loading:c,disabled:g||b},x],children:[(0,ne.jsx)(fs,{mounted:!!c,transition:"slide-down",duration:150,children:e=>(0,ne.jsx)(jo,{component:"span",...S("loader",{style:e}),"aria-hidden":!0,children:(0,ne.jsx)(Bs,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),(0,ne.jsx)(jo,{component:"span",mod:{loading:c},...S("icon"),children:y})]})});Zs.classes=Vs,Zs.displayName="@mantine/core/ActionIcon",Zs.Group=Gs,Zs.GroupSection=qs;const Js=(0,a.forwardRef)(({size:e="var(--cb-icon-size, 70%)",style:t,...o},n)=>(0,ne.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:n,...o,children:(0,ne.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));Js.displayName="@mantine/core/CloseIcon";var Qs={root:"m_86a44da5","root--subtle":"m_220c80f2"};const ei={variant:"subtle"},ti=(e,{size:t,radius:o,iconSize:n})=>({root:{"--cb-size":me(t,"cb-size"),"--cb-radius":void 0===o?void 0:he(o),"--cb-icon-size":J(n)}}),oi=_o((e,t)=>{const o=Jt("CloseButton",ei,e),{iconSize:n,children:r,vars:a,radius:s,className:i,classNames:l,style:c,styles:d,unstyled:u,"data-disabled":p,disabled:m,variant:f,icon:h,mod:v,__staticSelector:y,...g}=o,b=Nt({name:y||"CloseButton",props:o,className:i,style:c,classes:Qs,classNames:l,styles:d,unstyled:u,vars:a,varsResolver:ti});return(0,ne.jsxs)(Ua,{ref:t,...g,unstyled:u,variant:f,disabled:m,mod:[{disabled:m||p},v],...b("root",{variant:f,active:!m&&!p}),children:[h||(0,ne.jsx)(Js,{}),r]})});oi.classes=Qs,oi.displayName="@mantine/core/CloseButton";var ni={root:"m_4081bf90"};const ri={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},ai=(e,{grow:t,preventGrowOverflow:o,gap:n,align:r,justify:a,wrap:s},{childWidth:i})=>({root:{"--group-child-width":t&&o?i:void 0,"--group-gap":fe(n),"--group-align":r,"--group-justify":a,"--group-wrap":s}}),si=Eo((e,t)=>{const o=Jt("Group",ri,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,children:c,gap:d,align:u,justify:p,wrap:m,grow:f,preventGrowOverflow:h,vars:v,variant:y,__size:g,mod:b,...w}=o,x=function(e){return a.Children.toArray(e).filter(Boolean)}(c),C=x.length,S=fe(d??"md"),N=Nt({name:"Group",props:o,stylesCtx:{childWidth:`calc(${100/C}% - (${S} - ${S} / ${C}))`},className:r,style:s,classes:ni,classNames:n,styles:i,unstyled:l,vars:v,varsResolver:ai});return(0,ne.jsx)(jo,{...N("root"),ref:t,variant:y,mod:[{grow:f},b],size:g,...w,children:x})});si.classes=ni,si.displayName="@mantine/core/Group";const[ii,li]=re("ModalBase component was not found in tree");const ci=(0,a.forwardRef)(({keepMounted:e,opened:t,onClose:o,id:n,transitionProps:r,onExitTransitionEnd:s,onEnterTransitionEnd:i,trapFocus:l,closeOnEscape:c,returnFocus:d,closeOnClickOutside:u,withinPortal:p,portalProps:m,lockScroll:f,children:h,zIndex:v,shadow:y,padding:g,__vars:b,unstyled:w,removeScrollProps:x,...C},S)=>{const{_id:N,titleMounted:k,bodyMounted:j,shouldLockScroll:P,setTitleMounted:R,setBodyMounted:E}=function({id:e,transitionProps:t,opened:o,trapFocus:n,closeOnEscape:r,onClose:s,returnFocus:i}){const l=(0,ke.useId)(e),[c,d]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1),m=function({opened:e,transitionDuration:t}){const[o,n]=(0,a.useState)(e),r=(0,a.useRef)(-1),s=(0,ke.useReducedMotion)()?0:t;return(0,a.useEffect)(()=>(e?(n(!0),window.clearTimeout(r.current)):0===s?n(!1):r.current=window.setTimeout(()=>n(!1),s),()=>window.clearTimeout(r.current)),[e,s]),o}({opened:o,transitionDuration:"number"==typeof t?.duration?t?.duration:200});return(0,ke.useWindowEvent)("keydown",e=>{"Escape"===e.key&&r&&!e.isComposing&&o&&"true"!==e.target?.getAttribute("data-mantine-stop-propagation")&&s()},{capture:!0}),(0,ke.useFocusReturn)({opened:o,shouldReturnFocus:n&&i}),{_id:l,titleMounted:c,bodyMounted:u,shouldLockScroll:m,setTitleMounted:d,setBodyMounted:p}}({id:n,transitionProps:r,opened:t,trapFocus:l,closeOnEscape:c,onClose:o,returnFocus:d}),{key:_,...D}=x||{};return(0,ne.jsx)(cs,{...m,withinPortal:p,children:(0,ne.jsx)(ii,{value:{opened:t,onClose:o,closeOnClickOutside:u,onExitTransitionEnd:s,onEnterTransitionEnd:i,transitionProps:{...r,keepMounted:e},getTitleId:()=>`${N}-title`,getBodyId:()=>`${N}-body`,titleMounted:k,bodyMounted:j,setTitleMounted:R,setBodyMounted:E,trapFocus:l,closeOnEscape:c,zIndex:v,unstyled:w},children:(0,ne.jsx)(W,{enabled:P&&f,...D,children:(0,ne.jsx)(jo,{ref:S,...C,__vars:{...b,"--mb-z-index":(v||de("modal")).toString(),"--mb-shadow":ge(y),"--mb-padding":fe(g)},children:h})},_)})})});ci.displayName="@mantine/core/ModalBase";var di="m_615af6c9",ui="m_b5489c3c",pi="m_60c222c7",mi="m_fd1ab0aa",fi="m_606cb269",hi="m_5df29311";const vi=(0,a.forwardRef)(({className:e,...t},o)=>{const n=function(){const e=li();return(0,a.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}(),r=li();return(0,ne.jsx)(jo,{ref:o,...t,id:n,className:Te({[hi]:!r.unstyled},e)})});vi.displayName="@mantine/core/ModalBaseBody";const yi=(0,a.forwardRef)(({className:e,onClick:t,...o},n)=>{const r=li();return(0,ne.jsx)(oi,{ref:n,...o,onClick:e=>{r.onClose(),t?.(e)},className:Te({[fi]:!r.unstyled},e),unstyled:r.unstyled})});yi.displayName="@mantine/core/ModalBaseCloseButton";const gi=(0,a.forwardRef)(({transitionProps:e,className:t,innerProps:o,onKeyDown:n,style:r,...a},s)=>{const i=li();return(0,ne.jsx)(fs,{mounted:i.opened,transition:"pop",...i.transitionProps,onExited:()=>{i.onExitTransitionEnd?.(),i.transitionProps?.onExited?.()},onEntered:()=>{i.onEnterTransitionEnd?.(),i.transitionProps?.onEntered?.()},...e,children:e=>(0,ne.jsx)("div",{...o,className:Te({[pi]:!i.unstyled},o.className),children:(0,ne.jsx)(Cs,{active:i.opened&&i.trapFocus,innerRef:s,children:(0,ne.jsx)(es,{...a,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":i.bodyMounted?i.getBodyId():void 0,"aria-labelledby":i.titleMounted?i.getTitleId():void 0,style:[r,e],className:Te({[mi]:!i.unstyled},t),unstyled:i.unstyled,children:a.children})})})})});gi.displayName="@mantine/core/ModalBaseContent";const bi=(0,a.forwardRef)(({className:e,...t},o)=>{const n=li();return(0,ne.jsx)(jo,{component:"header",ref:o,className:Te({[ui]:!n.unstyled},e),...t})});bi.displayName="@mantine/core/ModalBaseHeader";const wi={duration:200,timingFunction:"ease",transition:"fade"},xi=(0,a.forwardRef)(({onClick:e,transitionProps:t,style:o,visible:n,...r},a)=>{const s=li(),i=function(e){const t=li();return{...wi,...t.transitionProps,...e}}(t);return(0,ne.jsx)(fs,{mounted:void 0!==n?n:s.opened,...i,transition:"fade",children:t=>(0,ne.jsx)(as,{ref:a,fixed:!0,style:[o,t],zIndex:s.zIndex,unstyled:s.unstyled,onClick:t=>{e?.(t),s.closeOnClickOutside&&s.onClose()},...r})})});xi.displayName="@mantine/core/ModalBaseOverlay";const Ci=(0,a.forwardRef)(({className:e,...t},o)=>{const n=function(){const e=li();return(0,a.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}(),r=li();return(0,ne.jsx)(jo,{component:"h2",ref:o,className:Te({[di]:!r.unstyled},e),...t,id:n})});function Si({children:e}){return(0,ne.jsx)(ne.Fragment,{children:e})}Ci.displayName="@mantine/core/ModalBaseTitle";const[Ni,ki]=ae({size:"sm"}),ji={},Pi=Eo((e,t)=>{const o=Jt("InputClearButton",ji,e),{size:n,variant:r,vars:a,classNames:s,styles:i,...l}=o,c=ki(),{resolvedClassNames:d,resolvedStyles:u}=st({classNames:s,styles:i,props:o});return(0,ne.jsx)(oi,{variant:r||"transparent",ref:t,size:n||c?.size||"sm",classNames:d,styles:u,__staticSelector:"InputClearButton",...l})});Pi.displayName="@mantine/core/InputClearButton";const[Ri,Ei]=ae({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var _i={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Di={},Ii=(e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${ve(t)} - ${J(2)})`}}),Ti=Eo((e,t)=>{const o=Jt("InputDescription",Di,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,size:c,__staticSelector:d,__inheritStyles:u=!0,variant:p,...m}=Jt("InputDescription",Di,o),f=Ei(),h=Nt({name:["InputWrapper",d],props:o,classes:_i,className:r,style:a,classNames:n,styles:s,unstyled:i,rootSelector:"description",vars:l,varsResolver:Ii}),v=u&&f?.getStyles||h;return(0,ne.jsx)(jo,{component:"p",ref:t,variant:p,size:c,...v("description",f?.getStyles?{className:r,style:a}:void 0),...m})});Ti.classes=_i,Ti.displayName="@mantine/core/InputDescription";const zi={},Oi=(e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${ve(t)} - ${J(2)})`}}),Mi=Eo((e,t)=>{const o=Jt("InputError",zi,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,size:c,__staticSelector:d,__inheritStyles:u=!0,variant:p,...m}=o,f=Nt({name:["InputWrapper",d],props:o,classes:_i,className:r,style:a,classNames:n,styles:s,unstyled:i,rootSelector:"error",vars:l,varsResolver:Oi}),h=Ei(),v=u&&h?.getStyles||f;return(0,ne.jsx)(jo,{component:"p",ref:t,variant:p,size:c,...v("error",h?.getStyles?{className:r,style:a}:void 0),...m})});Mi.classes=_i,Mi.displayName="@mantine/core/InputError";const Ai={labelElement:"label"},$i=(e,{size:t})=>({label:{"--input-label-size":ve(t),"--input-asterisk-color":void 0}}),Li=Eo((e,t)=>{const o=Jt("InputLabel",Ai,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,labelElement:c,size:d,required:u,htmlFor:p,onMouseDown:m,children:f,__staticSelector:h,variant:v,mod:y,...g}=Jt("InputLabel",Ai,o),b=Nt({name:["InputWrapper",h],props:o,classes:_i,className:r,style:a,classNames:n,styles:s,unstyled:i,rootSelector:"label",vars:l,varsResolver:$i}),w=Ei(),x=w?.getStyles||b;return(0,ne.jsxs)(jo,{...x("label",w?.getStyles?{className:r,style:a}:void 0),component:c,variant:v,size:d,ref:t,htmlFor:"label"===c?p:void 0,mod:[{required:u},y],onMouseDown:e=>{m?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,u&&(0,ne.jsx)("span",{...x("required"),"aria-hidden":!0,children:" *"})]})});Li.classes=_i,Li.displayName="@mantine/core/InputLabel";const Fi={},Bi=Eo((e,t)=>{const o=Jt("InputPlaceholder",Fi,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,__staticSelector:c,variant:d,error:u,mod:p,...m}=Jt("InputPlaceholder",Fi,o),f=Nt({name:["InputPlaceholder",c],props:o,classes:_i,className:r,style:a,classNames:n,styles:s,unstyled:i,rootSelector:"placeholder"});return(0,ne.jsx)(jo,{...f("placeholder"),mod:[{error:!!u},p],component:"span",variant:d,ref:t,...m})});function Vi(e,{hasDescription:t,hasError:o}){const n=e.findIndex(e=>"input"===e),r=e.slice(0,n),a=e.slice(n+1),s=t&&r.includes("description")||o&&r.includes("error");return{offsetBottom:t&&a.includes("description")||o&&a.includes("error"),offsetTop:s}}Bi.classes=_i,Bi.displayName="@mantine/core/InputPlaceholder";const Hi={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Wi=(e,{size:t})=>({label:{"--input-label-size":ve(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${ve(t)} - ${J(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${ve(t)} - ${J(2)})`}}),Gi=Eo((e,t)=>{const o=Jt("InputWrapper",Hi,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,size:d,variant:u,__staticSelector:p,inputContainer:m,inputWrapperOrder:f,label:h,error:v,description:y,labelProps:g,descriptionProps:b,errorProps:w,labelElement:x,children:C,withAsterisk:S,id:N,required:k,__stylesApiProps:j,mod:P,...R}=o,E=Nt({name:["InputWrapper",p],props:j||o,classes:_i,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Wi}),_={size:d,variant:u,__staticSelector:p},D=(0,ke.useId)(N),I="boolean"==typeof S?S:k,T=w?.id||`${D}-error`,z=b?.id||`${D}-description`,O=D,M=!!v&&"boolean"!=typeof v,A=!!y,$=`${M?T:""} ${A?z:""}`,L=$.trim().length>0?$.trim():void 0,F=g?.id||`${D}-label`,B=h&&(0,ne.jsx)(Li,{labelElement:x,id:F,htmlFor:O,required:I,..._,...g,children:h},"label"),V=A&&(0,ne.jsx)(Ti,{...b,..._,size:b?.size||_.size,id:b?.id||z,children:y},"description"),H=(0,ne.jsx)(a.Fragment,{children:m(C)},"input"),W=M&&(0,a.createElement)(Mi,{...w,..._,size:w?.size||_.size,key:"error",id:w?.id||T},v),G=f.map(e=>{switch(e){case"label":return B;case"input":return H;case"description":return V;case"error":return W;default:return null}});return(0,ne.jsx)(Ri,{value:{getStyles:E,describedBy:L,inputId:O,labelId:F,...Vi(f,{hasDescription:A,hasError:M})},children:(0,ne.jsx)(jo,{ref:t,variant:u,size:d,mod:[{error:!!v},P],...E("root"),...R,children:G})})});Gi.classes=_i,Gi.displayName="@mantine/core/InputWrapper";const Ki={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},Ui=(e,t,o)=>({wrapper:{"--input-margin-top":o.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":o.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":me(t.size,"input-height"),"--input-fz":ve(t.size),"--input-radius":void 0===t.radius?void 0:he(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?J(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?J(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?me(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),qi=_o((e,t)=>{const o=Jt("Input",Ki,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,required:l,__staticSelector:c,__stylesApiProps:d,size:u,wrapperProps:p,error:m,disabled:f,leftSection:h,leftSectionProps:v,leftSectionWidth:y,rightSection:g,rightSectionProps:b,rightSectionWidth:w,rightSectionPointerEvents:x,leftSectionPointerEvents:C,variant:S,vars:N,pointer:k,multiline:j,radius:P,id:R,withAria:E,withErrorStyles:_,mod:D,inputSize:I,__clearSection:T,__clearable:z,__defaultRightSection:O,...M}=o,{styleProps:A,rest:$}=io(M),L=Ei(),F=Nt({name:["Input",c],props:d||o,classes:_i,className:r,style:a,classNames:n,styles:s,unstyled:i,stylesCtx:{offsetBottom:L?.offsetBottom,offsetTop:L?.offsetTop},rootSelector:"wrapper",vars:N,varsResolver:Ui}),B=E?{required:l,disabled:f,"aria-invalid":!!m,"aria-describedby":L?.describedBy,id:L?.inputId||R}:{},V=g||z&&T||O;return(0,ne.jsx)(Ni,{value:{size:u||"sm"},children:(0,ne.jsxs)(jo,{...F("wrapper"),...A,...p,mod:[{error:!!m&&_,pointer:k,disabled:f,multiline:j,"data-with-right-section":!!V,"data-with-left-section":!!h},D],variant:S,size:u,children:[h&&(0,ne.jsx)("div",{...v,"data-position":"left",...F("section",{className:v?.className,style:v?.style}),children:h}),(0,ne.jsx)(jo,{component:"input",...$,...B,ref:t,required:l,mod:{disabled:f,error:!!m&&_},variant:S,__size:I,...F("input")}),V&&(0,ne.jsx)("div",{...b,"data-position":"right",...F("section",{className:b?.className,style:b?.style}),children:V})]})})});function Yi(e,t,o){const n=Jt(e,t,o),{label:r,description:a,error:s,required:i,classNames:l,styles:c,className:d,unstyled:u,__staticSelector:p,__stylesApiProps:m,errorProps:f,labelProps:h,descriptionProps:v,wrapperProps:y,id:g,size:b,style:w,inputContainer:x,inputWrapperOrder:C,withAsterisk:S,variant:N,vars:k,mod:j,...P}=n,{styleProps:R,rest:E}=io(P);return{...E,classNames:l,styles:c,unstyled:u,wrapperProps:{...{label:r,description:a,error:s,required:i,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||n,errorProps:f,labelProps:h,descriptionProps:v,unstyled:u,styles:c,size:b,style:w,inputContainer:x,inputWrapperOrder:C,withAsterisk:S,variant:N,id:g,mod:j,...y},...R},inputProps:{required:i,classNames:l,styles:c,unstyled:u,size:b,__staticSelector:p,__stylesApiProps:m||n,error:s,variant:N,id:g}}}qi.classes=_i,qi.Wrapper=Gi,qi.Label=Li,qi.Error=Mi,qi.Description=Ti,qi.Placeholder=Bi,qi.ClearButton=Pi,qi.displayName="@mantine/core/Input";const Xi={__staticSelector:"InputBase",withAria:!0},Zi=_o((e,t)=>{const{inputProps:o,wrapperProps:n,...r}=Yi("InputBase",Xi,e);return(0,ne.jsx)(qi.Wrapper,{...n,children:(0,ne.jsx)(qi,{...o,...r,ref:t})})});Zi.classes={...qi.classes,...qi.Wrapper.classes},Zi.displayName="@mantine/core/InputBase";const Ji={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var Qi={root:"m_8bffd616"};const el={},tl=_o((e,t)=>{const o=Jt("Flex",el,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,gap:c,rowGap:d,columnGap:u,align:p,justify:m,wrap:f,direction:h,...v}=o,y=Nt({name:"Flex",classes:Qi,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l}),g=rt(),b=go(),w=yo({styleProps:{gap:c,rowGap:d,columnGap:u,align:p,justify:m,wrap:f,direction:h},theme:g,data:Ji});return(0,ne.jsxs)(ne.Fragment,{children:[w.hasResponsiveStyles&&(0,ne.jsx)(so,{selector:`.${b}`,styles:w.styles,media:w.media}),(0,ne.jsx)(jo,{ref:t,...y("root",{className:b,style:ee(w.inlineStyles)}),...v})]})});tl.classes=Qi,tl.displayName="@mantine/core/Flex";var ol={root:"m_96b553a6"};const nl={},rl=(e,{transitionDuration:t})=>({root:{"--transition-duration":"number"==typeof t?`${t}ms`:t}}),al=Eo((e,t)=>{const o=Jt("FloatingIndicator",nl,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,target:d,parent:u,transitionDuration:p,mod:m,displayAfterTransitionEnd:f,...h}=o,v=Nt({name:"FloatingIndicator",classes:ol,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:rl}),y=(0,a.useRef)(null),{initialized:g,hidden:b}=function({target:e,parent:t,ref:o,displayAfterTransitionEnd:n}){const r=(0,a.useRef)(-1),[s,i]=(0,a.useState)(!1),[l,c]=(0,a.useState)("boolean"==typeof n&&n),d=()=>{if(!e||!t||!o.current)return;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=window.getComputedStyle(e),s=window.getComputedStyle(t),i=ka(a.borderTopWidth)+ka(s.borderTopWidth),l=ka(a.borderLeftWidth)+ka(s.borderLeftWidth),c=n.top-r.top-i,d=n.left-r.left-l,u=n.width,p=n.height;o.current.style.transform=`translateY(${c}px) translateX(${d}px)`,o.current.style.width=`${u}px`,o.current.style.height=`${p}px`},u=()=>{window.clearTimeout(r.current),o.current&&(o.current.style.transitionDuration="0ms"),d(),r.current=window.setTimeout(()=>{o.current&&(o.current.style.transitionDuration="")},30)},p=(0,a.useRef)(null),m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(d(),e)return p.current=new ResizeObserver(u),p.current.observe(e),t&&(m.current=new ResizeObserver(u),m.current.observe(t)),()=>{p.current?.disconnect(),m.current?.disconnect()}},[t,e]),(0,a.useEffect)(()=>{if(t){const e=e=>{(function(e,t){if(!t||!e)return!1;let o=t.parentNode;for(;null!=o;){if(o===e)return!0;o=o.parentNode}return!1})(e.target,t)&&(u(),c(!1))};return t.addEventListener("transitionend",e),()=>{t.removeEventListener("transitionend",e)}}},[t]),(0,ke.useTimeout)(()=>{"test"!==Pe()&&i(!0)},20,{autoInvoke:!0}),(0,ke.useMutationObserver)(e=>{e.forEach(e=>{"attributes"===e.type&&"dir"===e.attributeName&&u()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:s,hidden:l}}({target:d,parent:u,ref:y,displayAfterTransitionEnd:f}),w=(0,ke.useMergedRef)(t,y);return d&&u?(0,ne.jsx)(jo,{ref:w,mod:[{initialized:g,hidden:b},m],...v("root"),...h}):null});al.displayName="@mantine/core/FloatingIndicator",al.classes=ol;const[sl,il]=re("Accordion component was not found in the tree");function ll({style:e,size:t=16,...o}){return(0,ne.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:J(t),height:J(t),display:"block"},...o,children:(0,ne.jsx)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}ll.displayName="@mantine/core/AccordionChevron";const[cl,dl]=re("Accordion.Item component was not found in the tree");var ul={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const pl={},ml=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,chevron:i,icon:l,onClick:c,onKeyDown:d,children:u,disabled:p,mod:m,...f}=Jt("AccordionControl",pl,e),{value:h}=dl(),v=il(),y=v.isItemActive(h),g="number"==typeof v.order,b=`h${v.order}`,w=(0,ne.jsxs)(Ua,{...f,...v.getStyles("control",{className:n,classNames:o,style:r,styles:a,variant:v.variant}),unstyled:v.unstyled,mod:["accordion-control",{active:y,"chevron-position":v.chevronPosition,disabled:p},m],ref:t,onClick:e=>{c?.(e),v.onChange(h)},type:"button",disabled:p,"aria-expanded":y,"aria-controls":v.getRegionId(h),id:v.getControlId(h),onKeyDown:le({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:v.loop,orientation:"vertical",onKeyDown:d}),children:[(0,ne.jsx)(jo,{component:"span",mod:{rotate:!v.disableChevronRotation&&y,position:v.chevronPosition},...v.getStyles("chevron",{classNames:o,styles:a}),children:i||v.chevron}),(0,ne.jsx)("span",{...v.getStyles("label",{classNames:o,styles:a}),children:u}),l&&(0,ne.jsx)(jo,{component:"span",mod:{"chevron-position":v.chevronPosition},...v.getStyles("icon",{classNames:o,styles:a}),children:l})]});return g?(0,ne.jsx)(b,{...v.getStyles("itemTitle",{classNames:o,styles:a}),children:w}):w});ml.displayName="@mantine/core/AccordionControl",ml.classes=ul;const fl={},hl=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,value:i,mod:l,...c}=Jt("AccordionItem",fl,e),d=il();return(0,ne.jsx)(cl,{value:{value:i},children:(0,ne.jsx)(jo,{ref:t,mod:[{active:d.isItemActive(i)},l],...d.getStyles("item",{className:n,classNames:o,styles:a,style:r,variant:d.variant}),...c})})});hl.displayName="@mantine/core/AccordionItem",hl.classes=ul;const vl={},yl=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,children:i,...l}=Jt("AccordionPanel",vl,e),{value:c}=dl(),d=il();return(0,ne.jsx)($o,{ref:t,...d.getStyles("panel",{className:n,classNames:o,style:r,styles:a}),...l,in:d.isItemActive(c),transitionDuration:d.transitionDuration??200,role:"region",id:d.getRegionId(c),"aria-labelledby":d.getControlId(c),children:(0,ne.jsx)("div",{...d.getStyles("content",{classNames:o,styles:a}),children:i})})});yl.displayName="@mantine/core/AccordionPanel",yl.classes=ul;const gl={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevron:(0,ne.jsx)(ll,{})},bl=(e,{transitionDuration:t,chevronSize:o,radius:n})=>({root:{"--accordion-transition-duration":void 0===t?void 0:`${t}ms`,"--accordion-chevron-size":void 0===o?void 0:J(o),"--accordion-radius":void 0===n?void 0:he(n)}});function wl(e){const t=Jt("Accordion",gl,e),{classNames:o,className:n,style:r,styles:a,unstyled:s,vars:i,children:l,multiple:c,value:d,defaultValue:u,onChange:p,id:m,loop:f,transitionDuration:h,disableChevronRotation:v,chevronPosition:y,chevronSize:g,order:b,chevron:w,variant:x,radius:C,...S}=t,N=(0,ke.useId)(m),[k,j]=(0,ke.useUncontrolled)({value:d,defaultValue:u,finalValue:c?[]:null,onChange:p}),P=Nt({name:"Accordion",classes:ul,props:t,className:n,style:r,classNames:o,styles:a,unstyled:s,vars:i,varsResolver:bl});return(0,ne.jsx)(sl,{value:{isItemActive:e=>Array.isArray(k)?k.includes(e):e===k,onChange:e=>{const t=Array.isArray(k)?k.includes(e)?k.filter(t=>t!==e):[...k,e]:e===k?null:e;j(t)},getControlId:se(`${N}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:se(`${N}-panel`,"Accordion.Item component was rendered with invalid value or without value"),transitionDuration:h,disableChevronRotation:v,chevronPosition:y,order:b,chevron:w,loop:f,getStyles:P,variant:x,unstyled:s},children:(0,ne.jsx)(jo,{...P("root"),id:N,...S,variant:x,"data-accordion":!0,children:l})})}wl.extend=e=>e,wl.withProps=Ro(wl),wl.classes=ul,wl.displayName="@mantine/core/Accordion",wl.Item=hl,wl.Panel=yl,wl.Control=ml,wl.Chevron=ll;var xl={root:"m_7f854edf"};const Cl={position:{bottom:0,right:0},zIndex:de("modal"),withinPortal:!0},Sl=(e,{zIndex:t,position:o})=>({root:{"--affix-z-index":t?.toString(),"--affix-top":fe(o?.top),"--affix-left":fe(o?.left),"--affix-bottom":fe(o?.bottom),"--affix-right":fe(o?.right)}}),Nl=Eo((e,t)=>{const o=Jt("Affix",Cl,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,portalProps:c,zIndex:d,withinPortal:u,position:p,...m}=o,f=Nt({name:"Affix",classes:xl,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Sl});return(0,ne.jsx)(cs,{...c,withinPortal:u,children:(0,ne.jsx)(jo,{ref:t,...f("root"),...m})})});Nl.classes=xl,Nl.displayName="@mantine/core/Affix";var kl={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const jl={},Pl=(e,{radius:t,color:o,variant:n,autoContrast:r})=>{const a=e.variantColorResolver({color:o||e.primaryColor,theme:e,variant:n||"light",autoContrast:r});return{root:{"--alert-radius":void 0===t?void 0:he(t),"--alert-bg":o||n?a.background:void 0,"--alert-color":a.color,"--alert-bd":o||n?a.border:void 0}}},Rl=Eo((e,t)=>{const o=Jt("Alert",jl,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,radius:c,color:d,title:u,children:p,id:m,icon:f,withCloseButton:h,onClose:v,closeButtonLabel:y,variant:g,autoContrast:b,...w}=o,x=Nt({name:"Alert",classes:kl,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Pl}),C=(0,ke.useId)(m),S=u&&`${C}-title`||void 0,N=`${C}-body`;return(0,ne.jsx)(jo,{id:C,...x("root",{variant:g}),variant:g,ref:t,...w,role:"alert","aria-describedby":N,"aria-labelledby":S,children:(0,ne.jsxs)("div",{...x("wrapper"),children:[f&&(0,ne.jsx)("div",{...x("icon"),children:f}),(0,ne.jsxs)("div",{...x("body"),children:[u&&(0,ne.jsx)("div",{...x("title"),"data-with-close-button":h||void 0,children:(0,ne.jsx)("span",{id:S,...x("label"),children:u})}),p&&(0,ne.jsx)("div",{id:N,...x("message"),"data-variant":g,children:p})]}),h&&(0,ne.jsx)(oi,{...x("closeButton"),onClick:v,variant:"transparent",size:16,iconSize:16,"aria-label":y,unstyled:i})]})})});Rl.classes=kl,Rl.displayName="@mantine/core/Alert";var El={root:"m_b6d8b162"};function _l(e){return"start"===e?"start":"end"===e||e?"end":void 0}const Dl={inherit:!1},Il=(e,{variant:t,lineClamp:o,gradient:n,size:r,color:a})=>({root:{"--text-fz":ve(r),"--text-lh":ye(r),"--text-gradient":"gradient"===t?Ge(n,e):void 0,"--text-line-clamp":"number"==typeof o?o.toString():void 0,"--text-color":a?We(a,e):void 0}}),Tl=_o((e,t)=>{const o=Jt("Text",Dl,e),{lineClamp:n,truncate:r,inline:a,inherit:s,gradient:i,span:l,__staticSelector:c,vars:d,className:u,style:p,classNames:m,styles:f,unstyled:h,variant:v,mod:y,size:g,...b}=o,w=Nt({name:["Text",c],props:o,classes:El,className:u,style:p,classNames:m,styles:f,unstyled:h,vars:d,varsResolver:Il});return(0,ne.jsx)(jo,{...w("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:v,mod:[{"data-truncate":_l(r),"data-line-clamp":"number"==typeof n,"data-inline":a,"data-inherit":s},y],size:g,...b})});Tl.classes=El,Tl.displayName="@mantine/core/Text";var zl={root:"m_849cf0da"};const Ol={underline:"hover"},Ml=_o((e,t)=>{const{underline:o,className:n,unstyled:r,mod:a,...s}=Jt("Anchor",Ol,e);return(0,ne.jsx)(Tl,{component:"a",ref:t,className:Te({[zl.root]:!r},n),...s,mod:[{underline:o},a],__staticSelector:"Anchor",unstyled:r})});Ml.classes=zl,Ml.displayName="@mantine/core/Anchor";var Al={root:"m_48204f9b",marks:"m_bb9cdbad",mark:"m_481dd586",thumb:"m_bc02ba3d",label:"m_bb8e875b"};const $l={step:1,withLabel:!0},Ll=(e,{size:t,thumbSize:o})=>({root:{"--slider-size":J(t),"--thumb-size":J(o)}}),Fl=Eo((e,t)=>{const o=Jt("AngleSlider",$l,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,step:d,value:u,defaultValue:p,onChange:m,onMouseDown:f,withLabel:h,marks:v,thumbSize:y,restrictToMarks:g,formatLabel:b,onChangeEnd:w,disabled:x,onTouchStart:C,name:S,hiddenInputProps:N,"aria-label":k,tabIndex:j,onScrubStart:P,onScrubEnd:R,...E}=o,[_,D]=(0,ke.useUncontrolled)({value:u,defaultValue:p,finalValue:0,onChange:m}),{ref:I}=(0,ke.useRadialMove)(e=>{if(I.current){const t=g&&Array.isArray(v)?Ee(e,v.map(e=>e.value)):e;D(t)}},{step:d,onChangeEnd:w,onScrubStart:P,onScrubEnd:R}),T=Nt({name:"AngleSlider",classes:Al,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Ll}),z=v?.map((e,t)=>(0,a.createElement)("div",{...T("mark",{style:{"--angle":`${e.value}deg`}}),"data-label":e.label||void 0,key:t}));return(0,ne.jsxs)(jo,{ref:(0,ke.useMergedRef)(t,I),...T("root",{focusable:!0}),...E,children:[z&&z.length>0&&(0,ne.jsx)("div",{...T("marks"),children:z}),h&&(0,ne.jsx)("div",{...T("label"),children:"function"==typeof b?b(_):_}),(0,ne.jsx)("div",{tabIndex:j??(x?-1:0),role:"slider","aria-valuemax":360,"aria-valuemin":0,"aria-valuenow":_,onKeyDown:e=>{if(x)return;let t=_;if("ArrowLeft"!==e.key&&"ArrowDown"!==e.key||(t=(0,ke.normalizeRadialValue)(_-d,d)),"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(t=(0,ke.normalizeRadialValue)(_+d,d)),"Home"===e.key&&(t=0),"End"===e.key&&(t=359),g&&Array.isArray(v)){const o=v.map(e=>e.value),n=o.indexOf(_);t=-1!==n?"ArrowLeft"===e.key||"ArrowDown"===e.key?o[Math.max(0,n-1)]:"ArrowRight"===e.key||"ArrowUp"===e.key?o[Math.min(o.length-1,n+1)]:Ee(t,o):Ee(t,o)}D(t),w?.(t)},"aria-label":k,...T("thumb",{style:{transform:`rotate(${_}deg)`}})}),(0,ne.jsx)("input",{type:"hidden",name:S,value:_,...N})]})});Fl.displayName="@mantine/core/AngleSlider",Fl.classes=Al;const[Bl,Vl]=re("AppShell was not found in tree");var Hl={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Wl={},Gl=Eo((e,t)=>{const o=Jt("AppShellAside",Wl,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:u,...p}=o,m=Vl();return m.disabled?null:(0,ne.jsx)(jo,{component:"aside",ref:t,mod:[{"with-border":c??m.withBorder},u],...m.getStyles("aside",{className:r,classNames:n,styles:s,style:a}),...p,__vars:{"--app-shell-aside-z-index":`calc(${d??m.zIndex} + 1)`}})});Gl.classes=Hl,Gl.displayName="@mantine/core/AppShellAside";const Kl={},Ul=Eo((e,t)=>{const o=Jt("AppShellFooter",Kl,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:u,...p}=o,m=Vl();return m.disabled?null:(0,ne.jsx)(jo,{component:"footer",ref:t,mod:[{"with-border":c??m.withBorder},u],...m.getStyles("footer",{className:Te({[W.classNames.zeroRight]:m.offsetScrollbars},r),classNames:n,styles:s,style:a}),...p,__vars:{"--app-shell-footer-z-index":(d??m.zIndex)?.toString()}})});Ul.classes=Hl,Ul.displayName="@mantine/core/AppShellFooter";const ql={},Yl=Eo((e,t)=>{const o=Jt("AppShellHeader",ql,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:u,...p}=o,m=Vl();return m.disabled?null:(0,ne.jsx)(jo,{component:"header",ref:t,mod:[{"with-border":c??m.withBorder},u],...m.getStyles("header",{className:Te({[W.classNames.zeroRight]:m.offsetScrollbars},r),classNames:n,styles:s,style:a}),...p,__vars:{"--app-shell-header-z-index":(d??m.zIndex)?.toString()}})});Yl.classes=Hl,Yl.displayName="@mantine/core/AppShellHeader";const Xl={},Zl=Eo((e,t)=>{const o=Jt("AppShellMain",Xl,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=Vl();return(0,ne.jsx)(jo,{component:"main",ref:t,...c.getStyles("main",{className:r,style:a,classNames:n,styles:s}),...l})});function Jl(e){return"object"==typeof e?e.base:e}function Ql(e){const t="object"==typeof e&&null!==e&&void 0!==e.base&&1===Object.keys(e).length;return"number"==typeof e||"string"==typeof e||t}function ec(e){return"object"==typeof e&&null!==e&&(1!==Object.keys(e).length||!("base"in e))}function tc(e){return 0===Number(e)?"0px":fe(e)}function oc({navbar:e,header:t,aside:o,footer:n,padding:r}){const a=rt(),s=ct(),{media:i,baseStyles:l}=function({navbar:e,header:t,footer:o,aside:n,padding:r,theme:a}){const s={},i={},l={};return function({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,navbar:n,theme:r}){const a=n?.width,s="translateX(calc(var(--app-shell-navbar-width) * -1))",i="translateX(var(--app-shell-navbar-width))";if(n?.breakpoint&&!n?.collapsed?.mobile&&(o[n?.breakpoint]=o[n?.breakpoint]||{},o[n?.breakpoint]["--app-shell-navbar-width"]="100%",o[n?.breakpoint]["--app-shell-navbar-offset"]="0px"),Ql(a)){const t=J(Jl(a));e["--app-shell-navbar-width"]=t,e["--app-shell-navbar-offset"]=t}if(ec(a)&&(void 0!==a.base&&(e["--app-shell-navbar-width"]=J(a.base),e["--app-shell-navbar-offset"]=J(a.base)),G(a).forEach(e=>{"base"!==e&&(t[e]=t[e]||{},t[e]["--app-shell-navbar-width"]=J(a[e]),t[e]["--app-shell-navbar-offset"]=J(a[e]))})),n?.collapsed?.desktop){const e=n.breakpoint;t[e]=t[e]||{},t[e]["--app-shell-navbar-transform"]=s,t[e]["--app-shell-navbar-transform-rtl"]=i,t[e]["--app-shell-navbar-offset"]="0px !important"}if(n?.collapsed?.mobile){const e=we(n.breakpoint,r.breakpoints)-.1;o[e]=o[e]||{},o[e]["--app-shell-navbar-width"]="100%",o[e]["--app-shell-navbar-offset"]="0px",o[e]["--app-shell-navbar-transform"]=s,o[e]["--app-shell-navbar-transform-rtl"]=i}}({baseStyles:l,minMediaStyles:s,maxMediaStyles:i,navbar:e,theme:a}),function({baseStyles:e,minMediaStyles:t,maxMediaStyles:o,aside:n,theme:r}){const a=n?.width,s="translateX(var(--app-shell-aside-width))",i="translateX(calc(var(--app-shell-aside-width) * -1))";if(n?.breakpoint&&!n?.collapsed?.mobile&&(o[n?.breakpoint]=o[n?.breakpoint]||{},o[n?.breakpoint]["--app-shell-aside-width"]="100%",o[n?.breakpoint]["--app-shell-aside-offset"]="0px"),Ql(a)){const t=J(Jl(a));e["--app-shell-aside-width"]=t,e["--app-shell-aside-offset"]=t}if(ec(a)&&(void 0!==a.base&&(e["--app-shell-aside-width"]=J(a.base),e["--app-shell-aside-offset"]=J(a.base)),G(a).forEach(e=>{"base"!==e&&(t[e]=t[e]||{},t[e]["--app-shell-aside-width"]=J(a[e]),t[e]["--app-shell-aside-offset"]=J(a[e]))})),n?.collapsed?.desktop){const e=n.breakpoint;t[e]=t[e]||{},t[e]["--app-shell-aside-transform"]=s,t[e]["--app-shell-aside-transform-rtl"]=i,t[e]["--app-shell-aside-offset"]="0px !important"}if(n?.collapsed?.mobile){const e=we(n.breakpoint,r.breakpoints)-.1;o[e]=o[e]||{},o[e]["--app-shell-aside-width"]="100%",o[e]["--app-shell-aside-offset"]="0px",o[e]["--app-shell-aside-transform"]=s,o[e]["--app-shell-aside-transform-rtl"]=i}}({baseStyles:l,minMediaStyles:s,maxMediaStyles:i,aside:n,theme:a}),function({baseStyles:e,minMediaStyles:t,header:o}){const n=o?.height,r=o?.offset??!0;if(Ql(n)){const t=J(Jl(n));e["--app-shell-header-height"]=t,r&&(e["--app-shell-header-offset"]=t)}ec(n)&&(void 0!==n.base&&(e["--app-shell-header-height"]=J(n.base),r&&(e["--app-shell-header-offset"]=J(n.base))),G(n).forEach(e=>{"base"!==e&&(t[e]=t[e]||{},t[e]["--app-shell-header-height"]=J(n[e]),r&&(t[e]["--app-shell-header-offset"]=J(n[e])))})),o?.collapsed&&(e["--app-shell-header-transform"]="translateY(calc(var(--app-shell-header-height) * -1))",e["--app-shell-header-offset"]="0px !important")}({baseStyles:l,minMediaStyles:s,header:t}),function({baseStyles:e,minMediaStyles:t,footer:o}){const n=o?.height,r=o?.offset??!0;if(Ql(n)){const t=J(Jl(n));e["--app-shell-footer-height"]=t,r&&(e["--app-shell-footer-offset"]=t)}ec(n)&&(void 0!==n.base&&(e["--app-shell-footer-height"]=J(n.base),r&&(e["--app-shell-footer-offset"]=J(n.base))),G(n).forEach(e=>{"base"!==e&&(t[e]=t[e]||{},t[e]["--app-shell-footer-height"]=J(n[e]),r&&(t[e]["--app-shell-footer-offset"]=J(n[e])))})),o?.collapsed&&(e["--app-shell-footer-transform"]="translateY(var(--app-shell-footer-height))",e["--app-shell-footer-offset"]="0px !important")}({baseStyles:l,minMediaStyles:s,footer:o}),function({padding:e,baseStyles:t,minMediaStyles:o}){Ql(e)&&(t["--app-shell-padding"]=tc(Jl(e))),ec(e)&&(e.base&&(t["--app-shell-padding"]=tc(e.base)),G(e).forEach(t=>{"base"!==t&&(o[t]=o[t]||{},o[t]["--app-shell-padding"]=tc(e[t]))}))}({baseStyles:l,minMediaStyles:s,padding:r}),{baseStyles:l,media:[...xe(G(s),a.breakpoints).map(e=>({query:`(min-width: ${Q(e.px)})`,styles:s[e.value]})),...xe(G(i),a.breakpoints).map(e=>({query:`(max-width: ${Q(e.px)})`,styles:i[e.value]}))]}}({navbar:e,header:t,footer:n,aside:o,padding:r,theme:a});return(0,ne.jsx)(so,{media:i,styles:l,selector:s.cssVariablesSelector})}Zl.classes=Hl,Zl.displayName="@mantine/core/AppShellMain";const nc={},rc=Eo((e,t)=>{const o=Jt("AppShellNavbar",nc,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,withBorder:c,zIndex:d,mod:u,...p}=o,m=Vl();return m.disabled?null:(0,ne.jsx)(jo,{component:"nav",ref:t,mod:[{"with-border":c??m.withBorder},u],...m.getStyles("navbar",{className:r,classNames:n,styles:s,style:a}),...p,__vars:{"--app-shell-navbar-z-index":`calc(${d??m.zIndex} + 1)`}})});rc.classes=Hl,rc.displayName="@mantine/core/AppShellNavbar";const ac={},sc=_o((e,t)=>{const o=Jt("AppShellSection",ac,e),{classNames:n,className:r,style:a,styles:s,vars:i,grow:l,mod:c,...d}=o,u=Vl();return(0,ne.jsx)(jo,{ref:t,mod:[{grow:l},c],...u.getStyles("section",{className:r,style:a,classNames:n,styles:s}),...d})});sc.classes=Hl,sc.displayName="@mantine/core/AppShellSection";const ic={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:de("app")},lc=(e,{transitionDuration:t,transitionTimingFunction:o})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":o}}),cc=Eo((e,t)=>{const o=Jt("AppShell",ic,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,navbar:d,withBorder:u,padding:p,transitionDuration:m,transitionTimingFunction:f,header:h,zIndex:v,layout:y,disabled:g,aside:b,footer:w,offsetScrollbars:x="alt"!==y,mod:C,...S}=o,N=Nt({name:"AppShell",classes:Hl,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:lc}),k=function({transitionDuration:e,disabled:t}){const[o,n]=(0,a.useState)(!0),r=(0,a.useRef)(-1),s=(0,a.useRef)(-1);return(0,ke.useWindowEvent)("resize",()=>{n(!0),clearTimeout(r.current),r.current=window.setTimeout(()=>(0,a.startTransition)(()=>{n(!1)}),200)}),(0,ke.useIsomorphicEffect)(()=>{n(!0),clearTimeout(s.current),s.current=window.setTimeout(()=>(0,a.startTransition)(()=>{n(!1)}),e||0)},[t,e]),o}({disabled:g,transitionDuration:m});return(0,ne.jsxs)(Bl,{value:{getStyles:N,withBorder:u,zIndex:v,disabled:g,offsetScrollbars:x},children:[(0,ne.jsx)(oc,{navbar:d,header:h,aside:b,footer:w,padding:p}),(0,ne.jsx)(jo,{ref:t,...N("root"),mod:[{resizing:k,layout:y,disabled:g},C],...S})]})});cc.classes=Hl,cc.displayName="@mantine/core/AppShell",cc.Navbar=rc,cc.Header=Yl,cc.Main=Zl,cc.Aside=Gl,cc.Footer=Ul,cc.Section=sc;var dc={root:"m_71ac47fc"};const uc={},pc=(e,{ratio:t})=>({root:{"--ar-ratio":t?.toString()}}),mc=Eo((e,t)=>{const o=Jt("AspectRatio",uc,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,ratio:c,...d}=o,u=Nt({name:"AspectRatio",classes:dc,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:pc});return(0,ne.jsx)(jo,{ref:t,...u("root"),...d})});function fc(e){return"string"==typeof e?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:"number"==typeof e?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(e=>fc(e))}:e}function hc(e){return e?e.map(e=>fc(e)):[]}function vc(e){return e.reduce((e,t)=>"group"in t?{...e,...vc(t.items)}:(e[t.value]=t,e),{})}function yc(e){return e.reduce((e,t)=>"group"in t?{...e,...yc(t.items)}:(e[t.label]=t,e),{})}mc.classes=dc,mc.displayName="@mantine/core/AspectRatio";const[gc,bc]=re("Combobox component was not found in tree");var wc={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const xc={error:null},Cc=(e,{size:t,color:o})=>({chevron:{"--combobox-chevron-size":me(t,"combobox-chevron-size"),"--combobox-chevron-color":o?We(o,e):void 0}}),Sc=Eo((e,t)=>{const o=Jt("ComboboxChevron",xc,e),{size:n,error:r,style:a,className:s,classNames:i,styles:l,unstyled:c,vars:d,mod:u,...p}=o,m=Nt({name:"ComboboxChevron",classes:wc,props:o,style:a,className:s,classNames:i,styles:l,unstyled:c,vars:d,varsResolver:Cc,rootSelector:"chevron"});return(0,ne.jsx)(jo,{component:"svg",...p,...m("chevron"),size:n,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:r},u],ref:t,children:(0,ne.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});Sc.classes=wc,Sc.displayName="@mantine/core/ComboboxChevron";const Nc=(0,a.forwardRef)(({size:e,onMouseDown:t,onClick:o,onClear:n,...r},a)=>(0,ne.jsx)(qi.ClearButton,{ref:a,tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{n(),o?.(e)}}));Nc.displayName="@mantine/core/ComboboxClearButton";const kc={},jc=Eo((e,t)=>{const{classNames:o,styles:n,className:r,style:a,hidden:s,...i}=Jt("ComboboxDropdown",kc,e),l=bc();return(0,ne.jsx)(Ts.Dropdown,{...i,ref:t,role:"presentation","data-hidden":s||void 0,...l.getStyles("dropdown",{className:r,style:a,classNames:o,styles:n})})});jc.classes=wc,jc.displayName="@mantine/core/ComboboxDropdown";const Pc={refProp:"ref"},Rc=Eo((e,t)=>{const{children:o,refProp:n}=Jt("ComboboxDropdownTarget",Pc,e);if(bc(),!oe(o))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,ne.jsx)(Ts.Target,{ref:t,refProp:n,children:o})});Rc.displayName="@mantine/core/ComboboxDropdownTarget";const Ec={},_c=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,...i}=Jt("ComboboxEmpty",Ec,e),l=bc();return(0,ne.jsx)(jo,{ref:t,...l.getStyles("empty",{className:n,classNames:o,styles:a,style:r}),...i})});function Dc({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:o,withExpandedAttribute:n,targetType:r,autoComplete:s}){const i=bc(),[l,c]=(0,a.useState)(null);return{...o?{"aria-haspopup":"listbox","aria-expanded":n&&!(!i.store.listId||!i.store.dropdownOpened)||void 0,"aria-controls":i.store.dropdownOpened?i.store.listId:void 0,"aria-activedescendant":i.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":i.store.dropdownOpened||void 0,"data-mantine-stop-propagation":i.store.dropdownOpened||void 0}:{},onKeyDown:o=>{if(e?.(o),!i.readOnly&&t){if(o.nativeEvent.isComposing)return;if("ArrowDown"===o.nativeEvent.code&&(o.preventDefault(),i.store.dropdownOpened?c(i.store.selectNextOption()):(i.store.openDropdown("keyboard"),c(i.store.selectActiveOption()),i.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===o.nativeEvent.code&&(o.preventDefault(),i.store.dropdownOpened?c(i.store.selectPreviousOption()):(i.store.openDropdown("keyboard"),c(i.store.selectActiveOption()),i.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===o.nativeEvent.code||"NumpadEnter"===o.nativeEvent.code){if(229===o.nativeEvent.keyCode)return;const e=i.store.getSelectedOptionIndex();i.store.dropdownOpened&&-1!==e?(o.preventDefault(),i.store.clickSelectedOption()):"button"===r&&(o.preventDefault(),i.store.openDropdown("keyboard"))}"Escape"===o.key&&i.store.closeDropdown("keyboard"),"Space"===o.nativeEvent.code&&"button"===r&&(o.preventDefault(),i.store.toggleDropdown("keyboard"))}}}}_c.classes=wc,_c.displayName="@mantine/core/ComboboxEmpty";const Ic={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Tc=Eo((e,t)=>{const{children:o,refProp:n,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:c,...d}=Jt("ComboboxEventsTarget",Ic,e);if(!oe(o))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=bc(),p=Dc({targetType:l,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:i,onKeyDown:o.props.onKeyDown,autoComplete:c});return(0,a.cloneElement)(o,{...p,...d,[n]:(0,ke.useMergedRef)(t,u.store.targetRef,_e(o))})});Tc.displayName="@mantine/core/ComboboxEventsTarget";const zc={},Oc=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,...i}=Jt("ComboboxFooter",zc,e),l=bc();return(0,ne.jsx)(jo,{ref:t,...l.getStyles("footer",{className:n,classNames:o,style:r,styles:a}),...i,onMouseDown:e=>{e.preventDefault()}})});Oc.classes=wc,Oc.displayName="@mantine/core/ComboboxFooter";const Mc={},Ac=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,children:i,label:l,...c}=Jt("ComboboxGroup",Mc,e),d=bc();return(0,ne.jsxs)(jo,{ref:t,...d.getStyles("group",{className:n,classNames:o,style:r,styles:a}),...c,children:[l&&(0,ne.jsx)("div",{...d.getStyles("groupLabel",{classNames:o,styles:a}),children:l}),i]})});Ac.classes=wc,Ac.displayName="@mantine/core/ComboboxGroup";const $c={},Lc=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,...i}=Jt("ComboboxHeader",$c,e),l=bc();return(0,ne.jsx)(jo,{ref:t,...l.getStyles("header",{className:n,classNames:o,style:r,styles:a}),...i,onMouseDown:e=>{e.preventDefault()}})});function Fc({value:e,valuesDivider:t=",",...o}){return(0,ne.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...o})}Lc.classes=wc,Lc.displayName="@mantine/core/ComboboxHeader",Fc.displayName="@mantine/core/ComboboxHiddenInput";const Bc={},Vc=Eo((e,t)=>{const o=Jt("ComboboxOption",Bc,e),{classNames:n,className:r,style:s,styles:i,vars:l,onClick:c,id:d,active:u,onMouseDown:p,onMouseOver:m,disabled:f,selected:h,mod:v,...y}=o,g=bc(),b=(0,a.useId)(),w=d||b;return(0,ne.jsx)(jo,{...g.getStyles("option",{className:r,classNames:n,styles:i,style:s}),...y,ref:t,id:w,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":f,"combobox-selected":h},v],role:"option",onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(o.value,o),c?.(e))},onMouseDown:e=>{e.preventDefault(),p?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),m?.(e)}})});Vc.classes=wc,Vc.displayName="@mantine/core/ComboboxOption";const Hc={},Wc=Eo((e,t)=>{const o=Jt("ComboboxOptions",Hc,e),{classNames:n,className:r,style:s,styles:i,id:l,onMouseDown:c,labelledBy:d,...u}=o,p=bc(),m=(0,ke.useId)(l);return(0,a.useEffect)(()=>{p.store.setListId(m)},[m]),(0,ne.jsx)(jo,{ref:t,...p.getStyles("options",{className:r,style:s,classNames:n,styles:i}),...u,id:m,role:"listbox","aria-labelledby":d,onMouseDown:e=>{e.preventDefault(),c?.(e)}})});Wc.classes=wc,Wc.displayName="@mantine/core/ComboboxOptions";const Gc={withAriaAttributes:!0,withKeyboardNavigation:!0},Kc=Eo((e,t)=>{const o=Jt("ComboboxSearch",Gc,e),{classNames:n,styles:r,unstyled:a,vars:s,withAriaAttributes:i,onKeyDown:l,withKeyboardNavigation:c,size:d,...u}=o,p=bc(),m=p.getStyles("search"),f=Dc({targetType:"input",withAriaAttributes:i,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return(0,ne.jsx)(qi,{ref:(0,ke.useMergedRef)(t,p.store.searchRef),classNames:[{input:m.className},n],styles:[{input:m.style},r],size:d||p.size,...f,...u,__staticSelector:"Combobox"})});Kc.classes=wc,Kc.displayName="@mantine/core/ComboboxSearch";const Uc={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},qc=Eo((e,t)=>{const{children:o,refProp:n,withKeyboardNavigation:r,withAriaAttributes:s,withExpandedAttribute:i,targetType:l,autoComplete:c,...d}=Jt("ComboboxTarget",Uc,e);if(!oe(o))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=bc(),p=Dc({targetType:l,withAriaAttributes:s,withKeyboardNavigation:r,withExpandedAttribute:i,onKeyDown:o.props.onKeyDown,autoComplete:c}),m=(0,a.cloneElement)(o,{...p,...d});return(0,ne.jsx)(Ts.Target,{ref:(0,ke.useMergedRef)(t,u.store.targetRef),children:m})});function Yc({defaultOpened:e,opened:t,onOpenedChange:o,onDropdownClose:n,onDropdownOpen:r,loop:s=!0,scrollBehavior:i="instant"}={}){const[l,c]=(0,ke.useUncontrolled)({value:t,defaultValue:e,finalValue:!1,onChange:o}),d=(0,a.useRef)(null),u=(0,a.useRef)(-1),p=(0,a.useRef)(null),m=(0,a.useRef)(null),f=(0,a.useRef)(-1),h=(0,a.useRef)(-1),v=(0,a.useRef)(-1),y=(0,a.useCallback)((e="unknown")=>{l||(c(!0),r?.(e))},[c,r,l]),g=(0,a.useCallback)((e="unknown")=>{l&&(c(!1),n?.(e))},[c,n,l]),b=(0,a.useCallback)((e="unknown")=>{l?g(e):y(e)},[g,y,l]),w=(0,a.useCallback)(()=>{const e=document.querySelector(`#${d.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")},[]),x=(0,a.useCallback)(e=>{const t=document.getElementById(d.current),o=t?.querySelectorAll("[data-combobox-option]");if(!o)return null;const n=e>=o.length?0:e<0?o.length-1:e;return u.current=n,o?.[n]&&!o[n].hasAttribute("data-combobox-disabled")?(w(),o[n].setAttribute("data-combobox-selected","true"),o[n].setAttribute("aria-selected","true"),o[n].scrollIntoView({block:"nearest",behavior:i}),o[n].id):null},[i,w]),C=(0,a.useCallback)(()=>{const e=document.querySelector(`#${d.current} [data-combobox-active]`);if(e){const t=document.querySelectorAll(`#${d.current} [data-combobox-option]`),o=Array.from(t).findIndex(t=>t===e);return x(o)}return x(0)},[x]),S=(0,a.useCallback)(()=>x(function(e,t,o){for(let o=e+1;o<t.length;o+=1)if(!t[o].hasAttribute("data-combobox-disabled"))return o;if(o)for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),s)),[x,s]),N=(0,a.useCallback)(()=>x(function(e,t,o){for(let o=e-1;o>=0;o-=1)if(!t[o].hasAttribute("data-combobox-disabled"))return o;if(o)for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),s)),[x,s]),k=(0,a.useCallback)(()=>x(function(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}(document.querySelectorAll(`#${d.current} [data-combobox-option]`))),[x]),j=(0,a.useCallback)((e="selected",t)=>{v.current=window.setTimeout(()=>{const o=document.querySelectorAll(`#${d.current} [data-combobox-option]`),n=Array.from(o).findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=n,t?.scrollIntoView&&o[n]?.scrollIntoView({block:"nearest",behavior:i})},0)},[]),P=(0,a.useCallback)(()=>{u.current=-1,w()},[w]),R=(0,a.useCallback)(()=>{const e=document.querySelectorAll(`#${d.current} [data-combobox-option]`),t=e?.[u.current];t?.click()},[]),E=(0,a.useCallback)(e=>{d.current=e},[]),_=(0,a.useCallback)(()=>{f.current=window.setTimeout(()=>p.current.focus(),0)},[]),D=(0,a.useCallback)(()=>{h.current=window.setTimeout(()=>m.current.focus(),0)},[]),I=(0,a.useCallback)(()=>u.current,[]);return(0,a.useEffect)(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(h.current),window.clearTimeout(v.current)},[]),{dropdownOpened:l,openDropdown:y,closeDropdown:g,toggleDropdown:b,selectedOptionIndex:u.current,getSelectedOptionIndex:I,selectOption:x,selectFirstOption:k,selectActiveOption:C,selectNextOption:S,selectPreviousOption:N,resetSelectedOption:P,updateSelectedOptionIndex:j,listId:d.current,setListId:E,clickSelectedOption:R,searchRef:p,focusSearchInput:_,targetRef:m,focusTarget:D}}qc.displayName="@mantine/core/ComboboxTarget";const Xc={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},Zc=(e,{size:t,dropdownPadding:o})=>({options:{"--combobox-option-fz":ve(t),"--combobox-option-padding":me(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===o?void 0:J(o),"--combobox-option-fz":ve(t),"--combobox-option-padding":me(t,"combobox-option-padding")}});function Jc(e){const t=Jt("Combobox",Xc,e),{classNames:o,styles:n,unstyled:r,children:a,store:s,vars:i,onOptionSubmit:l,onClose:c,size:d,dropdownPadding:u,resetSelectionOnOptionHover:p,__staticSelector:m,readOnly:f,...h}=t,v=Yc(),y=s||v,g=Nt({name:m||"Combobox",classes:wc,props:t,classNames:o,styles:n,unstyled:r,vars:i,varsResolver:Zc});return(0,ne.jsx)(gc,{value:{getStyles:g,store:y,onOptionSubmit:l,size:d,resetSelectionOnOptionHover:p,readOnly:f},children:(0,ne.jsx)(Ts,{opened:y.dropdownOpened,...h,onChange:e=>!e&&(c?.(),void y.closeDropdown()),withRoles:!1,unstyled:r,children:a})})}function Qc({size:e,style:t,...o}){const n=void 0!==e?{width:J(e),height:J(e),...t}:t;return(0,ne.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,"aria-hidden":!0,...o,children:(0,ne.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ed({indeterminate:e,...t}){return e?(0,ne.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:(0,ne.jsx)("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):(0,ne.jsx)(Qc,{...t})}function td(e){return"group"in e}function od({options:e,search:t,limit:o}){const n=t.trim().toLowerCase(),r=[];for(let a=0;a<e.length;a+=1){const s=e[a];if(r.length===o)return r;td(s)&&r.push({group:s.group,items:od({options:s.items,search:t,limit:o-r.length})}),td(s)||s.label.toLowerCase().includes(n)&&r.push(s)}return r}function nd(e,t=new Set){if(Array.isArray(e))for(const o of e)if(td(o))nd(o.items,t);else{if(void 0===o.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!=typeof o.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got "+typeof o.value);if(t.has(o.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${o.value}" was provided more than once`);t.add(o.value)}}function rd({data:e,withCheckIcon:t,value:o,checkIconPosition:n,unstyled:r,renderOption:a}){if(!td(e)){const s=function(e,t){return Array.isArray(e)?e.includes(t):e===t}(o,e.value),i=t&&s&&(0,ne.jsx)(Qc,{className:wc.optionsDropdownCheckIcon}),l=(0,ne.jsxs)(ne.Fragment,{children:["left"===n&&i,(0,ne.jsx)("span",{children:e.label}),"right"===n&&i]});return(0,ne.jsx)(Jc.Option,{value:e.value,disabled:e.disabled,className:Te({[wc.optionsDropdownOption]:!r}),"data-reverse":"right"===n||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:"function"==typeof a?a({option:e,checked:s}):l})}const s=e.items.map(e=>(0,ne.jsx)(rd,{data:e,value:o,unstyled:r,withCheckIcon:t,checkIconPosition:n,renderOption:a},e.value));return(0,ne.jsx)(Jc.Group,{label:e.group,children:s})}function ad({data:e,hidden:t,hiddenWhenEmpty:o,filter:n,search:r,limit:a,maxDropdownHeight:s,withScrollArea:i=!0,filterOptions:l=!0,withCheckIcon:c=!1,value:d,checkIconPosition:u,nothingFoundMessage:p,unstyled:m,labelId:f,renderOption:h,scrollAreaProps:v,"aria-label":y}){nd(e);const g="string"==typeof r?(n||od)({options:e,search:l?r:"",limit:a??1/0}):e,b=function(e){if(0===e.length)return!0;for(const t of e){if(!("group"in t))return!1;if(t.items.length>0)return!1}return!0}(g),w=g.map(e=>(0,ne.jsx)(rd,{data:e,withCheckIcon:c,value:d,checkIconPosition:u,unstyled:m,renderOption:h},td(e)?e.group:e.value));return(0,ne.jsx)(Jc.Dropdown,{hidden:t||o&&b,"data-composed":!0,children:(0,ne.jsxs)(Jc.Options,{labelledBy:f,"aria-label":y,children:[i?(0,ne.jsx)(Ha.Autosize,{mah:s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...v,children:w}):w,b&&p&&(0,ne.jsx)(Jc.Empty,{children:p})]})})}Jc.extend=e=>e,Jc.classes=wc,Jc.displayName="@mantine/core/Combobox",Jc.Target=qc,Jc.Dropdown=jc,Jc.Options=Wc,Jc.Option=Vc,Jc.Search=Kc,Jc.Empty=_c,Jc.Chevron=Sc,Jc.Footer=Oc,Jc.Header=Lc,Jc.EventsTarget=Tc,Jc.DropdownTarget=Rc,Jc.Group=Ac,Jc.ClearButton=Nc,Jc.HiddenInput=Fc;const sd={},id=Eo((e,t)=>{const o=Jt("Autocomplete",sd,e),{classNames:n,styles:r,unstyled:s,vars:i,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:u,onFocus:p,onBlur:m,onClick:f,onChange:h,data:v,value:y,defaultValue:g,selectFirstOptionOnChange:b,onOptionSubmit:w,comboboxProps:x,readOnly:C,disabled:S,filter:N,limit:k,withScrollArea:j,maxDropdownHeight:P,size:R,id:E,renderOption:_,autoComplete:D,scrollAreaProps:I,onClear:T,clearButtonProps:z,error:O,clearable:M,rightSection:A,...$}=o,L=(0,ke.useId)(E),F=hc(v),B=vc(F),[V,H]=(0,ke.useUncontrolled)({value:y,defaultValue:g,finalValue:"",onChange:h}),W=Yc({opened:l,defaultOpened:c,onDropdownOpen:u,onDropdownClose:()=>{d?.(),W.resetSelectedOption()}}),G=e=>{H(e),W.resetSelectedOption()},{resolvedClassNames:K,resolvedStyles:U}=st({props:o,styles:r,classNames:n});(0,a.useEffect)(()=>{b&&W.selectFirstOption()},[b,V]);const q=(0,ne.jsx)(Jc.ClearButton,{...z,onClear:()=>{G(""),T?.()}});return(0,ne.jsxs)(Jc,{store:W,__staticSelector:"Autocomplete",classNames:K,styles:U,unstyled:s,readOnly:C,onOptionSubmit:e=>{w?.(e),G(B[e].label),W.closeDropdown()},size:R,...x,children:[(0,ne.jsx)(Jc.Target,{autoComplete:D,children:(0,ne.jsx)(Zi,{ref:t,...$,size:R,__staticSelector:"Autocomplete",__clearSection:q,__clearable:M&&!!V&&!S&&!C,rightSection:A,disabled:S,readOnly:C,value:V,error:O,onChange:e=>{G(e.currentTarget.value),W.openDropdown(),b&&W.selectFirstOption()},onFocus:e=>{W.openDropdown(),p?.(e)},onBlur:e=>{W.closeDropdown(),m?.(e)},onClick:e=>{W.openDropdown(),f?.(e)},classNames:K,styles:U,unstyled:s,id:L})}),(0,ne.jsx)(ad,{data:F,hidden:C||S,filter:N,search:V,limit:k,hiddenWhenEmpty:!0,withScrollArea:j,maxDropdownHeight:P,unstyled:s,labelId:$.label?`${L}-label`:void 0,"aria-label":$.label?void 0:$["aria-label"],renderOption:_,scrollAreaProps:I})]})});id.classes={...Zi.classes,...Jc.classes},id.displayName="@mantine/core/Autocomplete";const ld=(0,a.createContext)(null),cd=ld.Provider;var dd={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const ud={},pd=(e,{spacing:t})=>({group:{"--ag-spacing":fe(t)}}),md=Eo((e,t)=>{const o=Jt("AvatarGroup",ud,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,spacing:c,...d}=o,u=Nt({name:"AvatarGroup",classes:dd,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:pd,rootSelector:"group"});return(0,ne.jsx)(cd,{value:!0,children:(0,ne.jsx)(jo,{ref:t,...u("group"),...d})})});function fd(e){return(0,ne.jsx)("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ne.jsx)("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}md.classes=dd,md.displayName="@mantine/core/AvatarGroup";const hd=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function vd(e,t=2){const o=e.split(" ");return 1===o.length?e.slice(0,t).toUpperCase():o.map(e=>e[0]).slice(0,t).join("").toUpperCase()}const yd={},gd=(e,{size:t,radius:o,variant:n,gradient:r,color:a,autoContrast:s,name:i,allowedInitialsColors:l})=>{const c="initials"===a&&"string"==typeof i?function(e,t=hd){const o=function(e){let t=0;for(let o=0;o<e.length;o+=1)t=(t<<5)-t+e.charCodeAt(o),t|=0;return t}(e);return t[Math.abs(o)%t.length]}(i,l):a,d=e.variantColorResolver({color:c||"gray",theme:e,gradient:r,variant:n||"light",autoContrast:s});return{root:{"--avatar-size":me(t,"avatar-size"),"--avatar-radius":void 0===o?void 0:he(o),"--avatar-bg":c||n?d.background:void 0,"--avatar-color":c||n?d.color:void 0,"--avatar-bd":c||n?d.border:void 0}}},bd=_o((e,t)=>{const o=Jt("Avatar",yd,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,src:d,alt:u,radius:p,color:m,gradient:f,imageProps:h,children:v,autoContrast:y,mod:g,name:b,allowedInitialsColors:w,...x}=o,C={withinGroup:!!(0,a.useContext)(ld)},[S,N]=(0,a.useState)(!d),k=Nt({name:"Avatar",props:o,classes:dd,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:gd});return(0,a.useEffect)(()=>N(!d),[d]),(0,ne.jsx)(jo,{...k("root"),mod:[{"within-group":C.withinGroup},g],ref:t,...x,children:S?(0,ne.jsx)("span",{...k("placeholder"),title:u,children:v||"string"==typeof b&&vd(b)||(0,ne.jsx)(fd,{})}):(0,ne.jsx)("img",{...h,...k("image"),src:d,alt:u,onError:e=>{N(!0),h?.onError?.(e)}})})});bd.classes=dd,bd.displayName="@mantine/core/Avatar",bd.Group=md;var wd={root:"m_2ce0de02"};const xd={},Cd=(e,{radius:t})=>({root:{"--bi-radius":void 0===t?void 0:he(t)}}),Sd=_o((e,t)=>{const o=Jt("BackgroundImage",xd,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,radius:c,src:d,variant:u,...p}=o,m=Nt({name:"BackgroundImage",props:o,classes:wd,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Cd});return(0,ne.jsx)(jo,{ref:t,variant:u,...m("root",{style:{backgroundImage:`url(${d})`}}),...p})});Sd.classes=wd,Sd.displayName="@mantine/core/BackgroundImage";var Nd={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const kd={},jd=(e,{radius:t,color:o,gradient:n,variant:r,size:a,autoContrast:s})=>{const i=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:n,variant:r||"filled",autoContrast:s});return{root:{"--badge-height":me(a,"badge-height"),"--badge-padding-x":me(a,"badge-padding-x"),"--badge-fz":me(a,"badge-fz"),"--badge-radius":void 0===t?void 0:he(t),"--badge-bg":o||r?i.background:void 0,"--badge-color":o||r?i.color:void 0,"--badge-bd":o||r?i.border:void 0,"--badge-dot-color":"dot"===r?We(o,e):void 0}}},Pd=_o((e,t)=>{const o=Jt("Badge",kd,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,radius:c,color:d,gradient:u,leftSection:p,rightSection:m,children:f,variant:h,fullWidth:v,autoContrast:y,circle:g,mod:b,...w}=o,x=Nt({name:"Badge",props:o,classes:Nd,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:jd});return(0,ne.jsxs)(jo,{variant:h,mod:[{block:v,circle:g,"with-right-section":!!m,"with-left-section":!!p},b],...x("root",{variant:h}),ref:t,...w,children:[p&&(0,ne.jsx)("span",{...x("section"),"data-position":"left",children:p}),(0,ne.jsx)("span",{...x("label"),children:f}),m&&(0,ne.jsx)("span",{...x("section"),"data-position":"right",children:m})]})});Pd.classes=Nd,Pd.displayName="@mantine/core/Badge";var Rd={root:"m_ddec01c0",icon:"m_dde7bd57",cite:"m_dde51a35"};const Ed={iconSize:48},_d=(e,{color:t,iconSize:o,radius:n})=>{const r=He({color:t||e.primaryColor,theme:e,colorScheme:"dark"});return{root:{"--bq-bg-light":Ke(He({color:t||e.primaryColor,theme:e,colorScheme:"light"}).value,.07),"--bq-bg-dark":Ke(r.value,.06),"--bq-bd":We(t,e),"--bq-icon-size":J(o),"--bq-radius":he(n)}}},Dd=Eo((e,t)=>{const o=Jt("Blockquote",Ed,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,children:c,icon:d,iconSize:u,cite:p,...m}=o,f=Nt({name:"Blockquote",classes:Rd,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:_d});return(0,ne.jsxs)(jo,{component:"blockquote",ref:t,...f("root"),...m,children:[d&&(0,ne.jsx)("span",{...f("icon"),children:d}),c,p&&(0,ne.jsx)("cite",{...f("cite"),children:p})]})});Dd.classes=Rd,Dd.displayName="@mantine/core/Blockquote";var Id={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const Td={separator:"/"},zd=(e,{separatorMargin:t})=>({root:{"--bc-separator-margin":fe(t)}}),Od=Eo((e,t)=>{const o=Jt("Breadcrumbs",Td,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,children:d,separator:u,separatorMargin:p,...m}=o,f=Nt({name:"Breadcrumbs",classes:Id,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:zd}),h=a.Children.toArray(d).reduce((e,t,o,n)=>{const r=oe(t)?(0,a.cloneElement)(t,{...f("breadcrumb",{className:t.props?.className}),key:o}):(0,a.createElement)("div",{...f("breadcrumb"),key:o},t);return e.push(r),o!==n.length-1&&e.push((0,a.createElement)(jo,{...f("separator"),key:`separator-${o}`},u)),e},[]);return(0,ne.jsx)(jo,{ref:t,...f("root"),...m,children:h})});Od.classes=Id,Od.displayName="@mantine/core/Breadcrumbs";var Md={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Ad={},$d=(e,{color:t,size:o,lineSize:n,transitionDuration:r,transitionTimingFunction:a})=>({root:{"--burger-color":t?We(t,e):void 0,"--burger-size":me(o,"burger-size"),"--burger-line-size":n?J(n):void 0,"--burger-transition-duration":void 0===r?void 0:`${r}ms`,"--burger-transition-timing-function":a}}),Ld=Eo((e,t)=>{const o=Jt("Burger",Ad,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,opened:c,children:d,transitionDuration:u,transitionTimingFunction:p,lineSize:m,...f}=o,h=Nt({name:"Burger",classes:Md,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:$d});return(0,ne.jsxs)(Ua,{...h("root"),ref:t,...f,children:[(0,ne.jsx)(jo,{mod:["reduce-motion",{opened:c}],...h("burger")}),d]})});Ld.classes=Md,Ld.displayName="@mantine/core/Burger";var Fd={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const Bd={orientation:"horizontal"},Vd=(e,{borderWidth:t})=>({group:{"--button-border-width":J(t)}}),Hd=Eo((e,t)=>{const o=Jt("ButtonGroup",Bd,e),{className:n,style:r,classNames:a,styles:s,unstyled:i,orientation:l,vars:c,borderWidth:d,variant:u,mod:p,...m}=Jt("ButtonGroup",Bd,e),f=Nt({name:"ButtonGroup",props:o,classes:Fd,className:n,style:r,classNames:a,styles:s,unstyled:i,vars:c,varsResolver:Vd,rootSelector:"group"});return(0,ne.jsx)(jo,{...f("group"),ref:t,variant:u,mod:[{"data-orientation":l},p],role:"group",...m})});Hd.classes=Fd,Hd.displayName="@mantine/core/ButtonGroup";const Wd={},Gd=(e,{radius:t,color:o,gradient:n,variant:r,autoContrast:a,size:s})=>{const i=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:n,variant:r||"filled",autoContrast:a});return{groupSection:{"--section-height":me(s,"section-height"),"--section-padding-x":me(s,"section-padding-x"),"--section-fz":s?.includes("compact")?ve(s.replace("compact-","")):ve(s),"--section-radius":void 0===t?void 0:he(t),"--section-bg":o||r?i.background:void 0,"--section-color":i.color,"--section-bd":o||r?i.border:void 0}}},Kd=Eo((e,t)=>{const o=Jt("ButtonGroupSection",Wd,e),{className:n,style:r,classNames:a,styles:s,unstyled:i,vars:l,variant:c,gradient:d,radius:u,autoContrast:p,...m}=Jt("ButtonGroupSection",Wd,e),f=Nt({name:"ButtonGroupSection",props:o,classes:Fd,className:n,style:r,classNames:a,styles:s,unstyled:i,vars:l,varsResolver:Gd,rootSelector:"groupSection"});return(0,ne.jsx)(jo,{...f("groupSection"),ref:t,variant:c,...m})});Kd.classes=Fd,Kd.displayName="@mantine/core/ButtonGroupSection";const Ud={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${J(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},qd={},Yd=(e,{radius:t,color:o,gradient:n,variant:r,size:a,justify:s,autoContrast:i})=>{const l=e.variantColorResolver({color:o||e.primaryColor,theme:e,gradient:n,variant:r||"filled",autoContrast:i});return{root:{"--button-justify":s,"--button-height":me(a,"button-height"),"--button-padding-x":me(a,"button-padding-x"),"--button-fz":a?.includes("compact")?ve(a.replace("compact-","")):ve(a),"--button-radius":void 0===t?void 0:he(t),"--button-bg":o||r?l.background:void 0,"--button-hover":o||r?l.hover:void 0,"--button-color":l.color,"--button-bd":o||r?l.border:void 0,"--button-hover-color":o||r?l.hoverColor:void 0}}},Xd=_o((e,t)=>{const o=Jt("Button",qd,e),{style:n,vars:r,className:a,color:s,disabled:i,children:l,leftSection:c,rightSection:d,fullWidth:u,variant:p,radius:m,loading:f,loaderProps:h,gradient:v,classNames:y,styles:g,unstyled:b,"data-disabled":w,autoContrast:x,mod:C,...S}=o,N=Nt({name:"Button",props:o,classes:Fd,className:a,style:n,classNames:y,styles:g,unstyled:b,vars:r,varsResolver:Yd}),k=!!c,j=!!d;return(0,ne.jsxs)(Ua,{ref:t,...N("root",{active:!i&&!f&&!w}),unstyled:b,variant:p,disabled:i||f,mod:[{disabled:i||w,loading:f,block:u,"with-left-section":k,"with-right-section":j},C],...S,children:[(0,ne.jsx)(fs,{mounted:!!f,transition:Ud,duration:150,children:e=>(0,ne.jsx)(jo,{component:"span",...N("loader",{style:e}),"aria-hidden":!0,children:(0,ne.jsx)(Bs,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...h})})}),(0,ne.jsxs)("span",{...N("inner"),children:[c&&(0,ne.jsx)(jo,{component:"span",...N("section"),mod:{position:"left"},children:c}),(0,ne.jsx)(jo,{component:"span",mod:{loading:f},...N("label"),children:l}),d&&(0,ne.jsx)(jo,{component:"span",...N("section"),mod:{position:"right"},children:d})]})]})});Xd.classes=Fd,Xd.displayName="@mantine/core/Button",Xd.Group=Hd,Xd.GroupSection=Kd;const[Zd,Jd]=re("Card component was not found in tree");var Qd={root:"m_e615b15f",section:"m_599a2148"};const eu={},tu=_o((e,t)=>{const o=Jt("CardSection",eu,e),{classNames:n,className:r,style:a,styles:s,vars:i,withBorder:l,inheritPadding:c,mod:d,...u}=o,p=Jd();return(0,ne.jsx)(jo,{ref:t,mod:[{"with-border":l,"inherit-padding":c},d],...p.getStyles("section",{className:r,style:a,styles:s,classNames:n}),...u})});tu.classes=Qd,tu.displayName="@mantine/core/CardSection";const ou={},nu=(e,{padding:t})=>({root:{"--card-padding":fe(t)}}),ru=_o((e,t)=>{const o=Jt("Card",ou,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,children:d,padding:u,...p}=o,m=Nt({name:"Card",props:o,classes:Qd,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:nu}),f=a.Children.toArray(d),h=f.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===tu?(0,a.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===f.length-1||void 0}):e);return(0,ne.jsx)(Zd,{value:{getStyles:m},children:(0,ne.jsx)(es,{ref:t,unstyled:l,...m("root"),...p,children:h})})});ru.classes=Qd,ru.displayName="@mantine/core/Card",ru.Section=tu;var au={root:"m_4451eb3a"};const su={},iu=_o((e,t)=>{const o=Jt("Center",su,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,inline:c,mod:d,...u}=o,p=Nt({name:"Center",props:o,classes:au,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l});return(0,ne.jsx)(jo,{ref:t,mod:[{inline:c},d],...p("root"),...u})});iu.classes=au,iu.displayName="@mantine/core/Center";var lu={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const cu=lu,du=(0,a.forwardRef)(({__staticSelector:e,__stylesApiProps:t,className:o,classNames:n,styles:r,unstyled:a,children:s,label:i,description:l,id:c,disabled:d,error:u,size:p,labelPosition:m="left",bodyElement:f="div",labelElement:h="label",variant:v,style:y,vars:g,mod:b,...w},x)=>{const C=Nt({name:e,props:t,className:o,style:y,classes:lu,classNames:n,styles:r,unstyled:a});return(0,ne.jsx)(jo,{...C("root"),ref:x,__vars:{"--label-fz":ve(p),"--label-lh":me(p,"label-lh")},mod:[{"label-position":m},b],variant:v,size:p,...w,children:(0,ne.jsxs)(jo,{component:f,htmlFor:"label"===f?c:void 0,...C("body"),children:[s,(0,ne.jsxs)("div",{...C("labelWrapper"),"data-disabled":d||void 0,children:[i&&(0,ne.jsx)(jo,{component:h,htmlFor:"label"===h?c:void 0,...C("label"),"data-disabled":d||void 0,children:i}),l&&(0,ne.jsx)(qi.Description,{size:p,__inheritStyles:!1,...C("description"),children:l}),u&&"boolean"!=typeof u&&(0,ne.jsx)(qi.Error,{size:p,__inheritStyles:!1,...C("error"),children:u})]})]})})});du.displayName="@mantine/core/InlineInput";const uu=(0,a.createContext)(null),pu=uu.Provider,mu=()=>(0,a.useContext)(uu),[fu,hu]=ae();var vu={card:"m_26775b0a"};const yu={withBorder:!0},gu=(e,{radius:t})=>({card:{"--card-radius":he(t)}}),bu=Eo((e,t)=>{const o=Jt("CheckboxCard",yu,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,checked:c,mod:d,withBorder:u,value:p,onClick:m,defaultChecked:f,onChange:h,...v}=o,y=Nt({name:"CheckboxCard",classes:vu,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:gu,rootSelector:"card"}),g=mu(),b="boolean"==typeof c?c:g?g.value.includes(p||""):void 0,[w,x]=(0,ke.useUncontrolled)({value:b,defaultValue:f,finalValue:!1,onChange:h});return(0,ne.jsx)(fu,{value:{checked:w},children:(0,ne.jsx)(Ua,{ref:t,mod:[{"with-border":u,checked:w},d],...y("card"),...v,role:"checkbox","aria-checked":w,onClick:e=>{m?.(e),g?.onChange(p||""),x(!w)}})})});function wu({children:e,role:t}){const o=Ei();return o?(0,ne.jsx)("div",{role:t,"aria-labelledby":o.labelId,"aria-describedby":o.describedBy,children:e}):(0,ne.jsx)(ne.Fragment,{children:e})}bu.displayName="@mantine/core/CheckboxCard",bu.classes=vu;const xu={},Cu=Eo((e,t)=>{const{value:o,defaultValue:n,onChange:r,size:a,wrapperProps:s,children:i,readOnly:l,...c}=Jt("CheckboxGroup",xu,e),[d,u]=(0,ke.useUncontrolled)({value:o,defaultValue:n,finalValue:[],onChange:r});return(0,ne.jsx)(pu,{value:{value:d,onChange:e=>{const t="string"==typeof e?e:e.currentTarget.value;!l&&u(d.includes(t)?d.filter(e=>e!==t):[...d,t])},size:a},children:(0,ne.jsx)(qi.Wrapper,{size:a,ref:t,...s,...c,labelElement:"div",__staticSelector:"CheckboxGroup",children:(0,ne.jsx)(wu,{role:"group",children:i})})})});Cu.classes=qi.Wrapper.classes,Cu.displayName="@mantine/core/CheckboxGroup";var Su={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const Nu={icon:ed},ku=(e,{radius:t,color:o,size:n,iconColor:r,variant:a,autoContrast:s})=>{const i=He({color:o||e.primaryColor,theme:e}),l=i.isThemeColor&&void 0===i.shade?`var(--mantine-color-${i.color}-outline)`:i.color;return{indicator:{"--checkbox-size":me(n,"checkbox-size"),"--checkbox-radius":void 0===t?void 0:he(t),"--checkbox-color":"outline"===a?l:We(o,e),"--checkbox-icon-color":r?We(r,e):_t(s,e)?Rt({color:o,theme:e,autoContrast:s}):void 0}}},ju=Eo((e,t)=>{const o=Jt("CheckboxIndicator",Nu,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,icon:c,indeterminate:d,radius:u,color:p,iconColor:m,autoContrast:f,checked:h,mod:v,variant:y,disabled:g,...b}=o,w=c,x=Nt({name:"CheckboxIndicator",classes:Su,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:ku,rootSelector:"indicator"}),C=hu(),S="boolean"==typeof h||"boolean"==typeof d?h||d:C?.checked||!1;return(0,ne.jsx)(jo,{ref:t,...x("indicator",{variant:y}),variant:y,mod:[{checked:S,disabled:g},v],...b,children:(0,ne.jsx)(w,{indeterminate:d,...x("icon")})})});ju.displayName="@mantine/core/CheckboxIndicator",ju.classes=Su;var Pu={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","input--outline":"m_215c4542"};const Ru={labelPosition:"right",icon:ed},Eu=(e,{radius:t,color:o,size:n,iconColor:r,variant:a,autoContrast:s})=>{const i=He({color:o||e.primaryColor,theme:e}),l=i.isThemeColor&&void 0===i.shade?`var(--mantine-color-${i.color}-outline)`:i.color;return{root:{"--checkbox-size":me(n,"checkbox-size"),"--checkbox-radius":void 0===t?void 0:he(t),"--checkbox-color":"outline"===a?l:We(o,e),"--checkbox-icon-color":r?We(r,e):_t(s,e)?Rt({color:o,theme:e,autoContrast:s}):void 0}}},_u=Eo((e,t)=>{const o=Jt("Checkbox",Ru,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,color:d,label:u,id:p,size:m,radius:f,wrapperProps:h,checked:v,labelPosition:y,description:g,error:b,disabled:w,variant:x,indeterminate:C,icon:S,rootRef:N,iconColor:k,onChange:j,autoContrast:P,mod:R,...E}=o,_=mu(),D=m||_?.size,I=S,T=Nt({name:"Checkbox",props:o,classes:Pu,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Eu}),{styleProps:z,rest:O}=io(E),M=(0,ke.useId)(p),A=_?{checked:_.value.includes(O.value),onChange:e=>{_.onChange(e),j?.(e)}}:{},$=(0,a.useRef)(null),L=t||$;return(0,a.useEffect)(()=>{L&&"current"in L&&L.current&&(L.current.indeterminate=C||!1)},[C,L]),(0,ne.jsx)(du,{...T("root"),__staticSelector:"Checkbox",__stylesApiProps:o,id:M,size:D,labelPosition:y,label:u,description:g,error:b,disabled:w,classNames:n,styles:i,unstyled:l,"data-checked":A.checked||v||void 0,variant:x,ref:N,mod:R,...z,...h,children:(0,ne.jsxs)(jo,{...T("inner"),mod:{"data-label-position":y},children:[(0,ne.jsx)(jo,{component:"input",id:M,ref:L,checked:v,disabled:w,mod:{error:!!b,indeterminate:C},...T("input",{focusable:!0,variant:x}),onChange:j,...O,...A,type:"checkbox"}),(0,ne.jsx)(I,{indeterminate:C,...T("icon")})]})})});_u.classes={...Pu,...cu},_u.displayName="@mantine/core/Checkbox",_u.Group=Cu,_u.Indicator=ju,_u.Card=bu;const[Du,Iu]=ae(),Tu={};function zu(e){const{value:t,defaultValue:o,onChange:n,multiple:r,children:a}=Jt("ChipGroup",Tu,e),[s,i]=(0,ke.useUncontrolled)({value:t,defaultValue:o,finalValue:r?[]:null,onChange:n});return(0,ne.jsx)(Du,{value:{isChipSelected:e=>Array.isArray(s)?s.includes(e):e===s,onChange:e=>{const t=e.currentTarget.value;Array.isArray(s)?i(s.includes(t)?s.filter(e=>e!==t):[...s,t]):i(t)},multiple:r},children:a})}zu.displayName="@mantine/core/ChipGroup";var Ou={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};const Mu={type:"checkbox"},Au=(e,{size:t,radius:o,variant:n,color:r,autoContrast:a})=>{const s=e.variantColorResolver({color:r||e.primaryColor,theme:e,variant:n||"filled",autoContrast:a});return{root:{"--chip-fz":ve(t),"--chip-size":me(t,"chip-size"),"--chip-radius":void 0===o?void 0:he(o),"--chip-checked-padding":me(t,"chip-checked-padding"),"--chip-padding":me(t,"chip-padding"),"--chip-icon-size":me(t,"chip-icon-size"),"--chip-bg":r||n?s.background:void 0,"--chip-hover":r||n?s.hover:void 0,"--chip-color":r||n?s.color:void 0,"--chip-bd":r||n?s.border:void 0,"--chip-spacing":me(t,"chip-spacing")}}},$u=Eo((e,t)=>{const o=Jt("Chip",Mu,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,id:c,checked:d,defaultChecked:u,onChange:p,value:m,wrapperProps:f,type:h,disabled:v,children:y,size:g,variant:b,icon:w,rootRef:x,autoContrast:C,mod:S,...N}=o,k=Nt({name:"Chip",classes:Ou,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Au}),j=Iu(),P=(0,ke.useId)(c),{styleProps:R,rest:E}=io(N),[_,D]=(0,ke.useUncontrolled)({value:d,defaultValue:u,finalValue:!1,onChange:p}),I=j?{checked:j.isChipSelected(m),onChange:e=>{j.onChange(e),p?.(e.currentTarget.checked)},type:j.multiple?"checkbox":"radio"}:{},T=I.checked||_;return(0,ne.jsxs)(jo,{size:g,variant:b,ref:x,mod:S,...k("root"),...R,...f,children:[(0,ne.jsx)("input",{type:h,...k("input"),checked:T,onChange:e=>D(e.currentTarget.checked),id:P,disabled:v,ref:t,value:m,...I,...E}),(0,ne.jsxs)("label",{htmlFor:P,"data-checked":T||void 0,"data-disabled":v||void 0,...k("label",{variant:b||"filled"}),children:[T&&(0,ne.jsx)("span",{...k("iconWrapper"),children:w||(0,ne.jsx)(Qc,{...k("checkIcon")})}),(0,ne.jsx)("span",{children:y})]})]})});$u.classes=Ou,$u.displayName="@mantine/core/Chip",$u.Group=zu;var Lu={root:"m_b183c0a2"};const Fu={},Bu=(e,{color:t})=>({root:{"--code-bg":t?We(t,e):void 0}}),Vu=Eo((e,t)=>{const o=Jt("Code",Fu,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,color:c,block:d,variant:u,mod:p,...m}=o,f=Nt({name:"Code",props:o,classes:Lu,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Bu});return(0,ne.jsx)(jo,{component:d?"pre":"code",variant:u,ref:t,mod:[{block:d},p],...f("root"),...m,dir:"ltr"})});Vu.classes=Lu,Vu.displayName="@mantine/core/Code";var Hu={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const Wu={withShadow:!0},Gu=(e,{radius:t,size:o})=>({root:{"--cs-radius":void 0===t?void 0:he(t),"--cs-size":J(o)}}),Ku=_o((e,t)=>{const o=Jt("ColorSwatch",Wu,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,color:c,size:d,radius:u,withShadow:p,children:m,variant:f,...h}=Jt("ColorSwatch",Wu,o),v=Nt({name:"ColorSwatch",props:o,classes:Hu,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Gu});return(0,ne.jsxs)(jo,{ref:t,variant:f,size:d,...v("root",{focusable:!0}),...h,children:[(0,ne.jsx)("span",{...v("alphaOverlay")}),p&&(0,ne.jsx)("span",{...v("shadowOverlay")}),(0,ne.jsx)("span",{...v("colorOverlay",{style:{backgroundColor:c}})}),(0,ne.jsx)("span",{...v("childrenOverlay"),children:m})]})});Ku.classes=Hu,Ku.displayName="@mantine/core/ColorSwatch";const[Uu,qu]=ae(null),Yu=(0,a.forwardRef)(({position:e,...t},o)=>(0,ne.jsx)(jo,{ref:o,__vars:{"--thumb-y-offset":100*e.y+"%","--thumb-x-offset":100*e.x+"%"},...t}));Yu.displayName="@mantine/core/ColorPickerThumb";var Xu={wrapper:"m_fee9c77",preview:"m_9dddfbac",body:"m_bffecc3e",sliders:"m_3283bb96",thumb:"m_40d572ba",swatch:"m_d8ee6fd8",swatches:"m_5711e686",saturation:"m_202a296e",saturationOverlay:"m_11b3db02",slider:"m_d856d47d",sliderOverlay:"m_8f327113"};const Zu={},Ju=Eo((e,t)=>{const o=Jt("ColorSlider",Zu,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,onChange:d,onChangeEnd:u,maxValue:p,round:m,size:f="md",focusable:h=!0,value:v,overlays:y,thumbColor:g="transparent",onScrubStart:b,onScrubEnd:w,__staticSelector:x="ColorPicker",...C}=o,S=Nt({name:x,classes:Xu,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l}),N=qu()?.getStyles,k=N||S,j=rt(),[P,R]=(0,a.useState)({y:0,x:v/p}),E=(0,a.useRef)(P),_=e=>m?Math.round(e*p):e*p,{ref:D}=(0,ke.useMove)(({x:e,y:t})=>{E.current={x:e,y:t},d?.(_(e))},{onScrubEnd:()=>{const{x:e}=E.current;u?.(_(e)),w?.()},onScrubStart:b});(0,ke.useDidUpdate)(()=>{R({y:0,x:v/p})},[v]);const I=(e,t)=>{e.preventDefault();const o=(0,ke.clampUseMovePosition)(t);d?.(_(o.x)),u?.(_(o.x))},T=y.map((e,t)=>(0,a.createElement)("div",{...k("sliderOverlay"),style:e,key:t}));return(0,ne.jsxs)(jo,{...C,ref:(0,ke.useMergedRef)(D,t),...k("slider"),role:"slider","aria-valuenow":v,"aria-valuemax":p,"aria-valuemin":0,tabIndex:h?0:-1,onKeyDown:e=>{switch(e.key){case"ArrowRight":I(e,{x:P.x+.05,y:P.y});break;case"ArrowLeft":I(e,{x:P.x-.05,y:P.y})}},"data-focus-ring":j.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${f})`},children:[T,(0,ne.jsx)(Yu,{position:P,...k("thumb",{style:{top:J(1),background:g}})})]})});function Qu(e,t=0,o=10**t){return Math.round(o*e)/o}Ju.displayName="@mantine/core/ColorSlider";const ep={grad:.9,turn:360,rad:360/(2*Math.PI)};function tp(e,t="deg"){return Number(e)*(ep[t]||1)}const op=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function np(e){const t=op.exec(e);return t?function({h:e,s:t,l:o,a:n}){const r=t*((o<50?o:100-o)/100);return{h:e,s:r>0?2*r/(o+r)*100:0,v:o+r,a:n}}({h:tp(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}function rp({r:e,g:t,b:o,a:n}){const r=Math.max(e,t,o),a=r-Math.min(e,t,o),s=a?r===e?(t-o)/a:r===t?2+(o-e)/a:4+(e-t)/a:0;return{h:Qu(60*(s<0?s+6:s),3),s:Qu(r?a/r*100:0,3),v:Qu(r/255*100,3),a:n}}function ap(e){const t="#"===e[0]?e.slice(1):e;return 3===t.length?rp({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):rp({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}const sp=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function ip(e){const t=sp.exec(e);return t?rp({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}const lp={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},cp={hex:ap,hexa:function(e){const t="#"===e[0]?e.slice(1):e,o=e=>Qu(parseInt(e,16)/255,3);if(4===t.length){const e=t.slice(0,3),n=o(t[3]+t[3]);return{...ap(e),a:n}}const n=t.slice(0,6),r=o(t.slice(6,8));return{...ap(n),a:r}},rgb:ip,rgba:ip,hsl:np,hsla:np};function dp(e){for(const[,t]of Object.entries(lp))if(t.test(e))return!0;return!1}function up(e){if("string"!=typeof e)return{h:0,s:0,v:0,a:1};if("transparent"===e)return{h:0,s:0,v:0,a:0};const t=e.trim();for(const[e,o]of Object.entries(lp))if(o.test(t))return cp[e](t);return{h:0,s:0,v:0,a:1}}const pp={},mp=(0,a.forwardRef)((e,t)=>{const{value:o,onChange:n,onChangeEnd:r,color:a,...s}=Jt("AlphaSlider",pp,e);return(0,ne.jsx)(Ju,{...s,ref:t,value:o,onChange:e=>n?.(Qu(e,2)),onChangeEnd:e=>r?.(Qu(e,2)),maxValue:1,round:!1,"data-alpha":!0,overlays:[{backgroundImage:"linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)",backgroundSize:`${J(8)} ${J(8)}`,backgroundPosition:`0 0, 0 ${J(4)}, ${J(4)} ${J(-4)}, ${J(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${a})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${J(1)} inset, rgb(0, 0, 0, .15) 0 0 ${J(4)} inset`}]})});function fp({h:e,s:t,v:o,a:n}){const r=e/360*6,a=t/100,s=o/100,i=Math.floor(r),l=s*(1-a),c=s*(1-(r-i)*a),d=s*(1-(1-r+i)*a),u=i%6;return{r:Qu(255*[s,c,l,l,d,s][u]),g:Qu(255*[d,s,s,c,l,l][u]),b:Qu(255*[l,l,d,s,s,c][u]),a:Qu(n,2)}}function hp(e,t){const{r:o,g:n,b:r,a}=fp(e);return t?`rgba(${o}, ${n}, ${r}, ${Qu(a,2)})`:`rgb(${o}, ${n}, ${r})`}function vp({h:e,s:t,v:o,a:n},r){const a=(200-t)*o/100,s=Math.round(e),i=Math.round(a>0&&a<200?t*o/100/(a<=100?a:200-a)*100:0),l=Math.round(a/2);return r?`hsla(${s}, ${i}%, ${l}%, ${Qu(n,2)})`:`hsl(${s}, ${i}%, ${l}%)`}function yp(e){const t=e.toString(16);return t.length<2?`0${t}`:t}function gp(e){const{r:t,g:o,b:n}=fp(e);return`#${yp(t)}${yp(o)}${yp(n)}`}mp.displayName="@mantine/core/AlphaSlider";const bp={hex:gp,hexa:e=>function(e){const t=Math.round(255*e.a);return`${gp(e)}${yp(t)}`}(e),rgb:e=>hp(e,!1),rgba:e=>hp(e,!0),hsl:e=>vp(e,!1),hsla:e=>vp(e,!0)};function wp(e,t){return t?e in bp?bp[e](t):bp.hex(t):"#000000"}const xp=(0,a.forwardRef)((e,t)=>{const{value:o,onChange:n,onChangeEnd:r,color:a,...s}=Jt("HueSlider",{},e);return(0,ne.jsx)(Ju,{...s,ref:t,value:o,onChange:n,onChangeEnd:r,maxValue:360,thumbColor:`hsl(${o}, 100%, 50%)`,round:!0,"data-hue":!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${J(1)} inset, rgb(0, 0, 0, .15) 0 0 ${J(4)} inset`}]})});function Cp({className:e,onChange:t,onChangeEnd:o,value:n,saturationLabel:r,focusable:s=!0,size:i,color:l,onScrubStart:c,onScrubEnd:d,...u}){const{getStyles:p}=qu(),[m,f]=(0,a.useState)({x:n.s/100,y:1-n.v/100}),h=(0,a.useRef)(m),{ref:v}=(0,ke.useMove)(({x:e,y:o})=>{h.current={x:e,y:o},t({s:Math.round(100*e),v:Math.round(100*(1-o))})},{onScrubEnd:()=>{const{x:e,y:t}=h.current;o({s:Math.round(100*e),v:Math.round(100*(1-t))}),d?.()},onScrubStart:c});(0,a.useEffect)(()=>{f({x:n.s/100,y:1-n.v/100})},[n.s,n.v]);const y=(e,n)=>{e.preventDefault();const r=(0,ke.clampUseMovePosition)(n);t({s:Math.round(100*r.x),v:Math.round(100*(1-r.y))}),o({s:Math.round(100*r.x),v:Math.round(100*(1-r.y))})};return(0,ne.jsxs)(jo,{...p("saturation"),ref:v,...u,role:"slider","aria-label":r,"aria-valuenow":m.x,"aria-valuetext":wp("rgba",n),tabIndex:s?0:-1,onKeyDown:e=>{switch(e.key){case"ArrowUp":y(e,{y:m.y-.05,x:m.x});break;case"ArrowDown":y(e,{y:m.y+.05,x:m.x});break;case"ArrowRight":y(e,{x:m.x+.05,y:m.y});break;case"ArrowLeft":y(e,{x:m.x-.05,y:m.y})}},children:[(0,ne.jsx)("div",{...p("saturationOverlay",{style:{backgroundColor:`hsl(${n.h}, 100%, 50%)`}})}),(0,ne.jsx)("div",{...p("saturationOverlay",{style:{backgroundImage:"linear-gradient(90deg, #fff, transparent)"}})}),(0,ne.jsx)("div",{...p("saturationOverlay",{style:{backgroundImage:"linear-gradient(0deg, #000, transparent)"}})}),(0,ne.jsx)(Yu,{position:m,...p("thumb",{style:{backgroundColor:l}})})]})}xp.displayName="@mantine/core/HueSlider",Cp.displayName="@mantine/core/Saturation";const Sp=(0,a.forwardRef)(({className:e,datatype:t,setValue:o,onChangeEnd:n,size:r,focusable:s,data:i,swatchesPerRow:l,...c},d)=>{const u=qu(),p=i.map((e,t)=>(0,a.createElement)(Ku,{...u.getStyles("swatch"),unstyled:u.unstyled,component:"button",type:"button",color:e,key:t,radius:"sm",onClick:()=>{o(e),n?.(e)},"aria-label":e,tabIndex:s?0:-1,"data-swatch":!0}));return(0,ne.jsx)(jo,{...u.getStyles("swatches"),ref:d,...c,children:p})});Sp.displayName="@mantine/core/Swatches";const Np={swatchesPerRow:7,withPicker:!0,focusable:!0,size:"md",__staticSelector:"ColorPicker"},kp=(e,{size:t,swatchesPerRow:o})=>({wrapper:{"--cp-preview-size":me(t,"cp-preview-size"),"--cp-width":me(t,"cp-width"),"--cp-body-spacing":fe(t),"--cp-swatch-size":100/o+"%","--cp-thumb-size":me(t,"cp-thumb-size"),"--cp-saturation-height":me(t,"cp-saturation-height")}}),jp=Eo((e,t)=>{const o=Jt("ColorPicker",Np,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,format:d,value:u,defaultValue:p,onChange:m,onChangeEnd:f,withPicker:h,size:v,saturationLabel:y,hueLabel:g,alphaLabel:b,focusable:w,swatches:x,swatchesPerRow:C,fullWidth:S,onColorSwatchClick:N,__staticSelector:k,mod:j,...P}=o,R=Nt({name:k,props:o,classes:Xu,className:r,style:s,classNames:n,styles:i,unstyled:l,rootSelector:"wrapper",vars:c,varsResolver:kp}),E=(0,a.useRef)(d),_=(0,a.useRef)(""),D=(0,a.useRef)(-1),I=(0,a.useRef)(!1),T="hexa"===d||"rgba"===d||"hsla"===d,[z,O,M]=(0,ke.useUncontrolled)({value:u,defaultValue:p,finalValue:"#FFFFFF",onChange:m}),[A,$]=(0,a.useState)(up(z)),L=()=>{window.clearTimeout(D.current),I.current=!0},F=()=>{window.clearTimeout(D.current),D.current=window.setTimeout(()=>{I.current=!1},200)},B=e=>{$(t=>{const o={...t,...e};return _.current=wp(E.current,o),o}),O(_.current)};return(0,ke.useDidUpdate)(()=>{dp(u)&&!I.current&&$(up(u))},[u]),(0,ke.useDidUpdate)(()=>{E.current=d,O(wp(d,A))},[d]),(0,ne.jsx)(Uu,{value:{getStyles:R,unstyled:l},children:(0,ne.jsxs)(jo,{ref:t,...R("wrapper"),size:v,mod:[{"full-width":S},j],...P,children:[h&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Cp,{value:A,onChange:B,onChangeEnd:({s:e,v:t})=>f?.(wp(E.current,{...A,s:e,v:t})),color:z,size:v,focusable:w,saturationLabel:y,onScrubStart:L,onScrubEnd:F}),(0,ne.jsxs)("div",{...R("body"),children:[(0,ne.jsxs)("div",{...R("sliders"),children:[(0,ne.jsx)(xp,{value:A.h,onChange:e=>B({h:e}),onChangeEnd:e=>f?.(wp(E.current,{...A,h:e})),size:v,focusable:w,"aria-label":g,onScrubStart:L,onScrubEnd:F}),T&&(0,ne.jsx)(mp,{value:A.a,onChange:e=>B({a:e}),onChangeEnd:e=>{f?.(wp(E.current,{...A,a:e}))},size:v,color:wp("hex",A),focusable:w,"aria-label":b,onScrubStart:L,onScrubEnd:F})]}),T&&(0,ne.jsx)(Ku,{color:z,radius:"sm",size:"var(--cp-preview-size)",...R("preview")})]})]}),Array.isArray(x)&&(0,ne.jsx)(Sp,{data:x,swatchesPerRow:C,focusable:w,setValue:O,onChangeEnd:e=>{const t=wp(d,up(e));N?.(t),f?.(t),M||$(up(e))}})]})})});function Pp({style:e,...t}){return(0,ne.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--ci-eye-dropper-icon-size)",height:"var(--ci-eye-dropper-icon-size)",...e},viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...t,children:[(0,ne.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ne.jsx)("path",{d:"M11 7l6 6"}),(0,ne.jsx)("path",{d:"M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z"})]})}jp.classes=Xu,jp.displayName="@mantine/core/ColorPicker";var Rp={eyeDropperIcon:"m_b077c2bc",colorPreview:"m_c5ccdcab",dropdown:"m_5ece2cd7"};const Ep={format:"hex",fixOnBlur:!0,withPreview:!0,swatchesPerRow:7,withPicker:!0,popoverProps:{transitionProps:{transition:"fade",duration:0}},withEyeDropper:!0},_p=(e,{size:t})=>({eyeDropperIcon:{"--ci-eye-dropper-icon-size":me(t,"ci-eye-dropper-icon-size")},colorPreview:{"--ci-preview-size":me(t,"ci-preview-size")}}),Dp=Eo((e,t)=>{const o=Jt("ColorInput",Ep,e),{classNames:n,styles:r,unstyled:s,disallowInput:i,fixOnBlur:l,popoverProps:c,withPreview:d,withEyeDropper:u,eyeDropperIcon:p,closeOnColorSwatchClick:m,eyeDropperButtonProps:f,value:h,defaultValue:v,onChange:y,onChangeEnd:g,onClick:b,onFocus:w,onBlur:x,inputProps:C,format:S,wrapperProps:N,readOnly:k,withPicker:j,swatches:P,disabled:R,leftSection:E,rightSection:_,swatchesPerRow:D,...I}=Yi("ColorInput",Ep,e),T=Nt({name:"ColorInput",props:o,classes:Rp,classNames:n,styles:r,unstyled:s,rootSelector:"wrapper",vars:o.vars,varsResolver:_p}),{resolvedClassNames:z,resolvedStyles:O}=st({classNames:n,styles:r,props:o}),[M,A]=(0,a.useState)(!1),[$,L]=(0,a.useState)(""),[F,B]=(0,ke.useUncontrolled)({value:h,defaultValue:v,finalValue:"",onChange:y}),{supported:V,open:H}=(0,ke.useEyeDropper)(),W=(0,ne.jsx)(Zs,{...f,...T("eyeDropperButton",{className:f?.className,style:f?.style}),variant:"subtle",color:"gray",size:C.size,unstyled:s,onClick:()=>H().then(e=>{if(e?.sRGBHex){const t=wp(S,up(e.sRGBHex));B(t),g?.(t)}}).catch(()=>{}),children:p||(0,ne.jsx)(Pp,{...T("eyeDropperIcon")})});return(0,a.useEffect)(()=>{(dp(F)||""===F.trim())&&L(F)},[F]),(0,ke.useDidUpdate)(()=>{dp(F)&&B(wp(S,up(F)))},[S]),(0,ne.jsx)(qi.Wrapper,{...N,classNames:z,styles:O,__staticSelector:"ColorInput",children:(0,ne.jsxs)(Ts,{__staticSelector:"ColorInput",position:"bottom-start",offset:5,opened:M,...c,classNames:z,styles:O,unstyled:s,withRoles:!1,disabled:k||!1===j&&(!Array.isArray(P)||0===P.length),children:[(0,ne.jsx)(Ts.Target,{children:(0,ne.jsx)(qi,{autoComplete:"off",...I,...C,classNames:z,styles:O,disabled:R,ref:t,__staticSelector:"ColorInput",onFocus:e=>{w?.(e),A(!0)},onBlur:e=>{l&&B($),x?.(e),A(!1)},onClick:e=>{b?.(e),A(!0)},spellCheck:!1,value:F,onChange:e=>{const t=e.currentTarget.value;B(t),dp(t)&&g?.(wp(S,up(t)))},leftSection:E||(d?(0,ne.jsx)(Ku,{color:dp(F)?F:"#fff",size:"var(--ci-preview-size)",...T("colorPreview")}):null),readOnly:i||k,pointer:i,unstyled:s,rightSection:_||(u&&!R&&!k&&V?W:null)})}),(0,ne.jsx)(Ts.Dropdown,{onMouseDown:e=>e.preventDefault(),className:Rp.dropdown,children:(0,ne.jsx)(jp,{__staticSelector:"ColorInput",value:F,onChange:B,onChangeEnd:g,format:S,swatches:P,swatchesPerRow:D,withPicker:j,size:C.size,focusable:!1,unstyled:s,styles:O,classNames:z,onColorSwatchClick:()=>m&&A(!1)})})]})})});function Ip({defaultOpened:e,opened:t,onOpenedChange:o,onDropdownClose:n,onDropdownOpen:r,loop:s=!0,totalOptionsCount:i,isOptionDisabled:l=()=>!1,getOptionId:c,selectedOptionIndex:d,setSelectedOptionIndex:u,activeOptionIndex:p,onSelectedOptionSubmit:m}={totalOptionsCount:0,getOptionId:()=>null,selectedOptionIndex:1,setSelectedOptionIndex:()=>{},onSelectedOptionSubmit:()=>{}}){const[f,h]=(0,ke.useUncontrolled)({value:t,defaultValue:e,finalValue:!1,onChange:o}),v=(0,a.useRef)(null),y=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(-1),w=(0,a.useRef)(-1),x=()=>{f||(h(!0),r?.())},C=()=>{f&&(h(!1),n?.())},S=e=>{const t=e>=i?0:e<0?i-1:e;return u(t),c(t)};(0,a.useEffect)(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(w.current)},[]);const N=(0,a.useCallback)(()=>d,[]);return{dropdownOpened:f,openDropdown:x,closeDropdown:C,toggleDropdown:()=>{f?C():x()},selectedOptionIndex:d,getSelectedOptionIndex:N,selectOption:S,selectFirstOption:()=>S(function({totalOptionsCount:e,isOptionDisabled:t}){for(let o=0;o<e;o+=1)if(!t(o))return o;return-1}({isOptionDisabled:l,totalOptionsCount:i})),selectActiveOption:()=>S(p??0),selectNextOption:()=>S(function({currentIndex:e,isOptionDisabled:t,totalOptionsCount:o,loop:n}){for(let n=e+1;n<o;n+=1)if(!t(n))return n;if(n)for(let e=0;e<o;e+=1)if(!t(e))return e;return e}({currentIndex:d,isOptionDisabled:l,totalOptionsCount:i,loop:s})),selectPreviousOption:()=>S(function({currentIndex:e,isOptionDisabled:t,totalOptionsCount:o,loop:n}){for(let o=e-1;o>=0;o-=1)if(!t(o))return o;if(n)for(let e=o-1;e>-1;e-=1)if(!t(e))return e;return e}({currentIndex:d,isOptionDisabled:l,totalOptionsCount:i,loop:s})),resetSelectedOption:()=>{u(-1)},updateSelectedOptionIndex:()=>{},listId:v.current,setListId:e=>{v.current=e},clickSelectedOption:()=>{m?.(d)},searchRef:y,focusSearchInput:()=>{b.current=window.setTimeout(()=>y.current.focus(),0)},targetRef:g,focusTarget:()=>{w.current=window.setTimeout(()=>g.current.focus(),0)}}}Dp.classes=Zi.classes,Dp.displayName="@mantine/core/ColorInput";var Tp={root:"m_7485cace"};const zp={},Op=(e,{size:t,fluid:o})=>({root:{"--container-size":o?void 0:me(t,"container-size")}}),Mp=Eo((e,t)=>{const o=Jt("Container",zp,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,fluid:c,mod:d,...u}=o,p=Nt({name:"Container",classes:Tp,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Op});return(0,ne.jsx)(jo,{ref:t,mod:[{fluid:c},d],...p("root"),...u})});Mp.classes=Tp,Mp.displayName="@mantine/core/Container";const Ap={timeout:1e3};function $p(e){const{children:t,timeout:o,value:n,...r}=Jt("CopyButton",Ap,e),a=(0,ke.useClipboard)({timeout:o});return(0,ne.jsx)(ne.Fragment,{children:t({copy:()=>a.copy(n),copied:a.copied,...r})})}$p.displayName="@mantine/core/CopyButton";var Lp={root:"m_e2125a27",closeButton:"m_5abab665"};const Fp={shadow:"md",p:"md",withBorder:!1,transitionProps:{transition:"pop-top-right",duration:200},position:{bottom:30,right:30}},Bp=(e,{size:t})=>({root:{"--dialog-size":me(t,"dialog-size")}}),Vp=Eo((e,t)=>{const o=Jt("Dialog",Fp,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,zIndex:c,position:d,keepMounted:u,opened:p,transitionProps:m,withCloseButton:f,withinPortal:h,children:v,onClose:y,portalProps:g,...b}=o,w=Nt({name:"Dialog",classes:Lp,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Bp});return(0,ne.jsx)(Nl,{zIndex:c,position:d,ref:t,withinPortal:h,portalProps:g,unstyled:i,children:(0,ne.jsx)(fs,{keepMounted:u,mounted:p,...m,children:e=>(0,ne.jsxs)(es,{unstyled:i,...w("root",{style:e}),...b,children:[f&&(0,ne.jsx)(oi,{onClick:y,unstyled:i,...w("closeButton")}),v]})})})});Vp.classes=Lp,Vp.displayName="@mantine/core/Dialog";var Hp={root:"m_3eebeb36",label:"m_9e365f20"};const Wp={orientation:"horizontal"},Gp=(e,{color:t,variant:o,size:n})=>({root:{"--divider-color":t?We(t,e):void 0,"--divider-border-style":o,"--divider-size":me(n,"divider-size")}}),Kp=Eo((e,t)=>{const o=Jt("Divider",Wp,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,color:c,orientation:d,label:u,labelPosition:p,mod:m,...f}=o,h=Nt({name:"Divider",classes:Hp,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Gp});return(0,ne.jsx)(jo,{ref:t,mod:[{orientation:d,"with-label":!!u},m],...h("root"),...f,role:"separator",children:u&&(0,ne.jsx)(jo,{component:"span",mod:{position:p},...h("label"),children:u})})});Kp.classes=Hp,Kp.displayName="@mantine/core/Divider";const[Up,qp]=re("Drawer component was not found in tree");var Yp={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const Xp={},Zp=Eo((e,t)=>{const o=Jt("DrawerBody",Xp,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=qp();return(0,ne.jsx)(vi,{ref:t,...c.getStyles("body",{classNames:n,style:a,styles:s,className:r}),...l})});Zp.classes=Yp,Zp.displayName="@mantine/core/DrawerBody";const Jp={},Qp=Eo((e,t)=>{const o=Jt("DrawerCloseButton",Jp,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=qp();return(0,ne.jsx)(yi,{ref:t,...c.getStyles("close",{classNames:n,style:a,styles:s,className:r}),...l})});Qp.classes=Yp,Qp.displayName="@mantine/core/DrawerCloseButton";const em={},tm=Eo((e,t)=>{const o=Jt("DrawerContent",em,e),{classNames:n,className:r,style:a,styles:s,vars:i,children:l,radius:c,__hidden:d,...u}=o,p=qp(),m=p.scrollAreaComponent||Si;return(0,ne.jsx)(gi,{...p.getStyles("content",{className:r,style:a,styles:s,classNames:n}),innerProps:p.getStyles("inner",{className:r,style:a,styles:s,classNames:n}),ref:t,...u,radius:c||p.radius||0,"data-hidden":d||void 0,children:(0,ne.jsx)(m,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:l})})});tm.classes=Yp,tm.displayName="@mantine/core/DrawerContent";const om={},nm=Eo((e,t)=>{const o=Jt("DrawerHeader",om,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=qp();return(0,ne.jsx)(bi,{ref:t,...c.getStyles("header",{classNames:n,style:a,styles:s,className:r}),...l})});nm.classes=Yp,nm.displayName="@mantine/core/DrawerHeader";const rm={},am=Eo((e,t)=>{const o=Jt("DrawerOverlay",rm,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=qp();return(0,ne.jsx)(xi,{ref:t,...c.getStyles("overlay",{classNames:n,style:a,styles:s,className:r}),...l})});function sm(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function im(e){if("top"===e||"bottom"===e)return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}am.classes=Yp,am.displayName="@mantine/core/DrawerOverlay";const lm={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},cm={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},dm={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:de("modal"),position:"left"},um=(e,{position:t,size:o,offset:n})=>({root:{"--drawer-size":me(o,"drawer-size"),"--drawer-flex":im(t),"--drawer-height":"left"===t||"right"===t?void 0:"var(--drawer-size)","--drawer-align":sm(t),"--drawer-justify":"right"===t?"flex-end":void 0,"--drawer-offset":J(n)}}),pm=Eo((e,t)=>{const o=Jt("DrawerRoot",dm,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,scrollAreaComponent:c,position:d,transitionProps:u,radius:p,...m}=o,{dir:f}=Io(),h=Nt({name:"Drawer",classes:Yp,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:um}),v=("rtl"===f?cm:lm)[d];return(0,ne.jsx)(Up,{value:{scrollAreaComponent:c,getStyles:h,radius:p},children:(0,ne.jsx)(ci,{ref:t,...h("root"),transitionProps:{transition:v,...u},"data-offset-scrollbars":c===Ha.Autosize||void 0,unstyled:i,...m})})});pm.classes=Yp,pm.displayName="@mantine/core/DrawerRoot";const[mm,fm]=ae();function hm({children:e}){const[t,o]=(0,a.useState)([]),[n,r]=(0,a.useState)(de("modal"));return(0,ne.jsx)(mm,{value:{stack:t,addModal:(e,t)=>{o(t=>[...new Set([...t,e])]),r(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>o(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${n} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:n},children:e})}hm.displayName="@mantine/core/DrawerStack";const vm={},ym=Eo((e,t)=>{const o=Jt("DrawerTitle",vm,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=qp();return(0,ne.jsx)(Ci,{ref:t,...c.getStyles("title",{classNames:n,style:a,styles:s,className:r}),...l})});ym.classes=Yp,ym.displayName="@mantine/core/DrawerTitle";const gm={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:de("modal"),withOverlay:!0,withCloseButton:!0},bm=Eo((e,t)=>{const{title:o,withOverlay:n,overlayProps:r,withCloseButton:s,closeButtonProps:i,children:l,opened:c,stackId:d,zIndex:u,...p}=Jt("Drawer",gm,e),m=fm(),f=!!o||s,h=m&&d?{closeOnEscape:m.currentId===d,trapFocus:m.currentId===d,zIndex:m.getZIndex(d)}:{},v=!1!==n&&(d&&m?m.currentId===d:c);return(0,a.useEffect)(()=>{m&&d&&(c?m.addModal(d,u||de("modal")):m.removeModal(d))},[c,d,u]),(0,ne.jsxs)(pm,{ref:t,opened:c,zIndex:m&&d?m.getZIndex(d):u,...p,...h,children:[n&&(0,ne.jsx)(am,{visible:v,transitionProps:m&&d?{duration:0}:void 0,...r}),(0,ne.jsxs)(tm,{__hidden:!!(m&&d&&c)&&d!==m.currentId,children:[f&&(0,ne.jsxs)(nm,{children:[o&&(0,ne.jsx)(ym,{children:o}),s&&(0,ne.jsx)(Qp,{...i})]}),(0,ne.jsx)(Zp,{children:l})]})]})});bm.classes=Yp,bm.displayName="@mantine/core/Drawer",bm.Root=pm,bm.Overlay=am,bm.Content=tm,bm.Body=Zp,bm.Header=nm,bm.Title=ym,bm.CloseButton=Qp,bm.Stack=hm;var wm={root:"m_e9408a47","root--default":"m_84c9523a","root--filled":"m_ef274e49","root--unstyled":"m_eda993d3",legend:"m_90794832","legend--unstyled":"m_74ca27fe"};const xm={variant:"default"},Cm=(e,{radius:t})=>({root:{"--fieldset-radius":void 0===t?void 0:he(t)}}),Sm=Eo((e,t)=>{const o=Jt("Fieldset",xm,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,legend:c,variant:d,children:u,...p}=o,m=Nt({name:"Fieldset",classes:wm,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Cm});return(0,ne.jsxs)(jo,{component:"fieldset",ref:t,variant:d,...m("root",{variant:d}),...p,children:[c&&(0,ne.jsx)("legend",{...m("legend",{variant:d}),children:c}),u]})});Sm.classes=wm,Sm.displayName="@mantine/core/Fieldset";const Nm={multiple:!1},km=(0,a.forwardRef)((e,t)=>{const{onChange:o,children:n,multiple:r,accept:s,name:i,form:l,resetRef:c,disabled:d,capture:u,inputProps:p,...m}=Jt("FileButton",Nm,e),f=(0,a.useRef)(null);return(0,ke.assignRef)(c,()=>{f.current&&(f.current.value="")}),(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("input",{style:{display:"none"},type:"file",accept:s,multiple:r,onChange:e=>{o(r?Array.from(e.currentTarget.files):e.currentTarget.files[0]||null)},ref:(0,ke.useMergedRef)(t,f),name:i,form:l,capture:u,...p}),n({onClick:()=>{!d&&f.current?.click()},...m})]})});km.displayName="@mantine/core/FileButton";const jm={valueComponent:({value:e})=>(0,ne.jsx)("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(e)?e.map(e=>e.name).join(", "):e?.name})},Pm=Eo((e,t)=>{const o=Jt("FileInput",jm,e),{unstyled:n,vars:r,onChange:s,value:i,defaultValue:l,multiple:c,accept:d,name:u,form:p,valueComponent:m,clearable:f,clearButtonProps:h,readOnly:v,capture:y,fileInputProps:g,rightSection:b,size:w,placeholder:x,component:C,resetRef:S,classNames:N,styles:k,...j}=o,P=(0,a.useRef)(null),{resolvedClassNames:R,resolvedStyles:E}=st({classNames:N,styles:k,props:o}),[_,D]=(0,ke.useUncontrolled)({value:i,defaultValue:l,onChange:s,finalValue:c?[]:null}),I=Array.isArray(_)?0!==_.length:null!==_,T=b||(f&&I&&!v?(0,ne.jsx)(oi,{...h,variant:"subtle",onClick:()=>D(c?[]:null),size:w,unstyled:n}):null);(0,a.useEffect)(()=>{(Array.isArray(_)&&0===_.length||null===_)&&P.current?.()},[_]);const z=m;return(0,ne.jsx)(km,{onChange:D,multiple:c,accept:d,name:u,form:p,resetRef:(0,ke.useMergedRef)(P,S),disabled:v,capture:y,inputProps:g,children:e=>(0,ne.jsx)(Zi,{component:C||"button",ref:t,rightSection:T,...e,...j,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:o,unstyled:n,size:w,classNames:N,styles:k,children:I?(0,ne.jsx)(z,{value:_}):(0,ne.jsx)(qi.Placeholder,{__staticSelector:"FileInput",classNames:R,styles:E,children:x})})})});Pm.classes=Zi.classes,Pm.displayName="@mantine/core/FileInput";const Rm=Pm;function Em({open:e,close:t,openDelay:o,closeDelay:n}){const r=(0,a.useRef)(-1),s=(0,a.useRef)(-1),i=()=>{window.clearTimeout(r.current),window.clearTimeout(s.current)};return(0,a.useEffect)(()=>i,[]),{openDropdown:()=>{i(),0===o||void 0===o?e():r.current=window.setTimeout(e,o)},closeDropdown:()=>{i(),0===n||void 0===n?t():s.current=window.setTimeout(t,n)}}}const[_m,Dm]=re("Grid component was not found in tree"),Im=(e,t)=>"content"===e?"auto":"auto"===e?"0rem":e?100/(t/e)+"%":void 0,Tm=(e,t,o)=>o||"auto"===e?"100%":"content"===e?"unset":Im(e,t),zm=(e,t)=>{if(e)return"auto"===e||t?"1":"auto"},Om=(e,t)=>0===e?"0":e?100/(t/e)+"%":void 0;function Mm({span:e,order:t,offset:o,selector:n}){const r=rt(),a=Dm(),s=a.breakpoints||r.breakpoints,i=void 0===Ce(e)?12:Ce(e),l=ee({"--col-order":Ce(t)?.toString(),"--col-flex-grow":zm(i,a.grow),"--col-flex-basis":Im(i,a.columns),"--col-width":"content"===i?"auto":void 0,"--col-max-width":Tm(i,a.columns,a.grow),"--col-offset":Om(Ce(o),a.columns)}),c=G(s).reduce((n,r)=>(n[r]||(n[r]={}),"object"==typeof t&&void 0!==t[r]&&(n[r]["--col-order"]=t[r]?.toString()),"object"==typeof e&&void 0!==e[r]&&(n[r]["--col-flex-grow"]=zm(e[r],a.grow),n[r]["--col-flex-basis"]=Im(e[r],a.columns),n[r]["--col-width"]="content"===e[r]?"auto":void 0,n[r]["--col-max-width"]=Tm(e[r],a.columns,a.grow)),"object"==typeof o&&void 0!==o[r]&&(n[r]["--col-offset"]=Om(o[r],a.columns)),n),{}),d=xe(G(c),s).filter(e=>G(c[e.value]).length>0).map(e=>({query:"container"===a.type?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:c[e.value]}));return(0,ne.jsx)(so,{styles:l,media:"container"===a.type?void 0:d,container:"container"===a.type?d:void 0,selector:n})}var Am={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const $m={span:12},Lm=Eo((e,t)=>{const o=Jt("GridCol",$m,e),{classNames:n,className:r,style:a,styles:s,vars:i,span:l,order:c,offset:d,...u}=o,p=Dm(),m=go();return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Mm,{selector:`.${m}`,span:l,order:c,offset:d}),(0,ne.jsx)(jo,{ref:t,...p.getStyles("col",{className:Te(r,m),style:a,classNames:n,styles:s}),...u})]})});function Fm({gutter:e,selector:t,breakpoints:o,type:n}){const r=rt(),a=o||r.breakpoints,s=ee({"--grid-gutter":fe(Ce(e))}),i=G(a).reduce((t,o)=>(t[o]||(t[o]={}),"object"==typeof e&&void 0!==e[o]&&(t[o]["--grid-gutter"]=fe(e[o])),t),{}),l=xe(G(i),a).filter(e=>G(i[e.value]).length>0).map(e=>({query:"container"===n?`mantine-grid (min-width: ${a[e.value]})`:`(min-width: ${a[e.value]})`,styles:i[e.value]}));return(0,ne.jsx)(so,{styles:s,media:"container"===n?void 0:l,container:"container"===n?l:void 0,selector:t})}Lm.classes=Am,Lm.displayName="@mantine/core/GridCol";const Bm={gutter:"md",grow:!1,columns:12},Vm=(e,{justify:t,align:o,overflow:n})=>({root:{"--grid-justify":t,"--grid-align":o,"--grid-overflow":n}}),Hm=Eo((e,t)=>{const o=Jt("Grid",Bm,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,grow:c,gutter:d,columns:u,align:p,justify:m,children:f,breakpoints:h,type:v,...y}=o,g=Nt({name:"Grid",classes:Am,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Vm}),b=go();return"container"===v&&h?(0,ne.jsxs)(_m,{value:{getStyles:g,grow:c,columns:u||12,breakpoints:h,type:v},children:[(0,ne.jsx)(Fm,{selector:`.${b}`,...o}),(0,ne.jsx)("div",{...g("container"),children:(0,ne.jsx)(jo,{ref:t,...g("root",{className:b}),...y,children:(0,ne.jsx)("div",{...g("inner"),children:f})})})]}):(0,ne.jsxs)(_m,{value:{getStyles:g,grow:c,columns:u||12,breakpoints:h,type:v},children:[(0,ne.jsx)(Fm,{selector:`.${b}`,...o}),(0,ne.jsx)(jo,{ref:t,...g("root",{className:b}),...y,children:(0,ne.jsx)("div",{...g("inner"),children:f})})]})});function Wm({color:e,theme:t,defaultShade:o}){const n=He({color:e,theme:t});return n.isThemeColor?void 0===n.shade?`var(--mantine-color-${n.color}-${o})`:`var(${n.variable})`:e}Hm.classes=Am,Hm.displayName="@mantine/core/Grid",Hm.Col=Lm;var Gm={root:"m_bcb3f3c2"};const Km={color:"yellow"},Um=(e,{color:t})=>({root:{"--mark-bg-dark":Wm({color:t,theme:e,defaultShade:5}),"--mark-bg-light":Wm({color:t,theme:e,defaultShade:2})}}),qm=Eo((e,t)=>{const o=Jt("Mark",Km,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,color:c,variant:d,...u}=o,p=Nt({name:"Mark",props:o,className:r,style:a,classes:Gm,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Um});return(0,ne.jsx)(jo,{component:"mark",ref:t,variant:d,...p("root"),...u})});function Ym(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}qm.classes=Gm,qm.displayName="@mantine/core/Mark";const Xm={},Zm=_o((e,t)=>{const{unstyled:o,children:n,highlight:r,highlightStyles:a,color:s,...i}=Jt("Highlight",Xm,e),l=function(e,t){if(null==t)return[{chunk:e,highlighted:!1}];const o=Array.isArray(t)?t.map(Ym):Ym(t);if(!(Array.isArray(o)?o.filter(e=>e.trim().length>0).length>0:""!==o.trim()))return[{chunk:e,highlighted:!1}];const n="string"==typeof o?o.trim():o.filter(e=>0!==e.trim().length).map(e=>e.trim()).sort((e,t)=>t.length-e.length).join("|"),r=new RegExp(`(${n})`,"gi");return e.split(r).map(e=>({chunk:e,highlighted:r.test(e)})).filter(({chunk:e})=>e)}(n,r);return(0,ne.jsx)(Tl,{unstyled:o,ref:t,...i,__staticSelector:"Highlight",children:l.map(({chunk:e,highlighted:t},n)=>t?(0,ne.jsx)(qm,{unstyled:o,color:s,style:a,"data-highlight":e,children:e},n):(0,ne.jsx)("span",{children:e},n))})});Zm.classes=Tl.classes,Zm.displayName="@mantine/core/Highlight";const[Jm,Qm]=re("HoverCard component was not found in the tree"),ef={};function tf(e){const{children:t,onMouseEnter:o,onMouseLeave:n,...r}=Jt("HoverCardDropdown",ef,e),a=Qm(),s=be(o,a.openDropdown),i=be(n,a.closeDropdown);return(0,ne.jsx)(Ts.Dropdown,{onMouseEnter:s,onMouseLeave:i,...r,children:t})}tf.displayName="@mantine/core/HoverCardDropdown";const of={refProp:"ref"},nf=(0,a.forwardRef)((e,t)=>{const{children:o,refProp:n,eventPropsWrapperName:r,...s}=Jt("HoverCardTarget",of,e);if(!oe(o))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Qm(),l={onMouseEnter:be(o.props.onMouseEnter,i.openDropdown),onMouseLeave:be(o.props.onMouseLeave,i.closeDropdown)};return(0,ne.jsx)(Ts.Target,{refProp:n,ref:t,...s,children:(0,a.cloneElement)(o,r?{[r]:l}:l)})});nf.displayName="@mantine/core/HoverCardTarget";const rf={openDelay:0,closeDelay:150,initiallyOpened:!1};function af(e){const{children:t,onOpen:o,onClose:n,openDelay:r,closeDelay:a,initiallyOpened:s,...i}=Jt("HoverCard",rf,e),[l,{open:c,close:d}]=(0,ke.useDisclosure)(s,{onClose:n,onOpen:o}),{openDropdown:u,closeDropdown:p}=Em({open:c,close:d,openDelay:r,closeDelay:a});return(0,ne.jsx)(Jm,{value:{openDropdown:u,closeDropdown:p},children:(0,ne.jsx)(Ts,{...i,opened:l,__staticSelector:"HoverCard",children:t})})}af.displayName="@mantine/core/HoverCard",af.Target=nf,af.Dropdown=tf,af.extend=e=>e;var sf={root:"m_9e117634"};const lf={},cf=(e,{radius:t,fit:o})=>({root:{"--image-radius":void 0===t?void 0:he(t),"--image-object-fit":o}}),df=_o((e,t)=>{const o=Jt("Image",lf,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,onError:d,src:u,radius:p,fit:m,fallbackSrc:f,mod:h,...v}=o,[y,g]=(0,a.useState)(!u);(0,a.useEffect)(()=>g(!u),[u]);const b=Nt({name:"Image",classes:sf,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:cf});return y&&f?(0,ne.jsx)(jo,{component:"img",ref:t,src:f,...b("root"),onError:d,mod:["fallback",h],...v}):(0,ne.jsx)(jo,{component:"img",ref:t,...b("root"),src:u,onError:e=>{d?.(e),g(!0)},mod:h,...v})});function uf(e="top-end",t=0){const o={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},n=J(t),[r,a]=e.split("-");return"top"===r&&(o["--indicator-top"]=n,o["--indicator-translate-y"]="-50%"),"middle"===r&&(o["--indicator-top"]="50%",o["--indicator-translate-y"]="-50%"),"bottom"===r&&(o["--indicator-bottom"]=n,o["--indicator-translate-y"]="50%"),"start"===a&&(o["--indicator-left"]=n,o["--indicator-translate-x"]="-50%"),"center"===a&&(o["--indicator-left"]="50%",o["--indicator-translate-x"]="-50%"),"end"===a&&(o["--indicator-right"]=n,o["--indicator-translate-x"]="50%"),o}df.classes=sf,df.displayName="@mantine/core/Image";var pf={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const mf={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},ff=(e,{color:t,position:o,offset:n,size:r,radius:a,zIndex:s,autoContrast:i})=>({root:{"--indicator-color":t?We(t,e):void 0,"--indicator-text-color":_t(i,e)?Rt({color:t,theme:e,autoContrast:i}):void 0,"--indicator-size":J(r),"--indicator-radius":void 0===a?void 0:he(a),"--indicator-z-index":s?.toString(),...uf(o,n)}}),hf=Eo((e,t)=>{const o=Jt("Indicator",mf,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,children:c,position:d,offset:u,inline:p,label:m,radius:f,color:h,withBorder:v,disabled:y,processing:g,zIndex:b,autoContrast:w,mod:x,...C}=o,S=Nt({name:"Indicator",classes:pf,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:ff});return(0,ne.jsxs)(jo,{ref:t,...S("root"),mod:[{inline:p},x],...C,children:[!y&&(0,ne.jsx)(jo,{mod:{"with-label":!!m,"with-border":v,processing:g},...S("indicator"),children:m}),c]})});hf.classes=pf,hf.displayName="@mantine/core/Indicator";var vf=o(8168),yf=o(8587),gf=a.useLayoutEffect,bf=function(e,t){"function"!=typeof e?e.current=t:e(t)},wf={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},xf=function(e){Object.keys(wf).forEach(function(t){e.style.setProperty(t,wf[t],"important")})},Cf=null,Sf=function(e,t){var o=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?o+t.borderSize:o-t.paddingSize},Nf=function(){},kf=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],jf=!!document.documentElement.currentStyle;function Pf(e,t,o){var n,r,s=(n=o,r=i().useRef(n),gf(function(){r.current=n}),r);a.useLayoutEffect(function(){var o=function(e){return s.current(e)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var Rf=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Ef=function(e,t){var o,n=e.cacheMeasurements,r=e.maxRows,s=e.minRows,l=e.onChange,c=void 0===l?Nf:l,d=e.onHeightChange,u=void 0===d?Nf:d,p=(0,yf.A)(e,Rf),m=void 0!==p.value,f=a.useRef(null),h=function(e,t){var o=i().useRef();return i().useCallback(function(n){e.current=n,o.current&&bf(o.current,null),o.current=t,t&&bf(t,n)},[t])}(f,t),v=a.useRef(0),y=a.useRef(),g=function(){var e=f.current,t=n&&y.current?y.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var o,n=(o=t,kf.reduce(function(e,t){return e[t]=o[t],e},{})),r=n.boxSizing;return""===r?null:(jf&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){y.current=t;var o=function(e,t,o,n){void 0===o&&(o=1),void 0===n&&(n=1/0),Cf||((Cf=document.createElement("textarea")).setAttribute("tabindex","-1"),Cf.setAttribute("aria-hidden","true"),xf(Cf)),null===Cf.parentNode&&document.body.appendChild(Cf);var r=e.paddingSize,a=e.borderSize,s=e.sizingStyle,i=s.boxSizing;Object.keys(s).forEach(function(e){var t=e;Cf.style[t]=s[t]}),xf(Cf),Cf.value=t;var l=Sf(Cf,e);Cf.value=t,l=Sf(Cf,e),Cf.value="x";var c=Cf.scrollHeight-r,d=c*o;"border-box"===i&&(d=d+r+a),l=Math.max(d,l);var u=c*n;return"border-box"===i&&(u=u+r+a),[l=Math.min(u,l),c]}(t,e.value||e.placeholder||"x",s,r),a=o[0],i=o[1];v.current!==a&&(v.current=a,e.style.setProperty("height",a+"px","important"),u(a,{rowHeight:i}))}};return a.useLayoutEffect(g),function(e,t){Pf(document.body,"reset",function(o){e.current.form===o.target&&t()})}(f,function(){if(!m){var e=f.current.value;requestAnimationFrame(function(){var t=f.current;t&&e!==t.value&&g()})}}),Pf(window,"resize",g),o=g,Pf(document.fonts,"loadingdone",o),a.createElement("textarea",(0,vf.A)({},p,{onChange:function(e){m||g(),c(e)},ref:h}))},_f=a.forwardRef(Ef);const Df={},If=Eo((e,t)=>{const{autosize:o,maxRows:n,minRows:r,__staticSelector:a,resize:s,...i}=Jt("Textarea",Df,e),l=o&&"test"!==Pe(),c=l?{maxRows:n,minRows:r}:{};return(0,ne.jsx)(Zi,{component:l?_f:"textarea",ref:t,...i,__staticSelector:a||"Textarea",multiline:!0,"data-no-overflow":o&&void 0===n||void 0,__vars:{"--input-resize":s},...c})});function Tf(e,t){if("string"==typeof e&&0===e.trim().length)return!0;try{return t(e),!0}catch(e){return!1}}If.classes=Zi.classes,If.displayName="@mantine/core/Textarea";const zf={serialize:JSON.stringify,deserialize:JSON.parse},Of=Eo((e,t)=>{const{value:o,defaultValue:n,onChange:r,formatOnBlur:s,validationError:i,serialize:l,deserialize:c,onFocus:d,onBlur:u,readOnly:p,error:m,...f}=Jt("JsonInput",zf,e),[h,v]=(0,ke.useUncontrolled)({value:o,defaultValue:n,finalValue:"",onChange:r}),[y,g]=(0,a.useState)(Tf(h,c));return(0,ne.jsx)(If,{value:h,onChange:e=>v(e.currentTarget.value),onFocus:e=>{d?.(e),g(!0)},onBlur:e=>{"function"==typeof u&&u(e);const t=Tf(e.currentTarget.value,c);s&&!p&&t&&""!==e.currentTarget.value.trim()&&v(l(c(e.currentTarget.value),null,2)),g(t)},ref:t,readOnly:p,...f,autoComplete:"off",__staticSelector:"JsonInput",error:y?m:i||!0,"data-monospace":!0})});Of.classes=Zi.classes,Of.displayName="@mantine/core/JsonInput";var Mf={root:"m_dc6f14e2"};const Af={},$f=(e,{size:t})=>({root:{"--kbd-fz":me(t,"kbd-fz"),"--kbd-padding":me(t,"kbd-padding")}}),Lf=Eo((e,t)=>{const o=Jt("Kbd",Af,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,...c}=o,d=Nt({name:"Kbd",classes:Mf,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:$f});return(0,ne.jsx)(jo,{component:"kbd",ref:t,...d("root"),...c})});Lf.classes=Mf,Lf.displayName="@mantine/core/Kbd";const[Ff,Bf]=re("List component was not found in tree");var Vf={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const Hf={},Wf=Eo((e,t)=>{const o=Jt("ListItem",Hf,e),{classNames:n,className:r,style:a,styles:s,vars:i,icon:l,children:c,mod:d,...u}=o,p=Bf(),m=l||p.icon,f={classNames:n,styles:s};return(0,ne.jsx)(jo,{...p.getStyles("item",{...f,className:r,style:a}),component:"li",mod:[{"with-icon":!!m,centered:p.center},d],ref:t,...u,children:(0,ne.jsxs)("div",{...p.getStyles("itemWrapper",f),children:[m&&(0,ne.jsx)("span",{...p.getStyles("itemIcon",f),children:m}),(0,ne.jsx)("span",{...p.getStyles("itemLabel",f),children:c})]})})});Wf.classes=Vf,Wf.displayName="@mantine/core/ListItem";const Gf={type:"unordered"},Kf=(e,{size:t,spacing:o})=>({root:{"--list-fz":ve(t),"--list-lh":ye(t),"--list-spacing":fe(o)}}),Uf=Eo((e,t)=>{const o=Jt("List",Gf,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,children:c,type:d,withPadding:u,icon:p,spacing:m,center:f,listStyleType:h,mod:v,...y}=o,g=Nt({name:"List",classes:Vf,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Kf});return(0,ne.jsx)(Ff,{value:{center:f,icon:p,getStyles:g},children:(0,ne.jsx)(jo,{...g("root",{style:{listStyleType:h}}),component:"unordered"===d?"ul":"ol",mod:[{"with-padding":u},v],ref:t,...y,children:c})})});Uf.classes=Vf,Uf.displayName="@mantine/core/List",Uf.Item=Wf;var qf={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const Yf={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:de("overlay")},Xf=(e,{zIndex:t})=>({root:{"--lo-z-index":t?.toString()}}),Zf=Eo((e,t)=>{const o=Jt("LoadingOverlay",Yf,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,transitionProps:c,loaderProps:d,overlayProps:u,visible:p,zIndex:m,...f}=o,h=rt(),v=Nt({name:"LoadingOverlay",classes:qf,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Xf}),y={...Yf.overlayProps,...u};return(0,ne.jsx)(fs,{transition:"fade",...c,mounted:!!p,children:e=>(0,ne.jsxs)(jo,{...v("root",{style:e}),ref:t,...f,children:[(0,ne.jsx)(Bs,{...v("loader"),unstyled:i,...d}),(0,ne.jsx)(as,{...y,...v("overlay"),darkHidden:!0,unstyled:i,color:u?.color||h.white}),(0,ne.jsx)(as,{...y,...v("overlay"),lightHidden:!0,unstyled:i,color:u?.color||h.colors.dark[5]})]})})});Zf.classes=qf,Zf.displayName="@mantine/core/LoadingOverlay";const[Jf,Qf]=re("Menu component was not found in the tree");var eh={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const th={},oh=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,...i}=Jt("MenuDivider",th,e),l=Qf();return(0,ne.jsx)(jo,{ref:t,...l.getStyles("divider",{className:n,style:r,styles:a,classNames:o}),...i})});oh.classes=eh,oh.displayName="@mantine/core/MenuDivider";const nh={},rh=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:s,vars:i,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:u,...p}=Jt("MenuDropdown",nh,e),m=(0,a.useRef)(null),f=Qf(),h=be(d,e=>{"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),m.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),v=be(l,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.openDropdown()),y=be(c,()=>("hover"===f.trigger||"click-hover"===f.trigger)&&f.closeDropdown());return(0,ne.jsxs)(Ts.Dropdown,{...p,onMouseEnter:v,onMouseLeave:y,role:"menu","aria-orientation":"vertical",ref:(0,ke.useMergedRef)(t,m),...f.getStyles("dropdown",{className:n,style:r,styles:s,classNames:o,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[f.withInitialFocusPlaceholder&&(0,ne.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});rh.classes=eh,rh.displayName="@mantine/core/MenuDropdown";const ah={},sh=_o((e,t)=>{const{classNames:o,className:n,style:r,styles:s,vars:i,color:l,closeMenuOnClick:c,leftSection:d,rightSection:u,children:p,disabled:m,"data-disabled":f,...h}=Jt("MenuItem",ah,e),v=Qf(),y=rt(),{dir:g}=Io(),b=(0,a.useRef)(null),w=v.getItemIndex(b.current),x=h,C=be(x.onMouseLeave,()=>v.setHovered(-1)),S=be(x.onMouseEnter,()=>v.setHovered(v.getItemIndex(b.current))),N=be(x.onClick,()=>{f||("boolean"==typeof c?c&&v.closeDropdownImmediately():v.closeOnItemClick&&v.closeDropdownImmediately())}),k=be(x.onFocus,()=>v.setHovered(v.getItemIndex(b.current))),j=l?y.variantColorResolver({color:l,theme:y,variant:"light"}):void 0,P=l?He({color:l,theme:y}):null;return(0,ne.jsxs)(Ua,{...h,unstyled:v.unstyled,tabIndex:v.menuItemTabIndex,onFocus:k,...v.getStyles("item",{className:n,style:r,styles:s,classNames:o}),ref:(0,ke.useMergedRef)(b,t),role:"menuitem",disabled:m,"data-menu-item":!0,"data-disabled":m||f||void 0,"data-hovered":v.hovered===w||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:S,onMouseLeave:C,onClick:N,onKeyDown:le({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:v.loop,dir:g,orientation:"vertical",onKeyDown:x.onKeyDown}),__vars:{"--menu-item-color":P?.isThemeColor&&void 0===P?.shade?`var(--mantine-color-${P.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[d&&(0,ne.jsx)("div",{...v.getStyles("itemSection",{styles:s,classNames:o}),"data-position":"left",children:d}),p&&(0,ne.jsx)("div",{...v.getStyles("itemLabel",{styles:s,classNames:o}),children:p}),u&&(0,ne.jsx)("div",{...v.getStyles("itemSection",{styles:s,classNames:o}),"data-position":"right",children:u})]})});sh.classes=eh,sh.displayName="@mantine/core/MenuItem";const ih={},lh=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,...i}=Jt("MenuLabel",ih,e),l=Qf();return(0,ne.jsx)(jo,{ref:t,...l.getStyles("label",{className:n,style:r,styles:a,classNames:o}),...i})});lh.classes=eh,lh.displayName="@mantine/core/MenuLabel";const ch={refProp:"ref"},dh=(0,a.forwardRef)((e,t)=>{const{children:o,refProp:n,...r}=Jt("MenuTarget",ch,e);if(!oe(o))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=Qf(),i=o.props,l=be(i.onClick,()=>{"click"===s.trigger?s.toggleDropdown():"click-hover"===s.trigger&&(s.setOpenedViaClick(!0),s.opened||s.openDropdown())}),c=be(i.onMouseEnter,()=>("hover"===s.trigger||"click-hover"===s.trigger)&&s.openDropdown()),d=be(i.onMouseLeave,()=>{"hover"===s.trigger?s.closeDropdown():"click-hover"!==s.trigger||s.openedViaClick||s.closeDropdown()});return(0,ne.jsx)(Ts.Target,{refProp:n,popupType:"menu",ref:t,...r,children:(0,a.cloneElement)(o,{onClick:l,onMouseEnter:c,onMouseLeave:d,"data-expanded":!!s.opened||void 0})})});dh.displayName="@mantine/core/MenuTarget";const uh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function ph(e){const t=Jt("Menu",uh,e),{children:o,onOpen:n,onClose:r,opened:s,defaultOpened:i,trapFocus:l,onChange:c,closeOnItemClick:d,loop:u,closeOnEscape:p,trigger:m,openDelay:f,closeDelay:h,classNames:v,styles:y,unstyled:g,variant:b,vars:w,menuItemTabIndex:x,keepMounted:C,withInitialFocusPlaceholder:S,...N}=t,k=Nt({name:"Menu",classes:eh,props:t,classNames:v,styles:y,unstyled:g}),[j,{setHovered:P,resetHovered:R}]=Ne(),[E,_]=(0,ke.useUncontrolled)({value:s,defaultValue:i,finalValue:!1,onChange:c}),[D,I]=(0,a.useState)(!1),T=()=>{_(!1),I(!1),E&&r?.()},z=()=>{_(!0),!E&&n?.()},O=()=>{E?T():z()},{openDropdown:M,closeDropdown:A}=Em({open:z,close:T,closeDelay:h,openDelay:f}),{resolvedClassNames:$,resolvedStyles:L}=st({classNames:v,styles:y,props:t});return(0,ke.useDidUpdate)(()=>{R()},[E]),(0,ne.jsx)(Jf,{value:{getStyles:k,opened:E,toggleDropdown:O,getItemIndex:e=>Se("[data-menu-item]","[data-menu-dropdown]",e),hovered:j,setHovered:P,openedViaClick:D,setOpenedViaClick:I,closeOnItemClick:d,closeDropdown:"click"===m?T:A,openDropdown:"click"===m?z:M,closeDropdownImmediately:T,loop:u,trigger:m,unstyled:g,menuItemTabIndex:x,withInitialFocusPlaceholder:S},children:(0,ne.jsx)(Ts,{...N,opened:E,onChange:O,defaultOpened:i,trapFocus:!C&&l,closeOnEscape:p,__staticSelector:"Menu",classNames:$,styles:L,unstyled:g,variant:b,keepMounted:C,children:o})})}ph.extend=e=>e,ph.withProps=Ro(ph),ph.classes=eh,ph.displayName="@mantine/core/Menu",ph.Item=sh,ph.Label=lh,ph.Dropdown=rh,ph.Target=dh,ph.Divider=oh;const[mh,fh]=re("Modal component was not found in tree");var hh={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const vh={},yh=Eo((e,t)=>{const o=Jt("ModalBody",vh,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=fh();return(0,ne.jsx)(vi,{ref:t,...c.getStyles("body",{classNames:n,style:a,styles:s,className:r}),...l})});yh.classes=hh,yh.displayName="@mantine/core/ModalBody";const gh={},bh=Eo((e,t)=>{const o=Jt("ModalCloseButton",gh,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=fh();return(0,ne.jsx)(yi,{ref:t,...c.getStyles("close",{classNames:n,style:a,styles:s,className:r}),...l})});bh.classes=hh,bh.displayName="@mantine/core/ModalCloseButton";const wh={},xh=Eo((e,t)=>{const o=Jt("ModalContent",wh,e),{classNames:n,className:r,style:a,styles:s,vars:i,children:l,__hidden:c,...d}=o,u=fh(),p=u.scrollAreaComponent||Si;return(0,ne.jsx)(gi,{...u.getStyles("content",{className:r,style:a,styles:s,classNames:n}),innerProps:u.getStyles("inner",{className:r,style:a,styles:s,classNames:n}),"data-full-screen":u.fullScreen||void 0,"data-modal-content":!0,"data-hidden":c||void 0,ref:t,...d,children:(0,ne.jsx)(p,{style:{maxHeight:u.fullScreen?"100dvh":`calc(100dvh - (${J(u.yOffset)} * 2))`},children:l})})});xh.classes=hh,xh.displayName="@mantine/core/ModalContent";const Ch={},Sh=Eo((e,t)=>{const o=Jt("ModalHeader",Ch,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=fh();return(0,ne.jsx)(bi,{ref:t,...c.getStyles("header",{classNames:n,style:a,styles:s,className:r}),...l})});Sh.classes=hh,Sh.displayName="@mantine/core/ModalHeader";const Nh={},kh=Eo((e,t)=>{const o=Jt("ModalOverlay",Nh,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=fh();return(0,ne.jsx)(xi,{ref:t,...c.getStyles("overlay",{classNames:n,style:a,styles:s,className:r}),...l})});kh.classes=hh,kh.displayName="@mantine/core/ModalOverlay";const jh={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:de("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},Ph=(e,{radius:t,size:o,yOffset:n,xOffset:r})=>({root:{"--modal-radius":void 0===t?void 0:he(t),"--modal-size":me(o,"modal-size"),"--modal-y-offset":J(n),"--modal-x-offset":J(r)}}),Rh=Eo((e,t)=>{const o=Jt("ModalRoot",jh,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,yOffset:c,scrollAreaComponent:d,radius:u,fullScreen:p,centered:m,xOffset:f,__staticSelector:h,...v}=o,y=Nt({name:h,classes:hh,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Ph});return(0,ne.jsx)(mh,{value:{yOffset:c,scrollAreaComponent:d,getStyles:y,fullScreen:p},children:(0,ne.jsx)(ci,{ref:t,...y("root"),"data-full-screen":p||void 0,"data-centered":m||void 0,"data-offset-scrollbars":d===Ha.Autosize||void 0,unstyled:i,...v})})});Rh.classes=hh,Rh.displayName="@mantine/core/ModalRoot";const[Eh,_h]=ae();function Dh({children:e}){const[t,o]=(0,a.useState)([]),[n,r]=(0,a.useState)(de("modal"));return(0,ne.jsx)(Eh,{value:{stack:t,addModal:(e,t)=>{o(t=>[...new Set([...t,e])]),r(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>o(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${n} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:n},children:e})}Dh.displayName="@mantine/core/ModalStack";const Ih={},Th=Eo((e,t)=>{const o=Jt("ModalTitle",Ih,e),{classNames:n,className:r,style:a,styles:s,vars:i,...l}=o,c=fh();return(0,ne.jsx)(Ci,{ref:t,...c.getStyles("title",{classNames:n,style:a,styles:s,className:r}),...l})});Th.classes=hh,Th.displayName="@mantine/core/ModalTitle";const zh={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:de("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Oh=Eo((e,t)=>{const{title:o,withOverlay:n,overlayProps:r,withCloseButton:s,closeButtonProps:i,children:l,radius:c,opened:d,stackId:u,zIndex:p,...m}=Jt("Modal",zh,e),f=_h(),h=!!o||s,v=f&&u?{closeOnEscape:f.currentId===u,trapFocus:f.currentId===u,zIndex:f.getZIndex(u)}:{},y=!1!==n&&(u&&f?f.currentId===u:d);return(0,a.useEffect)(()=>{f&&u&&(d?f.addModal(u,p||de("modal")):f.removeModal(u))},[d,u,p]),(0,ne.jsxs)(Rh,{ref:t,radius:c,opened:d,zIndex:f&&u?f.getZIndex(u):p,...m,...v,children:[n&&(0,ne.jsx)(kh,{visible:y,transitionProps:f&&u?{duration:0}:void 0,...r}),(0,ne.jsxs)(xh,{radius:c,__hidden:!!(f&&u&&d)&&u!==f.currentId,children:[h&&(0,ne.jsxs)(Sh,{children:[o&&(0,ne.jsx)(Th,{children:o}),s&&(0,ne.jsx)(bh,{...i})]}),(0,ne.jsx)(yh,{children:l})]})]})});function Mh(e){const t=e.reduce((e,t)=>({...e,[t]:!1}),{}),[o,n]=(0,a.useState)(t),r=(0,a.useCallback)(e=>{n(t=>({...t,[e]:!0}))},[]),s=(0,a.useCallback)(e=>n(t=>({...t,[e]:!1})),[]),i=(0,a.useCallback)(e=>n(t=>({...t,[e]:!t[e]})),[]),l=(0,a.useCallback)(()=>n(t),[]),c=(0,a.useCallback)(e=>({opened:o[e],onClose:()=>s(e),stackId:e}),[o]);return{state:o,open:r,close:s,closeAll:l,toggle:i,register:c}}Oh.classes=hh,Oh.displayName="@mantine/core/Modal",Oh.Root=Rh,Oh.Overlay=kh,Oh.Content=xh,Oh.Body=yh,Oh.Header=Sh,Oh.Title=Th,Oh.CloseButton=bh,Oh.Stack=Dh;const Ah=Mh,[$h,Lh]=ae(),[Fh,Bh]=ae();var Vh={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const Hh={},Wh=(e,{gap:t},{size:o})=>({group:{"--pg-gap":void 0!==t?me(t):me(o,"pg-gap")}}),Gh=Eo((e,t)=>{const o=Jt("PillGroup",Hh,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,size:c,disabled:d,...u}=o,p=Lh(),m=p?.size||c||void 0,f=Nt({name:"PillGroup",classes:Vh,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Wh,stylesCtx:{size:m},rootSelector:"group"});return(0,ne.jsx)(Fh,{value:{size:m,disabled:d},children:(0,ne.jsx)(jo,{ref:t,size:m,...f("group"),...u})})});Gh.classes=Vh,Gh.displayName="@mantine/core/PillGroup";const Kh={variant:"default"},Uh=(e,{radius:t},{size:o})=>({root:{"--pill-fz":me(o,"pill-fz"),"--pill-height":me(o,"pill-height"),"--pill-radius":void 0===t?void 0:he(t)}}),qh=Eo((e,t)=>{const o=Jt("Pill",Kh,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,variant:c,children:d,withRemoveButton:u,onRemove:p,removeButtonProps:m,radius:f,size:h,disabled:v,mod:y,...g}=o,b=Bh(),w=Lh(),x=h||b?.size||void 0,C="filled"===w?.variant?"contrast":c||"default",S=Nt({name:"Pill",classes:Vh,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Uh,stylesCtx:{size:x}});return(0,ne.jsxs)(jo,{component:"span",ref:t,variant:C,size:x,...S("root",{variant:C}),mod:[{"with-remove":u&&!v,disabled:v||b?.disabled},y],...g,children:[(0,ne.jsx)("span",{...S("label"),children:d}),u&&(0,ne.jsx)(oi,{variant:"transparent",radius:f,tabIndex:-1,"aria-hidden":!0,unstyled:i,...m,...S("remove",{className:m?.className,style:m?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),m?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),p?.(),m?.onClick?.(e)}})]})});qh.classes=Vh,qh.displayName="@mantine/core/Pill",qh.Group=Gh;var Yh={field:"m_45c4369d"};const Xh={type:"visible"},Zh=Eo((e,t)=>{const o=Jt("PillsInputField",Xh,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,type:c,disabled:d,id:u,pointer:p,mod:m,...f}=o,h=Lh(),v=Ei(),y=Nt({name:"PillsInputField",classes:Yh,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,rootSelector:"field"}),g=d||h?.disabled;return(0,ne.jsx)(jo,{component:"input",ref:(0,ke.useMergedRef)(t,h?.fieldRef),"data-type":c,disabled:g,mod:[{disabled:g,pointer:p},m],...y("field"),...f,id:v?.inputId||u,"aria-invalid":h?.hasError,"aria-describedby":v?.describedBy,type:"text",onMouseDown:e=>!p&&e.stopPropagation()})});Zh.classes=Yh,Zh.displayName="@mantine/core/PillsInputField";const Jh={},Qh=Eo((e,t)=>{const o=Jt("PillsInput",Jh,e),{children:n,onMouseDown:r,onClick:s,size:i,disabled:l,__staticSelector:c,error:d,variant:u,...p}=o,m=(0,a.useRef)(null);return(0,ne.jsx)($h,{value:{fieldRef:m,size:i,disabled:l,hasError:!!d,variant:u},children:(0,ne.jsx)(Zi,{size:i,error:d,variant:u,component:"div",ref:t,onMouseDown:e=>{e.preventDefault(),r?.(e),m.current?.focus()},onClick:e=>{e.preventDefault();const t=e.currentTarget.closest("fieldset");t?.disabled||(m.current?.focus(),s?.(e))},...p,multiline:!0,disabled:l,__staticSelector:c||"PillsInput",withAria:!1,children:n})})});Qh.displayName="@mantine/core/PillsInput",Qh.Field=Zh;const ev={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:","},tv=Eo((e,t)=>{const o=Jt("MultiSelect",ev,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,size:d,value:u,defaultValue:p,onChange:m,onKeyDown:f,variant:h,data:v,dropdownOpened:y,defaultDropdownOpened:g,onDropdownOpen:b,onDropdownClose:w,selectFirstOptionOnChange:x,onOptionSubmit:C,comboboxProps:S,filter:N,limit:k,withScrollArea:j,maxDropdownHeight:P,searchValue:R,defaultSearchValue:E,onSearchChange:_,readOnly:D,disabled:I,onFocus:T,onBlur:z,radius:O,rightSection:M,rightSectionWidth:A,rightSectionPointerEvents:$,rightSectionProps:L,leftSection:F,leftSectionWidth:B,leftSectionPointerEvents:V,leftSectionProps:H,inputContainer:W,inputWrapperOrder:G,withAsterisk:K,labelProps:U,descriptionProps:q,errorProps:Y,wrapperProps:X,description:Z,label:J,error:Q,maxValues:ee,searchable:te,nothingFoundMessage:oe,withCheckIcon:re,checkIconPosition:ae,hidePickedOptions:se,withErrorStyles:ie,name:le,form:ce,id:de,clearable:ue,clearButtonProps:pe,hiddenInputProps:me,placeholder:fe,hiddenInputValuesDivider:he,required:ve,mod:ye,renderOption:ge,onRemove:be,onClear:we,scrollAreaProps:xe,chevronColor:Ce,...Se}=o,Ne=(0,ke.useId)(de),je=hc(v),Pe=vc(je),Re=Yc({opened:y,defaultOpened:g,onDropdownOpen:b,onDropdownClose:()=>{w?.(),Re.resetSelectedOption()}}),{styleProps:Ee,rest:{type:_e,autoComplete:De,...Ie}}=io(Se),[Te,ze]=(0,ke.useUncontrolled)({value:u,defaultValue:p,finalValue:[],onChange:m}),[Oe,Me]=(0,ke.useUncontrolled)({value:R,defaultValue:E,finalValue:"",onChange:_}),Ae=e=>{Me(e),Re.resetSelectedOption()},$e=Nt({name:"MultiSelect",classes:{},props:o,classNames:n,styles:i,unstyled:l}),{resolvedClassNames:Le,resolvedStyles:Fe}=st({props:o,styles:i,classNames:n}),Be=Te.map((e,t)=>(0,ne.jsx)(qh,{withRemoveButton:!D&&!Pe[e]?.disabled,onRemove:()=>{ze(Te.filter(t=>e!==t)),be?.(e)},unstyled:l,disabled:I,...$e("pill"),children:Pe[e]?.label||e},`${e}-${t}`));(0,a.useEffect)(()=>{x&&Re.selectFirstOption()},[x,Oe]);const Ve=(0,ne.jsx)(Jc.ClearButton,{...pe,onClear:()=>{we?.(),ze([]),Ae("")}}),He=function({data:e,value:t}){const o=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>(td(t)?e.push({group:t.group,items:t.items.filter(e=>-1===o.indexOf(e.value.toLowerCase().trim()))}):-1===o.indexOf(t.value.toLowerCase().trim())&&e.push(t),e),[])}({data:je,value:Te}),We=ue&&Te.length>0&&!I&&!D;return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)(Jc,{store:Re,classNames:Le,styles:Fe,unstyled:l,size:d,readOnly:D,__staticSelector:"MultiSelect",onOptionSubmit:e=>{C?.(e),Ae(""),Re.updateSelectedOptionIndex("selected"),Te.includes(Pe[e].value)?(ze(Te.filter(t=>t!==Pe[e].value)),be?.(Pe[e].value)):Te.length<ee&&ze([...Te,Pe[e].value])},...S,children:[(0,ne.jsx)(Jc.DropdownTarget,{children:(0,ne.jsx)(Qh,{...Ee,__staticSelector:"MultiSelect",classNames:Le,styles:Fe,unstyled:l,size:d,className:r,style:s,variant:h,disabled:I,radius:O,__defaultRightSection:(0,ne.jsx)(Jc.Chevron,{size:d,error:Q,unstyled:l,color:Ce}),__clearSection:Ve,__clearable:We,rightSection:M,rightSectionPointerEvents:$||(Ve?"all":"none"),rightSectionWidth:A,rightSectionProps:L,leftSection:F,leftSectionWidth:B,leftSectionPointerEvents:V,leftSectionProps:H,inputContainer:W,inputWrapperOrder:G,withAsterisk:K,labelProps:U,descriptionProps:q,errorProps:Y,wrapperProps:X,description:Z,label:J,error:Q,withErrorStyles:ie,__stylesApiProps:{...o,rightSectionPointerEvents:$||(We?"all":"none"),multiline:!0},pointer:!te,onClick:()=>te?Re.openDropdown():Re.toggleDropdown(),"data-expanded":Re.dropdownOpened||void 0,id:Ne,required:ve,mod:ye,children:(0,ne.jsxs)(qh.Group,{disabled:I,unstyled:l,...$e("pillsList"),children:[Be,(0,ne.jsx)(Jc.EventsTarget,{autoComplete:De,children:(0,ne.jsx)(Qh.Field,{...Ie,ref:t,id:Ne,placeholder:fe,type:te||fe?"visible":"hidden",...$e("inputField"),unstyled:l,onFocus:e=>{T?.(e),te&&Re.openDropdown()},onBlur:e=>{z?.(e),Re.closeDropdown(),Ae("")},onKeyDown:e=>{f?.(e)," "!==e.key||te||(e.preventDefault(),Re.toggleDropdown()),"Backspace"===e.key&&0===Oe.length&&Te.length>0&&(be?.(Te[Te.length-1]),ze(Te.slice(0,Te.length-1)))},value:Oe,onChange:e=>{Ae(e.currentTarget.value),te&&Re.openDropdown(),x&&Re.selectFirstOption()},disabled:I,readOnly:D||!te,pointer:!te})})]})})}),(0,ne.jsx)(ad,{data:se?He:je,hidden:D||I,filter:N,search:Oe,limit:k,hiddenWhenEmpty:!oe,withScrollArea:j,maxDropdownHeight:P,filterOptions:te,value:Te,checkIconPosition:ae,withCheckIcon:re,nothingFoundMessage:oe,unstyled:l,labelId:J?`${Ne}-label`:void 0,"aria-label":J?void 0:Se["aria-label"],renderOption:ge,scrollAreaProps:xe})]}),(0,ne.jsx)(Jc.HiddenInput,{name:le,valuesDivider:he,value:Te,form:ce,disabled:I,...me})]})});function ov({data:e}){if("group"in e){const t=e.items.map(e=>(0,ne.jsx)(ov,{data:e},e.value));return(0,ne.jsx)("optgroup",{label:e.group,children:t})}const{value:t,label:o,...n}=e;return(0,ne.jsx)("option",{value:e.value,...n,children:e.label},e.value)}tv.classes={...Zi.classes,...Jc.classes},tv.displayName="@mantine/core/MultiSelect",ov.displayName="@mantine/core/NativeSelectOption";const nv={rightSectionPointerEvents:"none"},rv=Eo((e,t)=>{const{data:o,children:n,size:r,error:a,rightSection:s,unstyled:i,...l}=Jt("NativeSelect",nv,e),c=hc(o).map((e,t)=>(0,ne.jsx)(ov,{data:e},t));return(0,ne.jsx)(Zi,{component:"select",ref:t,...l,__staticSelector:"NativeSelect",size:r,pointer:!0,error:a,unstyled:i,rightSection:s||(0,ne.jsx)(Sc,{size:r,error:a,unstyled:i}),children:n||c})});rv.classes=Zi.classes,rv.displayName="@mantine/core/NativeSelect";var av={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const sv={},iv=(e,{variant:t,color:o,childrenOffset:n,autoContrast:r})=>{const a=e.variantColorResolver({color:o||e.primaryColor,theme:e,variant:t||"light",autoContrast:r});return{root:{"--nl-bg":o||t?a.background:void 0,"--nl-hover":o||t?a.hover:void 0,"--nl-color":o||t?a.color:void 0},children:{"--nl-offset":fe(n)}}},lv=_o((e,t)=>{const o=Jt("NavLink",sv,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,opened:c,defaultOpened:d,onChange:u,children:p,onClick:m,active:f,disabled:h,leftSection:v,rightSection:y,label:g,description:b,disableRightSectionRotation:w,noWrap:x,childrenOffset:C,onKeyDown:S,autoContrast:N,mod:k,...j}=o,P=Nt({name:"NavLink",props:o,classes:av,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:iv}),[R,E]=(0,ke.useUncontrolled)({value:c,defaultValue:d,finalValue:!1,onChange:u}),_=!!p;return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)(Ua,{...P("root"),component:"a",ref:t,onClick:e=>{m?.(e),_&&(e.preventDefault(),E(!R))},onKeyDown:e=>{S?.(e),"Space"===e.nativeEvent.code&&_&&(e.preventDefault(),E(!R))},unstyled:i,mod:[{disabled:h,active:f,expanded:R},k],...j,children:[v&&(0,ne.jsx)(jo,{component:"span",...P("section"),mod:{position:"left"},children:v}),(0,ne.jsxs)(jo,{...P("body"),mod:{"no-wrap":x},children:[(0,ne.jsx)(jo,{component:"span",...P("label"),children:g}),(0,ne.jsx)(jo,{component:"span",mod:{active:f},...P("description"),children:b})]}),(_||void 0!==y)&&(0,ne.jsx)(jo,{...P("section"),component:"span",mod:{rotate:R&&!w,position:"right"},children:_?void 0!==y?y:(0,ne.jsx)(ll,{...P("chevron")}):y})]}),_&&(0,ne.jsx)($o,{in:R,...P("collapse"),children:(0,ne.jsx)("div",{...P("children"),children:p})})]})});lv.classes=av,lv.displayName="@mantine/core/NavLink";var cv={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const dv={withCloseButton:!0},uv=(e,{radius:t,color:o})=>({root:{"--notification-radius":void 0===t?void 0:he(t),"--notification-color":o?We(o,e):void 0}}),pv=Eo((e,t)=>{const o=Jt("Notification",dv,e),{className:n,color:r,radius:a,loading:s,withCloseButton:i,withBorder:l,title:c,icon:d,children:u,onClose:p,closeButtonProps:m,classNames:f,style:h,styles:v,unstyled:y,variant:g,vars:b,mod:w,loaderProps:x,role:C,...S}=o,N=Nt({name:"Notification",classes:cv,props:o,className:n,style:h,classNames:f,styles:v,unstyled:y,vars:b,varsResolver:uv});return(0,ne.jsxs)(jo,{...N("root"),mod:[{"data-with-icon":!!d||s,"data-with-border":l},w],ref:t,variant:g,role:C||"alert",...S,children:[d&&!s&&(0,ne.jsx)("div",{...N("icon"),children:d}),s&&(0,ne.jsx)(Bs,{size:28,color:r,...x,...N("loader")}),(0,ne.jsxs)("div",{...N("body"),children:[c&&(0,ne.jsx)("div",{...N("title"),children:c}),(0,ne.jsx)(jo,{...N("description"),mod:{"data-with-title":!!c},children:u})]}),i&&(0,ne.jsx)(oi,{iconSize:16,color:"gray",...m,unstyled:y,onClick:p,...N("closeButton")})]})});function mv(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}var fv;function hv(){}function vv(e){return!!(e||"").match(/\d/)}function yv(e){return null==e}function gv(e){return yv(e)||function(e){return"number"==typeof e&&isNaN(e)}(e)||"number"==typeof e&&!isFinite(e)}function bv(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function wv(e,t){void 0===t&&(t=!0);var o="-"===e[0],n=o&&t,r=(e=e.replace("-","")).split(".");return{beforeDecimal:r[0],afterDecimal:r[1]||"",hasNegation:o,addNegation:n}}function xv(e,t,o){for(var n="",r=o?"0":"",a=0;a<=t-1;a++)n+=e[a]||r;return n}function Cv(e,t){return Array(t+1).join(e)}function Sv(e){var t=e+"",o="-"===t[0]?"-":"";o&&(t=t.substring(1));var n=t.split(/[eE]/g),r=n[0],a=n[1];if(!(a=Number(a)))return o+r;var s=1+a,i=(r=r.replace(".","")).length;return s<0?r="0."+Cv("0",Math.abs(s))+r:s>=i?r+=Cv("0",s-i):r=(r.substring(0,s)||"0")+"."+r.substring(s),o+r}function Nv(e,t,o){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||o)&&t,r=wv(e),a=r.beforeDecimal,s=r.afterDecimal,i=r.hasNegation,l=parseFloat("0."+(s||"0")),c=(s.length<=t?"0."+s:l.toFixed(t)).split("."),d=a;return a&&Number(c[0])&&(d=a.split("").reverse().reduce(function(e,t,o){return e.length>o?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},c[0])),(i?"-":"")+d+(n?".":"")+xv(c[1]||"",t,o)}function kv(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var o=e.createTextRange();return o.move("character",t),o.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}pv.classes=cv,pv.displayName="@mantine/core/Notification",function(e){e.event="event",e.props="prop"}(fv||(fv={}));var jv,Pv,Rv,Ev=(jv=function(e,t){for(var o=0,n=0,r=e.length,a=t.length;e[o]===t[o]&&o<r;)o++;for(;e[r-1-n]===t[a-1-n]&&a-n>o&&r-n>o;)n++;return{from:{start:o,end:r-n},to:{start:o,end:a-n}}},Rv=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Pv&&e.length===Pv.length&&e.every(function(e,t){return e===Pv[t]})?Rv:(Pv=e,Rv=jv.apply(void 0,e))}),_v=function(e,t){var o=Math.min(e.selectionStart,t);return{from:{start:o,end:e.selectionEnd},to:{start:o,end:t}}};function Dv(e){return Math.max(e.selectionStart,e.selectionEnd)}function Iv(e){var t=e.currentValue,o=e.formattedValue,n=e.currentValueIndex,r=e.formattedValueIndex;return t[n]===o[r]}function Tv(e,t,o,n){var r,a,s=e.length;if(r=t,a=s,t=Math.min(Math.max(r,0),a),"left"===n){for(;t>=0&&!o[t];)t--;-1===t&&(t=o.indexOf(!0))}else{for(;t<=s&&!o[t];)t++;t>s&&(t=o.lastIndexOf(!0))}return-1===t&&(t=s),t}function zv(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),o=0,n=t.length;o<n;o++)t[o]=Boolean(vv(e[o])||vv(e[o-1]));return t}function Ov(e,t,o,n,r,s){void 0===s&&(s=hv);var i=function(e){var t=(0,a.useRef)(e);t.current=e;var o=(0,a.useRef)(function(){for(var e=[],o=arguments.length;o--;)e[o]=arguments[o];return t.current.apply(t,e)});return o.current}(function(e,t){var o,a;return gv(e)?(a="",o=""):"number"==typeof e||t?(a="number"==typeof e?Sv(e):e,o=n(a)):(a=r(e,void 0),o=n(a)),{formattedValue:o,numAsString:a}}),l=(0,a.useState)(function(){return i(yv(e)?t:e,o)}),c=l[0],d=l[1],u=e,p=o;yv(e)&&(u=c.numAsString,p=!0);var m=i(u,p);return(0,a.useMemo)(function(){d(m)},[m.formattedValue]),[c,function(e,t){e.formattedValue!==c.formattedValue&&d({formattedValue:e.formattedValue,numAsString:e.value}),s(e,t)}]}function Mv(e){return e.replace(/[^0-9]/g,"")}function Av(e){return e}function $v(e){var t=e.type;void 0===t&&(t="text");var o=e.displayType;void 0===o&&(o="input");var n=e.customInput,r=e.renderText,s=e.getInputRef,l=e.format;void 0===l&&(l=Av);var c=e.removeFormatting;void 0===c&&(c=Mv);var d=e.defaultValue,u=e.valueIsNumericString,p=e.onValueChange,m=e.isAllowed,f=e.onChange;void 0===f&&(f=hv);var h=e.onKeyDown;void 0===h&&(h=hv);var v=e.onMouseUp;void 0===v&&(v=hv);var y=e.onFocus;void 0===y&&(y=hv);var g=e.onBlur;void 0===g&&(g=hv);var b=e.value,w=e.getCaretBoundary;void 0===w&&(w=zv);var x=e.isValidInputCharacter;void 0===x&&(x=vv);var C=e.isCharacterSame,S=mv(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),N=Ov(b,d,Boolean(u),l,c,p),k=N[0],j=k.formattedValue,P=k.numAsString,R=N[1],E=(0,a.useRef)(),_=(0,a.useRef)({formattedValue:j,numAsString:P}),D=function(e,t){_.current={formattedValue:e.formattedValue,numAsString:e.value},R(e,t)},I=(0,a.useState)(!1),T=I[0],z=I[1],O=(0,a.useRef)(null),M=(0,a.useRef)({setCaretTimeout:null,focusTimeout:null});(0,a.useEffect)(function(){return z(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}},[]);var A=l,$=function(e,t){var o=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(o)?void 0:o}},L=function(e,t,o){0===e.selectionStart&&e.selectionEnd===e.value.length||(kv(e,t),M.current.setCaretTimeout=setTimeout(function(){e.value===o&&e.selectionStart!==t&&kv(e,t)},0))},F=function(e,t,o){return Tv(e,t,w(e),o)},B=function(e,t,o){var n=w(t),r=function(e,t,o,n,r,a,s){void 0===s&&(s=Iv);var i=r.findIndex(function(e){return e}),l=e.slice(0,i);t||o.startsWith(l)||(t=l,o=l+o,n+=l.length);for(var c=o.length,d=e.length,u={},p=new Array(c),m=0;m<c;m++){p[m]=-1;for(var f=0,h=d;f<h;f++)if(s({currentValue:o,lastValue:t,formattedValue:e,currentValueIndex:m,formattedValueIndex:f})&&!0!==u[f]){p[m]=f,u[f]=!0;break}}for(var v=n;v<c&&(-1===p[v]||!a(o[v]));)v++;var y=v===c||-1===p[v]?d:p[v];for(v=n-1;v>0&&-1===p[v];)v--;var g=-1===v||-1===p[v]?0:p[v]+1;return g>y?y:n-g<y-n?g:y}(t,j,e,o,n,x,C);return Tv(t,r,n)};(0,a.useEffect)(function(){var e=_.current,t=e.formattedValue,o=e.numAsString;j===t&&P===o||D($(j,P),{event:void 0,source:fv.props})},[j,P]);var V=O.current?Dv(O.current):void 0;("undefined"!=typeof window?a.useLayoutEffect:a.useEffect)(function(){var e=O.current;if(j!==_.current.formattedValue&&e){var t=B(_.current.formattedValue,j,V);e.value=j,L(e,t,j)}},[j]);var H=function(e,t){void 0===t&&(t=0);var o=e.selectionStart,n=e.selectionEnd;E.current={selectionStart:o,selectionEnd:n+t}},W=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",G=Object.assign({inputMode:W},S,{type:t,value:j,onChange:function(e){(function(e,t,o){var n=t.target,r=E.current?_v(E.current,n.selectionEnd):Ev(j,e),a=Object.assign(Object.assign({},r),{lastValue:j}),s=c(e,a),i=A(s);if(s=c(i,void 0),m&&!m($(i,s))){var l=t.target,d=Dv(l),u=B(e,j,d);return l.value=j,L(l,u,j),!1}return function(e){var t=e.formattedValue;void 0===t&&(t="");var o,n=e.input,r=e.source,a=e.event,s=e.numAsString;if(n){var i=e.inputValue||n.value,l=Dv(n);n.value=t,void 0!==(o=B(i,t,l))&&L(n,o,t)}t!==j&&D($(t,s),{event:a,source:r})}({formattedValue:i,numAsString:s,inputValue:e,event:t,source:o,input:t.target}),!0})(e.target.value,e,fv.event)&&f(e),E.current=void 0},onKeyDown:function(e){var t,o=e.target,n=e.key,r=o.selectionStart,a=o.selectionEnd,s=o.value;void 0===s&&(s=""),"ArrowLeft"===n||"Backspace"===n?t=Math.max(r-1,0):"ArrowRight"===n?t=Math.min(r+1,s.length):"Delete"===n&&(t=r);var i=0;"Delete"===n&&r===a&&(i=1);var l="ArrowLeft"===n||"ArrowRight"===n;if(void 0===t||r!==a&&!l)return h(e),void H(o,i);var c=t;l?(c=F(s,t,"ArrowLeft"===n?"left":"right"))!==t&&e.preventDefault():"Delete"!==n||x(s[t])?"Backspace"!==n||x(s[t])||(c=F(s,t,"left")):c=F(s,t,"right"),c!==t&&L(o,c,s),h(e),H(o,i)},onMouseUp:function(e){var t=e.target,o=function(){var e=t.selectionStart,o=t.selectionEnd,n=t.value;if(void 0===n&&(n=""),e===o){var r=F(n,e);r!==e&&L(t,r,n)}};o(),requestAnimationFrame(function(){o()}),v(e),H(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,o=e.currentTarget;O.current=t,M.current.focusTimeout=setTimeout(function(){var n=t.selectionStart,r=t.selectionEnd,a=t.value;void 0===a&&(a="");var s=F(a,n);s===n||0===n&&r===a.length||L(t,s,a),y(Object.assign(Object.assign({},e),{currentTarget:o}))},0)},onBlur:function(e){O.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===o)return r?i().createElement(i().Fragment,null,r(j,S)||null):i().createElement("span",Object.assign({},S,{ref:s}),j);if(n){var K=n;return i().createElement(K,Object.assign({},G,{ref:s}))}return i().createElement("input",Object.assign({},G,{ref:s}))}function Lv(e,t){var o=t.decimalScale,n=t.fixedDecimalScale,r=t.prefix;void 0===r&&(r="");var a=t.suffix;void 0===a&&(a="");var s=t.allowNegative,i=t.thousandsGroupStyle;if(void 0===i&&(i="thousand"),""===e||"-"===e)return e;var l=Fv(t),c=l.thousandSeparator,d=l.decimalSeparator,u=0!==o&&-1!==e.indexOf(".")||o&&n,p=wv(e,s),m=p.beforeDecimal,f=p.afterDecimal,h=p.addNegation;return void 0!==o&&(f=xv(f,o,!!n)),c&&(m=function(e,t,o){var n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(o),r=e.search(/[1-9]/);return r=-1===r?e.length:r,e.substring(0,r)+e.substring(r,e.length).replace(n,"$1"+t)}(m,c,i)),r&&(m=r+m),a&&(f+=a),h&&(m="-"+m),m+(u&&d||"")+f}function Fv(e){var t=e.decimalSeparator;void 0===t&&(t=".");var o=e.thousandSeparator,n=e.allowedDecimalSeparators;return!0===o&&(o=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:n}}function Bv(e){e=function(e){var t=Fv(e),o=t.thousandSeparator,n=t.decimalSeparator,r=e.prefix;void 0===r&&(r="");var a=e.allowNegative;if(void 0===a&&(a=!0),o===n)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+o+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");return r.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+r+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,o=e.allowNegative,n=e.allowLeadingZeros,r=e.onKeyDown;void 0===r&&(r=hv);var a=e.onBlur;void 0===a&&(a=hv);var s=e.thousandSeparator,i=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;void 0===c&&(c="");var d=e.defaultValue,u=e.value,p=e.valueIsNumericString,m=e.onValueChange,f=mv(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),h=Fv(e),v=h.decimalSeparator,y=h.allowedDecimalSeparators,g=function(t){return Lv(t,e)},b=function(t,o){return function(e,t,o){var n;void 0===t&&(t=function(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}(e));var r=o.allowNegative,a=o.prefix;void 0===a&&(a="");var s=o.suffix;void 0===s&&(s="");var i=o.decimalScale,l=t.from,c=t.to,d=c.start,u=c.end,p=Fv(o),m=p.allowedDecimalSeparators,f=p.decimalSeparator,h=e[u]===f;if(vv(e)&&(e===a||e===s)&&""===t.lastValue)return e;if(u-d===1&&-1!==m.indexOf(e[d])){var v=0===i?"":f;e=e.substring(0,d)+v+e.substring(d+1,e.length)}var y=function(e,t,o){var n=!1,r=!1;a.startsWith("-")?n=!1:e.startsWith("--")?(n=!1,r=!0):s.startsWith("-")&&e.length===s.length?n=!1:"-"===e[0]&&(n=!0);var i=n?1:0;return r&&(i=2),i&&(e=e.substring(i),t-=i,o-=i),{value:e,start:t,end:o,hasNegation:n}},g=y(e,d,u),b=g.hasNegation;e=(n=g).value,d=n.start,u=n.end;var w=y(t.lastValue,l.start,l.end),x=w.start,C=w.end,S=w.value,N=e.substring(d,u);!(e.length&&S.length&&(x>S.length-s.length||C<a.length))||N&&s.startsWith(N)||(e=S);var k=0;e.startsWith(a)?k+=a.length:d<a.length&&(k=d),u-=k;var j=(e=e.substring(k)).length,P=e.length-s.length;e.endsWith(s)?j=P:(u>P||u>e.length-s.length)&&(j=u),e=e.substring(0,j),e=function(e,t){void 0===e&&(e="");var o=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),r=o.test(e),a=n.test(e);return e=e.replace(/-/g,""),r&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,r),e=(e.match(function(e){return new RegExp("(^-)|[0-9]|"+bv(e),"g")}(f))||[]).join("");var R=e.indexOf(f);e=e.replace(new RegExp(bv(f),"g"),function(e,t){return t===R?".":""});var E=wv(e,r),_=E.beforeDecimal,D=E.afterDecimal,I=E.addNegation;return c.end-c.start<l.end-l.start&&""===_&&h&&!parseFloat(D)&&(e=I?"-":""),e}(t,o,e)},w=yv(u)?d:u,x=null!=p?p:function(e,t,o){return""===e||!(null==t?void 0:t.match(/\d/))&&!(null==o?void 0:o.match(/\d/))&&"string"==typeof e&&!isNaN(Number(e))}(w,c,t);yv(u)?yv(d)||(x=x||"number"==typeof d):x=x||"number"==typeof u;var C=function(e){return gv(e)?e:("number"==typeof e&&(e=Sv(e)),x&&"number"==typeof i?Nv(e,i,Boolean(l)):e)},S=Ov(C(u),C(d),Boolean(x),g,b,m),N=S[0],k=N.numAsString,j=N.formattedValue,P=S[1];return Object.assign(Object.assign({},f),{value:j,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===v||vv(e)},isCharacterSame:function(e){var t=e.currentValue,o=e.lastValue,n=e.formattedValue,r=e.currentValueIndex,a=e.formattedValueIndex,s=t[r],d=n[a],p=Ev(o,t).to,m=function(e){return b(e).indexOf(".")+c.length};return!(0===u&&l&&i&&t[p.start]===v&&m(t)<r&&m(n)>a||!(r>=p.start&&r<p.end&&y&&y.includes(s)&&d===v)&&s!==d)},onValueChange:P,format:g,removeFormatting:b,getCaretBoundary:function(t){return function(e,t){var o=t.prefix;void 0===o&&(o="");var n=t.suffix;void 0===n&&(n="");var r=Array.from({length:e.length+1}).map(function(){return!0}),a="-"===e[0];r.fill(!1,0,o.length+(a?1:0));var s=e.length;return r.fill(!1,s-n.length+1,s+1),r}(t,e)},onKeyDown:function(e){var t=e.target,n=e.key,a=t.selectionStart,d=t.selectionEnd,u=t.value;if(void 0===u&&(u=""),("Backspace"===n||"Delete"===n)&&d<c.length)e.preventDefault();else if(a===d){"Backspace"===n&&"-"===u[0]&&a===c.length+1&&o&&kv(t,1),i&&l&&("Backspace"===n&&u[a-1]===v?(kv(t,a-1),e.preventDefault()):"Delete"===n&&u[a]===v&&e.preventDefault()),(null==y?void 0:y.includes(n))&&u[a]===v&&kv(t,a+1);var p=!0===s?",":s;"Backspace"===n&&u[a-1]===p&&kv(t,a-1),"Delete"===n&&u[a]===p&&kv(t,a+1),r(e)}else r(e)},onBlur:function(t){var o=k;if(o.match(/\d/g)||(o=""),n||(o=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var o=e.split("."),n=o[0].replace(/^0+/,"")||"0",r=o[1]||"";return(t?"-":"")+n+(r?"."+r:"")}(o)),l&&i&&(o=Nv(o,i,l)),o!==k){var r=Lv(o,e);P({formattedValue:r,value:o,floatValue:parseFloat(o)},{event:t,source:fv.event})}a(t)}})}function Vv(e){var t=Bv(e);return i().createElement($v,Object.assign({},t))}const Hv={};function Wv(e){const t=Jt("NumberFormatter",Hv,e),{value:o,defaultValue:n,...r}=t;return void 0===o?null:(0,ne.jsx)(Vv,{displayType:"text",value:o,...r})}function Gv({direction:e,style:t,...o}){return(0,ne.jsx)("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:"up"===e?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,ne.jsx)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}Wv.extend=e=>e,Wv.displayName="@mantine/core/NumberFormatter";var Kv={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const Uv=/^(0\.0*|-0(\.0*)?)$/,qv=/^-?0\d+(\.\d+)?\.?$/;function Yv(e){return"string"==typeof e&&""!==e&&!Number.isNaN(Number(e))}function Xv(e){return"number"==typeof e?e<Number.MAX_SAFE_INTEGER:""===e||Yv(e)&&Number(e)<Number.MAX_SAFE_INTEGER}function Zv(e,t,o){return void 0===e||(void 0===t||e>=t)&&(void 0===o||e<=o)}const Jv={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},Qv=(e,{size:t})=>({controls:{"--ni-chevron-size":me(t,"ni-chevron-size")}}),ey=Eo((e,t)=>{const o=Jt("NumberInput",Jv,e),{className:n,classNames:r,styles:s,unstyled:i,vars:l,onChange:c,onValueChange:d,value:u,defaultValue:p,max:m,min:f,step:h,hideControls:v,rightSection:y,isAllowed:g,clampBehavior:b,onBlur:w,allowDecimal:x,decimalScale:C,onKeyDown:S,onKeyDownCapture:N,handlersRef:k,startValue:j,disabled:P,rightSectionPointerEvents:R,allowNegative:E,readOnly:_,size:D,rightSectionWidth:I,stepHoldInterval:T,stepHoldDelay:z,allowLeadingZeros:O,withKeyboardEvents:M,trimLeadingZeroesOnBlur:A,...$}=o,L=Nt({name:"NumberInput",classes:Kv,props:o,classNames:r,styles:s,unstyled:i,vars:l,varsResolver:Qv}),{resolvedClassNames:F,resolvedStyles:B}=st({classNames:r,styles:s,props:o}),[V,H]=(0,ke.useUncontrolled)({value:u,defaultValue:p,finalValue:"",onChange:c}),W=void 0!==z&&void 0!==T,G=(0,a.useRef)(null),K=(0,a.useRef)(null),U=(0,a.useRef)(0),q=e=>{const t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},Y=e=>{G.current&&void 0!==e&&G.current.setSelectionRange(e,e)},X=(0,a.useRef)(ue);X.current=()=>{if(!Xv(V))return;let e;const t=q(V),o=q(h),n=Math.max(t,o),r=10**n;if(Yv(V)||"number"==typeof V&&!Number.isNaN(V))if(void 0!==m){const t=(Math.round(Number(V)*r)+Math.round(h*r))/r;e=t<=m?t:m}else e=(Math.round(Number(V)*r)+Math.round(h*r))/r;else e=(0,ke.clamp)(j,f,m);const a=e.toFixed(n);H(parseFloat(a)),d?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:"increment"}),setTimeout(()=>Y(G.current?.value.length),0)};const Z=(0,a.useRef)(ue);Z.current=()=>{if(!Xv(V))return;let e;const t=void 0!==f?f:E?Number.MIN_SAFE_INTEGER:0,o=q(V),n=q(h),r=Math.max(o,n),a=10**r;if(!Yv(V)&&"number"!=typeof V||Number.isNaN(V))e=(0,ke.clamp)(j,t,m);else{const o=(Math.round(Number(V)*a)-Math.round(h*a))/a;e=void 0!==t&&o<t?t:o}const s=e.toFixed(r);H(parseFloat(s)),d?.({floatValue:parseFloat(s),formattedValue:s,value:s},{source:"decrement"}),setTimeout(()=>Y(G.current?.value.length),0)},(0,ke.assignRef)(k,{increment:X.current,decrement:Z.current});const J=e=>{e?X.current():Z.current(),U.current+=1},Q=e=>{if(J(e),W){const t="number"==typeof T?T:T(U.current);K.current=window.setTimeout(()=>Q(e),t)}},ee=(e,t)=>{e.preventDefault(),G.current?.focus(),J(t),W&&(K.current=window.setTimeout(()=>Q(t),z))},te=()=>{K.current&&window.clearTimeout(K.current),K.current=null,U.current=0},oe=(0,ne.jsxs)("div",{...L("controls"),children:[(0,ne.jsx)(Ua,{...L("control"),tabIndex:-1,"aria-hidden":!0,disabled:P||"number"==typeof V&&void 0!==m&&V>=m,mod:{direction:"up"},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{ee(e,!0)},onPointerUp:te,onPointerLeave:te,children:(0,ne.jsx)(Gv,{direction:"up"})}),(0,ne.jsx)(Ua,{...L("control"),tabIndex:-1,"aria-hidden":!0,disabled:P||"number"==typeof V&&void 0!==f&&V<=f,mod:{direction:"down"},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{ee(e,!1)},onPointerUp:te,onPointerLeave:te,children:(0,ne.jsx)(Gv,{direction:"down"})})]});return(0,ne.jsx)(Zi,{component:Vv,allowNegative:E,className:Te(Kv.root,n),size:D,...$,readOnly:_,disabled:P,value:V,getInputRef:(0,ke.useMergedRef)(t,G),onValueChange:(e,t)=>{"event"===t.source&&H(!function(e,t){return("number"==typeof e?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&t.toString().replace(".","").length<14&&""!==t}(e.floatValue,e.value)||Uv.test(e.value)||O&&qv.test(e.value)?e.value:e.floatValue),d?.(e,t)},rightSection:v||_||!Xv(V)?y:y||oe,classNames:F,styles:B,unstyled:i,__staticSelector:"NumberInput",decimalScale:x?C:0,onKeyDown:e=>{S?.(e),!_&&M&&("ArrowUp"===e.key&&(e.preventDefault(),X.current()),"ArrowDown"===e.key&&(e.preventDefault(),Z.current()))},onKeyDownCapture:e=>{if(N?.(e),"Backspace"===e.key){const t=G.current;0===t.selectionStart&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>Y(0),0))}},rightSectionPointerEvents:R??(P?"none":void 0),rightSectionWidth:I??`var(--ni-right-section-width-${D||"sm"})`,allowLeadingZeros:O,onBlur:e=>{let t=V;"blur"===b&&"number"==typeof t&&(t=(0,ke.clamp)(t,f,m)),A&&"string"==typeof t&&q(t)<15&&(t=function(e,t,o){const n=e.toString().replace(/^0+/,""),r=parseFloat(n);return Number.isNaN(r)?n:r>Number.MAX_SAFE_INTEGER?void 0!==t?String(t):n:(0,ke.clamp)(r,o,t)}(t,m,f)),V!==t&&H(t),w?.(e)},isAllowed:e=>"strict"===b?g?g(e)&&Zv(e.floatValue,f,m):Zv(e.floatValue,f,m):!g||g(e)})});ey.classes={...Zi.classes,...Kv},ey.displayName="@mantine/core/NumberInput";const[ty,oy]=re("Pagination.Root component was not found in tree");var ny={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const ry={withPadding:!0},ay=Eo((e,t)=>{const o=Jt("PaginationControl",ry,e),{classNames:n,className:r,style:a,styles:s,vars:i,active:l,disabled:c,withPadding:d,mod:u,...p}=o,m=oy(),f=c||m.disabled;return(0,ne.jsx)(Ua,{ref:t,disabled:f,mod:[{active:l,disabled:f,"with-padding":d},u],...m.getStyles("control",{className:r,style:a,classNames:n,styles:s,active:!f}),...p})});function sy({style:e,children:t,path:o,...n}){return(0,ne.jsx)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...n,children:(0,ne.jsx)("path",{d:o,fill:"currentColor"})})}ay.classes=ny,ay.displayName="@mantine/core/PaginationControl";const iy={icon:e=>(0,ne.jsx)(sy,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"})},ly=Eo((e,t)=>{const o=Jt("PaginationDots",iy,e),{classNames:n,className:r,style:a,styles:s,vars:i,icon:l,...c}=o,d=oy(),u=l;return(0,ne.jsx)(jo,{ref:t,...d.getStyles("dots",{className:r,style:a,styles:s,classNames:n}),...c,children:(0,ne.jsx)(u,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});function cy({icon:e,name:t,action:o,type:n}){const r={icon:e},s=(0,a.forwardRef)((e,a)=>{const{icon:s,...i}=Jt(t,r,e),l=s,c=oy(),d="next"===n?c.active===c.total:1===c.active;return(0,ne.jsx)(ay,{disabled:c.disabled||d,ref:a,onClick:c[o],withPadding:!1,...i,children:(0,ne.jsx)(l,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return s.displayName=`@mantine/core/${t}`,s}ly.classes=ny,ly.displayName="@mantine/core/PaginationDots";const dy=cy({icon:e=>(0,ne.jsx)(sy,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),name:"PaginationNext",action:"onNext",type:"next"}),uy=cy({icon:e=>(0,ne.jsx)(sy,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),name:"PaginationPrevious",action:"onPrevious",type:"previous"}),py=cy({icon:e=>(0,ne.jsx)(sy,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),name:"PaginationFirst",action:"onFirst",type:"previous"}),my=cy({icon:e=>(0,ne.jsx)(sy,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),name:"PaginationLast",action:"onLast",type:"next"});function fy({dotsIcon:e}){const t=oy(),o=t.range.map((o,n)=>"dots"===o?(0,ne.jsx)(ly,{icon:e},n):(0,ne.jsx)(ay,{active:o===t.active,"aria-current":o===t.active?"page":void 0,onClick:()=>t.onChange(o),disabled:t.disabled,...t.getItemProps?.(o),children:t.getItemProps?.(o)?.children??o},n));return(0,ne.jsx)(ne.Fragment,{children:o})}fy.displayName="@mantine/core/PaginationItems";const hy={siblings:1,boundaries:1},vy=(e,{size:t,radius:o,color:n,autoContrast:r})=>({root:{"--pagination-control-radius":void 0===o?void 0:he(o),"--pagination-control-size":me(t,"pagination-control-size"),"--pagination-control-fz":ve(t),"--pagination-active-bg":n?We(n,e):void 0,"--pagination-active-color":_t(r,e)?Rt({color:n,theme:e,autoContrast:r}):void 0}}),yy=Eo((e,t)=>{const o=Jt("PaginationRoot",hy,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,total:c,value:d,defaultValue:u,onChange:p,disabled:m,siblings:f,boundaries:h,color:v,radius:y,onNextPage:g,onPreviousPage:b,onFirstPage:w,onLastPage:x,getItemProps:C,autoContrast:S,...N}=o,k=Nt({name:"Pagination",classes:ny,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:vy}),{range:j,setPage:P,next:R,previous:E,active:_,first:D,last:I}=(0,ke.usePagination)({page:d,initialPage:u,onChange:p,total:c,siblings:f,boundaries:h}),T=be(g,R),z=be(b,E),O=be(w,D),M=be(x,I);return(0,ne.jsx)(ty,{value:{total:c,range:j,active:_,disabled:m,getItemProps:C,onChange:P,onNext:T,onPrevious:z,onFirst:O,onLast:M,getStyles:k},children:(0,ne.jsx)(jo,{ref:t,...k("root"),...N})})});yy.classes=ny,yy.displayName="@mantine/core/PaginationRoot";const gy={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},by=Eo((e,t)=>{const o=Jt("Pagination",gy,e),{withEdges:n,withControls:r,getControlProps:a,nextIcon:s,previousIcon:i,lastIcon:l,firstIcon:c,dotsIcon:d,total:u,gap:p,hideWithOnePage:m,withPages:f,...h}=o;return u<=0||m&&1===u?null:(0,ne.jsx)(yy,{ref:t,total:u,...h,children:(0,ne.jsxs)(si,{gap:p,children:[n&&(0,ne.jsx)(py,{icon:c,...a?.("first")}),r&&(0,ne.jsx)(uy,{icon:i,...a?.("previous")}),f&&(0,ne.jsx)(fy,{dotsIcon:d}),r&&(0,ne.jsx)(dy,{icon:s,...a?.("next")}),n&&(0,ne.jsx)(my,{icon:l,...a?.("last")})]})})});by.classes=ny,by.displayName="@mantine/core/Pagination",by.Root=yy,by.Control=ay,by.Dots=ly,by.First=py,by.Last=my,by.Next=dy,by.Previous=uy,by.Items=fy;var wy={root:"m_f61ca620",input:"m_ccf8da4c",innerInput:"m_f2d85dd2",visibilityToggle:"m_b1072d44"};const xy={visibilityToggleIcon:({reveal:e})=>(0,ne.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"var(--psi-icon-size)",height:"var(--psi-icon-size)"},children:(0,ne.jsx)("path",{d:e?"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z":"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})},Cy=(e,{size:t})=>({root:{"--psi-icon-size":me(t,"psi-icon-size"),"--psi-button-size":me(t,"psi-button-size")}}),Sy=Eo((e,t)=>{const o=Jt("PasswordInput",xy,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,required:c,error:d,leftSection:u,disabled:p,id:m,variant:f,inputContainer:h,description:v,label:y,size:g,errorProps:b,descriptionProps:w,labelProps:x,withAsterisk:C,inputWrapperOrder:S,wrapperProps:N,radius:k,rightSection:j,rightSectionWidth:P,rightSectionPointerEvents:R,leftSectionWidth:E,visible:_,defaultVisible:D,onVisibilityChange:I,visibilityToggleIcon:T,visibilityToggleButtonProps:z,rightSectionProps:O,leftSectionProps:M,leftSectionPointerEvents:A,withErrorStyles:$,mod:L,...F}=o,B=(0,ke.useId)(m),[V,H]=(0,ke.useUncontrolled)({value:_,defaultValue:D,finalValue:!1,onChange:I}),W=()=>H(!V),G=Nt({name:"PasswordInput",classes:wy,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Cy}),{resolvedClassNames:K,resolvedStyles:U}=st({classNames:n,styles:s,props:o}),{styleProps:q,rest:Y}=io(F),X=T,Z=b?.id||`${B}-error`,J=w?.id||`${B}-description`,Q=`${d&&"boolean"!=typeof d?Z:""} ${v?J:""}`,ee=Q.trim().length>0?Q.trim():void 0,te=(0,ne.jsx)(Zs,{...G("visibilityToggle"),disabled:p,radius:k,"aria-hidden":!z,tabIndex:-1,...z,variant:z?.variant??"subtle",color:"gray",unstyled:i,onTouchEnd:e=>{e.preventDefault(),z?.onTouchEnd?.(e),W()},onMouseDown:e=>{e.preventDefault(),z?.onMouseDown?.(e),W()},onKeyDown:e=>{z?.onKeyDown?.(e)," "===e.key&&(e.preventDefault(),W())},children:(0,ne.jsx)(X,{reveal:V})});return(0,ne.jsx)(qi.Wrapper,{required:c,id:B,label:y,error:d,description:v,size:g,classNames:K,styles:U,__staticSelector:"PasswordInput",unstyled:i,withAsterisk:C,inputWrapperOrder:S,inputContainer:h,variant:f,labelProps:{...x,htmlFor:B},descriptionProps:{...w,id:J},errorProps:{...b,id:Z},mod:L,...G("root"),...q,...N,children:(0,ne.jsx)(qi,{component:"div",error:d,leftSection:u,size:g,classNames:{...K,input:Te(wy.input,K.input)},styles:U,radius:k,disabled:p,__staticSelector:"PasswordInput",rightSectionWidth:P,rightSection:j??te,variant:f,unstyled:i,leftSectionWidth:E,rightSectionPointerEvents:R||"all",rightSectionProps:O,leftSectionProps:M,leftSectionPointerEvents:A,withAria:!1,withErrorStyles:$,children:(0,ne.jsx)("input",{required:c,"data-invalid":!!d||void 0,"data-with-left-section":!!u||void 0,...G("innerInput"),disabled:p,id:B,ref:t,...Y,"aria-describedby":ee,autoComplete:Y.autoComplete||"off",type:V?"text":"password"})})})});function Ny(e,t){if(e<1)return[];const o=new Array(e).fill("");if(t){const n=t.trim().split("");for(let t=0;t<Math.min(e,n.length);t+=1)o[t]=" "===n[t]?"":n[t]}return o}Sy.classes={...Zi.classes,...wy},Sy.displayName="@mantine/core/PasswordInput";var ky={root:"m_f1cb205a",pinInput:"m_cb288ead"};const jy={number:/^[0-9]+$/,alphanumeric:/^[a-zA-Z0-9]+$/i},Py={gap:"sm",length:4,manageFocus:!0,oneTimeCode:!0,placeholder:"○",type:"alphanumeric",ariaLabel:"PinInput"},Ry=(e,{size:t})=>({root:{"--pin-input-size":me(t??Py.size,"pin-input-size")}}),Ey=Eo((e,t)=>{const{name:o,form:n,className:r,value:s,defaultValue:i,variant:l,gap:c,style:d,size:u,classNames:p,styles:m,unstyled:f,length:h,onChange:v,onComplete:y,manageFocus:g,autoFocus:b,error:w,radius:x,disabled:C,oneTimeCode:S,placeholder:N,type:k,mask:j,readOnly:P,inputType:R,inputMode:E,ariaLabel:_,vars:D,id:I,hiddenInputProps:T,rootRef:z,getInputProps:O,...M}=Jt("PinInput",Py,e),A=(0,ke.useId)(I),$=Nt({name:"PinInput",classes:ky,props:e,className:r,style:d,classNames:p,styles:m,unstyled:f,vars:D,varsResolver:Ry}),{resolvedClassNames:L,resolvedStyles:F}=st({classNames:p,styles:m,props:e}),[B,V]=(0,a.useState)(-1),[H,W]=(0,ke.useUncontrolled)({value:s?Ny(h??0,s):void 0,defaultValue:i?.split("").slice(0,h??0),finalValue:Ny(h??0,""),onChange:"function"==typeof v?e=>{v(e.join("").trim())}:void 0}),G=H.join("").trim(),K=(0,a.useRef)([]),U=e=>{const t=k instanceof RegExp?k:k&&k in jy?jy[k]:null;return t?.test(e)},q=(e,t,o)=>{if(g){if("next"===e){const e=t+1;e<(h??0)&&(o?.preventDefault(),K.current[e].focus())}if("prev"===e){const e=t-1;e>-1&&(o?.preventDefault(),K.current[e].focus())}}else o?.preventDefault()},Y=(e,t)=>{const o=[...H];o[t]=e,W(o)},X=()=>{V(-1)},Z=e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain").replace(/[\n\r\s]+/g,"");if(U(t.trim())){const e=Ny(h??0,t);W(e),q("next",e.length-2)}};return(0,a.useEffect)(()=>{G.length===h&&y?.(G)},[h,G]),(0,a.useEffect)(()=>{h!==H.length&&W(Ny(h??0,H.join("")))},[h,H]),(0,a.useEffect)(()=>{""===s&&W(Ny(h??0,s))},[s]),(0,a.useEffect)(()=>{C&&V(-1)},[C]),(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(si,{...M,...$("root"),ref:z,role:"group",id:A,gap:c,unstyled:f,wrap:"nowrap",variant:l,__size:u,dir:"ltr",children:H.map((e,o)=>(0,a.createElement)(qi,{component:"input",...$("pinInput",{style:{"--input-padding":"0","--input-text-align":"center"}}),classNames:L,styles:F,size:u,__staticSelector:"PinInput",id:`${A}-${o+1}`,key:`${A}-${o}`,inputMode:E||("number"===k?"numeric":"text"),onChange:e=>((e,t)=>{const o=e.target.value,n=2===o.length?o.split("")[o.length-1]:o,r=U(n);n.length<2?r?(Y(n,t),q("next",t)):Y("",t):r&&W(Ny(h??0,o))})(e,o),onKeyDown:e=>((e,t)=>{const{ctrlKey:o,metaKey:n,key:r,shiftKey:a,target:s}=e,i=s.value;"numeric"===E&&("Backspace"===r||"Tab"===r||"Control"===r||"Delete"===r||o&&"v"===r||n&&"v"===r||!Number.isNaN(Number(r))||e.preventDefault()),"ArrowLeft"===r||a&&"Tab"===r?q("prev",t,e):"ArrowRight"===r||"Tab"===r||" "===r?q("next",t,e):"Delete"===r?Y("",t):"Backspace"===r?0!==t&&(Y("",t),h===t+1?""===e.target.value&&q("prev",t,e):q("prev",t,e)):i.length>0&&r===H[t]&&q("next",t,e)})(e,o),onFocus:e=>((e,t)=>{e.target.select(),V(t)})(e,o),onBlur:X,onPaste:Z,type:R||(j?"password":"number"===k?"tel":"text"),radius:x,error:w,variant:l,disabled:C,ref:e=>{0===o&&(0,ke.assignRef)(t,e),K.current[o]=e},autoComplete:S?"one-time-code":"off",placeholder:B===o?"":N,value:e,autoFocus:b&&0===o,unstyled:f,"aria-label":_,readOnly:P,...O?.(o)}))}),(0,ne.jsx)("input",{type:"hidden",name:o,form:n,value:G,...T})]})});Ey.classes={...ky,...Zi.classes},Ey.displayName="@mantine/core/PinInput";const[_y,Dy]=re("Progress.Root component was not found in tree");var Iy={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const Ty={},zy=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,...i}=Jt("ProgressLabel",Ty,e),l=Dy();return(0,ne.jsx)(jo,{ref:t,...l.getStyles("label",{className:n,style:r,classNames:o,styles:a}),...i})});zy.classes=Iy,zy.displayName="@mantine/core/ProgressLabel";const Oy={},My=(e,{size:t,radius:o,transitionDuration:n})=>({root:{"--progress-size":me(t,"progress-size"),"--progress-radius":void 0===o?void 0:he(o),"--progress-transition-duration":"number"==typeof n?`${n}ms`:void 0}}),Ay=Eo((e,t)=>{const o=Jt("ProgressRoot",Oy,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,autoContrast:c,transitionDuration:d,...u}=o,p=Nt({name:"Progress",classes:Iy,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:My});return(0,ne.jsx)(_y,{value:{getStyles:p,autoContrast:c},children:(0,ne.jsx)(jo,{ref:t,...p("root"),...u})})});Ay.classes=Iy,Ay.displayName="@mantine/core/ProgressRoot";const $y={withAria:!0},Ly=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,value:i,withAria:l,color:c,striped:d,animated:u,mod:p,...m}=Jt("ProgressSection",$y,e),f=Dy(),h=rt(),v=l?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":i,"aria-valuetext":`${i}%`}:{};return(0,ne.jsx)(jo,{ref:t,...f.getStyles("section",{className:n,classNames:o,styles:a,style:r}),...m,...v,mod:[{striped:d||u,animated:u},p],__vars:{"--progress-section-width":`${i}%`,"--progress-section-color":We(c,h),"--progress-label-color":_t(f.autoContrast,h)?Rt({color:c,theme:h,autoContrast:f.autoContrast}):void 0}})});Ly.classes=Iy,Ly.displayName="@mantine/core/ProgressSection";const Fy={},By=Eo((e,t)=>{const o=Jt("Progress",Fy,e),{value:n,classNames:r,styles:a,vars:s,color:i,striped:l,animated:c,"aria-label":d,...u}=o,{resolvedClassNames:p,resolvedStyles:m}=st({classNames:r,styles:a,props:o});return(0,ne.jsx)(Ay,{ref:t,classNames:p,styles:m,vars:s,...u,children:(0,ne.jsx)(Ly,{value:n,color:i,striped:l,animated:c,"aria-label":d})})});By.classes=Iy,By.displayName="@mantine/core/Progress",By.Section=Ly,By.Root=Ay,By.Label=zy;const[Vy,Hy]=ae(),[Wy,Gy]=ae();var Ky={card:"m_9dc8ae12"};const Uy={withBorder:!0},qy=(e,{radius:t})=>({card:{"--card-radius":he(t)}}),Yy=Eo((e,t)=>{const o=Jt("RadioCard",Uy,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,checked:c,mod:d,withBorder:u,value:p,onClick:m,name:f,onKeyDown:h,...v}=o,y=Nt({name:"RadioCard",classes:Ky,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:qy,rootSelector:"card"}),{dir:g}=Io(),b=Hy(),w="boolean"==typeof c?c:b?.value===p||!1,x=f||b?.name;return(0,ne.jsx)(Wy,{value:{checked:w},children:(0,ne.jsx)(Ua,{ref:t,mod:[{"with-border":u,checked:w},d],...y("card"),...v,role:"radio","aria-checked":w,name:x,onClick:e=>{m?.(e),b?.onChange(p||"")},onKeyDown:e=>{if(h?.(e),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.nativeEvent.code)){e.preventDefault();const t=Array.from(document.querySelectorAll(`[role="radio"][name="${x||"__mantine"}"]`)),o=t.findIndex(t=>t===e.target),n=o+1>=t.length?0:o+1,r=o-1<0?t.length-1:o-1;"ArrowDown"===e.nativeEvent.code&&(t[n].focus(),t[n].click()),"ArrowUp"===e.nativeEvent.code&&(t[r].focus(),t[r].click()),"ArrowLeft"===e.nativeEvent.code&&(t["ltr"===g?r:n].focus(),t["ltr"===g?r:n].click()),"ArrowRight"===e.nativeEvent.code&&(t["ltr"===g?n:r].focus(),t["ltr"===g?n:r].click())}}})})});Yy.displayName="@mantine/core/RadioCard",Yy.classes=Ky;const Xy={},Zy=Eo((e,t)=>{const{value:o,defaultValue:n,onChange:r,size:a,wrapperProps:s,children:i,name:l,readOnly:c,...d}=Jt("RadioGroup",Xy,e),u=(0,ke.useId)(l),[p,m]=(0,ke.useUncontrolled)({value:o,defaultValue:n,finalValue:"",onChange:r});return(0,ne.jsx)(Vy,{value:{value:p,onChange:e=>!c&&m("string"==typeof e?e:e.currentTarget.value),size:a,name:u},children:(0,ne.jsx)(qi.Wrapper,{size:a,ref:t,...s,...d,labelElement:"div",__staticSelector:"RadioGroup",children:(0,ne.jsx)(wu,{role:"radiogroup",children:i})})})});function Jy({size:e,style:t,...o}){return(0,ne.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:J(e),height:J(e),...t},"aria-hidden":!0,...o,children:(0,ne.jsx)("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}Zy.classes=qi.Wrapper.classes,Zy.displayName="@mantine/core/RadioGroup";var Qy={indicator:"m_717d7ff6",icon:"m_3e4da632","indicator--outline":"m_2980836c"};const eg={icon:Jy},tg=(e,{radius:t,color:o,size:n,iconColor:r,variant:a,autoContrast:s})=>{const i=He({color:o||e.primaryColor,theme:e}),l=i.isThemeColor&&void 0===i.shade?`var(--mantine-color-${i.color}-outline)`:i.color;return{indicator:{"--radio-size":me(n,"radio-size"),"--radio-radius":void 0===t?void 0:he(t),"--radio-color":"outline"===a?l:We(o,e),"--radio-icon-size":me(n,"radio-icon-size"),"--radio-icon-color":r?We(r,e):_t(s,e)?Rt({color:o,theme:e,autoContrast:s}):void 0}}},og=Eo((e,t)=>{const o=Jt("RadioIndicator",eg,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,icon:c,radius:d,color:u,iconColor:p,autoContrast:m,checked:f,mod:h,variant:v,disabled:y,...g}=o,b=c,w=Nt({name:"RadioIndicator",classes:Qy,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:tg,rootSelector:"indicator"}),x=Gy(),C="boolean"==typeof f?f:x?.checked||!1;return(0,ne.jsx)(jo,{ref:t,...w("indicator",{variant:v}),variant:v,mod:[{checked:C,disabled:y},h],...g,children:(0,ne.jsx)(b,{...w("icon")})})});og.displayName="@mantine/core/RadioIndicator",og.classes=Qy;var ng={root:"m_f3f1af94",inner:"m_89c4f5e4",icon:"m_f3ed6b2b",radio:"m_8a3dbb89","radio--outline":"m_1bfe9d39"};const rg={labelPosition:"right"},ag=(e,{size:t,radius:o,color:n,iconColor:r,variant:a,autoContrast:s})=>{const i=He({color:n||e.primaryColor,theme:e}),l=i.isThemeColor&&void 0===i.shade?`var(--mantine-color-${i.color}-outline)`:i.color;return{root:{"--radio-size":me(t,"radio-size"),"--radio-radius":void 0===o?void 0:he(o),"--radio-color":"outline"===a?l:We(n,e),"--radio-icon-color":r?We(r,e):_t(s,e)?Rt({color:n,theme:e,autoContrast:s}):void 0,"--radio-icon-size":me(t,"radio-icon-size")}}},sg=Eo((e,t)=>{const o=Jt("Radio",rg,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,id:c,size:d,label:u,labelPosition:p,description:m,error:f,radius:h,color:v,variant:y,disabled:g,wrapperProps:b,icon:w=Jy,rootRef:x,iconColor:C,onChange:S,mod:N,...k}=o,j=Nt({name:"Radio",classes:ng,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:ag}),P=Hy(),R=P?.size??d,E=o.size?d:R,{styleProps:_,rest:D}=io(k),I=(0,ke.useId)(c),T=P?{checked:P.value===D.value,name:D.name??P.name,onChange:e=>{P.onChange(e),S?.(e)}}:{};return(0,ne.jsx)(du,{...j("root"),__staticSelector:"Radio",__stylesApiProps:o,id:I,size:E,labelPosition:p,label:u,description:m,error:f,disabled:g,classNames:n,styles:s,unstyled:i,"data-checked":T.checked||void 0,variant:y,ref:x,mod:N,..._,...b,children:(0,ne.jsxs)(jo,{...j("inner"),mod:{"label-position":p},children:[(0,ne.jsx)(jo,{...j("radio",{focusable:!0,variant:y}),onChange:S,...D,...T,component:"input",mod:{error:!!f},ref:t,id:I,disabled:g,type:"radio"}),(0,ne.jsx)(w,{...j("icon"),"aria-hidden":!0})]})})});sg.classes=ng,sg.displayName="@mantine/core/Radio",sg.Group=Zy,sg.Card=Yy,sg.Indicator=og;const[ig,lg]=re("Rating was not found in tree");function cg(e){const{width:t,height:o,style:n,...r}=e;return(0,ne.jsx)("svg",{viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:o,...n},...r,children:(0,ne.jsx)("path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z"})})}function dg({type:e}){const t=lg();return(0,ne.jsx)(cg,{...t.getStyles("starSymbol"),"data-filled":"full"===e||void 0})}function ug({getSymbolLabel:e,emptyIcon:t,fullIcon:o,full:n,active:r,value:a,readOnly:s,fractionValue:i,color:l,id:c,onBlur:d,onChange:u,onInputChange:p,style:m,...f}){const h=lg(),v="function"==typeof o?o(a):o,y="function"==typeof t?t(a):t,{dir:g}=Io();return(0,ne.jsxs)(ne.Fragment,{children:[!s&&(0,ne.jsx)("input",{...h.getStyles("input"),onKeyDown:e=>" "===e.key&&u(a),id:c,type:"radio","data-active":r||void 0,"aria-label":e?.(a),value:a,onBlur:d,onChange:p,...f}),(0,ne.jsx)(jo,{component:s?"div":"label",...h.getStyles("label"),"data-read-only":s||void 0,htmlFor:c,onClick:()=>u(a),__vars:{"--rating-item-z-index":(1===i?void 0:r?2:0)?.toString()},children:(0,ne.jsx)(jo,{...h.getStyles("symbolBody"),__vars:{"--rating-symbol-clip-path":1===i?void 0:"ltr"===g?`inset(0 ${r?100-100*i:100}% 0 0)`:`inset(0 0 0 ${r?100-100*i:100}% )`},children:n?v||(0,ne.jsx)(dg,{type:"full"}):y||(0,ne.jsx)(dg,{type:"empty"})})})]})}cg.displayName="@mantine/core/StarIcon",dg.displayName="@mantine/core/StarSymbol",ug.displayName="@mantine/core/RatingItem";var pg={root:"m_f8d312f2",symbolGroup:"m_61734bb7",starSymbol:"m_5662a89a",input:"m_211007ba",label:"m_21342ee4",symbolBody:"m_fae05d6a"};function mg(e,t){const o=Math.round(e/t)*t,n=`${t}`.split(".")[1]?.length||0;return Number(o.toFixed(n))}const fg={size:"sm",getSymbolLabel:e=>`${e}`,count:5,fractions:1,color:"yellow"},hg=(e,{size:t,color:o})=>({root:{"--rating-size":me(t,"rating-size"),"--rating-color":We(o,e)}}),vg=Eo((e,t)=>{const o=Jt("Rating",fg,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,name:d,id:u,value:p,defaultValue:m,onChange:f,fractions:h,count:v,onMouseEnter:y,readOnly:g,onMouseMove:b,onHover:w,onMouseLeave:x,onTouchStart:C,onTouchEnd:S,size:N,variant:k,getSymbolLabel:j,color:P,emptySymbol:R,fullSymbol:E,highlightSelectedOnly:_,...D}=o,I=Nt({name:"Rating",classes:pg,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:hg}),{dir:T}=Io(),z=(0,ke.useId)(d),O=(0,ke.useId)(u),M=(0,a.useRef)(null),[A,$]=(0,ke.useUncontrolled)({value:p,defaultValue:m,finalValue:0,onChange:f}),[L,F]=(0,a.useState)(-1),[B,V]=(0,a.useState)(!0),H=Math.floor(h),W=Math.floor(v),G=1/H,K=mg(A,G),U=-1!==L?L:K,q=e=>{const{left:t,right:o,width:n}=M.current.getBoundingClientRect(),r=("rtl"===T?o-e:e-t)/(n/W);return(0,ke.clamp)(mg(r+G/2,G),G,W)},Y=()=>B&&F(-1),X=e=>{g||F("number"==typeof e?e:parseFloat(e.target.value))},Z=e=>{g||$("number"==typeof e?e:parseFloat(e.target.value))},J=Array(W).fill(0).map((e,t)=>{const o=t+1,n=Array.from(new Array(0===t?H+1:H)),r=!g&&Math.ceil(L)===o;return(0,ne.jsx)("div",{"data-active":r||void 0,...I("symbolGroup"),children:n.map((e,n)=>{const r=G*(0===t?n:n+1),a=mg(o-1+r,G);return(0,ne.jsx)(ug,{getSymbolLabel:j,emptyIcon:R,fullIcon:E,full:_?a===U:a<=U,active:a===U,checked:a===K,readOnly:g,fractionValue:r,value:a,name:z,onChange:Z,onBlur:Y,onInputChange:X,id:`${O}-${t}-${n}`},`${o}-${a}`)})},o)});return(0,ne.jsx)(ig,{value:{getStyles:I},children:(0,ne.jsx)(jo,{ref:(0,ke.useMergedRef)(M,t),...I("root"),onMouseMove:e=>{if(b?.(e),g)return;const t=q(e.clientX);F(t),t!==L&&w?.(t)},onMouseEnter:e=>{y?.(e),!g&&V(!1)},onMouseLeave:e=>{x?.(e),g||(F(-1),V(!0),-1!==L&&w?.(-1))},onTouchStart:e=>{const{touches:t}=e;if(1===t.length){if(!g){const e=t[0];$(q(e.clientX))}C?.(e)}},onTouchEnd:e=>{e.preventDefault(),S?.(e)},variant:k,size:N,id:O,...D,children:J})})});vg.classes=pg,vg.displayName="@mantine/core/Rating";const yg={duration:100,transition:"fade"};function gg(e,t){return{...yg,...t,...e}}var bg={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const wg={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:de("popover")},xg=(e,{radius:t,color:o})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:he(t),"--tooltip-bg":o?We(o,e):void 0,"--tooltip-color":o?"var(--mantine-color-white)":void 0}}),Cg=Eo((e,t)=>{const o=Jt("TooltipFloating",wg,e),{children:n,refProp:r,withinPortal:s,style:i,className:l,classNames:c,styles:d,unstyled:u,radius:p,color:m,label:f,offset:h,position:v,multiline:y,zIndex:g,disabled:b,defaultOpened:w,variant:x,vars:C,portalProps:S,...N}=o,k=rt(),j=Nt({name:"TooltipFloating",props:o,classes:bg,className:l,style:i,classNames:c,styles:d,unstyled:u,rootSelector:"tooltip",vars:C,varsResolver:xg}),{handleMouseMove:P,x:R,y:E,opened:_,boundaryRef:D,floating:I,setOpened:T}=function({offset:e,position:t,defaultOpened:o}){const[n,r]=(0,a.useState)(o),s=(0,a.useRef)(null),{x:i,y:l,elements:c,refs:d,update:u,placement:p}=sa({placement:t,middleware:[Rr({crossAxis:!0,padding:5,rootBoundary:"document"})]}),m=p.includes("right")?e:t.includes("left")?-1*e:0,f=p.includes("bottom")?e:t.includes("top")?-1*e:0,h=(0,a.useCallback)(({clientX:e,clientY:t})=>{d.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+m,top:t+f,right:e,bottom:t})})},[c.reference]);return(0,a.useEffect)(()=>{if(d.floating.current){const e=s.current;e.addEventListener("mousemove",h);const t=un(d.floating.current);return t.forEach(e=>{e.addEventListener("scroll",u)}),()=>{e.removeEventListener("mousemove",h),t.forEach(e=>{e.removeEventListener("scroll",u)})}}},[c.reference,d.floating.current,u,h,n]),{handleMouseMove:h,x:i,y:l,opened:n,setOpened:r,boundaryRef:s,floating:d.setFloating}}({offset:h,position:v,defaultOpened:w});if(!oe(n))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const z=(0,ke.useMergedRef)(D,_e(n),t),O=n.props;return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(cs,{...S,withinPortal:s,children:(0,ne.jsx)(jo,{...N,...j("tooltip",{style:{...bo(i,k),zIndex:g,display:!b&&_?"block":"none",top:(E&&Math.round(E))??"",left:(R&&Math.round(R))??""}}),variant:x,ref:I,mod:{multiline:y},children:f})}),(0,a.cloneElement)(n,{...O,[r]:z,onMouseEnter:e=>{O.onMouseEnter?.(e),P(e),T(!0)},onMouseLeave:e=>{O.onMouseLeave?.(e),T(!1)}})]})});Cg.classes=bg,Cg.displayName="@mantine/core/TooltipFloating";const Sg=(0,a.createContext)(!1),Ng=Sg.Provider,kg={openDelay:0,closeDelay:0};function jg(e){const{openDelay:t,closeDelay:o,children:n}=Jt("TooltipGroup",kg,e);return(0,ne.jsx)(Ng,{value:!0,children:(0,ne.jsx)(Qr,{delay:{open:t,close:o},children:n})})}function Pg(e){const t=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),o=[Pr(e.offset)];return t.shift&&o.push(Rr("boolean"==typeof t.shift?{padding:8}:{padding:8,...t.shift})),t.flip&&o.push("boolean"==typeof t.flip?_r():_r(t.flip)),o.push(Tr({element:e.arrowRef,padding:e.arrowOffset})),t.inline?o.push("boolean"==typeof t.inline?Ir():Ir(t.inline)):e.inline&&o.push(Ir()),o}function Rg(e){const[t,o]=(0,a.useState)(e.defaultOpened),n="boolean"==typeof e.opened?e.opened:t,r=(0,a.useContext)(Sg),s=(0,ke.useId)(),i=(0,a.useCallback)(e=>{o(e),e&&g(s)},[s]),{x:l,y:c,context:d,refs:u,update:p,placement:m,middlewareData:{arrow:{x:f,y:h}={}}}=sa({strategy:e.strategy,placement:e.position,open:n,onOpenChange:i,middleware:Pg(e)}),{delay:v,currentId:y,setCurrentId:g}=function(e,t){void 0===t&&(t={});const{open:o,onOpenChange:n,floatingId:r}=e,{id:s,enabled:i=!0}=t,l=null!=s?s:r,c=a.useContext(Jr),{currentId:d,setCurrentId:u,initialDelay:p,setState:m,timeoutMs:f}=c;return Ar(()=>{i&&d&&(m({delay:{open:1,close:Yr(p,"close")}}),d!==l&&n(!1))},[i,l,n,m,d,p]),Ar(()=>{function e(){n(!1),m({delay:p,currentId:null})}if(i&&d&&!o&&d===l){if(f){const t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}},[i,o,m,d,l,n,p,f]),Ar(()=>{i&&u!==Zr&&o&&u(l)},[i,o,u,l]),c}(d,{id:s}),{getReferenceProps:b,getFloatingProps:w}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),o=e.map(e=>null==e?void 0:e.floating),n=e.map(e=>null==e?void 0:e.item),r=a.useCallback(t=>da(t,e,"reference"),t),s=a.useCallback(t=>da(t,e,"floating"),o),i=a.useCallback(t=>da(t,e,"item"),n);return a.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:i}),[r,s,i])}([Xr(d,{enabled:e.events?.hover,delay:r?v:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),ia(d,{enabled:e.events?.focus,visibleOnly:!0}),pa(d,{role:"tooltip"}),aa(d,{enabled:void 0===e.opened})]);Es({opened:n,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:u,update:p}}),(0,ke.useDidUpdate)(()=>{e.onPositionChange?.(m)},[m]);const x=n&&y&&y!==s;return{x:l,y:c,arrowX:f,arrowY:h,reference:u.setReference,floating:u.setFloating,getFloatingProps:w,getReferenceProps:b,isGroupPhase:x,opened:n,placement:m}}jg.displayName="@mantine/core/TooltipGroup",jg.extend=e=>e;const Eg={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:de("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},_g=(e,{radius:t,color:o})=>({tooltip:{"--tooltip-radius":void 0===t?void 0:he(t),"--tooltip-bg":o?We(o,e):void 0,"--tooltip-color":o?"var(--mantine-color-white)":void 0}}),Dg=Eo((e,t)=>{const o=Jt("Tooltip",Eg,e),{children:n,position:r,refProp:s,label:i,openDelay:l,closeDelay:c,onPositionChange:d,opened:u,defaultOpened:p,withinPortal:m,radius:f,color:h,classNames:v,styles:y,unstyled:g,style:b,className:w,withArrow:x,arrowSize:C,arrowOffset:S,arrowRadius:N,arrowPosition:k,offset:j,transitionProps:P,multiline:R,events:E,zIndex:_,disabled:D,positionDependencies:I,onClick:T,onMouseEnter:z,onMouseLeave:O,inline:M,variant:A,keepMounted:$,vars:L,portalProps:F,mod:B,floatingStrategy:V,middlewares:H,...W}=Jt("Tooltip",Eg,o),{dir:G}=Io(),K=(0,a.useRef)(null),U=Rg({position:ts(G,r),closeDelay:c,openDelay:l,onPositionChange:d,opened:u,defaultOpened:p,events:E,arrowRef:K,arrowOffset:S,offset:"number"==typeof j?j+(x?C/2:0):j,positionDependencies:[...I,n],inline:M,strategy:V,middlewares:H}),q=Nt({name:"Tooltip",props:o,classes:bg,className:w,style:b,classNames:v,styles:y,unstyled:g,rootSelector:"tooltip",vars:L,varsResolver:_g});if(!oe(n))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Y=(0,ke.useMergedRef)(U.reference,_e(n),t),X=gg(P,{duration:100,transition:"fade"}),Z=n.props;return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(cs,{...F,withinPortal:m,children:(0,ne.jsx)(fs,{...X,keepMounted:$,mounted:!D&&!!U.opened,duration:U.isGroupPhase?10:X.duration,children:e=>(0,ne.jsxs)(jo,{...W,"data-fixed":"fixed"===V||void 0,variant:A,mod:[{multiline:R},B],...U.getFloatingProps({ref:U.floating,className:q("tooltip").className,style:{...q("tooltip").style,...e,zIndex:_,top:U.y??0,left:U.x??0}}),children:[i,(0,ne.jsx)(xs,{ref:K,arrowX:U.arrowX,arrowY:U.arrowY,visible:x,position:U.placement,arrowSize:C,arrowOffset:S,arrowRadius:N,arrowPosition:k,...q("arrow")})]})})}),(0,a.cloneElement)(n,U.getReferenceProps({onClick:T,onMouseEnter:z,onMouseLeave:O,onMouseMove:o.onMouseMove,onPointerDown:o.onPointerDown,onPointerEnter:o.onPointerEnter,className:Te(w,Z.className),...Z,[s]:Y}))]})});function Ig({size:e,thickness:t,sum:o,value:n,root:r,offset:a}){const s=(.9*e-2*t)/2,i=Math.PI*s*2/100,l=r||void 0===n?`${(100-o)*i}, ${o*i}`:`${n*i}, ${(100-n)*i}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:s||0,transform:r?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:l,strokeDashoffset:r?0:a||0}}function Tg({size:e,value:t,offset:o,sum:n,thickness:r,root:a,color:s,lineRoundCaps:i,tooltip:l,getStyles:c,display:d,...u}){const p=rt();return(0,ne.jsx)(Dg.Floating,{disabled:!l,label:l,children:(0,ne.jsx)(jo,{component:"circle",...u,...c("curve"),__vars:{"--curve-color":s?We(s,p):void 0},fill:"none",strokeLinecap:i?"round":"butt",...Ig({sum:n,size:e,thickness:r,value:t,offset:o,root:a})})})}Dg.classes=bg,Dg.displayName="@mantine/core/Tooltip",Dg.Floating=Cg,Dg.Group=jg,Tg.displayName="@mantine/core/Curve";var zg={root:"m_b32e4812",svg:"m_d43b5134",curve:"m_b1ca1fbf",label:"m_b23f9dc4"};const Og={size:120,thickness:12},Mg=(e,{size:t,thickness:o,transitionDuration:n})=>({root:{"--rp-size":J(t),"--rp-label-offset":J(2*o),"--rp-transition-duration":n?`${n}ms`:void 0}}),Ag=Eo((e,t)=>{const o=Jt("RingProgress",Og,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,label:d,sections:u,size:p,thickness:m,roundCaps:f,rootColor:h,transitionDuration:v,...y}=o,g=Nt({name:"RingProgress",classes:zg,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Mg}),b=function(e,t){return Math.min(e||12,(t||120)/4)}(m,p),w=function({size:e,thickness:t,sections:o,renderRoundedLineCaps:n,rootColor:r}){const a=o.reduce((e,t)=>e+t.value,0),s=Math.PI*((.9*e-2*t)/2)*2;let i=s;const l=[],c=[];for(let e=0;e<o.length;e+=1)l.push({sum:a,offset:i,data:o[e],root:!1}),i-=o[e].value/100*s;if(l.push({sum:a,offset:i,data:{color:r},root:!0}),c.push({...l[l.length-1],lineRoundCaps:!1}),l.length>2){c.push({...l[0],lineRoundCaps:n}),c.push({...l[l.length-2],lineRoundCaps:n});for(let e=1;e<=l.length-3;e+=1)c.push({...l[e],lineRoundCaps:!1})}else c.push({...l[0],lineRoundCaps:n});return c}({size:p,thickness:b,sections:u,renderRoundedLineCaps:f,rootColor:h}).map(({data:e,sum:t,root:o,lineRoundCaps:n,offset:r},s)=>(0,a.createElement)(Tg,{...e,key:s,size:p,thickness:b,sum:t,offset:r,color:e?.color,root:o,lineRoundCaps:n,getStyles:g}));return(0,ne.jsxs)(jo,{...g("root"),size:p,ref:t,...y,children:[(0,ne.jsx)("svg",{...g("svg"),children:w}),d&&(0,ne.jsx)("div",{...g("label"),children:d})]})});Ag.classes=zg,Ag.displayName="@mantine/core/RingProgress";var $g={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const Lg={withItemsBorders:!0},Fg=(e,{radius:t,color:o,transitionDuration:n,size:r,transitionTimingFunction:a})=>({root:{"--sc-radius":void 0===t?void 0:he(t),"--sc-color":o?We(o,e):void 0,"--sc-shadow":o?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":void 0===n?void 0:`${n}ms`,"--sc-transition-timing-function":a,"--sc-padding":me(r,"sc-padding"),"--sc-font-size":ve(r)}}),Bg=Eo((e,t)=>{const o=Jt("SegmentedControl",Lg,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,data:d,value:u,defaultValue:p,onChange:m,size:f,name:h,disabled:v,readOnly:y,fullWidth:g,orientation:b,radius:w,color:x,transitionDuration:C,transitionTimingFunction:S,variant:N,autoContrast:k,withItemsBorders:j,mod:P,...R}=o,E=Nt({name:"SegmentedControl",props:o,classes:$g,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Fg}),_=rt(),D=d.map(e=>"string"==typeof e?{label:e,value:e}:e),I=(0,ke.useMounted)(),[T,z]=(0,a.useState)((0,ke.randomId)()),[O,M]=(0,a.useState)(null),[A,$]=(0,a.useState)({}),[L,F]=(0,ke.useUncontrolled)({value:u,defaultValue:p,finalValue:Array.isArray(d)?D.find(e=>!e.disabled)?.value??d[0]?.value??null:null,onChange:m}),B=(0,ke.useId)(h),V=D.map(e=>(0,a.createElement)(jo,{...E("control"),mod:{active:L===e.value,orientation:b},key:e.value},(0,a.createElement)("input",{...E("input"),disabled:v||e.disabled,type:"radio",name:B,value:e.value,id:`${B}-${e.value}`,checked:L===e.value,onChange:()=>!y&&F(e.value),"data-focus-ring":_.focusRing,key:`${e.value}-input`}),(0,a.createElement)(jo,{component:"label",...E("label"),mod:{active:L===e.value&&!(v||e.disabled),disabled:v||e.disabled,"read-only":y},htmlFor:`${B}-${e.value}`,ref:t=>{return o=t,n=e.value,A[n]=o,void $(A);var o,n},__vars:{"--sc-label-color":void 0!==x?Rt({color:x,theme:_,autoContrast:k}):void 0},key:`${e.value}-label`},(0,ne.jsx)("span",{...E("innerLabel"),children:e.label})))),H=(0,ke.useMergedRef)(t,e=>M(e));return(0,ke.useShallowEffect)(()=>{z((0,ke.randomId)())},[d.length]),0===d.length?null:(0,ne.jsxs)(jo,{...E("root"),variant:N,size:f,ref:H,mod:[{"full-width":g,orientation:b,initialized:I,"with-items-borders":j},P],...R,role:"radiogroup","data-disabled":v,children:["string"==typeof L&&(0,ne.jsx)(al,{target:A[L],parent:O,component:"span",transitionDuration:"var(--sc-transition-duration)",...E("indicator")},T),V]})});Bg.classes=$g,Bg.displayName="@mantine/core/SegmentedControl";const Vg={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Hg=Eo((e,t)=>{const o=Jt("Select",Vg,e),{classNames:n,styles:r,unstyled:s,vars:i,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:u,onFocus:p,onBlur:m,onClick:f,onChange:h,data:v,value:y,defaultValue:g,selectFirstOptionOnChange:b,onOptionSubmit:w,comboboxProps:x,readOnly:C,disabled:S,filter:N,limit:k,withScrollArea:j,maxDropdownHeight:P,size:R,searchable:E,rightSection:_,checkIconPosition:D,withCheckIcon:I,nothingFoundMessage:T,name:z,form:O,searchValue:M,defaultSearchValue:A,onSearchChange:$,allowDeselect:L,error:F,rightSectionPointerEvents:B,id:V,clearable:H,clearButtonProps:W,hiddenInputProps:G,renderOption:K,onClear:U,autoComplete:q,scrollAreaProps:Y,__defaultRightSection:X,__clearSection:Z,__clearable:J,chevronColor:Q,...ee}=o,te=(0,a.useMemo)(()=>hc(v),[v]),oe=(0,a.useMemo)(()=>vc(te),[te]),re=(0,ke.useId)(V),[ae,se,ie]=(0,ke.useUncontrolled)({value:y,defaultValue:g,finalValue:null,onChange:h}),le="string"==typeof ae?oe[ae]:void 0,ce=(0,ke.usePrevious)(le),[de,ue,pe]=(0,ke.useUncontrolled)({value:M,defaultValue:A,finalValue:le?le.label:"",onChange:$}),me=Yc({opened:l,defaultOpened:c,onDropdownOpen:()=>{u?.(),me.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),me.resetSelectedOption()}}),fe=e=>{ue(e),me.resetSelectedOption()},{resolvedClassNames:he,resolvedStyles:ve}=st({props:o,styles:r,classNames:n});(0,a.useEffect)(()=>{b&&me.selectFirstOption()},[b,de]),(0,a.useEffect)(()=>{null===y&&fe(""),"string"!=typeof y||!le||ce?.value===le.value&&ce?.label===le.label||fe(le.label)},[y,le]),(0,a.useEffect)(()=>{ie||pe||fe("string"==typeof ae&&oe[ae]?.label||"")},[v,ae]);const ye=(0,ne.jsx)(Jc.ClearButton,{...W,onClear:()=>{se(null,null),fe(""),U?.()}}),ge=H&&!!ae&&!S&&!C;return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)(Jc,{store:me,__staticSelector:"Select",classNames:he,styles:ve,unstyled:s,readOnly:C,onOptionSubmit:e=>{w?.(e);const t=L&&oe[e].value===ae?null:oe[e],o=t?t.value:null;o!==ae&&se(o,t),!ie&&fe("string"==typeof o&&t?.label||""),me.closeDropdown()},size:R,...x,children:[(0,ne.jsx)(Jc.Target,{targetType:E?"input":"button",autoComplete:q,children:(0,ne.jsx)(Zi,{id:re,ref:t,__defaultRightSection:(0,ne.jsx)(Jc.Chevron,{size:R,error:F,unstyled:s,color:Q}),__clearSection:ye,__clearable:ge,rightSection:_,rightSectionPointerEvents:B||(ge?"all":"none"),...ee,size:R,__staticSelector:"Select",disabled:S,readOnly:C||!E,value:de,onChange:e=>{fe(e.currentTarget.value),me.openDropdown(),b&&me.selectFirstOption()},onFocus:e=>{E&&me.openDropdown(),p?.(e)},onBlur:e=>{E&&me.closeDropdown(),fe(null!=ae&&oe[ae]?.label||""),m?.(e)},onClick:e=>{E?me.openDropdown():me.toggleDropdown(),f?.(e)},classNames:he,styles:ve,unstyled:s,pointer:!E,error:F})}),(0,ne.jsx)(ad,{data:te,hidden:C||S,filter:N,search:de,limit:k,hiddenWhenEmpty:!T,withScrollArea:j,maxDropdownHeight:P,filterOptions:E&&le?.label!==de,value:ae,checkIconPosition:D,withCheckIcon:I,nothingFoundMessage:T,unstyled:s,labelId:ee.label?`${re}-label`:void 0,"aria-label":ee.label?void 0:ee["aria-label"],renderOption:K,scrollAreaProps:Y})]}),(0,ne.jsx)(Jc.HiddenInput,{value:ae,name:z,form:O,disabled:S,...G})]})});Hg.classes={...Zi.classes,...Jc.classes},Hg.displayName="@mantine/core/Select";var Wg={root:"m_fa528724",svg:"m_62e9e7e2",filledSegment:"m_c573fb6f",label:"m_4fa340f2"};const Gg={size:200,thickness:12,orientation:"up",fillDirection:"left-to-right",labelPosition:"bottom"};function Kg({orientation:e,fillDirection:t}){return"down"===e?"right-to-left"===t?"rotate(180deg) rotateY(180deg)":"rotate(180deg)":"left-to-right"===t?"rotateY(180deg)":void 0}const Ug=(e,{filledSegmentColor:t,emptySegmentColor:o,orientation:n,fillDirection:r,transitionDuration:a,thickness:s})=>({root:{"--scp-filled-segment-color":t?We(t,e):void 0,"--scp-empty-segment-color":o?We(o,e):void 0,"--scp-rotation":Kg({orientation:n,fillDirection:r}),"--scp-transition-duration":a?`${a}ms`:void 0,"--scp-thickness":J(s)}}),qg=Eo((e,t)=>{const o=Jt("SemiCircleProgress",Gg,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,size:c,thickness:d,value:u,orientation:p,fillDirection:m,filledSegmentColor:f,emptySegmentColor:h,transitionDuration:v,label:y,labelPosition:g,...b}=o,w=Nt({name:"SemiCircleProgress",classes:Wg,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Ug}),x=c/2,C=(c-2*d)/2,S=Math.PI*C,N=(0,ke.clamp)(u,0,100)*(S/100);return(0,ne.jsxs)(jo,{ref:t,size:c,...w("root"),...b,children:[y&&(0,ne.jsx)("p",{...w("label"),"data-position":g,"data-orientation":p,children:y}),(0,ne.jsxs)("svg",{width:c,height:c/2,...w("svg"),children:[(0,ne.jsx)("circle",{cx:x,cy:x,r:C,fill:"none",stroke:"var(--scp-empty-segment-color)",strokeWidth:d,strokeDasharray:S,...w("emptySegment",{style:{strokeDashoffset:S}})}),(0,ne.jsx)("circle",{cx:x,cy:x,r:C,fill:"none",stroke:"var(--scp-filled-segment-color)",strokeWidth:d,strokeDasharray:S,...w("filledSegment",{style:{strokeDashoffset:N}})})]})]})});function Yg({spacing:e,verticalSpacing:t,cols:o,selector:n}){const r=rt(),a=void 0===t?e:t,s=ee({"--sg-spacing-x":fe(Ce(e)),"--sg-spacing-y":fe(Ce(a)),"--sg-cols":Ce(o)?.toString()}),i=G(r.breakpoints).reduce((t,n)=>(t[n]||(t[n]={}),"object"==typeof e&&void 0!==e[n]&&(t[n]["--sg-spacing-x"]=fe(e[n])),"object"==typeof a&&void 0!==a[n]&&(t[n]["--sg-spacing-y"]=fe(a[n])),"object"==typeof o&&void 0!==o[n]&&(t[n]["--sg-cols"]=o[n]),t),{}),l=xe(G(i),r.breakpoints).filter(e=>G(i[e.value]).length>0).map(e=>({query:`(min-width: ${r.breakpoints[e.value]})`,styles:i[e.value]}));return(0,ne.jsx)(so,{styles:s,media:l,selector:n})}function Xg(e){return"object"==typeof e&&null!==e?G(e):[]}function Zg({spacing:e,verticalSpacing:t,cols:o,selector:n}){const r=void 0===t?e:t,a=ee({"--sg-spacing-x":fe(Ce(e)),"--sg-spacing-y":fe(Ce(r)),"--sg-cols":Ce(o)?.toString()}),s=function({spacing:e,verticalSpacing:t,cols:o}){return Array.from(new Set([...Xg(e),...Xg(t),...Xg(o)])).sort((e,t)=>Y(e)-Y(t))}({spacing:e,verticalSpacing:t,cols:o}),i=s.reduce((t,n)=>(t[n]||(t[n]={}),"object"==typeof e&&void 0!==e[n]&&(t[n]["--sg-spacing-x"]=fe(e[n])),"object"==typeof r&&void 0!==r[n]&&(t[n]["--sg-spacing-y"]=fe(r[n])),"object"==typeof o&&void 0!==o[n]&&(t[n]["--sg-cols"]=o[n]),t),{}),l=s.map(e=>({query:`simple-grid (min-width: ${e})`,styles:i[e]}));return(0,ne.jsx)(so,{styles:a,container:l,selector:n})}qg.displayName="@mantine/core/SemiCircleProgress",qg.classes=Wg;var Jg={container:"m_925c2d2c",root:"m_2415a157"};const Qg={cols:1,spacing:"md",type:"media"},eb=Eo((e,t)=>{const o=Jt("SimpleGrid",Qg,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,cols:c,verticalSpacing:d,spacing:u,type:p,...m}=o,f=Nt({name:"SimpleGrid",classes:Jg,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l}),h=go();return"container"===p?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Zg,{...o,selector:`.${h}`}),(0,ne.jsx)("div",{...f("container"),children:(0,ne.jsx)(jo,{ref:t,...f("root",{className:h}),...m})})]}):(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Yg,{...o,selector:`.${h}`}),(0,ne.jsx)(jo,{ref:t,...f("root",{className:h}),...m})]})});eb.classes=Jg,eb.displayName="@mantine/core/SimpleGrid";var tb={root:"m_18320242","skeleton-fade":"m_299c329c"};const ob={visible:!0,animate:!0},nb=(e,{width:t,height:o,radius:n,circle:r})=>({root:{"--skeleton-height":J(o),"--skeleton-width":J(r?o:t),"--skeleton-radius":r?"1000px":void 0===n?void 0:he(n)}}),rb=Eo((e,t)=>{const o=Jt("Skeleton",ob,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,width:c,height:d,circle:u,visible:p,radius:m,animate:f,mod:h,...v}=o,y=Nt({name:"Skeleton",classes:tb,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:nb});return(0,ne.jsx)(jo,{ref:t,...y("root"),mod:[{visible:p,animate:f},h],...v})});rb.classes=tb,rb.displayName="@mantine/core/Skeleton";const[ab,sb]=re("SliderProvider was not found in tree"),ib=(0,a.forwardRef)(({size:e,disabled:t,variant:o,color:n,thumbSize:r,radius:a,...s},i)=>{const{getStyles:l}=sb();return(0,ne.jsx)(jo,{tabIndex:-1,variant:o,size:e,ref:i,...l("root"),...s})});ib.displayName="@mantine/core/SliderRoot";const lb=(0,a.forwardRef)(({max:e,min:t,value:o,position:n,label:r,dragging:s,onMouseDown:i,onKeyDownCapture:l,labelTransitionProps:c,labelAlwaysOn:d,thumbLabel:u,onFocus:p,onBlur:m,showLabelOnHover:f,isHovered:h,children:v=null,disabled:y},g)=>{const{getStyles:b}=sb(),[w,x]=(0,a.useState)(!1),C=d||s||w||f&&h;return(0,ne.jsxs)(jo,{tabIndex:0,role:"slider","aria-label":u,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":o,ref:g,__vars:{"--slider-thumb-offset":`${n}%`},...b("thumb",{focusable:!0}),mod:{dragging:s,disabled:y},onFocus:e=>{x(!0),"function"==typeof p&&p(e)},onBlur:e=>{x(!1),"function"==typeof m&&m(e)},onTouchStart:i,onMouseDown:i,onKeyDownCapture:l,onClick:e=>e.stopPropagation(),children:[v,(0,ne.jsx)(fs,{mounted:null!=r&&!!C,transition:"fade",duration:0,...c,children:e=>(0,ne.jsx)("div",{...b("label",{style:e}),children:r})})]})});function cb({value:e,min:t,max:o}){const n=(e-t)/(o-t)*100;return Math.min(Math.max(n,0),100)}function db({mark:e,offset:t,value:o,inverted:n=!1}){return n?"number"==typeof t&&e.value<=t||e.value>=o:"number"==typeof t?e.value>=t&&e.value<=o:e.value<=o}function ub({marks:e,min:t,max:o,disabled:n,value:r,offset:s,inverted:i}){const{getStyles:l}=sb();if(!e)return null;const c=e.map((e,c)=>(0,a.createElement)(jo,{...l("markWrapper"),__vars:{"--mark-offset":`${cb({value:e.value,min:t,max:o})}%`},key:c},(0,ne.jsx)(jo,{...l("mark"),mod:{filled:db({mark:e,value:r,offset:s,inverted:i}),disabled:n}}),e.label&&(0,ne.jsx)("div",{...l("markLabel"),children:e.label})));return(0,ne.jsx)("div",{children:c})}function pb({filled:e,children:t,offset:o,disabled:n,marksOffset:r,inverted:a,containerProps:s,...i}){const{getStyles:l}=sb();return(0,ne.jsx)(jo,{...l("trackContainer"),mod:{disabled:n},...s,children:(0,ne.jsxs)(jo,{...l("track"),mod:{inverted:a,disabled:n},children:[(0,ne.jsx)(jo,{mod:{inverted:a,disabled:n},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${o}% - var(--slider-size))`},...l("bar")}),t,(0,ne.jsx)(ub,{...i,offset:r,disabled:n,inverted:a})]})})}function mb({value:e,containerWidth:t,min:o,max:n,step:r,precision:a}){const s=(t?Math.min(Math.max(e,0),t)/t:e)*(n-o),i=(0!==s?Math.round(s/r)*r:0)+o,l=Math.max(i,o);return void 0!==a?Number(l.toFixed(a)):l}function fb(e,t){return parseFloat(e.toFixed(t))}function hb(e){if(!e)return 0;const t=e.toString().split(".");return t.length>1?t[1].length:0}function vb(e,t){const o=[...t].sort((e,t)=>e.value-t.value).find(t=>t.value>e);return o?o.value:e}function yb(e,t){const o=[...t].sort((e,t)=>t.value-e.value).find(t=>t.value<e);return o?o.value:e}function gb(e){const t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[0].value:0}function bb(e){const t=[...e].sort((e,t)=>e.value-t.value);return t.length>0?t[t.length-1].value:100}lb.displayName="@mantine/core/SliderThumb",ub.displayName="@mantine/core/SliderMarks",pb.displayName="@mantine/core/SliderTrack";var wb={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const xb={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},Cb=(e,{size:t,color:o,thumbSize:n,radius:r})=>({root:{"--slider-size":me(t,"slider-size"),"--slider-color":o?We(o,e):void 0,"--slider-radius":void 0===r?void 0:he(r),"--slider-thumb-size":void 0!==n?J(n):"calc(var(--slider-size) * 2)"}}),Sb=Eo((e,t)=>{const o=Jt("Slider",xb,e),{classNames:n,styles:r,value:s,onChange:i,onChangeEnd:l,size:c,min:d,max:u,step:p,precision:m,defaultValue:f,name:h,marks:v,label:y,labelTransitionProps:g,labelAlwaysOn:b,thumbLabel:w,showLabelOnHover:x,thumbChildren:C,disabled:S,unstyled:N,scale:k,inverted:j,className:P,style:R,vars:E,hiddenInputProps:_,restrictToMarks:D,thumbProps:I,...T}=o,z=Nt({name:"Slider",props:o,classes:wb,classNames:n,className:P,styles:r,style:R,vars:E,varsResolver:Cb,unstyled:N}),{dir:O}=Io(),[M,A]=(0,a.useState)(!1),[$,L]=(0,ke.useUncontrolled)({value:"number"==typeof s?(0,ke.clamp)(s,d,u):s,defaultValue:"number"==typeof f?(0,ke.clamp)(f,d,u):f,finalValue:(0,ke.clamp)(0,d,u),onChange:i}),F=(0,a.useRef)($),B=(0,a.useRef)(l);(0,a.useEffect)(()=>{B.current=l},[l]);const V=(0,a.useRef)(null),H=(0,a.useRef)(null),W=cb({value:$,min:d,max:u}),G=k($),K="function"==typeof y?y(G):y,U=m??hb(p),q=(0,a.useCallback)(({x:e})=>{if(!S){const t=mb({value:e,min:d,max:u,step:p,precision:U});L(D&&v?.length?Ee(t,v.map(e=>e.value)):t),F.current=t}},[S,d,u,p,U,L,v,D]),Y=(0,a.useCallback)(()=>{if(!S&&B.current){const e=D&&v?.length?Ee(F.current,v.map(e=>e.value)):F.current;B.current(e)}},[S,v,D]),{ref:X,active:Z}=(0,ke.useMove)(q,{onScrubEnd:Y},O),J=(0,a.useCallback)(e=>{!S&&B.current&&B.current(e)},[S]);return(0,ne.jsx)(ab,{value:{getStyles:z},children:(0,ne.jsxs)(ib,{...T,ref:(0,ke.useMergedRef)(t,V),onKeyDownCapture:e=>{if(!S)switch(e.key){case"ArrowUp":{if(e.preventDefault(),H.current?.focus(),D&&v){const e=vb($,v);L(e),J(e);break}const t=fb(Math.min(Math.max($+p,d),u),U);L(t),J(t);break}case"ArrowRight":{if(e.preventDefault(),H.current?.focus(),D&&v){const e="rtl"===O?yb($,v):vb($,v);L(e),J(e);break}const t=fb(Math.min(Math.max("rtl"===O?$-p:$+p,d),u),U);L(t),J(t);break}case"ArrowDown":{if(e.preventDefault(),H.current?.focus(),D&&v){const e=yb($,v);L(e),J(e);break}const t=fb(Math.min(Math.max($-p,d),u),U);L(t),J(t);break}case"ArrowLeft":{if(e.preventDefault(),H.current?.focus(),D&&v){const e="rtl"===O?vb($,v):yb($,v);L(e),J(e);break}const t=fb(Math.min(Math.max("rtl"===O?$+p:$-p,d),u),U);L(t),J(t);break}case"Home":if(e.preventDefault(),H.current?.focus(),D&&v){L(gb(v)),J(gb(v));break}L(d),J(d);break;case"End":if(e.preventDefault(),H.current?.focus(),D&&v){L(bb(v)),J(bb(v));break}L(u),J(u)}},onMouseDownCapture:()=>V.current?.focus(),size:c,disabled:S,children:[(0,ne.jsx)(pb,{inverted:j,offset:0,filled:W,marks:v,min:d,max:u,value:G,disabled:S,containerProps:{ref:X,onMouseEnter:x?()=>A(!0):void 0,onMouseLeave:x?()=>A(!1):void 0},children:(0,ne.jsx)(lb,{max:u,min:d,value:G,position:W,dragging:Z,label:K,ref:H,labelTransitionProps:g,labelAlwaysOn:b,thumbLabel:w,showLabelOnHover:x,isHovered:M,disabled:S,...I,children:C})}),(0,ne.jsx)("input",{type:"hidden",name:h,value:G,..._})]})})});Sb.classes=wb,Sb.displayName="@mantine/core/Slider";const Nb=(e,{size:t,color:o,thumbSize:n,radius:r})=>({root:{"--slider-size":me(t,"slider-size"),"--slider-color":o?We(o,e):void 0,"--slider-radius":void 0===r?void 0:he(r),"--slider-thumb-size":void 0!==n?J(n):"calc(var(--slider-size) * 2)"}}),kb={min:0,max:100,minRange:10,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,showLabelOnHover:!0,disabled:!1,scale:e=>e},jb=Eo((e,t)=>{const o=Jt("RangeSlider",kb,e),{classNames:n,styles:r,value:s,onChange:i,onChangeEnd:l,size:c,min:d,max:u,minRange:p,maxRange:m,step:f,precision:h,defaultValue:v,name:y,marks:g,label:b,labelTransitionProps:w,labelAlwaysOn:x,thumbFromLabel:C,thumbToLabel:S,showLabelOnHover:N,thumbChildren:k,disabled:j,unstyled:P,scale:R,inverted:E,className:_,style:D,vars:I,hiddenInputProps:T,restrictToMarks:z,thumbProps:O,...M}=o,A=Nt({name:"Slider",props:o,classes:wb,classNames:n,className:_,styles:r,style:D,vars:I,varsResolver:Nb,unstyled:P}),{dir:$}=Io(),[L,F]=(0,a.useState)(-1),[B,V]=(0,a.useState)(!1),[H,W]=(0,ke.useUncontrolled)({value:s,defaultValue:v,finalValue:[d,u],onChange:i}),G=(0,a.useRef)(H),K=(0,a.useRef)([]),U=(0,a.useRef)(null),q=(0,a.useRef)(void 0),Y=[cb({value:H[0],min:d,max:u}),cb({value:H[1],min:d,max:u})],X=h??hb(f);(0,a.useEffect)(()=>{Array.isArray(s)&&(G.current=s)},Array.isArray(s)?[s[0],s[1]]:[null,null]);const Z=(e,t,o)=>{if(-1===t)return;const n=[...G.current];if(z&&g){const o=Ee(e,g.map(e=>e.value)),r=n[t];n[t]=o;const a=0===t?1:0,s=bb(g),i=gb(g);o===s&&n[a]===s||o===i&&n[a]===i?n[t]=r:o===n[a]&&(r>n[a]?n[a]=yb(o,g):n[a]=vb(o,g))}else n[t]=e,0===t&&(e>n[1]-(p-1e-9)&&(n[1]=Math.min(e+p,u)),e>(u-(p-1e-9)||d)&&(n[t]=G.current[t]),n[1]-e>m&&(n[1]=e+m)),1===t&&(e<n[0]+p&&(n[0]=Math.max(e-p,d)),e<n[0]+p&&(n[t]=G.current[t]),e-n[0]>m&&(n[0]=e-m));if(n[0]=fb(n[0],X),n[1]=fb(n[1],X),n[0]>n[1]){const e=n[0];n[0]=n[1],n[1]=e}(e=>{W(e),G.current=e})(n),o&&l?.(G.current)},{ref:J,active:Q}=(0,ke.useMove)(({x:e})=>(e=>{if(!j){const t=mb({value:e,min:d,max:u,step:f,precision:X});Z(t,q.current,!1)}})(e),{onScrubEnd:()=>!j&&l?.(G.current)},$);function ee(e){q.current=e}const te=e=>{J.current.focus();const t=J.current.getBoundingClientRect(),o=function(e){return"TouchEvent"in window&&e instanceof window.TouchEvent?e.touches[0].clientX:e.clientX}(e.nativeEvent),n=mb({value:o-t.left,max:u,min:d,step:f,containerWidth:t.width}),r=Math.abs(H[0]-n)>Math.abs(H[1]-n)?1:0,a="ltr"===$?r:1===r?0:1;q.current=a},oe=()=>1!==L&&0!==L?(F(0),0):L,re={max:u,min:d,size:c,labelTransitionProps:w,labelAlwaysOn:x,onBlur:()=>F(-1)},ae=Array.isArray(k);return(0,ne.jsx)(ab,{value:{getStyles:A},children:(0,ne.jsxs)(ib,{...M,size:c,ref:(0,ke.useMergedRef)(t,U),disabled:j,onMouseDownCapture:()=>U.current?.focus(),onKeyDownCapture:()=>{K.current[0]?.parentElement?.contains(document.activeElement)||K.current[0]?.focus()},children:[(0,ne.jsxs)(pb,{offset:Y[0],marksOffset:H[0],filled:Y[1]-Y[0],marks:g,inverted:E,min:d,max:u,value:H[1],disabled:j,containerProps:{ref:J,onMouseEnter:N?()=>V(!0):void 0,onMouseLeave:N?()=>V(!1):void 0,onTouchStartCapture:te,onTouchEndCapture:()=>{q.current=-1},onMouseDownCapture:te,onMouseUpCapture:()=>{q.current=-1},onKeyDownCapture:e=>{if(!j)switch(e.key){case"ArrowUp":{e.preventDefault();const t=oe();K.current[t].focus();const o=z&&g?vb(G.current[t],g):Math.min(Math.max(G.current[t]+f,d),u);Z(fb(o,X),t,!0);break}case"ArrowRight":{e.preventDefault();const t=oe();K.current[t].focus();const o=z&&g?("rtl"===$?yb:vb)(G.current[t],g):Math.min(Math.max("rtl"===$?G.current[t]-f:G.current[t]+f,d),u);Z(fb(o,X),t,!0);break}case"ArrowDown":{e.preventDefault();const t=oe();K.current[t].focus();const o=z&&g?yb(G.current[t],g):Math.min(Math.max(G.current[t]-f,d),u);Z(fb(o,X),t,!0);break}case"ArrowLeft":{e.preventDefault();const t=oe();K.current[t].focus();const o=z&&g?("rtl"===$?vb:yb)(G.current[t],g):Math.min(Math.max("rtl"===$?G.current[t]+f:G.current[t]-f,d),u);Z(fb(o,X),t,!0);break}}}},children:[(0,ne.jsx)(lb,{...re,value:R(H[0]),position:Y[0],dragging:Q,label:"function"==typeof b?b(fb(R(H[0]),X)):b,ref:e=>{K.current[0]=e},thumbLabel:C,onMouseDown:()=>ee(0),onFocus:()=>F(0),showLabelOnHover:N,isHovered:B,disabled:j,...O?.(0),children:ae?k[0]:k}),(0,ne.jsx)(lb,{...re,thumbLabel:S,value:R(H[1]),position:Y[1],dragging:Q,label:"function"==typeof b?b(fb(R(H[1]),X)):b,ref:e=>{K.current[1]=e},onMouseDown:()=>ee(1),onFocus:()=>F(1),showLabelOnHover:N,isHovered:B,disabled:j,...O?.(1),children:ae?k[1]:k})]}),(0,ne.jsx)("input",{type:"hidden",name:`${y}_from`,value:H[0],...T}),(0,ne.jsx)("input",{type:"hidden",name:`${y}_to`,value:H[1],...T})]})})});jb.classes=wb,jb.displayName="@mantine/core/RangeSlider";const Pb={},Rb=Eo((e,t)=>{const{w:o,h:n,miw:r,mih:a,...s}=Jt("Space",Pb,e);return(0,ne.jsx)(jo,{ref:t,...s,w:o,miw:r??o,h:n,mih:a??n})});Rb.displayName="@mantine/core/Space";var Eb={root:"m_559cce2d",content:"m_b912df4e",control:"m_b9131032"};const _b={maxHeight:100,initialState:!1},Db=(e,{transitionDuration:t})=>({root:{"--spoiler-transition-duration":void 0!==t?`${t}ms`:void 0}}),Ib=Eo((e,t)=>{const o=Jt("Spoiler",_b,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,initialState:c,maxHeight:d,hideLabel:u,showLabel:p,children:m,controlRef:f,transitionDuration:h,id:v,expanded:y,onExpandedChange:g,...b}=o,w=Nt({name:"Spoiler",classes:Eb,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Db}),x=(0,ke.useId)(v),C=`${x}-region`,[S,N]=(0,ke.useUncontrolled)({value:y,defaultValue:c,finalValue:!1,onChange:g}),{ref:k,height:j}=(0,ke.useElementSize)(),P=S?u:p,R=null!==P&&d<j;return(0,ne.jsxs)(jo,{...w("root"),id:x,ref:t,"data-has-spoiler":R||void 0,...b,children:[R&&(0,ne.jsx)(Ml,{component:"button",type:"button",ref:f,onClick:()=>N(!S),"aria-expanded":S,"aria-controls":C,...w("control"),children:P}),(0,ne.jsx)("div",{...w("content",{style:{maxHeight:S?j?J(j):void 0:J(d)}}),"data-reduce-motion":!0,role:"region",id:C,children:(0,ne.jsx)("div",{ref:k,children:m})})]})});Ib.classes=Eb,Ib.displayName="@mantine/core/Spoiler";var Tb={root:"m_6d731127"};const zb={gap:"md",align:"stretch",justify:"flex-start"},Ob=(e,{gap:t,align:o,justify:n})=>({root:{"--stack-gap":fe(t),"--stack-align":o,"--stack-justify":n}}),Mb=Eo((e,t)=>{const o=Jt("Stack",zb,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,align:c,justify:d,gap:u,variant:p,...m}=o,f=Nt({name:"Stack",props:o,classes:Tb,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Ob});return(0,ne.jsx)(jo,{ref:t,...f("root"),variant:p,...m})});Mb.classes=Tb,Mb.displayName="@mantine/core/Stack";const[Ab,$b]=re("Stepper component was not found in tree"),Lb=()=>null;Lb.displayName="@mantine/core/StepperCompleted";var Fb={root:"m_cbb4ea7e",steps:"m_aaf89d0b",separator:"m_2a371ac9",content:"m_78da155d",step:"m_cbb57068","step--horizontal":"m_f56b1e2c","step--vertical":"m_833edb7e",verticalSeparator:"m_6496b3f3",stepWrapper:"m_818e70b",stepIcon:"m_1959ad01",stepCompletedIcon:"m_a79331dc",stepBody:"m_1956aa2a",stepLabel:"m_12051f6c",stepDescription:"m_164eea74"};const Bb=(e,t)=>"function"==typeof e?(0,ne.jsx)(e,{step:t||0}):e,Vb={withIcon:!0,allowStepClick:!0,iconPosition:"left"},Hb=Eo((e,t)=>{const{classNames:o,className:n,style:r,styles:a,vars:s,step:i,state:l,color:c,icon:d,completedIcon:u,progressIcon:p,label:m,description:f,withIcon:h,iconSize:v,loading:y,allowStepClick:g,allowStepSelect:b,iconPosition:w,orientation:x,mod:C,...S}=Jt("StepperStep",Vb,e),N=$b(),k=rt(),j={classNames:o,styles:a},P="stepCompleted"===l?null:"stepProgress"===l?p:d,R={"data-progress":"stepProgress"===l||void 0,"data-completed":"stepCompleted"===l||void 0};return(0,ne.jsxs)(Ua,{...N.getStyles("step",{className:n,style:r,variant:N.orientation,...j}),mod:[{"icon-position":w||N.iconPosition,"allow-click":g},C],ref:t,...R,...S,__vars:{"--step-color":c?We(c,k):void 0},tabIndex:g?0:-1,children:[h&&(0,ne.jsxs)("span",{...N.getStyles("stepWrapper",j),children:[(0,ne.jsxs)("span",{...N.getStyles("stepIcon",j),...R,children:[(0,ne.jsx)(fs,{mounted:"stepCompleted"===l,transition:"pop",duration:200,children:e=>(0,ne.jsx)("span",{...N.getStyles("stepCompletedIcon",{style:e,...j}),children:y?(0,ne.jsx)(Bs,{color:"var(--mantine-color-white)",size:"calc(var(--stepper-icon-size) / 2)",...N.getStyles("stepLoader",j)}):Bb(u,i)||(0,ne.jsx)(Qc,{size:"60%"})})}),"stepCompleted"!==l?y?(0,ne.jsx)(Bs,{...N.getStyles("stepLoader",j),size:"calc(var(--stepper-icon-size) / 2)",color:c}):Bb(P||d,i):null]}),"vertical"===x&&(0,ne.jsx)("span",{...N.getStyles("verticalSeparator",j),"data-active":"stepCompleted"===l||void 0})]}),(m||f)&&(0,ne.jsxs)("span",{...N.getStyles("stepBody",j),"data-orientation":N.orientation,"data-icon-position":w||N.iconPosition,children:[m&&(0,ne.jsx)("span",{...N.getStyles("stepLabel",j),children:Bb(m,i)}),f&&(0,ne.jsx)("span",{...N.getStyles("stepDescription",j),children:Bb(f,i)})]})]})});Hb.classes=Fb,Hb.displayName="@mantine/core/StepperStep";const Wb={orientation:"horizontal",iconPosition:"left",allowNextStepsSelect:!0,wrap:!0},Gb=(e,{color:t,iconSize:o,size:n,contentPadding:r,radius:a,autoContrast:s})=>({root:{"--stepper-color":t?We(t,e):void 0,"--stepper-icon-color":_t(s,e)?Rt({color:t,theme:e,autoContrast:s}):void 0,"--stepper-icon-size":void 0===o?me(n,"stepper-icon-size"):J(o),"--stepper-content-padding":fe(r),"--stepper-radius":void 0===a?void 0:he(a),"--stepper-fz":ve(n),"--stepper-spacing":fe(n)}}),Kb=Eo((e,t)=>{const o=Jt("Stepper",Wb,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,children:d,onStepClick:u,active:p,icon:m,completedIcon:f,progressIcon:h,color:v,iconSize:y,contentPadding:g,orientation:b,iconPosition:w,size:x,radius:C,allowNextStepsSelect:S,wrap:N,autoContrast:k,...j}=o,P=Nt({name:"Stepper",classes:Fb,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Gb}),R=a.Children.toArray(d),E=R.filter(e=>e.type!==Lb),_=R.find(e=>e.type===Lb),D=E.reduce((e,t,o)=>{const n=p===o?"stepProgress":p>o?"stepCompleted":"stepInactive",r="function"==typeof u&&("boolean"==typeof t.props.allowStepSelect?t.props.allowStepSelect:"stepCompleted"===n||S);return e.push((0,a.cloneElement)(t,{icon:t.props.icon||m||o+1,key:o,step:o,state:n,onClick:()=>r&&u?.(o),allowStepClick:r,completedIcon:t.props.completedIcon||f,progressIcon:t.props.progressIcon||h,color:t.props.color||v,iconSize:y,iconPosition:t.props.iconPosition||w,orientation:b})),"horizontal"===b&&o!==E.length-1&&e.push((0,a.createElement)("div",{...P("separator"),"data-active":o<p||void 0,"data-orientation":b,key:`separator-${o}`})),e},[]),I=E[p]?.props?.children,T=_?.props?.children,z=p>E.length-1?T:I;return(0,ne.jsx)(Ab,{value:{getStyles:P,orientation:b,iconPosition:w},children:(0,ne.jsxs)(jo,{...P("root"),ref:t,size:x,...j,children:[(0,ne.jsx)(jo,{...P("steps"),mod:{orientation:b,"icon-position":w,wrap:N&&"vertical"!==b},children:D}),z&&(0,ne.jsx)("div",{...P("content"),children:z})]})})});Kb.classes=Fb,Kb.displayName="@mantine/core/Stepper",Kb.Completed=Lb,Kb.Step=Hb;const Ub=(0,a.createContext)(null),qb=Ub.Provider,Yb={},Xb=Eo((e,t)=>{const{value:o,defaultValue:n,onChange:r,size:a,wrapperProps:s,children:i,readOnly:l,...c}=Jt("SwitchGroup",Yb,e),[d,u]=(0,ke.useUncontrolled)({value:o,defaultValue:n,finalValue:[],onChange:r});return(0,ne.jsx)(qb,{value:{value:d,onChange:e=>{const t=e.currentTarget.value;!l&&u(d.includes(t)?d.filter(e=>e!==t):[...d,t])},size:a},children:(0,ne.jsx)(qi.Wrapper,{size:a,ref:t,...s,...c,labelElement:"div",__staticSelector:"SwitchGroup",children:(0,ne.jsx)(wu,{role:"group",children:i})})})});Xb.classes=qi.Wrapper.classes,Xb.displayName="@mantine/core/SwitchGroup";var Zb={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const Jb={labelPosition:"right"},Qb=(e,{radius:t,color:o,size:n})=>({root:{"--switch-radius":void 0===t?void 0:he(t),"--switch-height":me(n,"switch-height"),"--switch-width":me(n,"switch-width"),"--switch-thumb-size":me(n,"switch-thumb-size"),"--switch-label-font-size":me(n,"switch-label-font-size"),"--switch-track-label-padding":me(n,"switch-track-label-padding"),"--switch-color":o?We(o,e):void 0}}),ew=Eo((e,t)=>{const o=Jt("Switch",Jb,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,color:d,label:u,offLabel:p,onLabel:m,id:f,size:h,radius:v,wrapperProps:y,thumbIcon:g,checked:b,defaultChecked:w,onChange:x,labelPosition:C,description:S,error:N,disabled:k,variant:j,rootRef:P,mod:R,...E}=o,_=(0,a.useContext)(Ub),D=h||_?.size,I=Nt({name:"Switch",props:o,classes:Zb,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Qb}),{styleProps:T,rest:z}=io(E),O=(0,ke.useId)(f),M=_?{checked:_.value.includes(z.value),onChange:_.onChange}:{},[A,$]=(0,ke.useUncontrolled)({value:M.checked??b,defaultValue:w,finalValue:!1});return(0,ne.jsxs)(du,{...I("root"),__staticSelector:"Switch",__stylesApiProps:o,id:O,size:D,labelPosition:C,label:u,description:S,error:N,disabled:k,bodyElement:"label",labelElement:"span",classNames:n,styles:i,unstyled:l,"data-checked":M.checked||b||void 0,variant:j,ref:P,mod:R,...T,...y,children:[(0,ne.jsx)("input",{...z,disabled:k,checked:A,"data-checked":M.checked||b||void 0,onChange:e=>{_?M.onChange?.(e):x?.(e),$(e.currentTarget.checked)},id:O,ref:t,type:"checkbox",role:"switch",...I("input")}),(0,ne.jsxs)(jo,{"aria-hidden":"true",component:"span",mod:{error:N,"label-position":C,"without-labels":!m&&!p},...I("track"),children:[(0,ne.jsx)(jo,{component:"span",mod:"reduce-motion",...I("thumb"),children:g}),(0,ne.jsx)("span",{...I("trackLabel"),children:A?m:p})]})]})});ew.classes={...Zb,...cu},ew.displayName="@mantine/core/Switch",ew.Group=Xb;const[tw,ow]=re("Table component was not found in the tree");var nw={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function rw(e,t){if(!t)return;const o={};return t.columnBorder&&e.withColumnBorders&&(o["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(o["data-with-row-border"]=!0),t.striped&&e.striped&&(o["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(o["data-hover"]=!0),t.captionSide&&e.captionSide&&(o["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(o["data-sticky"]=!0),o}function aw(e,t){const o=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,n=Eo((n,r)=>{const a=Jt(o,{},n),{classNames:s,className:i,style:l,styles:c,...d}=a,u=ow();return(0,ne.jsx)(jo,{component:e,ref:r,...rw(u,t),...u.getStyles(e,{className:i,classNames:s,style:l,styles:c,props:a}),...d})});return n.displayName=`@mantine/core/${o}`,n.classes=nw,n}const sw=aw("th",{columnBorder:!0}),iw=aw("td",{columnBorder:!0}),lw=aw("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),cw=aw("thead",{stickyHeader:!0}),dw=aw("tbody"),uw=aw("tfoot"),pw=aw("caption",{captionSide:!0});function mw({data:e}){return(0,ne.jsxs)(ne.Fragment,{children:[e.caption&&(0,ne.jsx)(pw,{children:e.caption}),e.head&&(0,ne.jsx)(cw,{children:(0,ne.jsx)(lw,{children:e.head.map((e,t)=>(0,ne.jsx)(sw,{children:e},t))})}),e.body&&(0,ne.jsx)(dw,{children:e.body.map((e,t)=>(0,ne.jsx)(lw,{children:e.map((e,t)=>(0,ne.jsx)(iw,{children:e},t))},t))}),e.foot&&(0,ne.jsx)(uw,{children:(0,ne.jsx)(lw,{children:e.foot.map((e,t)=>(0,ne.jsx)(sw,{children:e},t))})})]})}mw.displayName="@mantine/core/TableDataRenderer";const fw={type:"scrollarea"},hw=(e,{minWidth:t,maxHeight:o,type:n})=>({scrollContainer:{"--table-min-width":J(t),"--table-max-height":J(o),"--table-overflow":"native"===n?"auto":void 0}}),vw=Eo((e,t)=>{const o=Jt("TableScrollContainer",fw,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,children:c,minWidth:d,maxHeight:u,type:p,scrollAreaProps:m,...f}=o,h=Nt({name:"TableScrollContainer",classes:nw,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:hw,rootSelector:"scrollContainer"});return(0,ne.jsx)(jo,{component:"scrollarea"===p?Ha:"div",..."scrollarea"===p?u?{offsetScrollbars:"xy",...m}:{offsetScrollbars:"x",...m}:{},ref:t,...h("scrollContainer"),...f,children:(0,ne.jsx)("div",{...h("scrollContainerInner"),children:c})})});vw.classes=nw,vw.displayName="@mantine/core/TableScrollContainer";const yw={withRowBorders:!0,verticalSpacing:7},gw=(e,{layout:t,captionSide:o,horizontalSpacing:n,verticalSpacing:r,borderColor:a,stripedColor:s,highlightOnHoverColor:i,striped:l,highlightOnHover:c,stickyHeaderOffset:d,stickyHeader:u})=>({table:{"--table-layout":t,"--table-caption-side":o,"--table-horizontal-spacing":fe(n),"--table-vertical-spacing":fe(r),"--table-border-color":a?We(a,e):void 0,"--table-striped-color":l&&s?We(s,e):void 0,"--table-highlight-on-hover-color":c&&i?We(i,e):void 0,"--table-sticky-header-offset":u?J(d):void 0}}),bw=Eo((e,t)=>{const o=Jt("Table",yw,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,horizontalSpacing:c,verticalSpacing:d,captionSide:u,stripedColor:p,highlightOnHoverColor:m,striped:f,highlightOnHover:h,withColumnBorders:v,withRowBorders:y,withTableBorder:g,borderColor:b,layout:w,variant:x,data:C,children:S,stickyHeader:N,stickyHeaderOffset:k,mod:j,tabularNums:P,...R}=o,E=Nt({name:"Table",props:o,className:r,style:a,classes:nw,classNames:n,styles:s,unstyled:i,rootSelector:"table",vars:l,varsResolver:gw});return(0,ne.jsx)(tw,{value:{getStyles:E,stickyHeader:N,striped:!0===f?"odd":f||void 0,highlightOnHover:h,withColumnBorders:v,withRowBorders:y,captionSide:u||"bottom"},children:(0,ne.jsx)(jo,{component:"table",variant:x,ref:t,mod:[{"data-with-table-border":g,"data-tabular-nums":P},j],...E("table"),...R,children:S||!!C&&(0,ne.jsx)(mw,{data:C})})})});bw.classes=nw,bw.displayName="@mantine/core/Table",bw.Td=iw,bw.Th=sw,bw.Tr=lw,bw.Thead=cw,bw.Tbody=dw,bw.Tfoot=uw,bw.Caption=pw,bw.ScrollContainer=vw,bw.DataRenderer=mw;var ww={root:"m_bcaa9990",control:"m_375a65ef"};const xw={getControlProps:({data:e})=>({children:e.value})},Cw=(e,{color:t,size:o,variant:n,autoContrast:r,depthOffset:a,radius:s})=>{const i=e.variantColorResolver({color:t||e.primaryColor,theme:e,variant:n||"filled",autoContrast:r});return{root:{"--toc-bg":"none"!==n?i.background:void 0,"--toc-color":"none"!==n?i.color:void 0,"--toc-size":ve(o),"--toc-depth-offset":J(a),"--toc-radius":he(s)}}},Sw=Eo((e,t)=>{const o=Jt("TableOfContents",xw,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,color:c,autoContrast:d,scrollSpyOptions:u,initialData:p,getControlProps:m,minDepthToOffset:f,depthOffset:h,variant:v,radius:y,reinitializeRef:g,...b}=o,w=Nt({name:"TableOfContents",classes:ww,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Cw}),x=(0,ke.useId)(),C=(0,ke.useScrollSpy)(u);(0,ke.assignRef)(g,C.reinitialize);const S=(C.initialized?C.data:p||[]).map((e,t)=>{const o=m?.({active:t===C.active,data:{...e,getNode:e.getNode||(()=>{})}});return(0,ne.jsx)(Ua,{__vars:{"--depth-offset":""+(e.depth-(f||1))},"data-active":t===C.active||void 0,variant:v,...o,...w("control",{className:o?.className,style:o?.style})},e.id||`${x}-${t}`)});return(0,ne.jsx)(jo,{ref:t,variant:v,...w("root"),...b,children:S})});Sw.displayName="@mantine/core/TableOfContents",Sw.classes=ww;const[Nw,kw]=re("Tabs component was not found in the tree");var jw={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Pw={},Rw=Eo((e,t)=>{const o=Jt("TabsList",Pw,e),{children:n,className:r,grow:a,justify:s,classNames:i,styles:l,style:c,mod:d,...u}=o,p=kw();return(0,ne.jsx)(jo,{...u,...p.getStyles("list",{className:r,style:c,classNames:i,styles:l,props:o,variant:p.variant}),ref:t,role:"tablist",variant:p.variant,mod:[{grow:a,orientation:p.orientation,placement:"vertical"===p.orientation&&p.placement,inverted:p.inverted},d],"aria-orientation":p.orientation,__vars:{"--tabs-justify":s},children:n})});Rw.classes=jw,Rw.displayName="@mantine/core/TabsList";const Ew={},_w=Eo((e,t)=>{const o=Jt("TabsPanel",Ew,e),{children:n,className:r,value:a,classNames:s,styles:i,style:l,mod:c,keepMounted:d,...u}=o,p=kw(),m=p.value===a,f=p.keepMounted||d||m?n:null;return(0,ne.jsx)(jo,{...u,...p.getStyles("panel",{className:r,classNames:s,styles:i,style:[l,m?void 0:{display:"none"}],props:o}),ref:t,mod:[{orientation:p.orientation},c],role:"tabpanel",id:p.getPanelId(a),"aria-labelledby":p.getTabId(a),children:f})});_w.classes=jw,_w.displayName="@mantine/core/TabsPanel";const Dw={},Iw=Eo((e,t)=>{const o=Jt("TabsTab",Dw,e),{className:n,children:r,rightSection:a,leftSection:s,value:i,onClick:l,onKeyDown:c,disabled:d,color:u,style:p,classNames:m,styles:f,vars:h,mod:v,tabIndex:y,...g}=o,b=rt(),{dir:w}=Io(),x=kw(),C=i===x.value,S={classNames:m,styles:f,props:o};return(0,ne.jsxs)(Ua,{...g,...x.getStyles("tab",{className:n,style:p,variant:x.variant,...S}),disabled:d,unstyled:x.unstyled,variant:x.variant,mod:[{active:C,disabled:d,orientation:x.orientation,inverted:x.inverted,placement:"vertical"===x.orientation&&x.placement},v],ref:t,role:"tab",id:x.getTabId(i),"aria-selected":C,tabIndex:void 0!==y?y:C||null===x.value?0:-1,"aria-controls":x.getPanelId(i),onClick:e=>{x.onChange(x.allowTabDeactivation&&i===x.value?null:i),l?.(e)},__vars:{"--tabs-color":u?We(u,b):void 0},onKeyDown:le({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:x.activateTabWithKeyboard,loop:x.loop,orientation:x.orientation||"horizontal",dir:w,onKeyDown:c}),children:[s&&(0,ne.jsx)("span",{...x.getStyles("tabSection",S),"data-position":"left",children:s}),r&&(0,ne.jsx)("span",{...x.getStyles("tabLabel",S),children:r}),a&&(0,ne.jsx)("span",{...x.getStyles("tabSection",S),"data-position":"right",children:a})]})});Iw.classes=jw,Iw.displayName="@mantine/core/TabsTab";const Tw="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",zw={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},Ow=(e,{radius:t,color:o,autoContrast:n})=>({root:{"--tabs-radius":he(t),"--tabs-color":We(o,e),"--tabs-text-color":_t(n,e)?Rt({color:o,theme:e,autoContrast:n}):void 0}}),Mw=Eo((e,t)=>{const o=Jt("Tabs",zw,e),{defaultValue:n,value:r,onChange:a,orientation:s,children:i,loop:l,id:c,activateTabWithKeyboard:d,allowTabDeactivation:u,variant:p,color:m,radius:f,inverted:h,placement:v,keepMounted:y,classNames:g,styles:b,unstyled:w,className:x,style:C,vars:S,autoContrast:N,mod:k,...j}=o,P=(0,ke.useId)(c),[R,E]=(0,ke.useUncontrolled)({value:r,defaultValue:n,finalValue:null,onChange:a}),_=Nt({name:"Tabs",props:o,classes:jw,className:x,style:C,classNames:g,styles:b,unstyled:w,vars:S,varsResolver:Ow});return(0,ne.jsx)(Nw,{value:{placement:v,value:R,orientation:s,id:P,loop:l,activateTabWithKeyboard:d,getTabId:se(`${P}-tab`,Tw),getPanelId:se(`${P}-panel`,Tw),onChange:E,allowTabDeactivation:u,variant:p,color:m,radius:f,inverted:h,keepMounted:y,unstyled:w,getStyles:_},children:(0,ne.jsx)(jo,{ref:t,id:P,variant:p,mod:[{orientation:s,inverted:"horizontal"===s&&h,placement:"vertical"===s&&v},k],..._("root"),...j,children:i})})});function Aw({data:e,value:t}){const o=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>(td(t)?e.push({group:t.group,items:t.items.filter(e=>-1===o.indexOf(e.label.toLowerCase().trim()))}):-1===o.indexOf(t.label.toLowerCase().trim())&&e.push(t),e),[])}function $w({splitChars:e,allowDuplicates:t,maxTags:o,value:n,currentTags:r}){const a=function(e,t){return e?t.split(new RegExp(`[${e.join("")}]`)).map(e=>e.trim()).filter(e=>""!==e):[t]}(e,n),s=t?[...r,...a]:[...new Set([...r,...a])];return o?s.slice(0,o):s}Mw.classes=jw,Mw.displayName="@mantine/core/Tabs",Mw.Tab=Iw,Mw.Panel=_w,Mw.List=Rw;const Lw={maxTags:1/0,allowDuplicates:!1,acceptValueOnBlur:!0,splitChars:[","],hiddenInputValuesDivider:","},Fw=Eo((e,t)=>{const o=Jt("TagsInput",Lw,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,size:d,value:u,defaultValue:p,onChange:m,onKeyDown:f,maxTags:h,allowDuplicates:v,onDuplicate:y,variant:g,data:b,dropdownOpened:w,defaultDropdownOpened:x,onDropdownOpen:C,onDropdownClose:S,selectFirstOptionOnChange:N,onOptionSubmit:k,comboboxProps:j,filter:P,limit:R,withScrollArea:E,maxDropdownHeight:_,searchValue:D,defaultSearchValue:I,onSearchChange:T,readOnly:z,disabled:O,splitChars:M,onFocus:A,onBlur:$,onPaste:L,radius:F,rightSection:B,rightSectionWidth:V,rightSectionPointerEvents:H,rightSectionProps:W,leftSection:G,leftSectionWidth:K,leftSectionPointerEvents:U,leftSectionProps:q,inputContainer:Y,inputWrapperOrder:X,withAsterisk:Z,required:J,labelProps:Q,descriptionProps:ee,errorProps:te,wrapperProps:oe,description:re,label:ae,error:se,withErrorStyles:ie,name:le,form:ce,id:de,clearable:ue,clearButtonProps:pe,hiddenInputProps:me,hiddenInputValuesDivider:fe,mod:he,renderOption:ve,onRemove:ye,onClear:ge,scrollAreaProps:be,acceptValueOnBlur:we,...xe}=o,Ce=(0,ke.useId)(de),Se=hc(b),Ne=vc(Se),je=(0,a.useRef)(null),Pe=(0,ke.useMergedRef)(je,t),Re=Yc({opened:w,defaultOpened:x,onDropdownOpen:C,onDropdownClose:()=>{S?.(),Re.resetSelectedOption()}}),{styleProps:Ee,rest:{type:_e,autoComplete:De,...Ie}}=io(xe),[Te,ze]=(0,ke.useUncontrolled)({value:u,defaultValue:p,finalValue:[],onChange:m}),[Oe,Me]=(0,ke.useUncontrolled)({value:D,defaultValue:I,finalValue:"",onChange:T}),Ae=e=>{Me(e),Re.resetSelectedOption()},$e=Nt({name:"TagsInput",classes:{},props:o,classNames:n,styles:i,unstyled:l}),{resolvedClassNames:Le,resolvedStyles:Fe}=st({props:o,styles:i,classNames:n}),Be=e=>{const t=Te.some(t=>t.toLowerCase()===e.toLowerCase());t&&y?.(e),(!t||t&&v)&&Te.length<h&&(k?.(e),Ae(""),e.length>0&&ze([...Te,e]))},Ve=Te.map((e,t)=>(0,ne.jsx)(qh,{withRemoveButton:!z,onRemove:()=>{const o=Te.slice();o.splice(t,1),ze(o),ye?.(e)},unstyled:l,disabled:O,...$e("pill"),children:e},`${e}-${t}`));(0,a.useEffect)(()=>{N&&Re.selectFirstOption()},[N,Te,Oe]);const He=(0,ne.jsx)(Jc.ClearButton,{...pe,onClear:()=>{ze([]),Ae(""),je.current?.focus(),Re.openDropdown(),ge?.()}});return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)(Jc,{store:Re,classNames:Le,styles:Fe,unstyled:l,size:d,readOnly:z,__staticSelector:"TagsInput",onOptionSubmit:e=>{k?.(e),Ae(""),Te.length<h&&ze([...Te,Ne[e].label]),Re.resetSelectedOption()},...j,children:[(0,ne.jsx)(Jc.DropdownTarget,{children:(0,ne.jsx)(Qh,{...Ee,__staticSelector:"TagsInput",classNames:Le,styles:Fe,unstyled:l,size:d,className:r,style:s,variant:g,disabled:O,radius:F,rightSection:B,__clearSection:He,__clearable:ue&&Te.length>0&&!O&&!z,rightSectionWidth:V,rightSectionPointerEvents:H,rightSectionProps:W,leftSection:G,leftSectionWidth:K,leftSectionPointerEvents:U,leftSectionProps:q,inputContainer:Y,inputWrapperOrder:X,withAsterisk:Z,required:J,labelProps:Q,descriptionProps:ee,errorProps:te,wrapperProps:oe,description:re,label:ae,error:se,withErrorStyles:ie,__stylesApiProps:{...o,multiline:!0},id:Ce,mod:he,children:(0,ne.jsxs)(qh.Group,{disabled:O,unstyled:l,...$e("pillsList"),children:[Ve,(0,ne.jsx)(Jc.EventsTarget,{autoComplete:De,children:(0,ne.jsx)(Qh.Field,{...Ie,ref:Pe,...$e("inputField"),unstyled:l,onKeyDown:e=>{if(f?.(e),e.isPropagationStopped())return;const t=Oe.trim(),{length:o}=t;if(M.includes(e.key)&&o>0&&(ze($w({splitChars:M,allowDuplicates:v,maxTags:h,value:Oe,currentTags:Te})),Ae(""),e.preventDefault()),"Enter"===e.key&&o>0&&!e.nativeEvent.isComposing){if(e.preventDefault(),document.querySelector(`#${Re.listId} [data-combobox-option][data-combobox-selected]`))return;Be(t)}"Backspace"===e.key&&0===o&&Te.length>0&&!e.nativeEvent.isComposing&&(ye?.(Te[Te.length-1]),ze(Te.slice(0,Te.length-1)))},onFocus:e=>{A?.(e),Re.openDropdown()},onBlur:e=>{$?.(e),we&&Be(Oe),Re.closeDropdown()},onPaste:e=>{if(L?.(e),e.preventDefault(),e.clipboardData){const t=e.clipboardData.getData("text/plain");ze($w({splitChars:M,allowDuplicates:v,maxTags:h,value:`${Oe}${t}`,currentTags:Te})),Ae("")}},value:Oe,onChange:e=>Ae(e.currentTarget.value),required:J&&0===Te.length,disabled:O,readOnly:z,id:Ce})})]})})}),(0,ne.jsx)(ad,{data:Aw({data:Se,value:Te}),hidden:z||O,filter:P,search:Oe,limit:R,hiddenWhenEmpty:!0,withScrollArea:E,maxDropdownHeight:_,unstyled:l,labelId:ae?`${Ce}-label`:void 0,"aria-label":ae?void 0:xe["aria-label"],renderOption:ve,scrollAreaProps:be})]}),(0,ne.jsx)(Jc.HiddenInput,{name:le,form:ce,value:Te,valuesDivider:fe,disabled:O,...me})]})});Fw.classes={...Zi.classes,...Jc.classes},Fw.displayName="@mantine/core/TagsInput";const Bw={},Vw=Eo((e,t)=>{const o=Jt("TextInput",Bw,e);return(0,ne.jsx)(Zi,{component:"input",ref:t,...o,__staticSelector:"TextInput"})});Vw.classes=Zi.classes,Vw.displayName="@mantine/core/TextInput";var Hw={root:"m_7341320d"};const Ww={},Gw=(e,{size:t,radius:o,variant:n,gradient:r,color:a,autoContrast:s})=>{const i=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:r,variant:n||"filled",autoContrast:s});return{root:{"--ti-size":me(t,"ti-size"),"--ti-radius":void 0===o?void 0:he(o),"--ti-bg":a||n?i.background:void 0,"--ti-color":a||n?i.color:void 0,"--ti-bd":a||n?i.border:void 0}}},Kw=Eo((e,t)=>{const o=Jt("ThemeIcon",Ww,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,vars:l,autoContrast:c,...d}=o,u=Nt({name:"ThemeIcon",classes:Hw,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:l,varsResolver:Gw});return(0,ne.jsx)(jo,{ref:t,...u("root"),...d})});Kw.classes=Hw,Kw.displayName="@mantine/core/ThemeIcon";const[Uw,qw]=re("Timeline component was not found in tree");var Yw={root:"m_43657ece",itemTitle:"m_2ebe8099",item:"m_436178ff",itemBullet:"m_8affcee1",itemBody:"m_540e8f41"};const Xw={},Zw=Eo((e,t)=>{const o=Jt("TimelineItem",Xw,e),{classNames:n,className:r,style:a,styles:s,vars:i,__active:l,__align:c,__lineActive:d,__vars:u,bullet:p,radius:m,color:f,lineVariant:h,children:v,title:y,mod:g,...b}=o,w=qw(),x=rt(),C={classNames:n,styles:s};return(0,ne.jsxs)(jo,{...w.getStyles("item",{...C,className:r,style:a}),mod:[{"line-active":d,active:l},g],ref:t,__vars:{"--tli-radius":m?he(m):void 0,"--tli-color":f?We(f,x):void 0,"--tli-border-style":h||void 0},...b,children:[(0,ne.jsx)(jo,{...w.getStyles("itemBullet",C),mod:{"with-child":!!p,align:c,active:l},children:p}),(0,ne.jsxs)("div",{...w.getStyles("itemBody",C),children:[y&&(0,ne.jsx)("div",{...w.getStyles("itemTitle",C),children:y}),(0,ne.jsx)("div",{...w.getStyles("itemContent",C),children:v})]})]})});Zw.classes=Yw,Zw.displayName="@mantine/core/TimelineItem";const Jw={active:-1,align:"left",reverseActive:!1},Qw=(e,{bulletSize:t,lineWidth:o,radius:n,color:r,autoContrast:a})=>({root:{"--tl-bullet-size":J(t),"--tl-line-width":J(o),"--tl-radius":void 0===n?void 0:he(n),"--tl-color":r?We(r,e):void 0,"--tl-icon-color":_t(a,e)?Rt({color:r,theme:e,autoContrast:a}):void 0}}),ex=Eo((e,t)=>{const o=Jt("Timeline",Jw,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,children:d,active:u,color:p,radius:m,bulletSize:f,align:h,lineWidth:v,reverseActive:y,mod:g,autoContrast:b,...w}=o,x=Nt({name:"Timeline",classes:Yw,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:Qw}),C=a.Children.toArray(d),S=C.map((e,t)=>(0,a.cloneElement)(e,{unstyled:l,__align:h,__active:e.props?.active||(y?u>=C.length-t-1:u>=t),__lineActive:e.props?.lineActive||(y?u>=C.length-t-1:u-1>=t)}));return(0,ne.jsx)(Uw,{value:{getStyles:x},children:(0,ne.jsx)(jo,{...x("root"),mod:[{align:h},g],ref:t,...w,children:S})})});ex.classes=Yw,ex.displayName="@mantine/core/Timeline",ex.Item=Zw;const tx=["h1","h2","h3","h4","h5","h6"],ox=["xs","sm","md","lg","xl"];var nx={root:"m_8a5d1357"};const rx={order:1},ax=(e,{order:t,size:o,lineClamp:n,textWrap:r})=>{const a=function(e,t){const o=void 0!==t?t:`h${e}`;return tx.includes(o)?{fontSize:`var(--mantine-${o}-font-size)`,fontWeight:`var(--mantine-${o}-font-weight)`,lineHeight:`var(--mantine-${o}-line-height)`}:ox.includes(o)?{fontSize:`var(--mantine-font-size-${o})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:J(o),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}(t,o);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":"number"==typeof n?n.toString():void 0,"--title-text-wrap":r}}},sx=Eo((e,t)=>{const o=Jt("Title",rx,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,order:l,vars:c,size:d,variant:u,lineClamp:p,textWrap:m,mod:f,...h}=o,v=Nt({name:"Title",props:o,classes:nx,className:r,style:a,classNames:n,styles:s,unstyled:i,vars:c,varsResolver:ax});return[1,2,3,4,5,6].includes(l)?(0,ne.jsx)(jo,{...v("root"),component:`h${l}`,variant:u,ref:t,mod:[{order:l,"data-line-clamp":"number"==typeof p},f],size:d,...h}):null});function ix(e,t,o){if(!e||!t)return[];const n=o.indexOf(e),r=o.indexOf(t),a=Math.min(n,r),s=Math.max(n,r);return o.slice(a,s+1)}function lx({node:e,getStyles:t,rootIndex:o,controller:n,expandOnClick:r,selectOnClick:s,isSubtree:i,level:l=1,renderNode:c,flatValues:d,allowRangeSelection:u,expandOnSpace:p,checkOnSpace:m}){const f=(0,a.useRef)(null),h=(e.children||[]).map(e=>(0,ne.jsx)(lx,{node:e,flatValues:d,getStyles:t,rootIndex:void 0,level:l+1,controller:n,expandOnClick:r,isSubtree:!0,renderNode:c,selectOnClick:s,allowRangeSelection:u,expandOnSpace:p,checkOnSpace:m},e.value)),v=n.selectedState.includes(e.value),y={...t("label"),onClick:t=>{t.stopPropagation(),u&&t.shiftKey&&n.anchorNode?(n.setSelectedState(ix(n.anchorNode,e.value,d)),f.current?.focus()):(r&&n.toggleExpanded(e.value),s&&n.select(e.value),f.current?.focus())},"data-selected":v||void 0,"data-value":e.value,"data-hovered":n.hoveredNode===e.value||void 0};return(0,ne.jsxs)("li",{...t("node",{style:{"--label-offset":`calc(var(--level-offset) * ${l-1})`}}),role:"treeitem","aria-selected":v,"data-value":e.value,"data-selected":v||void 0,"data-hovered":n.hoveredNode===e.value||void 0,"data-level":l,tabIndex:0===o?0:-1,onKeyDown:t=>{if("ArrowRight"===t.nativeEvent.code&&(t.stopPropagation(),t.preventDefault(),n.expandedState[e.value]?t.currentTarget.querySelector("[role=treeitem]")?.focus():n.expand(e.value)),"ArrowLeft"===t.nativeEvent.code&&(t.stopPropagation(),t.preventDefault(),n.expandedState[e.value]&&(e.children||[]).length>0?n.collapse(e.value):i&&ie(t.currentTarget,"[role=treeitem]")?.focus()),"ArrowDown"===t.nativeEvent.code||"ArrowUp"===t.nativeEvent.code){const e=ie(t.currentTarget,"[data-tree-root]");if(!e)return;t.stopPropagation(),t.preventDefault();const o=Array.from(e.querySelectorAll("[role=treeitem]")),r=o.indexOf(t.currentTarget);if(-1===r)return;const a="ArrowDown"===t.nativeEvent.code?r+1:r-1;if(o[a]?.focus(),t.shiftKey){const e=o[a];e&&n.setSelectedState(ix(n.anchorNode,e.dataset.value,d))}}"Space"===t.nativeEvent.code&&(p&&(t.stopPropagation(),t.preventDefault(),n.toggleExpanded(e.value)),m&&(t.stopPropagation(),t.preventDefault(),n.isNodeChecked(e.value)?n.uncheckNode(e.value):n.checkNode(e.value)))},ref:f,onMouseOver:t=>{t.stopPropagation(),n.setHoveredNode(e.value)},onMouseLeave:e=>{e.stopPropagation(),n.setHoveredNode(null)},children:["function"==typeof c?c({node:e,level:l,selected:v,tree:n,expanded:n.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:y}):(0,ne.jsx)("div",{...y,children:e.label}),n.expandedState[e.value]&&h.length>0&&(0,ne.jsx)("ul",{role:"group",...t("subtree"),"data-level":l,children:h})]})}function cx(e,t,o=[]){const n=[];for(const r of e)if(Array.isArray(r.children)&&r.children.length>0){const e=cx(r.children,t,o);if(e.currentTreeChecked.length===r.children.length){const t=e.currentTreeChecked.every(e=>e.checked),a={checked:t,indeterminate:!t,value:r.value,hasChildren:!0};n.push(a),o.push(a)}else if(e.currentTreeChecked.length>0){const e={checked:!1,indeterminate:!0,value:r.value,hasChildren:!0};n.push(e),o.push(e)}}else if(t.includes(r.value)){const e={checked:!0,indeterminate:!1,value:r.value,hasChildren:!1};n.push(e),o.push(e)}return{result:o,currentTreeChecked:n}}function dx(e,t){for(const o of t){if(o.value===e)return o;if(Array.isArray(o.children)){const t=dx(e,o.children);if(t)return t}}return null}function ux(e,t,o=[]){const n=dx(e,t);return n?Array.isArray(n.children)&&0!==n.children.length?(n.children.forEach(e=>{Array.isArray(e.children)&&e.children.length>0?ux(e.value,t,o):o.push(e.value)}),o):[n.value]:o}function px(e){return e.reduce((e,t)=>(Array.isArray(t.children)&&t.children.length>0?e.push(...px(t.children)):e.push(t.value),e),[])}sx.classes=nx,sx.displayName="@mantine/core/Title",lx.displayName="@mantine/core/TreeNode";const mx=Re(function(e,t,o){return 0!==o.length&&(!!o.includes(e)||cx(t,o).result.some(t=>t.value===e&&t.checked))}),fx=Re(function(e,t,o){return 0!==o.length&&cx(t,o).result.some(t=>t.value===e&&t.indeterminate)});function hx(e,t,o,n={}){return t.forEach(t=>{n[t.value]=t.value in e?e[t.value]:t.value===o,Array.isArray(t.children)&&hx(e,t.children,o,n)}),n}function vx(e,t){const o=hx({},e,[]);return"*"===t?Object.keys(o).reduce((e,t)=>({...e,[t]:!0}),{}):(t.forEach(e=>{o[e]=!0}),o)}function yx({initialSelectedState:e=[],initialCheckedState:t=[],initialExpandedState:o={},multiple:n=!1,onNodeCollapse:r,onNodeExpand:s}={}){const[i,l]=(0,a.useState)([]),[c,d]=(0,a.useState)(o),[u,p]=(0,a.useState)(e),[m,f]=(0,a.useState)(t),[h,v]=(0,a.useState)(null),[y,g]=(0,a.useState)(null),b=(0,a.useCallback)(e=>{d(t=>hx(t,e,u)),f(t=>function(e,t){const o=[];return e.forEach(e=>o.push(...ux(e,t))),Array.from(new Set(o))}(t,e)),l(e)},[u,m]),w=(0,a.useCallback)(e=>{d(t=>{const o={...t,[e]:!t[e]};return o[e]?s?.(e):r?.(e),o})},[r,s]),x=(0,a.useCallback)(e=>{d(t=>(!1!==t[e]&&r?.(e),{...t,[e]:!1}))},[r]),C=(0,a.useCallback)(e=>{d(t=>(!0!==t[e]&&s?.(e),{...t,[e]:!0}))},[s]),S=(0,a.useCallback)(()=>{d(e=>{const t={...e};return Object.keys(t).forEach(e=>{t[e]=!0}),t})},[]),N=(0,a.useCallback)(()=>{d(e=>{const t={...e};return Object.keys(t).forEach(e=>{t[e]=!1}),t})},[]),k=(0,a.useCallback)(e=>p(t=>n?t.includes(e)?(v(null),t.filter(t=>t!==e)):(v(e),[...t,e]):t.includes(e)?(v(null),[]):(v(e),[e])),[]),j=(0,a.useCallback)(e=>{v(e),p(t=>n?t.includes(e)?t:[...t,e]:[e])},[]),P=(0,a.useCallback)(e=>{h===e&&v(null),p(t=>t.filter(t=>t!==e))},[]),R=(0,a.useCallback)(()=>{p([]),v(null)},[]),E=(0,a.useCallback)(e=>{const t=ux(e,i);f(e=>Array.from(new Set([...e,...t])))},[i]),_=(0,a.useCallback)(e=>{const t=ux(e,i);f(e=>e.filter(e=>!t.includes(e)))},[i]),D=(0,a.useCallback)(()=>{f(()=>px(i))},[i]),I=(0,a.useCallback)(()=>{f([])},[]);return{multiple:n,expandedState:c,selectedState:u,checkedState:m,anchorNode:h,initialize:b,toggleExpanded:w,collapse:x,expand:C,expandAllNodes:S,collapseAllNodes:N,setExpandedState:d,checkNode:E,uncheckNode:_,checkAllNodes:D,uncheckAllNodes:I,setCheckedState:f,toggleSelected:k,select:j,deselect:P,clearSelected:R,setSelectedState:p,hoveredNode:y,setHoveredNode:g,getCheckedNodes:()=>cx(i,m).result,isNodeChecked:e=>mx(e,i,m),isNodeIndeterminate:e=>fx(e,i,m)}}var gx={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function bx(e){return e.reduce((e,t)=>(e.push(t.value),t.children&&e.push(...bx(t.children)),e),[])}const wx={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},xx=(e,{levelOffset:t})=>({root:{"--level-offset":fe(t)}}),Cx=Eo((e,t)=>{const o=Jt("Tree",wx,e),{classNames:n,className:r,style:s,styles:i,unstyled:l,vars:c,data:d,expandOnClick:u,tree:p,renderNode:m,selectOnClick:f,clearSelectionOnOutsideClick:h,allowRangeSelection:v,expandOnSpace:y,levelOffset:g,checkOnSpace:b,...w}=o,x=yx(),C=p||x,S=Nt({name:"Tree",classes:gx,props:o,className:r,style:s,classNames:n,styles:i,unstyled:l,vars:c,varsResolver:xx}),N=(0,ke.useClickOutside)(()=>h&&C.clearSelected()),k=(0,ke.useMergedRef)(t,N),j=(0,a.useMemo)(()=>bx(d),[d]);(0,a.useEffect)(()=>{C.initialize(d)},[d]);const P=d.map((e,t)=>(0,ne.jsx)(lx,{node:e,getStyles:S,rootIndex:t,expandOnClick:u,selectOnClick:f,controller:C,renderNode:m,flatValues:j,allowRangeSelection:v,expandOnSpace:y,checkOnSpace:b},e.value));return(0,ne.jsx)(jo,{component:"ul",ref:k,...S("root"),...w,role:"tree","aria-multiselectable":C.multiple,"data-tree-root":!0,children:P})});Cx.displayName="@mantine/core/Tree",Cx.classes=gx;var Sx={root:"m_d6493fad"};const Nx={},kx=Eo((e,t)=>{const o=Jt("TypographyStylesProvider",Nx,e),{classNames:n,className:r,style:a,styles:s,unstyled:i,...l}=o,c=Nt({name:"TypographyStylesProvider",classes:Sx,props:o,className:r,style:a,classNames:n,styles:s,unstyled:i});return(0,ne.jsx)(jo,{ref:t,...c("root"),...l})});kx.classes=Sx,kx.displayName="@mantine/core/TypographyStylesProvider"},4848:(e,t,o)=>{e.exports=o(1020)},8168:(e,t,o)=>{function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},n.apply(null,arguments)}o.d(t,{A:()=>n})},8587:(e,t,o)=>{function n(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;o[n]=e[n]}return o}o.d(t,{A:()=>n})}}]); |