ocean-brain 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/dist/mcp.js +0 -0
- package/package.json +42 -34
- package/server/client/dist/assets/index-BJgBFWwL.css +1 -0
- package/server/client/dist/assets/index-DvNRv9YC.js +391 -0
- package/server/client/dist/assets/{note-vendor-DhbUD4OO.js → note-vendor-CUVHa9LU.js} +1 -1
- package/server/client/dist/index.html +3 -3
- package/server/client/dist/assets/index-BBmw_0Bo.css +0 -1
- package/server/client/dist/assets/index-TKn2sngc.js +0 -393
|
@@ -51,4 +51,4 @@ Error generating stack: `+i.message+`
|
|
|
51
51
|
|
|
52
52
|
${p}
|
|
53
53
|
|
|
54
|
-
${h}`}function Qy({color:t,theme:o,autoContrast:a}){return(typeof a=="boolean"?a:o.autoContrast)&&wl({color:t||o.primaryColor,theme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function n0(t,o){return Qy({color:t.colors[t.primaryColor][Vr(t,o)],theme:t,autoContrast:null})}function ys({theme:t,color:o,colorScheme:a,name:r=o,withColorValues:s=!0}){if(!t.colors[o])return{};if(a==="light"){const d=Vr(t,"light"),p={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${d===9?8:d+1})`,[`--mantine-color-${r}-light`]:pa(t.colors[o][d],.1),[`--mantine-color-${r}-light-hover`]:pa(t.colors[o][d],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline-hover`]:pa(t.colors[o][d],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[o][0],[`--mantine-color-${r}-1`]:t.colors[o][1],[`--mantine-color-${r}-2`]:t.colors[o][2],[`--mantine-color-${r}-3`]:t.colors[o][3],[`--mantine-color-${r}-4`]:t.colors[o][4],[`--mantine-color-${r}-5`]:t.colors[o][5],[`--mantine-color-${r}-6`]:t.colors[o][6],[`--mantine-color-${r}-7`]:t.colors[o][7],[`--mantine-color-${r}-8`]:t.colors[o][8],[`--mantine-color-${r}-9`]:t.colors[o][9],...p}:p}const c=Vr(t,"dark"),f={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${c})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${c===9?8:c+1})`,[`--mantine-color-${r}-light`]:pa(t.colors[o][Math.max(0,c-2)],.15),[`--mantine-color-${r}-light-hover`]:pa(t.colors[o][Math.max(0,c-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(c-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(c-4,0)})`,[`--mantine-color-${r}-outline-hover`]:pa(t.colors[o][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[o][0],[`--mantine-color-${r}-1`]:t.colors[o][1],[`--mantine-color-${r}-2`]:t.colors[o][2],[`--mantine-color-${r}-3`]:t.colors[o][3],[`--mantine-color-${r}-4`]:t.colors[o][4],[`--mantine-color-${r}-5`]:t.colors[o][5],[`--mantine-color-${r}-6`]:t.colors[o][6],[`--mantine-color-${r}-7`]:t.colors[o][7],[`--mantine-color-${r}-8`]:t.colors[o][8],[`--mantine-color-${r}-9`]:t.colors[o][9],...f}:f}function A9(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function ha(t,o,a){Gn(o).forEach(r=>Object.assign(t,{[`--mantine-${a}-${r}`]:o[r]}))}const Iy=t=>{const o=Vr(t,"light"),a=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:te(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":a,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":n0(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${o})`,"--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)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":n0(t,"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-${t.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)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ha(r.variables,t.breakpoints,"breakpoint"),ha(r.variables,t.spacing,"spacing"),ha(r.variables,t.fontSizes,"font-size"),ha(r.variables,t.lineHeights,"line-height"),ha(r.variables,t.shadows,"shadow"),ha(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${t.primaryColor}-${f})`}),Gn(t.colors).forEach(c=>{const f=t.colors[c];if(A9(f)){Object.assign(r.light,ys({theme:t,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,ys({theme:t,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((d,p)=>{r.variables[`--mantine-color-${c}-${p}`]=d}),Object.assign(r.light,ys({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,ys({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return Gn(s).forEach(c=>{r.variables[`--mantine-${c}-font-size`]=s[c].fontSize,r.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,r.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||t.headings.fontWeight}),r};function H9({theme:t,generator:o}){const a=Iy(t),r=o?.(t);return r?lm(a,r):a}const bd=Iy(um);function D9(t){const o={variables:{},light:{},dark:{}};return Gn(t.variables).forEach(a=>{bd.variables[a]!==t.variables[a]&&(o.variables[a]=t.variables[a])}),Gn(t.light).forEach(a=>{bd.light[a]!==t.light[a]&&(o.light[a]=t.light[a])}),Gn(t.dark).forEach(a=>{bd.dark[a]!==t.dark[a]&&(o.dark[a]=t.dark[a])}),o}function z9(t){return Xy({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function Ky({cssVariablesSelector:t,deduplicateCssVariables:o}){const a=Zt(),r=sm(),s=m9(),c=H9({theme:a,generator:s}),f=(t===void 0||t===":root"||t===":host")&&o,d=f?D9(c):c,p=Xy(d,t);return p?g.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${p}${f?"":z9(t)}`}}):null}Ky.displayName="@mantine/CssVariables";function ga(t,o){const a=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=t!=="auto"?t:a?"dark":"light";o()?.setAttribute("data-mantine-color-scheme",r)}function L9({manager:t,defaultColorScheme:o,getRootElement:a,forceColorScheme:r}){const s=S.useRef(null),[c,f]=S.useState(()=>t.get(o)),d=r||c,p=S.useCallback(v=>{r||(ga(v,a),f(v),t.set(v))},[t.set,d,r]),h=S.useCallback(()=>{f(o),ga(o,a),t.clear()},[t.clear,o]);return S.useEffect(()=>(t.subscribe(p),t.unsubscribe),[t.subscribe,t.unsubscribe]),Zr(()=>{ga(t.get(o),a)},[]),S.useEffect(()=>{if(r)return ga(r,a),()=>{};r===void 0&&ga(c,a),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const v=y=>{c==="auto"&&ga(y.matches?"dark":"light",a)};return s.current?.addEventListener("change",v),()=>s.current?.removeEventListener("change",v)},[c,r]),{colorScheme:d,setColorScheme:p,clearColorScheme:h}}function V9({respectReducedMotion:t,getRootElement:o}){Zr(()=>{t&&o()?.setAttribute("data-respect-reduced-motion","true")},[t])}function Fy({theme:t,children:o,getStyleNonce:a,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:d,classNamesPrefix:p="mantine",colorSchemeManager:h=R9(),defaultColorScheme:v="light",getRootElement:y=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:C,stylesTransform:E,env:w}){const{colorScheme:M,setColorScheme:R,clearColorScheme:O}=L9({defaultColorScheme:v,forceColorScheme:C,manager:h,getRootElement:y});return V9({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:y}),g.jsx(im.Provider,{value:{colorScheme:M,setColorScheme:R,clearColorScheme:O,getRootElement:y,classNamesPrefix:p,getStyleNonce:a,cssVariablesResolver:x,cssVariablesSelector:d??":root",withStaticClasses:r,stylesTransform:E,env:w},children:g.jsxs(Py,{theme:t,children:[f&&g.jsx(Ky,{cssVariablesSelector:d,deduplicateCssVariables:c}),s&&g.jsx(N9,{}),o]})})}Fy.displayName="@mantine/core/MantineProvider";function sc({classNames:t,styles:o,props:a,stylesCtx:r}){const s=Zt();return{resolvedClassNames:rc({theme:s,classNames:t,props:a,stylesCtx:r||void 0}),resolvedStyles:Us({theme:s,styles:o,props:a,stylesCtx:r||void 0})}}const k9={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function B9({theme:t,options:o,unstyled:a}){return So(o?.focusable&&!a&&(t.focusClassName||k9[t.focusRing]),o?.active&&!a&&t.activeClassName)}function U9({selector:t,stylesCtx:o,options:a,props:r,theme:s}){return rc({theme:s,classNames:a?.classNames,props:a?.props||r,stylesCtx:o})[t]}function o0({selector:t,stylesCtx:o,theme:a,classNames:r,props:s}){return rc({theme:a,classNames:r,props:s,stylesCtx:o})[t]}function $9({rootSelector:t,selector:o,className:a}){return t===o?a:void 0}function G9({selector:t,classes:o,unstyled:a}){return a?void 0:o[t]}function Z9({themeName:t,classNamesPrefix:o,selector:a,withStaticClass:r}){return r===!1?[]:t.map(s=>`${o}-${s}-${a}`)}function q9({themeName:t,theme:o,selector:a,props:r,stylesCtx:s}){return t.map(c=>rc({theme:o,classNames:o.components[c]?.classNames,props:r,stylesCtx:s})?.[a])}function Y9({options:t,classes:o,selector:a,unstyled:r}){return t?.variant&&!r?o[`${a}--${t.variant}`]:void 0}function P9({theme:t,options:o,themeName:a,selector:r,classNamesPrefix:s,classNames:c,classes:f,unstyled:d,className:p,rootSelector:h,props:v,stylesCtx:y,withStaticClasses:x,headless:C,transformedStyles:E}){return So(B9({theme:t,options:o,unstyled:d||C}),q9({theme:t,themeName:a,selector:r,props:v,stylesCtx:y}),Y9({options:o,classes:f,selector:r,unstyled:d}),o0({selector:r,stylesCtx:y,theme:t,classNames:c,props:v}),o0({selector:r,stylesCtx:y,theme:t,classNames:E,props:v}),U9({selector:r,stylesCtx:y,options:o,props:v,theme:t}),$9({rootSelector:h,selector:r,className:p}),G9({selector:r,classes:f,unstyled:d||C}),x&&!C&&Z9({themeName:a,classNamesPrefix:s,selector:r,withStaticClass:o?.withStaticClass}),o?.className)}function X9({theme:t,themeName:o,props:a,stylesCtx:r,selector:s}){return o.map(c=>Us({theme:t,styles:t.components[c]?.styles,props:a,stylesCtx:r})[s]).reduce((c,f)=>({...c,...f}),{})}function kd({style:t,theme:o}){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...kd({style:r,theme:o})}),{}):typeof t=="function"?t(o):t??{}}function Q9(t){return t.reduce((o,a)=>(a&&Object.keys(a).forEach(r=>{o[r]={...o[r],...nc(a[r])}}),o),{})}function I9({vars:t,varsResolver:o,theme:a,props:r,stylesCtx:s,selector:c,themeName:f,headless:d}){return Q9([d?{}:o?.(a,r,s),...f.map(p=>a.components?.[p]?.vars?.(a,r,s)),t?.(a,r,s)])?.[c]}function K9({theme:t,themeName:o,selector:a,options:r,props:s,stylesCtx:c,rootSelector:f,styles:d,style:p,vars:h,varsResolver:v,headless:y,withStylesTransform:x}){return{...!x&&X9({theme:t,themeName:o,props:s,stylesCtx:c,selector:a}),...!x&&Us({theme:t,styles:d,props:s,stylesCtx:c})[a],...!x&&Us({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:c})[a],...I9({theme:t,props:s,stylesCtx:c,vars:h,varsResolver:v,selector:a,themeName:o,headless:y}),...f===a?kd({style:p,theme:t}):null,...kd({style:r?.style,theme:t})}}function F9({props:t,stylesCtx:o,themeName:a}){const r=Zt(),s=y9()?.();return{getTransformedStyles:f=>s?[...f.map(p=>s(p,{props:t,theme:r,ctx:o})),...a.map(p=>s(r.components[p]?.styles,{props:t,theme:r,ctx:o}))].filter(Boolean):[],withStylesTransform:!!s}}function Ae({name:t,classes:o,props:a,stylesCtx:r,className:s,style:c,rootSelector:f="root",unstyled:d,classNames:p,styles:h,vars:v,varsResolver:y,attributes:x}){const C=Zt(),E=p9(),w=h9(),M=g9(),R=(Array.isArray(t)?t:[t]).filter(H=>H),{withStylesTransform:O,getTransformedStyles:A}=F9({props:a,stylesCtx:r,themeName:R});return(H,z)=>({className:P9({theme:C,options:z,themeName:R,selector:H,classNamesPrefix:E,classNames:p,classes:o,unstyled:d,className:s,rootSelector:f,props:a,stylesCtx:r,withStaticClasses:w,headless:M,transformedStyles:A([z?.styles,h])}),style:K9({theme:C,themeName:R,selector:H,options:z,props:a,stylesCtx:r,rootSelector:f,styles:h,style:c,vars:v,varsResolver:y,headless:M,withStylesTransform:O}),...x?.[H]})}function J9(t,o){return typeof t=="boolean"?t:o.autoContrast}function fe(t,o,a){const r=Zt(),s=r.components[t]?.defaultProps,c=typeof s=="function"?s(r):s;return{...o,...c,...nc(a)}}function xd(t){return Gn(t).reduce((o,a)=>t[a]!==void 0?`${o}${z7(a)}:${t[a]};`:o,"").trim()}function W9({selector:t,styles:o,media:a,container:r}){const s=o?xd(o):"",c=Array.isArray(a)?a.map(d=>`@media${d.query}{${t}{${xd(d.styles)}}}`):[],f=Array.isArray(r)?r.map(d=>`@container ${d.query}{${t}{${xd(d.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function Jy(t){const o=sm();return g.jsx("style",{"data-mantine-styles":"inline",nonce:o?.(),dangerouslySetInnerHTML:{__html:W9(t)}})}function cc(t){const{m:o,mx:a,my:r,mt:s,mb:c,ml:f,mr:d,me:p,ms:h,p:v,px:y,py:x,pt:C,pb:E,pl:w,pr:M,pe:R,ps:O,bd:A,bdrs:H,bg:z,c:k,opacity:V,ff:J,fz:W,fw:Q,lts:oe,ta:ie,lh:le,fs:G,tt:re,td:D,w:B,miw:U,maw:ee,h:ne,mih:_,mah:$,bgsz:F,bgp:ae,bgr:se,bga:ue,pos:ve,top:Se,left:me,bottom:We,right:it,inset:tt,display:Ve,flex:lt,hiddenFrom:nn,visibleFrom:Nn,lightHidden:Co,darkHidden:An,sx:Et,...Xn}=t;return{styleProps:nc({m:o,mx:a,my:r,mt:s,mb:c,ml:f,mr:d,me:p,ms:h,p:v,px:y,py:x,pt:C,pb:E,pl:w,pr:M,pe:R,ps:O,bd:A,bg:z,c:k,opacity:V,ff:J,fz:W,fw:Q,lts:oe,ta:ie,lh:le,fs:G,tt:re,td:D,w:B,miw:U,maw:ee,h:ne,mih:_,mah:$,bgsz:F,bgp:ae,bgr:se,bga:ue,pos:ve,top:Se,left:me,bottom:We,right:it,inset:tt,display:Ve,flex:lt,bdrs:H,hiddenFrom:nn,visibleFrom:Nn,lightHidden:Co,darkHidden:An,sx:Et}),rest:Xn}}const ew={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"},bdrs:{type:"radius",property:"borderRadius"},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 dm(t,o){const a=wl({color:t,theme:o});return a.color==="dimmed"?"var(--mantine-color-dimmed)":a.color==="bright"?"var(--mantine-color-bright)":a.variable?`var(${a.variable})`:a.color}function tw(t,o){const a=wl({color:t,theme:o});return a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-text)`:dm(t,o)}function nw(t,o){if(typeof t=="number")return te(t);if(typeof t=="string"){const[a,r,...s]=t.split(" ").filter(f=>f.trim()!=="");let c=`${te(a)}`;return r&&(c+=` ${r}`),s.length>0&&(c+=` ${dm(s.join(" "),o)}`),c.trim()}return t}const l0={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)"};function ow(t){return typeof t=="string"&&t in l0?l0[t]:t}const lw=["h1","h2","h3","h4","h5","h6"];function aw(t,o){return typeof t=="string"&&t in o.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&lw.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?te(t):t}function rw(t){return t}const iw=["h1","h2","h3","h4","h5","h6"];function sw(t,o){return typeof t=="string"&&t in o.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&iw.includes(t)?`var(--mantine-${t}-line-height)`:t}function cw(t,o){return typeof t=="string"&&t in o.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?te(t):t}function uw(t){return typeof t=="number"?te(t):t}function fw(t,o){if(typeof t=="number")return te(t);if(typeof t=="string"){const a=t.replace("-","");if(!(a in o.spacing))return te(t);const r=`--mantine-spacing-${a}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const Sd={color:dm,textColor:tw,fontSize:aw,spacing:fw,radius:cw,identity:rw,size:uw,lineHeight:sw,fontFamily:ow,border:nw};function a0(t){return t.replace("(min-width: ","").replace("em)","")}function dw({media:t,...o}){const r=Object.keys(t).sort((s,c)=>Number(a0(s))-Number(a0(c))).map(s=>({query:s,styles:t[s]}));return{...o,media:r}}function mw(t){if(typeof t!="object"||t===null)return!1;const o=Object.keys(t);return!(o.length===1&&o[0]==="base")}function pw(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function hw(t){return typeof t=="object"&&t!==null?Gn(t).filter(o=>o!=="base"):[]}function gw(t,o){return typeof t=="object"&&t!==null&&o in t?t[o]:t}function Wy({styleProps:t,data:o,theme:a}){return dw(Gn(t).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const c=o[s],f=Array.isArray(c.property)?c.property:[c.property],d=pw(t[s]);if(!mw(t[s]))return f.forEach(h=>{r.inlineStyles[h]=Sd[c.type](d,a)}),r;r.hasResponsiveStyles=!0;const p=hw(t[s]);return f.forEach(h=>{d!=null&&(r.styles[h]=Sd[c.type](d,a)),p.forEach(v=>{const y=`(min-width: ${a.breakpoints[v]})`;r.media[y]={...r.media[y],[h]:Sd[c.type](gw(t[s],v),a)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function eb(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function tb(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...tb(r,o)}),{}):typeof t=="function"?t(o):t??{}}function nb(t){return t.startsWith("data-")?t:`data-${t}`}function vw(t){return Object.keys(t).reduce((o,a)=>{const r=t[a];return r===void 0||r===""||r===!1||r===null||(o[nb(a)]=t[a]),o},{})}function ob(t){return t?typeof t=="string"?{[nb(t)]:!0}:Array.isArray(t)?[...t].reduce((o,a)=>({...o,...ob(a)}),{}):vw(t):null}function Bd(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...Bd(r,o)}),{}):typeof t=="function"?t(o):t??{}}function yw({theme:t,style:o,vars:a,styleProps:r}){const s=Bd(o,t),c=Bd(a,t);return{...s,...c,...r}}const lb=S.forwardRef(({component:t,style:o,__vars:a,className:r,variant:s,mod:c,size:f,hiddenFrom:d,visibleFrom:p,lightHidden:h,darkHidden:v,renderRoot:y,__size:x,...C},E)=>{const w=Zt(),M=t||"div",{styleProps:R,rest:O}=cc(C),H=v9()?.()?.(R.sx),z=eb(),k=Wy({styleProps:R,theme:w,data:ew}),V={ref:E,style:yw({theme:w,style:o,vars:a,styleProps:k.inlineStyles}),className:So(r,H,{[z]:k.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":v,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":By(f)?void 0:f||void 0,size:x,...ob(c),...O};return g.jsxs(g.Fragment,{children:[k.hasResponsiveStyles&&g.jsx(Jy,{selector:`.${z}`,styles:k.styles,media:k.media}),typeof y=="function"?y(V):g.jsx(M,{...V})]})});lb.displayName="@mantine/core/Box";const xe=lb;function ab(t){return t}function bw(t){const o=t;return a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r}}function He(t){const o=S.forwardRef(t);return o.extend=ab,o.withProps=a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o}function _t(t){const o=S.forwardRef(t);return o.withProps=a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o.extend=ab,o}const xw=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ta(){return S.useContext(xw)}var rb={root:"m_87cf2631"};const Sw={__staticSelector:"UnstyledButton"},Jo=_t((t,o)=>{const a=fe("UnstyledButton",Sw,t),{className:r,component:s="button",__staticSelector:c,unstyled:f,classNames:d,styles:p,style:h,attributes:v,...y}=a,x=Ae({name:c,props:a,classes:rb,className:r,style:h,classNames:d,styles:p,unstyled:f,attributes:v});return g.jsx(xe,{...x("root",{focusable:!0}),component:s,ref:o,type:s==="button"?"button":void 0,...y})});Jo.classes=rb;Jo.displayName="@mantine/core/UnstyledButton";var ib={root:"m_515a97f8"};const mm=He((t,o)=>{const a=fe("VisuallyHidden",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,attributes:h,...v}=a,y=Ae({name:"VisuallyHidden",classes:ib,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:h});return g.jsx(xe,{component:"span",ref:o,...y("root"),...v})});mm.classes=ib;mm.displayName="@mantine/core/VisuallyHidden";var sb={root:"m_1b7284a3"};const Cw=(t,{radius:o,shadow:a})=>({root:{"--paper-radius":o===void 0?void 0:Rt(o),"--paper-shadow":$y(a)}}),pm=_t((t,o)=>{const a=fe("Paper",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,withBorder:p,vars:h,radius:v,shadow:y,variant:x,mod:C,attributes:E,...w}=a,M=Ae({name:"Paper",props:a,classes:sb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:h,varsResolver:Cw});return g.jsx(xe,{ref:o,mod:[{"data-with-border":p},C],...M("root"),variant:x,...w})});pm.classes=sb;pm.displayName="@mantine/core/Paper";function r0(t,o,a,r){return t==="center"||r==="center"?{top:o}:t==="end"?{bottom:a}:t==="start"?{top:a}:{}}function i0(t,o,a,r,s){return t==="center"||r==="center"?{left:o}:t==="end"?{[s==="ltr"?"right":"left"]:a}:t==="start"?{[s==="ltr"?"left":"right"]:a}:{}}const ww={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Ew({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,arrowX:c,arrowY:f,dir:d}){const[p,h="center"]=t.split("-"),v={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[ww[p]]:r},y=-o/2;return p==="left"?{...v,...r0(h,f,a,s),right:y,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...v,...r0(h,f,a,s),left:y,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...v,...i0(h,c,a,s,d),bottom:y,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...v,...i0(h,c,a,s,d),top:y,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const $s=S.forwardRef(({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,visible:c,arrowX:f,arrowY:d,style:p,...h},v)=>{const{dir:y}=Ta();return c?g.jsx("div",{...h,ref:v,style:{...p,...Ew({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,dir:y,arrowX:f,arrowY:d})}}):null});$s.displayName="@mantine/core/FloatingArrow";function cb(t,o){if(t==="rtl"&&(o.includes("right")||o.includes("left"))){const[a,r]=o.split("-"),s=a==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return o}var ub={root:"m_9814e45f"};const Tw={zIndex:$r("modal")},Mw=(t,{gradient:o,color:a,backgroundOpacity:r,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":o||(a!==void 0||r!==void 0)&&Vn(a||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${te(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Rt(c),"--overlay-z-index":f?.toString()}}),kr=_t((t,o)=>{const a=fe("Overlay",Tw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,fixed:h,center:v,children:y,radius:x,zIndex:C,gradient:E,blur:w,color:M,backgroundOpacity:R,mod:O,attributes:A,...H}=a,z=Ae({name:"Overlay",props:a,classes:ub,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:A,vars:p,varsResolver:Mw});return g.jsx(xe,{ref:o,...z("root"),mod:[{center:v,fixed:h},O],...H,children:y})});kr.classes=ub;kr.displayName="@mantine/core/Overlay";function Cd(t){const o=document.createElement("div");return o.setAttribute("data-portal","true"),typeof t.className=="string"&&o.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(o.style,t.style),typeof t.id=="string"&&o.setAttribute("id",t.id),o}function Rw({target:t,reuseTargetNode:o,...a}){if(t)return typeof t=="string"?document.querySelector(t)||Cd(a):t;if(o){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=Cd(a);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return Cd(a)}const _w={reuseTargetNode:!0},fb=He((t,o)=>{const{children:a,target:r,reuseTargetNode:s,...c}=fe("Portal",_w,t),[f,d]=S.useState(!1),p=S.useRef(null);return Zr(()=>(d(!0),p.current=Rw({target:r,reuseTargetNode:s,...c}),Bs(o,p.current),!r&&!s&&p.current&&document.body.appendChild(p.current),()=>{!r&&!s&&p.current&&document.body.removeChild(p.current)}),[r]),!f||!p.current?null:qn.createPortal(g.jsx(g.Fragment,{children:a}),p.current)});fb.displayName="@mantine/core/Portal";const Sa=He(({withinPortal:t=!0,children:o,...a},r)=>ic()==="test"||!t?g.jsx(g.Fragment,{children:o}):g.jsx(fb,{ref:r,...a,children:o}));Sa.displayName="@mantine/core/OptionalPortal";const _r=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),bs={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:{..._r("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{..._r("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{..._r("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{..._r("top"),common:{transformOrigin:"top left"}},"pop-top-right":{..._r("top"),common:{transformOrigin:"top right"}}},s0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function jw({transition:t,state:o,duration:a,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${a}ms`,transitionTimingFunction:r};return typeof t=="string"?t in bs?{transitionProperty:bs[t].transitionProperty,...s,...bs[t].common,...bs[t][s0[o]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[s0[o]]}}function Ow({duration:t,exitDuration:o,timingFunction:a,mounted:r,onEnter:s,onExit:c,onEntered:f,onExited:d,enterDelay:p,exitDelay:h}){const v=Zt(),y=r9(),x=v.respectReducedMotion?y:!1,[C,E]=S.useState(x?0:t),[w,M]=S.useState(r?"entered":"exited"),R=S.useRef(-1),O=S.useRef(-1),A=S.useRef(-1);function H(){window.clearTimeout(R.current),window.clearTimeout(O.current),cancelAnimationFrame(A.current)}const z=V=>{H();const J=V?s:c,W=V?f:d,Q=x?0:V?t:o;E(Q),Q===0?(typeof J=="function"&&J(),typeof W=="function"&&W(),M(V?"entered":"exited")):A.current=requestAnimationFrame(()=>{M0.flushSync(()=>{M(V?"pre-entering":"pre-exiting")}),A.current=requestAnimationFrame(()=>{typeof J=="function"&&J(),M(V?"entering":"exiting"),R.current=window.setTimeout(()=>{typeof W=="function"&&W(),M(V?"entered":"exited")},Q)})})},k=V=>{if(H(),typeof(V?p:h)!="number"){z(V);return}O.current=window.setTimeout(()=>{z(V)},V?p:h)};return Lr(()=>{k(r)},[r]),S.useEffect(()=>()=>{H()},[]),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:a||"ease"}}function Io({keepMounted:t,transition:o="fade",duration:a=250,exitDuration:r=a,mounted:s,children:c,timingFunction:f="ease",onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x}){const C=ic(),{transitionDuration:E,transitionStatus:w,transitionTimingFunction:M}=Ow({mounted:s,exitDuration:r,duration:a,timingFunction:f,onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x});return E===0||C==="test"?s?g.jsx(g.Fragment,{children:c({})}):t?c({display:"none"}):null:w==="exited"?t?c({display:"none"}):null:g.jsx(g.Fragment,{children:c(jw({transition:o,duration:E,state:w,timingFunction:M}))})}Io.displayName="@mantine/core/Transition";const[Nw,db]=oc("Popover component was not found in the tree");var mb={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function hm({children:t,active:o=!0,refProp:a="ref",innerRef:r}){const s=Yy(o),c=_n(s,r),f=qr(t);return f?S.cloneElement(f,{[a]:c}):t}function pb(t){return g.jsx(mm,{tabIndex:-1,"data-autofocus":!0,...t})}hm.displayName="@mantine/core/FocusTrap";pb.displayName="@mantine/core/FocusTrapInitialFocus";hm.InitialFocus=pb;const uc=He((t,o)=>{const a=fe("PopoverDropdown",null,t),{className:r,style:s,vars:c,children:f,onKeyDownCapture:d,variant:p,classNames:h,styles:v,...y}=a,x=db(),C=J7({opened:x.opened,shouldReturnFocus:x.returnFocus}),E=x.withRoles?{"aria-labelledby":x.getTargetId(),id:x.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=_n(o,x.floating);return x.disabled?null:g.jsx(Sa,{...x.portalProps,withinPortal:x.withinPortal,children:g.jsx(Io,{mounted:x.opened,...x.transitionProps,transition:x.transitionProps?.transition||"fade",duration:x.transitionProps?.duration??150,keepMounted:x.keepMounted,exitDuration:typeof x.transitionProps?.exitDuration=="number"?x.transitionProps.exitDuration:x.transitionProps?.duration,children:M=>g.jsx(hm,{active:x.trapFocus&&x.opened,innerRef:w,children:g.jsxs(xe,{...E,...y,variant:p,onKeyDownCapture:Z7(()=>{x.onClose?.(),x.onDismiss?.()},{active:x.closeOnEscape,onTrigger:C,onKeyDown:d}),"data-position":x.placement,"data-fixed":x.floatingStrategy==="fixed"||void 0,...x.getStyles("dropdown",{className:r,props:a,classNames:h,styles:v,style:[{...M,zIndex:x.zIndex,top:x.y??0,left:x.x??0,width:x.width==="target"?void 0:te(x.width),...x.referenceHidden?{display:"none"}:null},x.resolvedStyles.dropdown,v?.dropdown,s]}),children:[f,g.jsx($s,{ref:x.arrowRef,arrowX:x.arrowX,arrowY:x.arrowY,visible:x.withArrow,position:x.placement,arrowSize:x.arrowSize,arrowRadius:x.arrowRadius,arrowOffset:x.arrowOffset,arrowPosition:x.arrowPosition,...x.getStyles("arrow",{props:a,classNames:h,styles:v})})]})})})})});uc.classes=mb;uc.displayName="@mantine/core/PopoverDropdown";const Aw={refProp:"ref",popupType:"dialog"},gm=He((t,o)=>{const{children:a,refProp:r,popupType:s,...c}=fe("PopoverTarget",Aw,t),f=qr(a);if(!f)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 d=c,p=db(),h=_n(p.reference,rm(f),o),v=p.withRoles?{"aria-haspopup":s,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},y=f.props;return S.cloneElement(f,{...d,...v,...p.targetProps,className:So(p.targetProps.className,d.className,y.className),[r]:h,...p.controlled?null:{onClick:()=>{p.onToggle(),y.onClick?.()}}})});gm.displayName="@mantine/core/PopoverTarget";function Hw(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function Dw(t,o,a){const r=Hw(t.middlewares),s=[pn(t.offset),V4()];return t.dropdownVisible&&a!=="test"&&t.preventPositionChangeWhenVisible&&(r.flip=!1),r.flip&&s.push(typeof r.flip=="boolean"?bo():bo(r.flip)),r.shift&&s.push(Ko(typeof r.shift=="boolean"?{limiter:mv(),padding:5}:{limiter:mv(),padding:5,...r.shift})),r.inline&&s.push(typeof r.inline=="boolean"?jr():jr(r.inline)),s.push(I0({element:t.arrowRef,padding:t.arrowOffset})),(r.size||t.width==="target")&&s.push(Dr({...typeof r.size=="boolean"?{}:r.size,apply({rects:c,availableWidth:f,availableHeight:d,...p}){const v=o().refs.floating.current?.style??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:c,availableWidth:f,availableHeight:d,...p}):Object.assign(v,{maxWidth:`${f}px`,maxHeight:`${d}px`})),t.width==="target"&&Object.assign(v,{width:`${c.reference.width}px`})}})),s}function zw(t){const o=ic(),[a,r]=Ea({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),s=S.useRef(a),c=()=>{a&&!t.disabled&&r(!1)},f=()=>{t.disabled||r(!a)},d=ec({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:Dw(t,()=>d,o),whileElementsMounted:t.keepMounted?void 0:Os});return S.useEffect(()=>{if(!(!d.refs.reference.current||!d.refs.floating.current)&&a)return Os(d.refs.reference.current,d.refs.floating.current,d.update)},[a,d.update]),Lr(()=>{t.onPositionChange?.(d.placement),t.positionRef.current=d.placement},[d.placement,t.preventPositionChangeWhenVisible]),Lr(()=>{a!==s.current&&(a?t.onOpen?.():t.onClose?.()),s.current=a},[a,t.onClose,t.onOpen]),Zr(()=>{let p=-1;return a&&(p=window.setTimeout(()=>t.setDropdownVisible(!0),4)),()=>{window.clearTimeout(p)}},[a,t.position]),{floating:d,controlled:typeof t.opened=="boolean",opened:a,onClose:c,onToggle:f}}const Lw={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,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:$r("popover"),__staticSelector:"Popover",width:"max-content"},Vw=(t,{radius:o,shadow:a})=>({dropdown:{"--popover-radius":o===void 0?void 0:Rt(o),"--popover-shadow":$y(a)}});function jn(t){const o=fe("Popover",Lw,t),{children:a,position:r,offset:s,onPositionChange:c,positionDependencies:f,opened:d,transitionProps:p,onExitTransitionEnd:h,onEnterTransitionEnd:v,width:y,middlewares:x,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:M,arrowPosition:R,unstyled:O,classNames:A,styles:H,closeOnClickOutside:z,withinPortal:k,portalProps:V,closeOnEscape:J,clickOutsideEvents:W,trapFocus:Q,onClose:oe,onDismiss:ie,onOpen:le,onChange:G,zIndex:re,radius:D,shadow:B,id:U,defaultOpened:ee,__staticSelector:ne,withRoles:_,disabled:$,returnFocus:F,variant:ae,keepMounted:se,vars:ue,floatingStrategy:ve,withOverlay:Se,overlayProps:me,hideDetached:We,attributes:it,preventPositionChangeWhenVisible:tt,...Ve}=o,lt=Ae({name:ne,props:o,classes:mb,classNames:A,styles:H,unstyled:O,attributes:it,rootSelector:"dropdown",vars:ue,varsResolver:Vw}),{resolvedStyles:nn}=sc({classNames:A,styles:H,props:o}),[Nn,Co]=S.useState(d??ee??!1),An=S.useRef(r),Et=S.useRef(null),[Xn,Tl]=S.useState(null),[wc,Ec]=S.useState(null),{dir:jt}=Ta(),Tc=ic(),Na=wa(U),dt=zw({middlewares:x,width:y,position:cb(jt,r),offset:typeof s=="number"?s+(C?E/2:0):s,arrowRef:Et,arrowOffset:w,onPositionChange:c,positionDependencies:f,opened:d,defaultOpened:ee,onChange:G,onOpen:le,onClose:oe,onDismiss:ie,strategy:ve,dropdownVisible:Nn,setDropdownVisible:Co,positionRef:An,disabled:$,preventPositionChangeWhenVisible:tt,keepMounted:se});Q7(()=>{z&&(dt.onClose(),ie?.())},W,[Xn,wc]);const Ml=S.useCallback(Qn=>{Tl(Qn),dt.floating.refs.setReference(Qn)},[dt.floating.refs.setReference]),Mc=S.useCallback(Qn=>{Ec(Qn),dt.floating.refs.setFloating(Qn)},[dt.floating.refs.setFloating]),Qr=S.useCallback(()=>{p?.onExited?.(),h?.(),Co(!1),tt||(An.current=r)},[p?.onExited,h,tt,r]),Rc=S.useCallback(()=>{p?.onEntered?.(),v?.()},[p?.onEntered,v]);return g.jsxs(Nw,{value:{returnFocus:F,disabled:$,controlled:dt.controlled,reference:Ml,floating:Mc,x:dt.floating.x,y:dt.floating.y,arrowX:dt.floating?.middlewareData?.arrow?.x,arrowY:dt.floating?.middlewareData?.arrow?.y,opened:dt.opened,arrowRef:Et,transitionProps:{...p,onExited:Qr,onEntered:Rc},width:y,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:M,arrowPosition:R,placement:dt.floating.placement,trapFocus:Q,withinPortal:k,portalProps:V,zIndex:re,radius:D,shadow:B,closeOnEscape:J,onDismiss:ie,onClose:dt.onClose,onToggle:dt.onToggle,getTargetId:()=>`${Na}-target`,getDropdownId:()=>`${Na}-dropdown`,withRoles:_,targetProps:Ve,__staticSelector:ne,classNames:A,styles:H,unstyled:O,variant:ae,keepMounted:se,getStyles:lt,resolvedStyles:nn,floatingStrategy:ve,referenceHidden:We&&Tc!=="test"?dt.floating.middlewareData.hide?.referenceHidden:!1},children:[a,Se&&g.jsx(Io,{transition:"fade",mounted:dt.opened,duration:p?.duration||250,exitDuration:p?.exitDuration||250,children:Qn=>g.jsx(Sa,{withinPortal:k,children:g.jsx(kr,{...me,...lt("overlay",{className:me?.className,style:[Qn,me?.style]})})})})]})}jn.Target=gm;jn.Dropdown=uc;jn.displayName="@mantine/core/Popover";jn.extend=t=>t;var wn={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 hb=S.forwardRef(({className:t,...o},a)=>g.jsxs(xe,{component:"span",className:So(wn.barsLoader,t),...o,ref:a,children:[g.jsx("span",{className:wn.bar}),g.jsx("span",{className:wn.bar}),g.jsx("span",{className:wn.bar})]}));hb.displayName="@mantine/core/Bars";const gb=S.forwardRef(({className:t,...o},a)=>g.jsxs(xe,{component:"span",className:So(wn.dotsLoader,t),...o,ref:a,children:[g.jsx("span",{className:wn.dot}),g.jsx("span",{className:wn.dot}),g.jsx("span",{className:wn.dot})]}));gb.displayName="@mantine/core/Dots";const vb=S.forwardRef(({className:t,...o},a)=>g.jsx(xe,{component:"span",className:So(wn.ovalLoader,t),...o,ref:a}));vb.displayName="@mantine/core/Oval";const yb={bars:hb,oval:vb,dots:gb},kw={loaders:yb,type:"oval"},Bw=(t,{size:o,color:a})=>({root:{"--loader-size":Qe(o,"loader-size"),"--loader-color":a?xo(a,t):void 0}}),Wo=He((t,o)=>{const a=fe("Loader",kw,t),{size:r,color:s,type:c,vars:f,className:d,style:p,classNames:h,styles:v,unstyled:y,loaders:x,variant:C,children:E,attributes:w,...M}=a,R=Ae({name:"Loader",props:a,classes:wn,className:d,style:p,classNames:h,styles:v,unstyled:y,attributes:w,vars:f,varsResolver:Bw});return E?g.jsx(xe,{...R("root"),ref:o,...M,children:E}):g.jsx(xe,{...R("root"),ref:o,component:x[c],variant:C,size:r,...M})});Wo.defaultLoaders=yb;Wo.classes=wn;Wo.displayName="@mantine/core/Loader";var Ma={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const c0={orientation:"horizontal"},Uw=(t,{borderWidth:o})=>({group:{"--ai-border-width":te(o)}}),vm=He((t,o)=>{const a=fe("ActionIconGroup",c0,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...E}=fe("ActionIconGroup",c0,t),w=Ae({name:"ActionIconGroup",props:a,classes:Ma,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:Uw,rootSelector:"group"});return g.jsx(xe,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...E})});vm.classes=Ma;vm.displayName="@mantine/core/ActionIconGroup";const $w=(t,{radius:o,color:a,gradient:r,variant:s,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Qe(f,"section-height"),"--section-padding-x":Qe(f,"section-padding-x"),"--section-fz":Gt(f),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},ym=He((t,o)=>{const a=fe("ActionIconGroupSection",null,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,vars:p,variant:h,gradient:v,radius:y,autoContrast:x,attributes:C,...E}=a,w=Ae({name:"ActionIconGroupSection",props:a,classes:Ma,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:$w,rootSelector:"groupSection"});return g.jsx(xe,{...w("groupSection"),ref:o,variant:h,...E})});ym.classes=Ma;ym.displayName="@mantine/core/ActionIconGroupSection";const Gw=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f})=>{const d=t.variantColorResolver({color:c||t.primaryColor,theme:t,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ai-size":Qe(o,"ai-size"),"--ai-radius":a===void 0?void 0:Rt(a),"--ai-bg":c||r?d.background:void 0,"--ai-hover":c||r?d.hover:void 0,"--ai-hover-color":c||r?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":c||r?d.border:void 0}}},El=_t((t,o)=>{const a=fe("ActionIcon",null,t),{className:r,unstyled:s,variant:c,classNames:f,styles:d,style:p,loading:h,loaderProps:v,size:y,color:x,radius:C,__staticSelector:E,gradient:w,vars:M,children:R,disabled:O,"data-disabled":A,autoContrast:H,mod:z,attributes:k,...V}=a,J=Ae({name:["ActionIcon",E],props:a,className:r,style:p,classes:Ma,classNames:f,styles:d,unstyled:s,attributes:k,vars:M,varsResolver:Gw});return g.jsxs(Jo,{...J("root",{active:!O&&!h&&!A}),...V,unstyled:s,variant:c,size:y,disabled:O||h,ref:o,mod:[{loading:h,disabled:O||A},z],children:[typeof h=="boolean"&&g.jsx(Io,{mounted:h,transition:"slide-down",duration:150,children:W=>g.jsx(xe,{component:"span",...J("loader",{style:W}),"aria-hidden":!0,children:g.jsx(Wo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...v})})}),g.jsx(xe,{component:"span",mod:{loading:h},...J("icon"),children:R})]})});El.classes=Ma;El.displayName="@mantine/core/ActionIcon";El.Group=vm;El.GroupSection=ym;const bb=S.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:o,...a},r)=>g.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...o,width:t,height:t},ref:r,...a,children:g.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"})}));bb.displayName="@mantine/core/CloseIcon";var xb={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Zw={variant:"subtle"},qw=(t,{size:o,radius:a,iconSize:r})=>({root:{"--cb-size":Qe(o,"cb-size"),"--cb-radius":a===void 0?void 0:Rt(a),"--cb-icon-size":te(r)}}),fc=_t((t,o)=>{const a=fe("CloseButton",Zw,t),{iconSize:r,children:s,vars:c,radius:f,className:d,classNames:p,style:h,styles:v,unstyled:y,"data-disabled":x,disabled:C,variant:E,icon:w,mod:M,attributes:R,__staticSelector:O,...A}=a,H=Ae({name:O||"CloseButton",props:a,className:d,style:h,classes:xb,classNames:p,styles:v,unstyled:y,attributes:R,vars:c,varsResolver:qw});return g.jsxs(Jo,{ref:o,...A,unstyled:y,variant:E,disabled:C,mod:[{disabled:C||x},M],...H("root",{variant:E,active:!C&&!x}),children:[w||g.jsx(bb,{}),s]})});fc.classes=xb;fc.displayName="@mantine/core/CloseButton";function Yw(t){return S.Children.toArray(t).filter(Boolean)}var Sb={root:"m_4081bf90"};const Pw={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Xw=(t,{grow:o,preventGrowOverflow:a,gap:r,align:s,justify:c,wrap:f},{childWidth:d})=>({root:{"--group-child-width":o&&a?d:void 0,"--group-gap":Gr(r),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),wt=He((t,o)=>{const a=fe("Group",Pw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,children:p,gap:h,align:v,justify:y,wrap:x,grow:C,preventGrowOverflow:E,vars:w,variant:M,__size:R,mod:O,attributes:A,...H}=a,z=Yw(p),k=z.length,V=Gr(h??"md"),W={childWidth:`calc(${100/k}% - (${V} - ${V} / ${k}))`},Q=Ae({name:"Group",props:a,stylesCtx:W,className:s,style:c,classes:Sb,classNames:r,styles:f,unstyled:d,attributes:A,vars:w,varsResolver:Xw});return g.jsx(xe,{...Q("root"),ref:o,variant:M,mod:[{grow:C},O],size:R,...H,children:z})});wt.classes=Sb;wt.displayName="@mantine/core/Group";const[Qw,Iw]=lc({size:"sm"});var yn={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 Cb=He((t,o)=>{const a=fe("InputClearButton",null,t),{size:r,variant:s,vars:c,classNames:f,styles:d,...p}=a,h=Iw(),{resolvedClassNames:v,resolvedStyles:y}=sc({classNames:f,styles:d,props:a});return g.jsx(fc,{variant:s||"transparent",ref:o,size:r||h?.size||"sm",classNames:v,styles:y,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...p.style},...p})});Cb.displayName="@mantine/core/InputClearButton";const Kw={xs:7,sm:8,md:10,lg:12,xl:15};function Fw({__clearable:t,__clearSection:o,rightSection:a,__defaultRightSection:r,size:s="sm"}){const c=t&&o;return c&&(a||r)?g.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Kw[s]},children:[c,a||r]}):a===null?null:a||c||r}const[Jw,dc]=lc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Ww=(t,{size:o})=>({description:{"--input-description-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),mc=He((t,o)=>{const a=fe("InputDescription",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,__staticSelector:v,__inheritStyles:y=!0,attributes:x,variant:C,...E}=fe("InputDescription",null,a),w=dc(),M=Ae({name:["InputWrapper",v],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:x,rootSelector:"description",vars:p,varsResolver:Ww}),R=y&&w?.getStyles||M;return g.jsx(xe,{component:"p",ref:o,variant:C,size:h,...R("description",w?.getStyles?{className:s,style:c}:void 0),...E})});mc.classes=yn;mc.displayName="@mantine/core/InputDescription";const e6=(t,{size:o})=>({error:{"--input-error-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),pc=He((t,o)=>{const a=fe("InputError",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,attributes:v,__staticSelector:y,__inheritStyles:x=!0,variant:C,...E}=a,w=Ae({name:["InputWrapper",y],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,rootSelector:"error",vars:p,varsResolver:e6}),M=dc(),R=x&&M?.getStyles||w;return g.jsx(xe,{component:"p",ref:o,variant:C,size:h,...R("error",M?.getStyles?{className:s,style:c}:void 0),...E})});pc.classes=yn;pc.displayName="@mantine/core/InputError";const u0={labelElement:"label"},t6=(t,{size:o})=>({label:{"--input-label-size":Gt(o),"--input-asterisk-color":void 0}}),hc=He((t,o)=>{const a=fe("InputLabel",u0,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,labelElement:h,size:v,required:y,htmlFor:x,onMouseDown:C,children:E,__staticSelector:w,variant:M,mod:R,attributes:O,...A}=fe("InputLabel",u0,a),H=Ae({name:["InputWrapper",w],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:O,rootSelector:"label",vars:p,varsResolver:t6}),z=dc(),k=z?.getStyles||H;return g.jsxs(xe,{...k("label",z?.getStyles?{className:s,style:c}:void 0),component:h,variant:M,size:v,ref:o,htmlFor:h==="label"?x:void 0,mod:[{required:y},R],onMouseDown:V=>{C?.(V),!V.defaultPrevented&&V.detail>1&&V.preventDefault()},...A,children:[E,y&&g.jsx("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});hc.classes=yn;hc.displayName="@mantine/core/InputLabel";const bm=He((t,o)=>{const a=fe("InputPlaceholder",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,__staticSelector:h,variant:v,error:y,mod:x,attributes:C,...E}=a,w=Ae({name:["InputPlaceholder",h],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,rootSelector:"placeholder"});return g.jsx(xe,{...w("placeholder"),mod:[{error:!!y},x],component:"span",variant:v,ref:o,...E})});bm.classes=yn;bm.displayName="@mantine/core/InputPlaceholder";function n6(t,{hasDescription:o,hasError:a}){const r=t.findIndex(p=>p==="input"),s=t.slice(0,r),c=t.slice(r+1),f=o&&s.includes("description")||a&&s.includes("error");return{offsetBottom:o&&c.includes("description")||a&&c.includes("error"),offsetTop:f}}const o6={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},l6=(t,{size:o})=>({label:{"--input-label-size":Gt(o),"--input-asterisk-color":void 0},error:{"--input-error-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`},description:{"--input-description-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),xm=He((t,o)=>{const a=fe("InputWrapper",o6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,variant:v,__staticSelector:y,inputContainer:x,inputWrapperOrder:C,label:E,error:w,description:M,labelProps:R,descriptionProps:O,errorProps:A,labelElement:H,children:z,withAsterisk:k,id:V,required:J,__stylesApiProps:W,mod:Q,attributes:oe,...ie}=a,le=Ae({name:["InputWrapper",y],props:W||a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:oe,vars:p,varsResolver:l6}),G={size:h,variant:v,__staticSelector:y},re=wa(V),D=typeof k=="boolean"?k:J,B=A?.id||`${re}-error`,U=O?.id||`${re}-description`,ee=re,ne=!!w&&typeof w!="boolean",_=!!M,$=`${ne?B:""} ${_?U:""}`,F=$.trim().length>0?$.trim():void 0,ae=R?.id||`${re}-label`,se=E&&g.jsx(hc,{labelElement:H,id:ae,htmlFor:ee,required:D,...G,...R,children:E},"label"),ue=_&&g.jsx(mc,{...O,...G,size:O?.size||G.size,id:O?.id||U,children:M},"description"),ve=g.jsx(S.Fragment,{children:x(z)},"input"),Se=ne&&S.createElement(pc,{...A,...G,size:A?.size||G.size,key:"error",id:A?.id||B},w),me=C.map(We=>{switch(We){case"label":return se;case"input":return ve;case"description":return ue;case"error":return Se;default:return null}});return g.jsx(Jw,{value:{getStyles:le,describedBy:F,inputId:ee,labelId:ae,...n6(C,{hasDescription:_,hasError:ne})},children:g.jsx(xe,{ref:o,variant:v,size:h,mod:[{error:!!w},Q],...le("root"),...ie,children:me})})});xm.classes=yn;xm.displayName="@mantine/core/InputWrapper";const a6={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},r6=(t,o,a)=>({wrapper:{"--input-margin-top":a.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":a.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Qe(o.size,"input-height"),"--input-fz":Gt(o.size),"--input-radius":o.radius===void 0?void 0:Rt(o.radius),"--input-left-section-width":o.leftSectionWidth!==void 0?te(o.leftSectionWidth):void 0,"--input-right-section-width":o.rightSectionWidth!==void 0?te(o.rightSectionWidth):void 0,"--input-padding-y":o.multiline?Qe(o.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":o.leftSectionPointerEvents,"--input-right-section-pointer-events":o.rightSectionPointerEvents}}),tn=_t((t,o)=>{const a=fe("Input",a6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,required:p,__staticSelector:h,__stylesApiProps:v,size:y,wrapperProps:x,error:C,disabled:E,leftSection:w,leftSectionProps:M,leftSectionWidth:R,rightSection:O,rightSectionProps:A,rightSectionWidth:H,rightSectionPointerEvents:z,leftSectionPointerEvents:k,variant:V,vars:J,pointer:W,multiline:Q,radius:oe,id:ie,withAria:le,withErrorStyles:G,mod:re,inputSize:D,attributes:B,__clearSection:U,__clearable:ee,__defaultRightSection:ne,..._}=a,{styleProps:$,rest:F}=cc(_),ae=dc(),se={offsetBottom:ae?.offsetBottom,offsetTop:ae?.offsetTop},ue=Ae({name:["Input",h],props:v||a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:B,stylesCtx:se,rootSelector:"wrapper",vars:J,varsResolver:r6}),ve=le?{required:p,disabled:E,"aria-invalid":!!C,"aria-describedby":ae?.describedBy,id:ae?.inputId||ie}:{},Se=Fw({__clearable:ee,__clearSection:U,rightSection:O,__defaultRightSection:ne,size:y});return g.jsx(Qw,{value:{size:y||"sm"},children:g.jsxs(xe,{...ue("wrapper"),...$,...x,mod:[{error:!!C&&G,pointer:W,disabled:E,multiline:Q,"data-with-right-section":!!Se,"data-with-left-section":!!w},re],variant:V,size:y,children:[w&&g.jsx("div",{...M,"data-position":"left",...ue("section",{className:M?.className,style:M?.style}),children:w}),g.jsx(xe,{component:"input",...F,...ve,ref:o,required:p,mod:{disabled:E,error:!!C&&G},variant:V,__size:D,...ue("input")}),Se&&g.jsx("div",{...A,"data-position":"right",...ue("section",{className:A?.className,style:A?.style}),children:Se})]})})});tn.classes=yn;tn.Wrapper=xm;tn.Label=hc;tn.Error=pc;tn.Description=mc;tn.Placeholder=bm;tn.ClearButton=Cb;tn.displayName="@mantine/core/Input";function i6(t,o,a){const r=fe(t,o,a),{label:s,description:c,error:f,required:d,classNames:p,styles:h,className:v,unstyled:y,__staticSelector:x,__stylesApiProps:C,errorProps:E,labelProps:w,descriptionProps:M,wrapperProps:R,id:O,size:A,style:H,inputContainer:z,inputWrapperOrder:k,withAsterisk:V,variant:J,vars:W,mod:Q,attributes:oe,...ie}=r,{styleProps:le,rest:G}=cc(ie),re={label:s,description:c,error:f,required:d,classNames:p,className:v,__staticSelector:x,__stylesApiProps:C||r,errorProps:E,labelProps:w,descriptionProps:M,unstyled:y,styles:h,size:A,style:H,inputContainer:z,inputWrapperOrder:k,withAsterisk:V,variant:J,id:O,mod:Q,attributes:oe,...R};return{...G,classNames:p,styles:h,unstyled:y,wrapperProps:{...re,...le},inputProps:{required:d,classNames:p,styles:h,unstyled:y,size:A,__staticSelector:x,__stylesApiProps:C||r,error:f,variant:J,id:O,attributes:oe}}}const s6={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ra=_t((t,o)=>{const{inputProps:a,wrapperProps:r,...s}=i6("InputBase",s6,t);return g.jsx(tn.Wrapper,{...r,children:g.jsx(tn,{...a,...s,ref:o})})});Ra.classes={...tn.classes,...tn.Wrapper.classes};Ra.displayName="@mantine/core/InputBase";const c6={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 wb={root:"m_8bffd616"};const Sm=_t((t,o)=>{const a=fe("Flex",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:E,direction:w,attributes:M,...R}=a,O=Ae({name:"Flex",classes:wb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p}),A=Zt(),H=eb(),z=Wy({styleProps:{gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:E,direction:w},theme:A,data:c6});return g.jsxs(g.Fragment,{children:[z.hasResponsiveStyles&&g.jsx(Jy,{selector:`.${H}`,styles:z.styles,media:z.media}),g.jsx(xe,{ref:o,...O("root",{className:H,style:nc(z.inlineStyles)}),...R})]})});Sm.classes=wb;Sm.displayName="@mantine/core/Flex";function Eb({open:t,close:o,openDelay:a,closeDelay:r}){const s=S.useRef(-1),c=S.useRef(-1),f=()=>{window.clearTimeout(s.current),window.clearTimeout(c.current)},d=()=>{f(),a===0||a===void 0?t():s.current=window.setTimeout(t,a)},p=()=>{f(),r===0||r===void 0?o():c.current=window.setTimeout(o,r)};return S.useEffect(()=>f,[]),{openDropdown:d,closeDropdown:p}}function Tb({style:t,size:o=16,...a}){return g.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:te(o),height:te(o),display:"block"},...a,children:g.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"})})}Tb.displayName="@mantine/core/AccordionChevron";var Mb={root:"m_b6d8b162"};function u6(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const f6={inherit:!1},d6=(t,{variant:o,lineClamp:a,gradient:r,size:s,color:c})=>({root:{"--text-fz":Gt(s),"--text-lh":q7(s),"--text-gradient":o==="gradient"?Vd(r,t):void 0,"--text-line-clamp":typeof a=="number"?a.toString():void 0,"--text-color":c?xo(c,t):void 0}}),Yn=_t((t,o)=>{const a=fe("Text",f6,t),{lineClamp:r,truncate:s,inline:c,inherit:f,gradient:d,span:p,__staticSelector:h,vars:v,className:y,style:x,classNames:C,styles:E,unstyled:w,variant:M,mod:R,size:O,attributes:A,...H}=a,z=Ae({name:["Text",h],props:a,classes:Mb,className:y,style:x,classNames:C,styles:E,unstyled:w,attributes:A,vars:v,varsResolver:d6});return g.jsx(xe,{...z("root",{focusable:!0}),ref:o,component:p?"span":"p",variant:M,mod:[{"data-truncate":u6(s),"data-line-clamp":typeof r=="number","data-inline":c,"data-inherit":f},R],size:O,...H})});Yn.classes=Mb;Yn.displayName="@mantine/core/Text";function Gs({size:t,style:o,...a}){const r=t!==void 0?{width:te(t),height:te(t),...o}:o;return g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...a,children:g.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"})})}var gc={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const Rb=S.createContext(null),m6=Rb.Provider;function p6(){return{withinGroup:!!S.useContext(Rb)}}const h6=(t,{spacing:o})=>({group:{"--ag-spacing":Gr(o)}}),Cm=He((t,o)=>{const a=fe("AvatarGroup",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,spacing:h,attributes:v,...y}=a,x=Ae({name:"AvatarGroup",classes:gc,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:p,varsResolver:h6,rootSelector:"group"});return g.jsx(m6,{value:!0,children:g.jsx(xe,{ref:o,...x("group"),...y})})});Cm.classes=gc;Cm.displayName="@mantine/core/AvatarGroup";function g6(t){return g.jsx("svg",{...t,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})}function v6(t){let o=0;for(let a=0;a<t.length;a+=1){const r=t.charCodeAt(a);o=(o<<5)-o+r,o|=0}return o}const y6=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function b6(t,o=y6){const a=v6(t),r=Math.abs(a)%o.length;return o[r]}function x6(t,o=2){const a=t.split(" ");return a.length===1?t.slice(0,o).toUpperCase():a.map(r=>r[0]).slice(0,o).join("").toUpperCase()}const S6=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f,name:d,allowedInitialsColors:p})=>{const h=c==="initials"&&typeof d=="string"?b6(d,p):c,v=t.variantColorResolver({color:h||"gray",theme:t,gradient:s,variant:r||"light",autoContrast:f});return{root:{"--avatar-size":Qe(o,"avatar-size"),"--avatar-radius":a===void 0?void 0:Rt(a),"--avatar-bg":h||r?v.background:void 0,"--avatar-color":h||r?v.color:void 0,"--avatar-bd":h||r?v.border:void 0}}},vc=_t((t,o)=>{const a=fe("Avatar",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,src:h,alt:v,radius:y,color:x,gradient:C,imageProps:E,children:w,autoContrast:M,mod:R,name:O,allowedInitialsColors:A,attributes:H,...z}=a,k=p6(),[V,J]=S.useState(!h),W=Ae({name:"Avatar",props:a,classes:gc,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:H,vars:p,varsResolver:S6});return S.useEffect(()=>J(!h),[h]),g.jsx(xe,{...W("root"),mod:[{"within-group":k.withinGroup},R],ref:o,...z,children:V||!h?g.jsx("span",{...W("placeholder"),title:v,children:w||typeof O=="string"&&x6(O)||g.jsx(g6,{})}):g.jsx("img",{...E,...W("image"),src:h,alt:v,onError:Q=>{J(!0),E?.onError?.(Q)}})})});vc.classes=gc;vc.displayName="@mantine/core/Avatar";vc.Group=Cm;var _b={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const C6=(t,{radius:o,color:a,gradient:r,variant:s,size:c,autoContrast:f,circle:d})=>{const p=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Qe(c,"badge-height"),"--badge-padding-x":Qe(c,"badge-padding-x"),"--badge-fz":Qe(c,"badge-fz"),"--badge-radius":d||o===void 0?void 0:Rt(o),"--badge-bg":a||s?p.background:void 0,"--badge-color":a||s?p.color:void 0,"--badge-bd":a||s?p.border:void 0,"--badge-dot-color":s==="dot"?xo(a,t):void 0}}},wm=_t((t,o)=>{const a=fe("Badge",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,radius:h,color:v,gradient:y,leftSection:x,rightSection:C,children:E,variant:w,fullWidth:M,autoContrast:R,circle:O,mod:A,attributes:H,...z}=a,k=Ae({name:"Badge",props:a,classes:_b,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:H,vars:p,varsResolver:C6});return g.jsxs(xe,{variant:w,mod:[{block:M,circle:O,"with-right-section":!!C,"with-left-section":!!x},A],...k("root",{variant:w}),ref:o,...z,children:[x&&g.jsx("span",{...k("section"),"data-position":"left",children:x}),g.jsx("span",{...k("label"),children:E}),C&&g.jsx("span",{...k("section"),"data-position":"right",children:C})]})});wm.classes=_b;wm.displayName="@mantine/core/Badge";var _a={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const f0={orientation:"horizontal"},w6=(t,{borderWidth:o})=>({group:{"--button-border-width":te(o)}}),Em=He((t,o)=>{const a=fe("ButtonGroup",f0,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...E}=fe("ButtonGroup",f0,t),w=Ae({name:"ButtonGroup",props:a,classes:_a,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:w6,rootSelector:"group"});return g.jsx(xe,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...E})});Em.classes=_a;Em.displayName="@mantine/core/ButtonGroup";const E6=(t,{radius:o,color:a,gradient:r,variant:s,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Qe(f,"section-height"),"--section-padding-x":Qe(f,"section-padding-x"),"--section-fz":f?.includes("compact")?Gt(f.replace("compact-","")):Gt(f),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},Tm=He((t,o)=>{const a=fe("ButtonGroupSection",null,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,vars:p,variant:h,gradient:v,radius:y,autoContrast:x,attributes:C,...E}=a,w=Ae({name:"ButtonGroupSection",props:a,classes:_a,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:E6,rootSelector:"groupSection"});return g.jsx(xe,{...w("groupSection"),ref:o,variant:h,...E})});Tm.classes=_a;Tm.displayName="@mantine/core/ButtonGroupSection";const T6={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${te(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},M6=(t,{radius:o,color:a,gradient:r,variant:s,size:c,justify:f,autoContrast:d})=>{const p=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:d});return{root:{"--button-justify":f,"--button-height":Qe(c,"button-height"),"--button-padding-x":Qe(c,"button-padding-x"),"--button-fz":c?.includes("compact")?Gt(c.replace("compact-","")):Gt(c),"--button-radius":o===void 0?void 0:Rt(o),"--button-bg":a||s?p.background:void 0,"--button-hover":a||s?p.hover:void 0,"--button-color":p.color,"--button-bd":a||s?p.border:void 0,"--button-hover-color":a||s?p.hoverColor:void 0}}},On=_t((t,o)=>{const a=fe("Button",null,t),{style:r,vars:s,className:c,color:f,disabled:d,children:p,leftSection:h,rightSection:v,fullWidth:y,variant:x,radius:C,loading:E,loaderProps:w,gradient:M,classNames:R,styles:O,unstyled:A,"data-disabled":H,autoContrast:z,mod:k,attributes:V,...J}=a,W=Ae({name:"Button",props:a,classes:_a,className:c,style:r,classNames:R,styles:O,unstyled:A,attributes:V,vars:s,varsResolver:M6}),Q=!!h,oe=!!v;return g.jsxs(Jo,{ref:o,...W("root",{active:!d&&!E&&!H}),unstyled:A,variant:x,disabled:d||E,mod:[{disabled:d||H,loading:E,block:y,"with-left-section":Q,"with-right-section":oe},k],...J,children:[typeof E=="boolean"&&g.jsx(Io,{mounted:E,transition:T6,duration:150,children:ie=>g.jsx(xe,{component:"span",...W("loader",{style:ie}),"aria-hidden":!0,children:g.jsx(Wo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),g.jsxs("span",{...W("inner"),children:[h&&g.jsx(xe,{component:"span",...W("section"),mod:{position:"left"},children:h}),g.jsx(xe,{component:"span",mod:{loading:E},...W("label"),children:p}),v&&g.jsx(xe,{component:"span",...W("section"),mod:{position:"right"},children:v})]})]})});On.classes=_a;On.displayName="@mantine/core/Button";On.Group=Em;On.GroupSection=Tm;const[R6,_6]=oc("Card component was not found in tree");var Mm={root:"m_e615b15f",section:"m_599a2148"};const yc=_t((t,o)=>{const a=fe("CardSection",null,t),{classNames:r,className:s,style:c,styles:f,vars:d,withBorder:p,inheritPadding:h,mod:v,...y}=a,x=_6();return g.jsx(xe,{ref:o,mod:[{"with-border":p,"inherit-padding":h},v],...x.getStyles("section",{className:s,style:c,styles:f,classNames:r}),...y})});yc.classes=Mm;yc.displayName="@mantine/core/CardSection";const j6=(t,{padding:o})=>({root:{"--card-padding":Gr(o)}}),Yr=_t((t,o)=>{const a=fe("Card",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,children:h,padding:v,attributes:y,...x}=a,C=Ae({name:"Card",props:a,classes:Mm,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:y,vars:p,varsResolver:j6}),E=S.Children.toArray(h),w=E.map((M,R)=>typeof M=="object"&&M&&"type"in M&&M.type===yc?S.cloneElement(M,{"data-first-section":R===0||void 0,"data-last-section":R===E.length-1||void 0}):M);return g.jsx(R6,{value:{getStyles:C},children:g.jsx(pm,{ref:o,unstyled:d,...C("root"),...x,children:w})})});Yr.classes=Mm;Yr.displayName="@mantine/core/Card";Yr.Section=yc;var jb={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[O6,N6]=lc();function Ob(t){const{value:o,defaultValue:a,onChange:r,multiple:s,children:c}=fe("ChipGroup",null,t),[f,d]=Ea({value:o,defaultValue:a,finalValue:s?[]:null,onChange:r}),p=v=>Array.isArray(f)?f.includes(v):v===f,h=v=>{const y=v.currentTarget.value;Array.isArray(f)?d(f.includes(y)?f.filter(x=>x!==y):[...f,y]):d(y)};return g.jsx(O6,{value:{isChipSelected:p,onChange:h,multiple:s},children:c})}Ob.displayName="@mantine/core/ChipGroup";const A6={type:"checkbox"},H6=(t,{size:o,radius:a,variant:r,color:s,autoContrast:c})=>{const f=t.variantColorResolver({color:s||t.primaryColor,theme:t,variant:r||"filled",autoContrast:c});return{root:{"--chip-fz":Gt(o),"--chip-size":Qe(o,"chip-size"),"--chip-radius":a===void 0?void 0:Rt(a),"--chip-checked-padding":Qe(o,"chip-checked-padding"),"--chip-padding":Qe(o,"chip-padding"),"--chip-icon-size":Qe(o,"chip-icon-size"),"--chip-bg":s||r?f.background:void 0,"--chip-hover":s||r?f.hover:void 0,"--chip-color":s||r?f.color:void 0,"--chip-bd":s||r?f.border:void 0,"--chip-spacing":Qe(o,"chip-spacing")}}},bc=He((t,o)=>{const a=fe("Chip",A6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,id:h,checked:v,defaultChecked:y,onChange:x,value:C,wrapperProps:E,type:w,disabled:M,children:R,size:O,variant:A,icon:H,rootRef:z,autoContrast:k,mod:V,attributes:J,...W}=a,Q=Ae({name:"Chip",classes:jb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:J,vars:p,varsResolver:H6}),oe=N6(),ie=wa(h),{styleProps:le,rest:G}=cc(W),[re,D]=Ea({value:v,defaultValue:y,finalValue:!1,onChange:x}),B=oe?{checked:oe.isChipSelected(C),onChange:ee=>{oe.onChange(ee),x?.(ee.currentTarget.checked)},type:oe.multiple?"checkbox":"radio"}:{},U=B.checked||re;return g.jsxs(xe,{size:O,variant:A,ref:z,mod:V,...Q("root"),...le,...E,children:[g.jsx("input",{type:w,...Q("input"),checked:U,onChange:ee=>D(ee.currentTarget.checked),id:ie,disabled:M,ref:o,value:C,...B,...G}),g.jsxs("label",{htmlFor:ie,"data-checked":U||void 0,"data-disabled":M||void 0,...Q("label",{variant:A||"filled"}),children:[U&&H!==null&&H!==!1&&g.jsx("span",{...Q("iconWrapper"),children:H===void 0?g.jsx(Gs,{...Q("checkIcon")}):H}),g.jsx("span",{children:R})]})]})});bc.classes=jb;bc.displayName="@mantine/core/Chip";bc.Group=Ob;var Nb={root:"m_3eebeb36",label:"m_9e365f20"};const D6={orientation:"horizontal"},z6=(t,{color:o,variant:a,size:r})=>({root:{"--divider-color":o?xo(o,t):void 0,"--divider-border-style":a,"--divider-size":Qe(r,"divider-size")}}),Rm=He((t,o)=>{const a=fe("Divider",D6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,color:h,orientation:v,label:y,labelPosition:x,mod:C,attributes:E,...w}=a,M=Ae({name:"Divider",classes:Nb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:p,varsResolver:z6});return g.jsx(xe,{ref:o,mod:[{orientation:v,"with-label":!!y},C],...M("root"),...w,role:"separator",children:y&&g.jsx(xe,{component:"span",mod:{position:x},...M("label"),children:y})})});Rm.classes=Nb;Rm.displayName="@mantine/core/Divider";const L6={multiple:!1},Ab=S.forwardRef((t,o)=>{const{onChange:a,children:r,multiple:s,accept:c,name:f,form:d,resetRef:p,disabled:h,capture:v,inputProps:y,...x}=fe("FileButton",L6,t),C=S.useRef(null),E=()=>{!h&&C.current?.click()},w=R=>{if(R.currentTarget.files===null)return a(s?[]:null);a(s?Array.from(R.currentTarget.files):R.currentTarget.files[0]||null)};return Bs(p,()=>{C.current&&(C.current.value="")}),g.jsxs(g.Fragment,{children:[g.jsx("input",{style:{display:"none"},type:"file",accept:c,multiple:s,onChange:w,ref:_n(o,C),name:f,form:d,capture:v,...y}),r({onClick:E,...x})]})});Ab.displayName="@mantine/core/FileButton";const V6=({value:t})=>g.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(t)?t.map(o=>o.name).join(", "):t?.name}),k6={valueComponent:V6,size:"sm"},_m=He((t,o)=>{const a=fe("FileInput",k6,t),{unstyled:r,vars:s,onChange:c,value:f,defaultValue:d,multiple:p,accept:h,name:v,form:y,valueComponent:x,clearable:C,clearButtonProps:E,readOnly:w,capture:M,fileInputProps:R,rightSection:O,size:A,placeholder:H,component:z,resetRef:k,classNames:V,styles:J,attributes:W,...Q}=a,oe=S.useRef(null),{resolvedClassNames:ie,resolvedStyles:le}=sc({classNames:V,styles:J,props:a}),[G,re]=Ea({value:f,defaultValue:d,onChange:c,finalValue:p?[]:null}),D=Array.isArray(G)?G.length!==0:G!==null,B=O||(C&&D&&!w?g.jsx(fc,{...E,variant:"subtle",onClick:()=>re(p?[]:null),size:A,unstyled:r}):null);return S.useEffect(()=>{(Array.isArray(G)&&G.length===0||G===null)&&oe.current?.()},[G]),g.jsx(Ab,{onChange:re,multiple:p,accept:h,name:v,form:y,resetRef:_n(oe,k),disabled:w,capture:M,inputProps:R,children:U=>g.jsx(Ra,{component:z||"button",ref:o,rightSection:B,...U,...Q,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:a,unstyled:r,size:A,classNames:V,styles:J,attributes:W,children:D?g.jsx(x,{value:G}):g.jsx(tn.Placeholder,{__staticSelector:"FileInput",classNames:ie,styles:le,attributes:W,children:H})})})});_m.classes=Ra.classes;_m.displayName="@mantine/core/FileInput";const B6=_m;var Hb={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const d0={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:$r("overlay")},U6=(t,{zIndex:o})=>({root:{"--lo-z-index":o?.toString()}}),jm=He((t,o)=>{const a=fe("LoadingOverlay",d0,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,transitionProps:h,loaderProps:v,overlayProps:y,visible:x,zIndex:C,attributes:E,...w}=a,M=Zt(),R=Ae({name:"LoadingOverlay",classes:Hb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:p,varsResolver:U6}),O={...d0.overlayProps,...y};return g.jsx(Io,{transition:"fade",...h,mounted:!!x,children:A=>g.jsxs(xe,{...R("root",{style:A}),ref:o,...w,children:[g.jsx(Wo,{...R("loader"),unstyled:d,...v}),g.jsx(kr,{...O,...R("overlay"),darkHidden:!0,unstyled:d,color:y?.color||M.white}),g.jsx(kr,{...O,...R("overlay"),lightHidden:!0,unstyled:d,color:y?.color||M.colors.dark[5]})]})})});jm.classes=Hb;jm.displayName="@mantine/core/LoadingOverlay";const[$6,el]=oc("Menu component was not found in the tree");var tl={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const Om=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=fe("MenuDivider",null,t),p=el();return g.jsx(xe,{ref:o,...p.getStyles("divider",{className:r,style:s,styles:c,classNames:a}),...d})});Om.classes=tl;Om.displayName="@mantine/core/MenuDivider";const Nm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=fe("MenuDropdown",null,t),x=S.useRef(null),C=el(),E=Ut(h,R=>{(R.key==="ArrowUp"||R.key==="ArrowDown")&&(R.preventDefault(),x.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),w=Ut(d,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.openDropdown()),M=Ut(p,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.closeDropdown());return g.jsxs(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:_n(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:E,children:[C.withInitialFocusPlaceholder&&g.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),v]})});Nm.classes=tl;Nm.displayName="@mantine/core/MenuDropdown";const[G6,xc]=lc(),Am=_t((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,color:d,closeMenuOnClick:p,leftSection:h,rightSection:v,children:y,disabled:x,"data-disabled":C,...E}=fe("MenuItem",null,t),w=el(),M=xc(),R=Zt(),{dir:O}=Ta(),A=S.useRef(null),H=E,z=Ut(H.onClick,()=>{C||(typeof p=="boolean"?p&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),k=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,V=d?wl({color:d,theme:R}):null,J=Ut(H.onKeyDown,W=>{W.key==="ArrowLeft"&&M&&(M.close(),M.focusParentItem())});return g.jsxs(Jo,{onMouseDown:W=>W.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:_n(A,o),role:"menuitem",disabled:x,"data-menu-item":!0,"data-disabled":x||C||void 0,"data-mantine-stop-propagation":!0,onClick:z,onKeyDown:am({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:J}),__vars:{"--menu-item-color":V?.isThemeColor&&V?.shade===void 0?`var(--mantine-color-${V.color}-6)`:k?.color,"--menu-item-hover":k?.hover},children:[h&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"left",children:h}),y&&g.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:a}),children:y}),v&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"right",children:v})]})});Am.classes=tl;Am.displayName="@mantine/core/MenuItem";const Hm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=fe("MenuLabel",null,t),p=el();return g.jsx(xe,{ref:o,...p.getStyles("label",{className:r,style:s,styles:c,classNames:a}),...d})});Hm.classes=tl;Hm.displayName="@mantine/core/MenuLabel";const Dm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=fe("MenuSubDropdown",null,t),x=S.useRef(null),C=el(),E=xc(),w=Ut(d,E?.open),M=Ut(p,E?.close);return g.jsx(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:_n(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:v})});Dm.classes=tl;Dm.displayName="@mantine/core/MenuSubDropdown";const zm=_t((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,color:d,leftSection:p,rightSection:h,children:v,disabled:y,"data-disabled":x,closeMenuOnClick:C,...E}=fe("MenuSubItem",null,t),w=el(),M=xc(),R=Zt(),{dir:O}=Ta(),A=S.useRef(null),H=E,z=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,k=d?wl({color:d,theme:R}):null,V=Ut(H.onKeyDown,oe=>{oe.key==="ArrowRight"&&(M?.open(),M?.focusFirstItem()),oe.key==="ArrowLeft"&&M?.parentContext&&(M.parentContext.close(),M.parentContext.focusParentItem())}),J=Ut(H.onClick,()=>{!x&&C&&w.closeDropdownImmediately()}),W=Ut(H.onMouseEnter,M?.open),Q=Ut(H.onMouseLeave,M?.close);return g.jsxs(Jo,{onMouseDown:oe=>oe.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:_n(A,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||x||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:W,onMouseLeave:Q,onClick:J,onKeyDown:am({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:V}),__vars:{"--menu-item-color":k?.isThemeColor&&k?.shade===void 0?`var(--mantine-color-${k.color}-6)`:z?.color,"--menu-item-hover":z?.hover},children:[p&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"left",children:p}),v&&g.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:a}),children:v}),g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"right",children:h||g.jsx(Tb,{...w.getStyles("chevron"),size:14})})]})});zm.classes=tl;zm.displayName="@mantine/core/MenuSubItem";function Db({children:t,refProp:o}){if(!Uy(t))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return el(),g.jsx(jn.Target,{refProp:o,popupType:"menu",children:t})}Db.displayName="@mantine/core/MenuSubTarget";const Z6={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ja(t){const{children:o,closeDelay:a,openDelay:r,...s}=fe("MenuSub",Z6,t),c=wa(),[f,{open:d,close:p}]=s9(!1),h=xc(),{openDropdown:v,closeDropdown:y}=Eb({open:d,close:p,closeDelay:a,openDelay:r}),x=()=>window.setTimeout(()=>{document.getElementById(`${c}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),C=()=>window.setTimeout(()=>{document.getElementById(`${c}-target`)?.focus()},16);return g.jsx(G6,{value:{opened:f,close:y,open:v,focusFirstItem:x,focusParentItem:C,parentContext:h},children:g.jsx(jn,{opened:f,withinPortal:!1,withArrow:!1,id:c,...s,children:o})})}ja.extend=t=>t;ja.displayName="@mantine/core/MenuSub";ja.Target=Db;ja.Dropdown=Dm;ja.Item=zm;const q6={refProp:"ref"},zb=S.forwardRef((t,o)=>{const{children:a,refProp:r,...s}=fe("MenuTarget",q6,t),c=qr(a);if(!c)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 f=el(),d=c.props,p=Ut(d.onClick,()=>{f.trigger==="click"?f.toggleDropdown():f.trigger==="click-hover"&&(f.setOpenedViaClick(!0),f.opened||f.openDropdown())}),h=Ut(d.onMouseEnter,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=Ut(d.onMouseLeave,()=>{(f.trigger==="hover"||f.trigger==="click-hover"&&!f.openedViaClick)&&f.closeDropdown()});return g.jsx(jn.Target,{refProp:r,popupType:"menu",ref:o,...s,children:S.cloneElement(c,{onClick:p,onMouseEnter:h,onMouseLeave:v,"data-expanded":f.opened?!0:void 0})})});zb.displayName="@mantine/core/MenuTarget";const Y6={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Fe(t){const o=fe("Menu",Y6,t),{children:a,onOpen:r,onClose:s,opened:c,defaultOpened:f,trapFocus:d,onChange:p,closeOnItemClick:h,loop:v,closeOnEscape:y,trigger:x,openDelay:C,closeDelay:E,classNames:w,styles:M,unstyled:R,variant:O,vars:A,menuItemTabIndex:H,keepMounted:z,withInitialFocusPlaceholder:k,attributes:V,...J}=o,W=Ae({name:"Menu",classes:tl,props:o,classNames:w,styles:M,unstyled:R,attributes:V}),[Q,oe]=Ea({value:c,defaultValue:f,finalValue:!1,onChange:p}),[ie,le]=S.useState(!1),G=()=>{oe(!1),le(!1),Q&&s?.()},re=()=>{oe(!0),!Q&&r?.()},D=()=>{Q?G():re()},{openDropdown:B,closeDropdown:U}=Eb({open:re,close:G,closeDelay:E,openDelay:C}),ee=$=>Y7("[data-menu-item]","[data-menu-dropdown]",$),{resolvedClassNames:ne,resolvedStyles:_}=sc({classNames:w,styles:M,props:o});return g.jsx($6,{value:{getStyles:W,opened:Q,toggleDropdown:D,getItemIndex:ee,openedViaClick:ie,setOpenedViaClick:le,closeOnItemClick:h,closeDropdown:x==="click"?G:U,openDropdown:x==="click"?re:B,closeDropdownImmediately:G,loop:v,trigger:x,unstyled:R,menuItemTabIndex:H,withInitialFocusPlaceholder:k},children:g.jsx(jn,{returnFocus:!0,...J,opened:Q,onChange:D,defaultOpened:f,trapFocus:z?!1:d,closeOnEscape:y,__staticSelector:"Menu",classNames:ne,styles:_,unstyled:R,variant:O,keepMounted:z,children:a})})}Fe.extend=t=>t;Fe.withProps=bw(Fe);Fe.classes=tl;Fe.displayName="@mantine/core/Menu";Fe.Item=Am;Fe.Label=Hm;Fe.Dropdown=Nm;Fe.Target=zb;Fe.Divider=Om;Fe.Sub=ja;const P6={duration:100,transition:"fade"};function m0(t,o){return{...P6,...o,...t}}var Sc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function X6({offset:t,position:o,defaultOpened:a}){const[r,s]=S.useState(a),c=S.useRef(null),{x:f,y:d,elements:p,refs:h,update:v,placement:y}=ec({placement:o,middleware:[Ko({crossAxis:!0,padding:5,rootBoundary:"document"})]}),x=y.includes("right")?t:o.includes("left")?t*-1:0,C=y.includes("bottom")?t:o.includes("top")?t*-1:0,E=S.useCallback(({clientX:w,clientY:M})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:M,left:w+x,top:M+C,right:w,bottom:M}}})},[p.reference]);return S.useEffect(()=>{if(h.floating.current){const w=c.current;w.addEventListener("mousemove",E);const M=vo(h.floating.current);return M.forEach(R=>{R.addEventListener("scroll",v)}),()=>{w.removeEventListener("mousemove",E),M.forEach(R=>{R.removeEventListener("scroll",v)})}}},[p.reference,h.floating.current,v,E,r]),{handleMouseMove:E,x:f,y:d,opened:r,setOpened:s,boundaryRef:c,floating:h.setFloating}}const Q6={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:$r("popover")},I6=(t,{radius:o,color:a})=>({tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":a?xo(a,t):void 0,"--tooltip-color":a?"var(--mantine-color-white)":void 0}}),Lm=He((t,o)=>{const a=fe("TooltipFloating",Q6,t),{children:r,refProp:s,withinPortal:c,style:f,className:d,classNames:p,styles:h,unstyled:v,radius:y,color:x,label:C,offset:E,position:w,multiline:M,zIndex:R,disabled:O,defaultOpened:A,variant:H,vars:z,portalProps:k,attributes:V,...J}=a,W=Zt(),Q=Ae({name:"TooltipFloating",props:a,classes:Sc,className:d,style:f,classNames:p,styles:h,unstyled:v,attributes:V,rootSelector:"tooltip",vars:z,varsResolver:I6}),{handleMouseMove:oe,x:ie,y:le,opened:G,boundaryRef:re,floating:D,setOpened:B}=X6({offset:E,position:w,defaultOpened:A}),U=qr(r);if(!U)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 ee=_n(re,rm(U),o),ne=U.props,_=F=>{ne.onMouseEnter?.(F),oe(F),B(!0)},$=F=>{ne.onMouseLeave?.(F),B(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(Sa,{...k,withinPortal:c,children:g.jsx(xe,{...J,...Q("tooltip",{style:{...tb(f,W),zIndex:R,display:!O&&G?"block":"none",top:(le&&Math.round(le))??"",left:(ie&&Math.round(ie))??""}}),variant:H,ref:D,mod:{multiline:M},children:C})}),S.cloneElement(U,{...ne,[s]:ee,onMouseEnter:_,onMouseLeave:$})]})});Lm.classes=Sc;Lm.displayName="@mantine/core/TooltipFloating";const Lb=S.createContext(!1),K6=Lb.Provider,F6=()=>S.useContext(Lb),J6={openDelay:0,closeDelay:0};function Vm(t){const{openDelay:o,closeDelay:a,children:r}=fe("TooltipGroup",J6,t);return g.jsx(K6,{value:!0,children:g.jsx(y5,{delay:{open:o,close:a},children:r})})}Vm.displayName="@mantine/core/TooltipGroup";Vm.extend=t=>t;function W6(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function eE(t){const o=W6(t.middlewares),a=[pn(t.offset)];return o.shift&&a.push(Ko(typeof o.shift=="boolean"?{padding:8}:{padding:8,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?bo():bo(o.flip)),a.push(I0({element:t.arrowRef,padding:t.arrowOffset})),o.inline?a.push(typeof o.inline=="boolean"?jr():jr(o.inline)):t.inline&&a.push(jr()),a}function tE(t){const[o,a]=S.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:o,c=F6(),f=wa(),d=S.useCallback(z=>{a(z),z&&R(f)},[f]),{x:p,y:h,context:v,refs:y,placement:x,middlewareData:{arrow:{x:C,y:E}={}}}=ec({strategy:t.strategy,placement:t.position,open:s,onOpenChange:d,middleware:eE(t),whileElementsMounted:Os}),{delay:w,currentId:M,setCurrentId:R}=b5(v,{id:f}),{getReferenceProps:O,getFloatingProps:A}=ey([F0(v,{enabled:t.events?.hover,delay:c?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),E5(v,{enabled:t.events?.focus,visibleOnly:!0}),M5(v,{role:"tooltip"}),W0(v,{enabled:typeof t.opened>"u"})]);Lr(()=>{t.onPositionChange?.(x)},[x]);const H=s&&M&&M!==f;return{x:p,y:h,arrowX:C,arrowY:E,reference:y.setReference,floating:y.setFloating,getFloatingProps:A,getReferenceProps:O,isGroupPhase:H,opened:s,placement:x}}const p0={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$r("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},nE=(t,{radius:o,color:a,variant:r,autoContrast:s})=>{const c=t.variantColorResolver({theme:t,color:a||t.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":a?c.background:void 0,"--tooltip-color":a?c.color:void 0}}},Oa=He((t,o)=>{const a=fe("Tooltip",p0,t),{children:r,position:s,refProp:c,label:f,openDelay:d,closeDelay:p,onPositionChange:h,opened:v,defaultOpened:y,withinPortal:x,radius:C,color:E,classNames:w,styles:M,unstyled:R,style:O,className:A,withArrow:H,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,offset:W,transitionProps:Q,multiline:oe,events:ie,zIndex:le,disabled:G,positionDependencies:re,onClick:D,onMouseEnter:B,onMouseLeave:U,inline:ee,variant:ne,keepMounted:_,vars:$,portalProps:F,mod:ae,floatingStrategy:se,middlewares:ue,autoContrast:ve,attributes:Se,target:me,...We}=fe("Tooltip",p0,a),{dir:it}=Ta(),tt=S.useRef(null),Ve=tE({position:cb(it,s),closeDelay:p,openDelay:d,onPositionChange:h,opened:v,defaultOpened:y,events:ie,arrowRef:tt,arrowOffset:k,offset:typeof W=="number"?W+(H?z/2:0):W,positionDependencies:[...re,me??r],inline:ee,strategy:se,middlewares:ue});S.useEffect(()=>{const Et=me instanceof HTMLElement?me:typeof me=="string"?document.querySelector(me):me?.current||null;Et&&Ve.reference(Et)},[me,Ve]);const lt=Ae({name:"Tooltip",props:a,classes:Sc,className:A,style:O,classNames:w,styles:M,unstyled:R,attributes:Se,rootSelector:"tooltip",vars:$,varsResolver:nE}),nn=qr(r);if(!me&&!nn)return null;if(me){const Et=m0(Q,{duration:100,transition:"fade"});return g.jsx(g.Fragment,{children:g.jsx(Sa,{...F,withinPortal:x,children:g.jsx(Io,{...Et,keepMounted:_,mounted:!G&&!!Ve.opened,duration:Ve.isGroupPhase?10:Et.duration,children:Xn=>g.jsxs(xe,{...We,"data-fixed":se==="fixed"||void 0,variant:ne,mod:[{multiline:oe},ae],...Ve.getFloatingProps({ref:Ve.floating,className:lt("tooltip").className,style:{...lt("tooltip").style,...Xn,zIndex:le,top:Ve.y??0,left:Ve.x??0}}),children:[f,g.jsx($s,{ref:tt,arrowX:Ve.arrowX,arrowY:Ve.arrowY,visible:H,position:Ve.placement,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,...lt("arrow")})]})})})})}const Nn=nn.props,Co=_n(Ve.reference,rm(nn),o),An=m0(Q,{duration:100,transition:"fade"});return g.jsxs(g.Fragment,{children:[g.jsx(Sa,{...F,withinPortal:x,children:g.jsx(Io,{...An,keepMounted:_,mounted:!G&&!!Ve.opened,duration:Ve.isGroupPhase?10:An.duration,children:Et=>g.jsxs(xe,{...We,"data-fixed":se==="fixed"||void 0,variant:ne,mod:[{multiline:oe},ae],...Ve.getFloatingProps({ref:Ve.floating,className:lt("tooltip").className,style:{...lt("tooltip").style,...Et,zIndex:le,top:Ve.y??0,left:Ve.x??0}}),children:[f,g.jsx($s,{ref:tt,arrowX:Ve.arrowX,arrowY:Ve.arrowY,visible:H,position:Ve.placement,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,...lt("arrow")})]})})}),S.cloneElement(nn,Ve.getReferenceProps({onClick:D,onMouseEnter:B,onMouseLeave:U,onMouseMove:a.onMouseMove,onPointerDown:a.onPointerDown,onPointerEnter:a.onPointerEnter,...Nn,className:So(A,Nn.className),[c]:Co}))]})});Oa.classes=Sc;Oa.displayName="@mantine/core/Tooltip";Oa.Floating=Lm;Oa.Group=Vm;var Vb={root:"m_18320242","skeleton-fade":"m_299c329c"};const oE={visible:!0,animate:!0},lE=(t,{width:o,height:a,radius:r,circle:s})=>({root:{"--skeleton-height":te(a),"--skeleton-width":te(s?a:o),"--skeleton-radius":s?"1000px":r===void 0?void 0:Rt(r)}}),Zs=He((t,o)=>{const a=fe("Skeleton",oE,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,width:h,height:v,circle:y,visible:x,radius:C,animate:E,mod:w,attributes:M,...R}=a,O=Ae({name:"Skeleton",classes:Vb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p,varsResolver:lE});return g.jsx(xe,{ref:o,...O("root"),mod:[{visible:x,animate:E},w],...R})});Zs.classes=Vb;Zs.displayName="@mantine/core/Skeleton";var kb={root:"m_6d731127"};const aE={gap:"md",align:"stretch",justify:"flex-start"},rE=(t,{gap:o,align:a,justify:r})=>({root:{"--stack-gap":Gr(o),"--stack-align":a,"--stack-justify":r}}),Pr=He((t,o)=>{const a=fe("Stack",aE,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,align:h,justify:v,gap:y,variant:x,attributes:C,...E}=a,w=Ae({name:"Stack",props:a,classes:kb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:rE});return g.jsx(xe,{ref:o,...w("root"),variant:x,...E})});Pr.classes=kb;Pr.displayName="@mantine/core/Stack";const[iE,km]=oc("Tabs component was not found in the tree");var Xr={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Bm=He((t,o)=>{const a=fe("TabsList",null,t),{children:r,className:s,grow:c,justify:f,classNames:d,styles:p,style:h,mod:v,...y}=a,x=km();return g.jsx(xe,{...y,...x.getStyles("list",{className:s,style:h,classNames:d,styles:p,props:a,variant:x.variant}),ref:o,role:"tablist",variant:x.variant,mod:[{grow:c,orientation:x.orientation,placement:x.orientation==="vertical"&&x.placement,inverted:x.inverted},v],"aria-orientation":x.orientation,__vars:{"--tabs-justify":f},children:r})});Bm.classes=Xr;Bm.displayName="@mantine/core/TabsList";const Um=He((t,o)=>{const a=fe("TabsPanel",null,t),{children:r,className:s,value:c,classNames:f,styles:d,style:p,mod:h,keepMounted:v,...y}=a,x=km(),C=x.value===c,E=x.keepMounted||v||C?r:null;return g.jsx(xe,{...x.getStyles("panel",{className:s,classNames:f,styles:d,style:[p,C?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:x.orientation},h],role:"tabpanel",id:x.getPanelId(c),"aria-labelledby":x.getTabId(c),...y,children:E})});Um.classes=Xr;Um.displayName="@mantine/core/TabsPanel";const $m=He((t,o)=>{const a=fe("TabsTab",null,t),{className:r,children:s,rightSection:c,leftSection:f,value:d,onClick:p,onKeyDown:h,disabled:v,color:y,style:x,classNames:C,styles:E,vars:w,mod:M,tabIndex:R,...O}=a,A=Zt(),{dir:H}=Ta(),z=km(),k=d===z.value,V=W=>{z.onChange(z.allowTabDeactivation&&d===z.value?null:d),p?.(W)},J={classNames:C,styles:E,props:a};return g.jsxs(Jo,{...z.getStyles("tab",{className:r,style:x,variant:z.variant,...J}),disabled:v,unstyled:z.unstyled,variant:z.variant,mod:[{active:k,disabled:v,orientation:z.orientation,inverted:z.inverted,placement:z.orientation==="vertical"&&z.placement},M],ref:o,role:"tab",id:z.getTabId(d),"aria-selected":k,tabIndex:R!==void 0?R:k||z.value===null?0:-1,"aria-controls":z.getPanelId(d),onClick:V,__vars:{"--tabs-color":y?xo(y,A):void 0},onKeyDown:am({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:z.activateTabWithKeyboard,loop:z.loop,orientation:z.orientation||"horizontal",dir:H,onKeyDown:h}),...O,children:[f&&g.jsx("span",{...z.getStyles("tabSection",J),"data-position":"left",children:f}),s&&g.jsx("span",{...z.getStyles("tabLabel",J),children:s}),c&&g.jsx("span",{...z.getStyles("tabSection",J),"data-position":"right",children:c})]})});$m.classes=Xr;$m.displayName="@mantine/core/TabsTab";const h0="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",sE={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},cE=(t,{radius:o,color:a,autoContrast:r})=>({root:{"--tabs-radius":Rt(o),"--tabs-color":xo(a,t),"--tabs-text-color":J9(r,t)?Qy({color:a,theme:t,autoContrast:r}):void 0}}),po=He((t,o)=>{const a=fe("Tabs",sE,t),{defaultValue:r,value:s,onChange:c,orientation:f,children:d,loop:p,id:h,activateTabWithKeyboard:v,allowTabDeactivation:y,variant:x,color:C,radius:E,inverted:w,placement:M,keepMounted:R,classNames:O,styles:A,unstyled:H,className:z,style:k,vars:V,autoContrast:J,mod:W,attributes:Q,...oe}=a,ie=wa(h),[le,G]=Ea({value:s,defaultValue:r,finalValue:null,onChange:c}),re=Ae({name:"Tabs",props:a,classes:Xr,className:z,style:k,classNames:O,styles:A,unstyled:H,attributes:Q,vars:V,varsResolver:cE});return g.jsx(iE,{value:{placement:M,value:le,orientation:f,id:ie,loop:p,activateTabWithKeyboard:v,getTabId:Kv(`${ie}-tab`,h0),getPanelId:Kv(`${ie}-panel`,h0),onChange:G,allowTabDeactivation:y,variant:x,color:C,radius:E,inverted:w,keepMounted:R,unstyled:H,getStyles:re},children:g.jsx(xe,{ref:o,id:ie,variant:x,mod:[{orientation:f,inverted:f==="horizontal"&&w,placement:f==="vertical"&&M},W],...re("root"),...oe,children:d})})});po.classes=Xr;po.displayName="@mantine/core/Tabs";po.Tab=$m;po.Panel=Um;po.List=Bm;const Cc=He((t,o)=>{const a=fe("TextInput",null,t);return g.jsx(Ra,{component:"input",ref:o,...a,__staticSelector:"TextInput"})});Cc.classes=Ra.classes;Cc.displayName="@mantine/core/TextInput";const Bb=(t,o,a=!1)=>{const r=[];function s(c,f="--bn"){for(const d in c){const p=d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h=`${f}-${p}`;typeof c[d]!="object"?(typeof c[d]=="number"&&(c[d]=`${c[d]}px`),a?o.style.removeProperty(h):o.style.setProperty(h,c[d].toString())):s(c[d],h)}}return s(t),r},g0=(t,o)=>Bb(t,o),uE={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},fE=t=>Bb(uE,t,!0),Ub=t=>g.jsxs(Pr,{gap:0,className:"bn-tooltip",children:[g.jsx(Yn,{size:"sm",lineClamp:5,children:t.mainTooltip}),t.secondaryTooltip&&g.jsx(Yn,{size:"xs",lineClamp:5,children:t.secondaryTooltip})]}),wd=S.forwardRef((t,o)=>{const{className:a,children:r,mainTooltip:s,secondaryTooltip:c,icon:f,isSelected:d,isDisabled:p,onClick:h,label:v,variant:y,...x}=t;Me(x,!1);const[C,E]=S.useState(!1),w=r?g.jsx(On,{"aria-label":v,className:a,onMouseDown:M=>{_d()&&M.currentTarget.focus()},onClick:M=>{E(!0),h?.(M)},onPointerLeave:()=>E(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:y==="compact"?"compact-xs":"xs",disabled:p||!1,ref:o,...x,children:r}):g.jsx(El,{className:a,"aria-label":v,onMouseDown:M=>{_d()&&M.currentTarget.focus()},onClick:M=>{E(!0),h?.(M)},onPointerLeave:()=>E(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:y==="compact"?20:30,disabled:p||!1,ref:o,...x,children:f});return s?g.jsx(Oa,{disabled:C,withinPortal:!1,label:g.jsx(Ub,{mainTooltip:s,secondaryTooltip:c}),children:w}):w}),dE=S.forwardRef((t,o)=>{const{className:a,text:r,icon:s,isSelected:c,mainTooltip:f,secondaryTooltip:d,onClick:p,onMouseEnter:h,...v}=t;Me(v,!1);const[y,x]=S.useState(!1),C=g.jsxs(bc,{className:a,checked:c===!0,wrapperProps:{onMouseEnter:h,onMouseLeave:()=>x(!1),onClick:E=>{x(!0),p?.(E)}},variant:"light",icon:null,ref:o,children:[g.jsx("span",{children:s}),g.jsx("span",{children:r})]});return!f||y?C:g.jsx(Oa,{refProp:"rootRef",withinPortal:!1,label:g.jsx(Ub,{mainTooltip:f,secondaryTooltip:d}),children:C})}),mE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:r})}),pE=S.forwardRef((t,o)=>{const{className:a,children:r,headerText:s,selected:c,onFocus:f,onBlur:d,tabIndex:p,...h}=t;return Me(h,!1),g.jsxs(Yr,{className:gt(a,c?"selected":""),onFocus:f,onBlur:d,tabIndex:p,ref:o,children:[s&&g.jsx(Yn,{className:"bn-header-text",children:s}),r]})}),hE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(Yr.Section,{className:a,ref:o,children:r})}),gE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(Rm,{className:a,label:g.jsx(Yn,{children:r}),ref:o})}),vE=S.forwardRef((t,o)=>{const{authorInfo:a,timeString:r,edited:s,...c}=t,f=Te();return Me(c,!1),a==="loading"?g.jsxs(wt,{children:[g.jsx(Zs,{height:24,width:24}),g.jsx("div",{children:g.jsx(Zs,{height:12,width:100})})]}):g.jsxs(wt,{children:[g.jsx(vc,{src:a.avatarUrl,alt:a.username,radius:"xl",size:"sm",color:"initials"}),g.jsxs(Yn,{fz:"sm",fw:"bold",children:[a.username,g.jsxs(Yn,{fz:"xs",c:"dimmed",span:!0,ml:"xs",children:[r," ",s&&`(${f.comments.edited})`]})]})]})}),yE=S.forwardRef((t,o)=>{const{className:a,showActions:r,authorInfo:s,timeString:c,edited:f,actions:d,emojiPickerOpen:p,children:h,...v}=t,{hovered:y,ref:x}=i9(),C=D7([o,x]);return Me(v,!1),g.jsxs(wt,{pos:"relative",ref:C,className:a,children:[d&&(r===!0||r===void 0||r==="hover"&&y||p)?g.jsx(wt,{style:{position:"absolute",right:0,top:0,zIndex:10},children:d}):null,g.jsx(vE,{...t}),h]})}),bE=S.forwardRef((t,o)=>{const{className:a,autoFocus:r,onFocus:s,onBlur:c,editor:f,editable:d,...p}=t;Me(p,!1);const h=Rn();return g.jsx(iT,{autoFocus:r,className:a,editor:t.editor,sideMenu:!1,slashMenu:!1,tableHandles:!1,filePanel:!1,formattingToolbar:!1,editable:d,theme:h?.colorSchemePreference,ref:o,onFocus:s,onBlur:c,children:g.jsx(Oy,{formattingToolbar:xE})})}),xE=()=>{const t=_y([]).filter(o=>o.key!=="nestBlockButton"&&o.key!=="unnestBlockButton");return g.jsx(jy,{blockTypeSelectItems:[],children:t})},SE=S.forwardRef((t,o)=>{const{className:a,name:r,label:s,variant:c,icon:f,value:d,autoFocus:p,placeholder:h,disabled:v,onKeyDown:y,onChange:x,onSubmit:C,autoComplete:E,rightSection:w,...M}=t;return Me(M),g.jsx(Cc,{size:"xs",className:gt(a||"",c==="large"?"bn-mt-input-large":""),ref:o,name:r,label:s,leftSection:f,value:d,autoFocus:p,"data-autofocus":p?"true":void 0,rightSection:w,placeholder:h,disabled:v,onKeyDown:y,onChange:x,onSubmit:C,autoComplete:E})}),CE=S.createContext(void 0),wE=t=>{const{children:o,onOpenChange:a,position:r,sub:s,...c}=t;return Me(c),s?g.jsx(Fe.Sub,{transitionProps:{duration:250,exitDelay:250},withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,children:o}):g.jsx(Fe,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,returnFocus:!1,children:o})},EE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,checked:c,subTrigger:f,onClick:d,...p}=t;return Me(p,!1),f?g.jsx(Fe.Sub.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Gs,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r}):g.jsx(Fe.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Gs,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r})}),TE=t=>{const{children:o,sub:a,...r}=t;return Me(r),a?g.jsx(Fe.Sub.Target,{children:o}):g.jsx(Fe.Target,{children:o})},ME=S.forwardRef((t,o)=>{const{className:a,children:r,sub:s,...c}=t;Me(c);const f=S.useContext(CE);return s?g.jsx(Fe.Sub.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r}):g.jsx(Fe.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r})}),RE=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Me(r),g.jsx(Fe.Divider,{className:a,ref:o})}),_E=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(Fe.Label,{className:a,ref:o,children:r})}),jE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Me(v,!1),s?g.jsx(El,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(On,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),OE=S.forwardRef((t,o)=>{const{className:a,tabs:r,defaultOpenTab:s,openTab:c,setOpenTab:f,loading:d,...p}=t;return Me(p),g.jsx(wt,{className:a,ref:o,children:g.jsxs(po,{value:c,defaultValue:s,onChange:f,children:[d&&g.jsx(jm,{visible:d}),g.jsx(po.List,{children:r.map(h=>g.jsx(po.Tab,{"data-test":`${h.name.toLowerCase()}-tab`,value:h.name,children:h.name},h.name))}),r.map(h=>g.jsx(po.Panel,{value:h.name,children:h.tabPanel},h.name))]})})}),NE=S.forwardRef((t,o)=>{const{className:a,children:r,onClick:s,label:c,...f}=t;return Me(f),g.jsx(On,{size:"xs","aria-label":c,className:a,ref:o,onClick:s,...f,children:r})}),AE=S.forwardRef((t,o)=>{const{className:a,accept:r,value:s,placeholder:c,onChange:f,...d}=t;return Me(d),g.jsx(B6,{size:"xs",className:a,ref:o,accept:r,value:s,placeholder:c,onChange:f,...d})}),HE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx("div",{className:a,ref:o,children:r})}),DE=S.forwardRef((t,o)=>{const{className:a,value:r,placeholder:s,onKeyDown:c,onChange:f,...d}=t;return Me(d),g.jsx(Cc,{size:"xs","data-test":"embed-input",className:a,ref:o,value:r,placeholder:s,onKeyDown:c,onChange:f})}),zE=t=>{const{open:o,onOpenChange:a,position:r,children:s,...c}=t;return Me(c),g.jsx(jn,{middlewares:{size:{padding:20}},withinPortal:!1,opened:o,onChange:a,position:r,zIndex:1e4,children:s})},LE=t=>{const{children:o,...a}=t;return Me(a),g.jsx(gm,{children:o})},VE=S.forwardRef((t,o)=>{const{className:a,children:r,variant:s,...c}=t;return Me(c),g.jsx(uc,{className:a,ref:o,children:r})}),kE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(wt,{align:"center",gap:0,className:a,ref:o,...s,children:r})}),BE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Me(v,!1),s?g.jsx(El,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(On,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),UE=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,...c}=t;return Me(c),g.jsx(Pr,{gap:0,className:a,ref:o,id:s,role:"listbox",children:r})}),$E=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:g.jsx(wt,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),GE=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Me(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Vy(p.current,p.current.closest(".bn-suggestion-menu, #ai-suggestion-menu"));h==="top"?p.current.scrollIntoView(!0):h==="bottom"&&p.current.scrollIntoView(!1)},[r]),g.jsxs(wt,{gap:0,className:a,ref:ac(o,p),id:f,role:"option",onMouseDown:h=>h.preventDefault(),onClick:s,"aria-selected":r||void 0,children:[c.icon&&g.jsx(wt,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),g.jsxs(Pr,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[g.jsx(Yn,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),g.jsx(Yn,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&g.jsx(wt,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:g.jsx(wm,{size:"xs",children:c.badge})})]})}),ZE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:r})}),qE=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Me(r),g.jsx(Wo,{className:a,type:"dots",size:16,ref:o})}),YE=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,columns:c,...f}=t;return Me(f),g.jsx("div",{className:a,style:{gridTemplateColumns:`repeat(${c}, 1fr)`},ref:o,id:s,role:"grid",children:r})}),PE=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Me(c),g.jsx(wt,{className:a,style:{gridColumn:`1 / ${s+1}`},ref:o,children:g.jsx(wt,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),XE=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Me(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Vy(p.current,p.current.closest(".bn-grid-suggestion-menu"));h==="top"?p.current.scrollIntoView(!0):h==="bottom"&&p.current.scrollIntoView(!1)},[r]),g.jsx("div",{className:a,ref:ac(o,p),id:f,role:"option",onClick:s,"aria-selected":r||void 0,children:c.icon})}),QE=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Me(c),g.jsx(Wo,{className:a,style:{gridColumn:`1 / ${s+1}`},type:"dots",ref:o})}),IE=S.forwardRef((t,o)=>{const{children:a,className:r,onMouseDown:s,onClick:c,...f}=t;return Me(f,!1),g.jsx(On,{className:r,ref:o,onMouseDown:s,onClick:c,...f,children:a})}),KE=S.forwardRef((t,o)=>{const{className:a,children:r,draggable:s,onDragStart:c,onDragEnd:f,style:d,label:p,...h}=t;return Me(h,!1),g.jsx(On,{className:a,ref:o,"aria-label":p,draggable:s,onDragStart:c,onDragEnd:f,style:d,...h,children:r})}),Ed=S.forwardRef((t,o)=>{const{className:a,children:r,onMouseEnter:s,onMouseLeave:c,variant:f,...d}=t;Me(d);const{ref:p,focused:h}=u9(),v=Yy(h),y=ac(o,p,v);return g.jsx(Sm,{className:a,ref:y,role:"toolbar",onMouseEnter:s,onMouseLeave:c,gap:f==="action-toolbar"?2:void 0,children:r})});var $b={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v0=Be.createContext&&Be.createContext($b),FE=["attr","size","title"];function JE(t,o){if(t==null)return{};var a=WE(t,o),r,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(s=0;s<c.length;s++)r=c[s],!(o.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function WE(t,o){if(t==null)return{};var a={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o.indexOf(r)>=0)continue;a[r]=t[r]}return a}function qs(){return qs=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},qs.apply(this,arguments)}function y0(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,r)}return a}function Ys(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?y0(Object(a),!0).forEach(function(r){eT(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):y0(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function eT(t,o,a){return o=tT(o),o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function tT(t){var o=nT(t,"string");return typeof o=="symbol"?o:o+""}function nT(t,o){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,o);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function Gb(t){return t&&t.map((o,a)=>Be.createElement(o.tag,Ys({key:a},o.attr),Gb(o.child)))}function oT(t){return o=>Be.createElement(lT,qs({attr:Ys({},t.attr)},o),Gb(t.child))}function lT(t){var o=a=>{var{attr:r,size:s,title:c}=t,f=JE(t,FE),d=s||a.size||"1em",p;return a.className&&(p=a.className),t.className&&(p=(p?p+" ":"")+t.className),Be.createElement("svg",qs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:Ys(Ys({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&Be.createElement("title",null,c),t.children)};return v0!==void 0?Be.createElement(v0.Consumer,null,a=>o(a)):o($b)}function aT(t){return oT({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}const Td=S.forwardRef((t,o)=>{const{className:a,items:r,isDisabled:s,...c}=t;Me(c);const f=r.filter(d=>d.isSelected)[0];return f?g.jsxs(Fe,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[g.jsx(Fe.Target,{children:g.jsx(On,{onMouseDown:d=>{_d()&&d.currentTarget.focus()},leftSection:f.icon,rightSection:g.jsx(aT,{}),size:"xs",variant:"subtle",disabled:s,children:f.text})}),g.jsx(Fe.Dropdown,{className:a,ref:o,children:r.map(d=>g.jsx(Fe.Item,{onClick:d.onClick,leftSection:d.icon,rightSection:d.isSelected?g.jsx(Gs,{size:10,className:"bn-tick-icon"}):g.jsx("div",{className:"bn-tick-space"}),disabled:d.isDisabled,children:d.text},d.text))})]}):null}),rT={FormattingToolbar:{Root:Ed,Button:wd,Select:Td},FilePanel:{Root:OE,Button:NE,FileInput:AE,TabPanel:HE,TextInput:DE},GridSuggestionMenu:{Root:YE,Item:XE,EmptyItem:PE,Loader:QE},LinkToolbar:{Root:Ed,Button:wd,Select:Td},SideMenu:{Root:kE,Button:BE},SuggestionMenu:{Root:UE,Item:GE,EmptyItem:$E,Label:ZE,Loader:qE},TableHandle:{Root:KE,ExtendButton:IE},Generic:{Badge:{Root:dE,Group:mE},Form:{Root:t=>g.jsx("div",{children:t.children}),TextInput:SE},Menu:{Root:wE,Trigger:TE,Dropdown:ME,Divider:RE,Label:_E,Item:EE,Button:jE},Popover:{Root:zE,Trigger:LE,Content:VE},Toolbar:{Root:Ed,Button:wd,Select:Td}},Comments:{Comment:yE,Editor:bE,Card:pE,CardSection:hE,ExpandSectionsPrompt:gE}},iT=t=>{const{className:o,theme:a,...r}=t,s=Rn(),c=Dy(),f=s?.colorSchemePreference||c,d=S.useCallback(y=>{if(y&&(fE(y),typeof a=="object")){if("light"in a&&"dark"in a){g0(a[f==="dark"?"dark":"light"],y);return}g0(a,y);return}},[f,a]),p=S.useContext(im),h=typeof a=="string"?a:f!=="no-preference"?f:"light",v=g.jsx(fy.Provider,{value:rT,children:g.jsx(y7,{"data-mantine-color-scheme":h,className:gt("bn-mantine",o||""),theme:typeof a=="object"?void 0:a,...r,ref:d})});return p?v:g.jsx(Fy,{withCssVariables:!1,getRootElement:()=>{},children:v})};export{iT as F,w0 as R,pT as U,em as X,qn as a,M0 as b,So as c,jC as d,Be as e,bo as f,Dr as g,I0 as h,V4 as i,g as j,Os as k,mv as l,Br as m,X8 as n,pn as o,P8 as p,cT as q,S as r,Ko as s,z4 as u,be as v,fT as y};
|
|
54
|
+
${h}`}function Qy({color:t,theme:o,autoContrast:a}){return(typeof a=="boolean"?a:o.autoContrast)&&wl({color:t||o.primaryColor,theme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function n0(t,o){return Qy({color:t.colors[t.primaryColor][Vr(t,o)],theme:t,autoContrast:null})}function ys({theme:t,color:o,colorScheme:a,name:r=o,withColorValues:s=!0}){if(!t.colors[o])return{};if(a==="light"){const d=Vr(t,"light"),p={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${d===9?8:d+1})`,[`--mantine-color-${r}-light`]:pa(t.colors[o][d],.1),[`--mantine-color-${r}-light-hover`]:pa(t.colors[o][d],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline-hover`]:pa(t.colors[o][d],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[o][0],[`--mantine-color-${r}-1`]:t.colors[o][1],[`--mantine-color-${r}-2`]:t.colors[o][2],[`--mantine-color-${r}-3`]:t.colors[o][3],[`--mantine-color-${r}-4`]:t.colors[o][4],[`--mantine-color-${r}-5`]:t.colors[o][5],[`--mantine-color-${r}-6`]:t.colors[o][6],[`--mantine-color-${r}-7`]:t.colors[o][7],[`--mantine-color-${r}-8`]:t.colors[o][8],[`--mantine-color-${r}-9`]:t.colors[o][9],...p}:p}const c=Vr(t,"dark"),f={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${c})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${c===9?8:c+1})`,[`--mantine-color-${r}-light`]:pa(t.colors[o][Math.max(0,c-2)],.15),[`--mantine-color-${r}-light-hover`]:pa(t.colors[o][Math.max(0,c-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(c-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(c-4,0)})`,[`--mantine-color-${r}-outline-hover`]:pa(t.colors[o][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[o][0],[`--mantine-color-${r}-1`]:t.colors[o][1],[`--mantine-color-${r}-2`]:t.colors[o][2],[`--mantine-color-${r}-3`]:t.colors[o][3],[`--mantine-color-${r}-4`]:t.colors[o][4],[`--mantine-color-${r}-5`]:t.colors[o][5],[`--mantine-color-${r}-6`]:t.colors[o][6],[`--mantine-color-${r}-7`]:t.colors[o][7],[`--mantine-color-${r}-8`]:t.colors[o][8],[`--mantine-color-${r}-9`]:t.colors[o][9],...f}:f}function A9(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function ha(t,o,a){Gn(o).forEach(r=>Object.assign(t,{[`--mantine-${a}-${r}`]:o[r]}))}const Iy=t=>{const o=Vr(t,"light"),a=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:te(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":a,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":n0(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${o})`,"--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)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":n0(t,"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-${t.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)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ha(r.variables,t.breakpoints,"breakpoint"),ha(r.variables,t.spacing,"spacing"),ha(r.variables,t.fontSizes,"font-size"),ha(r.variables,t.lineHeights,"line-height"),ha(r.variables,t.shadows,"shadow"),ha(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${t.primaryColor}-${f})`}),Gn(t.colors).forEach(c=>{const f=t.colors[c];if(A9(f)){Object.assign(r.light,ys({theme:t,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,ys({theme:t,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((d,p)=>{r.variables[`--mantine-color-${c}-${p}`]=d}),Object.assign(r.light,ys({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,ys({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return Gn(s).forEach(c=>{r.variables[`--mantine-${c}-font-size`]=s[c].fontSize,r.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,r.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||t.headings.fontWeight}),r};function H9({theme:t,generator:o}){const a=Iy(t),r=o?.(t);return r?lm(a,r):a}const bd=Iy(um);function D9(t){const o={variables:{},light:{},dark:{}};return Gn(t.variables).forEach(a=>{bd.variables[a]!==t.variables[a]&&(o.variables[a]=t.variables[a])}),Gn(t.light).forEach(a=>{bd.light[a]!==t.light[a]&&(o.light[a]=t.light[a])}),Gn(t.dark).forEach(a=>{bd.dark[a]!==t.dark[a]&&(o.dark[a]=t.dark[a])}),o}function z9(t){return Xy({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function Ky({cssVariablesSelector:t,deduplicateCssVariables:o}){const a=Zt(),r=sm(),s=m9(),c=H9({theme:a,generator:s}),f=(t===void 0||t===":root"||t===":host")&&o,d=f?D9(c):c,p=Xy(d,t);return p?g.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${p}${f?"":z9(t)}`}}):null}Ky.displayName="@mantine/CssVariables";function ga(t,o){const a=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=t!=="auto"?t:a?"dark":"light";o()?.setAttribute("data-mantine-color-scheme",r)}function L9({manager:t,defaultColorScheme:o,getRootElement:a,forceColorScheme:r}){const s=S.useRef(null),[c,f]=S.useState(()=>t.get(o)),d=r||c,p=S.useCallback(v=>{r||(ga(v,a),f(v),t.set(v))},[t.set,d,r]),h=S.useCallback(()=>{f(o),ga(o,a),t.clear()},[t.clear,o]);return S.useEffect(()=>(t.subscribe(p),t.unsubscribe),[t.subscribe,t.unsubscribe]),Zr(()=>{ga(t.get(o),a)},[]),S.useEffect(()=>{if(r)return ga(r,a),()=>{};r===void 0&&ga(c,a),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const v=y=>{c==="auto"&&ga(y.matches?"dark":"light",a)};return s.current?.addEventListener("change",v),()=>s.current?.removeEventListener("change",v)},[c,r]),{colorScheme:d,setColorScheme:p,clearColorScheme:h}}function V9({respectReducedMotion:t,getRootElement:o}){Zr(()=>{t&&o()?.setAttribute("data-respect-reduced-motion","true")},[t])}function Fy({theme:t,children:o,getStyleNonce:a,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:d,classNamesPrefix:p="mantine",colorSchemeManager:h=R9(),defaultColorScheme:v="light",getRootElement:y=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:C,stylesTransform:E,env:w}){const{colorScheme:M,setColorScheme:R,clearColorScheme:O}=L9({defaultColorScheme:v,forceColorScheme:C,manager:h,getRootElement:y});return V9({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:y}),g.jsx(im.Provider,{value:{colorScheme:M,setColorScheme:R,clearColorScheme:O,getRootElement:y,classNamesPrefix:p,getStyleNonce:a,cssVariablesResolver:x,cssVariablesSelector:d??":root",withStaticClasses:r,stylesTransform:E,env:w},children:g.jsxs(Py,{theme:t,children:[f&&g.jsx(Ky,{cssVariablesSelector:d,deduplicateCssVariables:c}),s&&g.jsx(N9,{}),o]})})}Fy.displayName="@mantine/core/MantineProvider";function sc({classNames:t,styles:o,props:a,stylesCtx:r}){const s=Zt();return{resolvedClassNames:rc({theme:s,classNames:t,props:a,stylesCtx:r||void 0}),resolvedStyles:Us({theme:s,styles:o,props:a,stylesCtx:r||void 0})}}const k9={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function B9({theme:t,options:o,unstyled:a}){return So(o?.focusable&&!a&&(t.focusClassName||k9[t.focusRing]),o?.active&&!a&&t.activeClassName)}function U9({selector:t,stylesCtx:o,options:a,props:r,theme:s}){return rc({theme:s,classNames:a?.classNames,props:a?.props||r,stylesCtx:o})[t]}function o0({selector:t,stylesCtx:o,theme:a,classNames:r,props:s}){return rc({theme:a,classNames:r,props:s,stylesCtx:o})[t]}function $9({rootSelector:t,selector:o,className:a}){return t===o?a:void 0}function G9({selector:t,classes:o,unstyled:a}){return a?void 0:o[t]}function Z9({themeName:t,classNamesPrefix:o,selector:a,withStaticClass:r}){return r===!1?[]:t.map(s=>`${o}-${s}-${a}`)}function q9({themeName:t,theme:o,selector:a,props:r,stylesCtx:s}){return t.map(c=>rc({theme:o,classNames:o.components[c]?.classNames,props:r,stylesCtx:s})?.[a])}function Y9({options:t,classes:o,selector:a,unstyled:r}){return t?.variant&&!r?o[`${a}--${t.variant}`]:void 0}function P9({theme:t,options:o,themeName:a,selector:r,classNamesPrefix:s,classNames:c,classes:f,unstyled:d,className:p,rootSelector:h,props:v,stylesCtx:y,withStaticClasses:x,headless:C,transformedStyles:E}){return So(B9({theme:t,options:o,unstyled:d||C}),q9({theme:t,themeName:a,selector:r,props:v,stylesCtx:y}),Y9({options:o,classes:f,selector:r,unstyled:d}),o0({selector:r,stylesCtx:y,theme:t,classNames:c,props:v}),o0({selector:r,stylesCtx:y,theme:t,classNames:E,props:v}),U9({selector:r,stylesCtx:y,options:o,props:v,theme:t}),$9({rootSelector:h,selector:r,className:p}),G9({selector:r,classes:f,unstyled:d||C}),x&&!C&&Z9({themeName:a,classNamesPrefix:s,selector:r,withStaticClass:o?.withStaticClass}),o?.className)}function X9({theme:t,themeName:o,props:a,stylesCtx:r,selector:s}){return o.map(c=>Us({theme:t,styles:t.components[c]?.styles,props:a,stylesCtx:r})[s]).reduce((c,f)=>({...c,...f}),{})}function kd({style:t,theme:o}){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...kd({style:r,theme:o})}),{}):typeof t=="function"?t(o):t??{}}function Q9(t){return t.reduce((o,a)=>(a&&Object.keys(a).forEach(r=>{o[r]={...o[r],...nc(a[r])}}),o),{})}function I9({vars:t,varsResolver:o,theme:a,props:r,stylesCtx:s,selector:c,themeName:f,headless:d}){return Q9([d?{}:o?.(a,r,s),...f.map(p=>a.components?.[p]?.vars?.(a,r,s)),t?.(a,r,s)])?.[c]}function K9({theme:t,themeName:o,selector:a,options:r,props:s,stylesCtx:c,rootSelector:f,styles:d,style:p,vars:h,varsResolver:v,headless:y,withStylesTransform:x}){return{...!x&&X9({theme:t,themeName:o,props:s,stylesCtx:c,selector:a}),...!x&&Us({theme:t,styles:d,props:s,stylesCtx:c})[a],...!x&&Us({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:c})[a],...I9({theme:t,props:s,stylesCtx:c,vars:h,varsResolver:v,selector:a,themeName:o,headless:y}),...f===a?kd({style:p,theme:t}):null,...kd({style:r?.style,theme:t})}}function F9({props:t,stylesCtx:o,themeName:a}){const r=Zt(),s=y9()?.();return{getTransformedStyles:f=>s?[...f.map(p=>s(p,{props:t,theme:r,ctx:o})),...a.map(p=>s(r.components[p]?.styles,{props:t,theme:r,ctx:o}))].filter(Boolean):[],withStylesTransform:!!s}}function Ae({name:t,classes:o,props:a,stylesCtx:r,className:s,style:c,rootSelector:f="root",unstyled:d,classNames:p,styles:h,vars:v,varsResolver:y,attributes:x}){const C=Zt(),E=p9(),w=h9(),M=g9(),R=(Array.isArray(t)?t:[t]).filter(H=>H),{withStylesTransform:O,getTransformedStyles:A}=F9({props:a,stylesCtx:r,themeName:R});return(H,z)=>({className:P9({theme:C,options:z,themeName:R,selector:H,classNamesPrefix:E,classNames:p,classes:o,unstyled:d,className:s,rootSelector:f,props:a,stylesCtx:r,withStaticClasses:w,headless:M,transformedStyles:A([z?.styles,h])}),style:K9({theme:C,themeName:R,selector:H,options:z,props:a,stylesCtx:r,rootSelector:f,styles:h,style:c,vars:v,varsResolver:y,headless:M,withStylesTransform:O}),...x?.[H]})}function J9(t,o){return typeof t=="boolean"?t:o.autoContrast}function fe(t,o,a){const r=Zt(),s=r.components[t]?.defaultProps,c=typeof s=="function"?s(r):s;return{...o,...c,...nc(a)}}function xd(t){return Gn(t).reduce((o,a)=>t[a]!==void 0?`${o}${z7(a)}:${t[a]};`:o,"").trim()}function W9({selector:t,styles:o,media:a,container:r}){const s=o?xd(o):"",c=Array.isArray(a)?a.map(d=>`@media${d.query}{${t}{${xd(d.styles)}}}`):[],f=Array.isArray(r)?r.map(d=>`@container ${d.query}{${t}{${xd(d.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function Jy(t){const o=sm();return g.jsx("style",{"data-mantine-styles":"inline",nonce:o?.(),dangerouslySetInnerHTML:{__html:W9(t)}})}function cc(t){const{m:o,mx:a,my:r,mt:s,mb:c,ml:f,mr:d,me:p,ms:h,p:v,px:y,py:x,pt:C,pb:E,pl:w,pr:M,pe:R,ps:O,bd:A,bdrs:H,bg:z,c:k,opacity:V,ff:J,fz:W,fw:Q,lts:oe,ta:ie,lh:le,fs:G,tt:re,td:D,w:B,miw:U,maw:ee,h:ne,mih:_,mah:$,bgsz:F,bgp:ae,bgr:se,bga:ue,pos:ve,top:Se,left:me,bottom:We,right:it,inset:tt,display:Ve,flex:lt,hiddenFrom:nn,visibleFrom:Nn,lightHidden:Co,darkHidden:An,sx:Et,...Xn}=t;return{styleProps:nc({m:o,mx:a,my:r,mt:s,mb:c,ml:f,mr:d,me:p,ms:h,p:v,px:y,py:x,pt:C,pb:E,pl:w,pr:M,pe:R,ps:O,bd:A,bg:z,c:k,opacity:V,ff:J,fz:W,fw:Q,lts:oe,ta:ie,lh:le,fs:G,tt:re,td:D,w:B,miw:U,maw:ee,h:ne,mih:_,mah:$,bgsz:F,bgp:ae,bgr:se,bga:ue,pos:ve,top:Se,left:me,bottom:We,right:it,inset:tt,display:Ve,flex:lt,bdrs:H,hiddenFrom:nn,visibleFrom:Nn,lightHidden:Co,darkHidden:An,sx:Et}),rest:Xn}}const ew={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"},bdrs:{type:"radius",property:"borderRadius"},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 dm(t,o){const a=wl({color:t,theme:o});return a.color==="dimmed"?"var(--mantine-color-dimmed)":a.color==="bright"?"var(--mantine-color-bright)":a.variable?`var(${a.variable})`:a.color}function tw(t,o){const a=wl({color:t,theme:o});return a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-text)`:dm(t,o)}function nw(t,o){if(typeof t=="number")return te(t);if(typeof t=="string"){const[a,r,...s]=t.split(" ").filter(f=>f.trim()!=="");let c=`${te(a)}`;return r&&(c+=` ${r}`),s.length>0&&(c+=` ${dm(s.join(" "),o)}`),c.trim()}return t}const l0={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)"};function ow(t){return typeof t=="string"&&t in l0?l0[t]:t}const lw=["h1","h2","h3","h4","h5","h6"];function aw(t,o){return typeof t=="string"&&t in o.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&lw.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?te(t):t}function rw(t){return t}const iw=["h1","h2","h3","h4","h5","h6"];function sw(t,o){return typeof t=="string"&&t in o.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&iw.includes(t)?`var(--mantine-${t}-line-height)`:t}function cw(t,o){return typeof t=="string"&&t in o.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?te(t):t}function uw(t){return typeof t=="number"?te(t):t}function fw(t,o){if(typeof t=="number")return te(t);if(typeof t=="string"){const a=t.replace("-","");if(!(a in o.spacing))return te(t);const r=`--mantine-spacing-${a}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const Sd={color:dm,textColor:tw,fontSize:aw,spacing:fw,radius:cw,identity:rw,size:uw,lineHeight:sw,fontFamily:ow,border:nw};function a0(t){return t.replace("(min-width: ","").replace("em)","")}function dw({media:t,...o}){const r=Object.keys(t).sort((s,c)=>Number(a0(s))-Number(a0(c))).map(s=>({query:s,styles:t[s]}));return{...o,media:r}}function mw(t){if(typeof t!="object"||t===null)return!1;const o=Object.keys(t);return!(o.length===1&&o[0]==="base")}function pw(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function hw(t){return typeof t=="object"&&t!==null?Gn(t).filter(o=>o!=="base"):[]}function gw(t,o){return typeof t=="object"&&t!==null&&o in t?t[o]:t}function Wy({styleProps:t,data:o,theme:a}){return dw(Gn(t).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const c=o[s],f=Array.isArray(c.property)?c.property:[c.property],d=pw(t[s]);if(!mw(t[s]))return f.forEach(h=>{r.inlineStyles[h]=Sd[c.type](d,a)}),r;r.hasResponsiveStyles=!0;const p=hw(t[s]);return f.forEach(h=>{d!=null&&(r.styles[h]=Sd[c.type](d,a)),p.forEach(v=>{const y=`(min-width: ${a.breakpoints[v]})`;r.media[y]={...r.media[y],[h]:Sd[c.type](gw(t[s],v),a)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function eb(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function tb(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...tb(r,o)}),{}):typeof t=="function"?t(o):t??{}}function nb(t){return t.startsWith("data-")?t:`data-${t}`}function vw(t){return Object.keys(t).reduce((o,a)=>{const r=t[a];return r===void 0||r===""||r===!1||r===null||(o[nb(a)]=t[a]),o},{})}function ob(t){return t?typeof t=="string"?{[nb(t)]:!0}:Array.isArray(t)?[...t].reduce((o,a)=>({...o,...ob(a)}),{}):vw(t):null}function Bd(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...Bd(r,o)}),{}):typeof t=="function"?t(o):t??{}}function yw({theme:t,style:o,vars:a,styleProps:r}){const s=Bd(o,t),c=Bd(a,t);return{...s,...c,...r}}const lb=S.forwardRef(({component:t,style:o,__vars:a,className:r,variant:s,mod:c,size:f,hiddenFrom:d,visibleFrom:p,lightHidden:h,darkHidden:v,renderRoot:y,__size:x,...C},E)=>{const w=Zt(),M=t||"div",{styleProps:R,rest:O}=cc(C),H=v9()?.()?.(R.sx),z=eb(),k=Wy({styleProps:R,theme:w,data:ew}),V={ref:E,style:yw({theme:w,style:o,vars:a,styleProps:k.inlineStyles}),className:So(r,H,{[z]:k.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":v,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":By(f)?void 0:f||void 0,size:x,...ob(c),...O};return g.jsxs(g.Fragment,{children:[k.hasResponsiveStyles&&g.jsx(Jy,{selector:`.${z}`,styles:k.styles,media:k.media}),typeof y=="function"?y(V):g.jsx(M,{...V})]})});lb.displayName="@mantine/core/Box";const xe=lb;function ab(t){return t}function bw(t){const o=t;return a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r}}function He(t){const o=S.forwardRef(t);return o.extend=ab,o.withProps=a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o}function _t(t){const o=S.forwardRef(t);return o.withProps=a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o.extend=ab,o}const xw=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ta(){return S.useContext(xw)}var rb={root:"m_87cf2631"};const Sw={__staticSelector:"UnstyledButton"},Jo=_t((t,o)=>{const a=fe("UnstyledButton",Sw,t),{className:r,component:s="button",__staticSelector:c,unstyled:f,classNames:d,styles:p,style:h,attributes:v,...y}=a,x=Ae({name:c,props:a,classes:rb,className:r,style:h,classNames:d,styles:p,unstyled:f,attributes:v});return g.jsx(xe,{...x("root",{focusable:!0}),component:s,ref:o,type:s==="button"?"button":void 0,...y})});Jo.classes=rb;Jo.displayName="@mantine/core/UnstyledButton";var ib={root:"m_515a97f8"};const mm=He((t,o)=>{const a=fe("VisuallyHidden",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,attributes:h,...v}=a,y=Ae({name:"VisuallyHidden",classes:ib,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:h});return g.jsx(xe,{component:"span",ref:o,...y("root"),...v})});mm.classes=ib;mm.displayName="@mantine/core/VisuallyHidden";var sb={root:"m_1b7284a3"};const Cw=(t,{radius:o,shadow:a})=>({root:{"--paper-radius":o===void 0?void 0:Rt(o),"--paper-shadow":$y(a)}}),pm=_t((t,o)=>{const a=fe("Paper",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,withBorder:p,vars:h,radius:v,shadow:y,variant:x,mod:C,attributes:E,...w}=a,M=Ae({name:"Paper",props:a,classes:sb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:h,varsResolver:Cw});return g.jsx(xe,{ref:o,mod:[{"data-with-border":p},C],...M("root"),variant:x,...w})});pm.classes=sb;pm.displayName="@mantine/core/Paper";function r0(t,o,a,r){return t==="center"||r==="center"?{top:o}:t==="end"?{bottom:a}:t==="start"?{top:a}:{}}function i0(t,o,a,r,s){return t==="center"||r==="center"?{left:o}:t==="end"?{[s==="ltr"?"right":"left"]:a}:t==="start"?{[s==="ltr"?"left":"right"]:a}:{}}const ww={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Ew({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,arrowX:c,arrowY:f,dir:d}){const[p,h="center"]=t.split("-"),v={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[ww[p]]:r},y=-o/2;return p==="left"?{...v,...r0(h,f,a,s),right:y,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...v,...r0(h,f,a,s),left:y,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...v,...i0(h,c,a,s,d),bottom:y,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...v,...i0(h,c,a,s,d),top:y,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const $s=S.forwardRef(({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,visible:c,arrowX:f,arrowY:d,style:p,...h},v)=>{const{dir:y}=Ta();return c?g.jsx("div",{...h,ref:v,style:{...p,...Ew({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,dir:y,arrowX:f,arrowY:d})}}):null});$s.displayName="@mantine/core/FloatingArrow";function cb(t,o){if(t==="rtl"&&(o.includes("right")||o.includes("left"))){const[a,r]=o.split("-"),s=a==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return o}var ub={root:"m_9814e45f"};const Tw={zIndex:$r("modal")},Mw=(t,{gradient:o,color:a,backgroundOpacity:r,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":o||(a!==void 0||r!==void 0)&&Vn(a||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${te(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Rt(c),"--overlay-z-index":f?.toString()}}),kr=_t((t,o)=>{const a=fe("Overlay",Tw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,fixed:h,center:v,children:y,radius:x,zIndex:C,gradient:E,blur:w,color:M,backgroundOpacity:R,mod:O,attributes:A,...H}=a,z=Ae({name:"Overlay",props:a,classes:ub,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:A,vars:p,varsResolver:Mw});return g.jsx(xe,{ref:o,...z("root"),mod:[{center:v,fixed:h},O],...H,children:y})});kr.classes=ub;kr.displayName="@mantine/core/Overlay";function Cd(t){const o=document.createElement("div");return o.setAttribute("data-portal","true"),typeof t.className=="string"&&o.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(o.style,t.style),typeof t.id=="string"&&o.setAttribute("id",t.id),o}function Rw({target:t,reuseTargetNode:o,...a}){if(t)return typeof t=="string"?document.querySelector(t)||Cd(a):t;if(o){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=Cd(a);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return Cd(a)}const _w={reuseTargetNode:!0},fb=He((t,o)=>{const{children:a,target:r,reuseTargetNode:s,...c}=fe("Portal",_w,t),[f,d]=S.useState(!1),p=S.useRef(null);return Zr(()=>(d(!0),p.current=Rw({target:r,reuseTargetNode:s,...c}),Bs(o,p.current),!r&&!s&&p.current&&document.body.appendChild(p.current),()=>{!r&&!s&&p.current&&document.body.removeChild(p.current)}),[r]),!f||!p.current?null:qn.createPortal(g.jsx(g.Fragment,{children:a}),p.current)});fb.displayName="@mantine/core/Portal";const Sa=He(({withinPortal:t=!0,children:o,...a},r)=>ic()==="test"||!t?g.jsx(g.Fragment,{children:o}):g.jsx(fb,{ref:r,...a,children:o}));Sa.displayName="@mantine/core/OptionalPortal";const _r=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),bs={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:{..._r("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{..._r("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{..._r("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{..._r("top"),common:{transformOrigin:"top left"}},"pop-top-right":{..._r("top"),common:{transformOrigin:"top right"}}},s0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function jw({transition:t,state:o,duration:a,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${a}ms`,transitionTimingFunction:r};return typeof t=="string"?t in bs?{transitionProperty:bs[t].transitionProperty,...s,...bs[t].common,...bs[t][s0[o]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[s0[o]]}}function Ow({duration:t,exitDuration:o,timingFunction:a,mounted:r,onEnter:s,onExit:c,onEntered:f,onExited:d,enterDelay:p,exitDelay:h}){const v=Zt(),y=r9(),x=v.respectReducedMotion?y:!1,[C,E]=S.useState(x?0:t),[w,M]=S.useState(r?"entered":"exited"),R=S.useRef(-1),O=S.useRef(-1),A=S.useRef(-1);function H(){window.clearTimeout(R.current),window.clearTimeout(O.current),cancelAnimationFrame(A.current)}const z=V=>{H();const J=V?s:c,W=V?f:d,Q=x?0:V?t:o;E(Q),Q===0?(typeof J=="function"&&J(),typeof W=="function"&&W(),M(V?"entered":"exited")):A.current=requestAnimationFrame(()=>{M0.flushSync(()=>{M(V?"pre-entering":"pre-exiting")}),A.current=requestAnimationFrame(()=>{typeof J=="function"&&J(),M(V?"entering":"exiting"),R.current=window.setTimeout(()=>{typeof W=="function"&&W(),M(V?"entered":"exited")},Q)})})},k=V=>{if(H(),typeof(V?p:h)!="number"){z(V);return}O.current=window.setTimeout(()=>{z(V)},V?p:h)};return Lr(()=>{k(r)},[r]),S.useEffect(()=>()=>{H()},[]),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:a||"ease"}}function Io({keepMounted:t,transition:o="fade",duration:a=250,exitDuration:r=a,mounted:s,children:c,timingFunction:f="ease",onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x}){const C=ic(),{transitionDuration:E,transitionStatus:w,transitionTimingFunction:M}=Ow({mounted:s,exitDuration:r,duration:a,timingFunction:f,onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x});return E===0||C==="test"?s?g.jsx(g.Fragment,{children:c({})}):t?c({display:"none"}):null:w==="exited"?t?c({display:"none"}):null:g.jsx(g.Fragment,{children:c(jw({transition:o,duration:E,state:w,timingFunction:M}))})}Io.displayName="@mantine/core/Transition";const[Nw,db]=oc("Popover component was not found in the tree");var mb={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function hm({children:t,active:o=!0,refProp:a="ref",innerRef:r}){const s=Yy(o),c=_n(s,r),f=qr(t);return f?S.cloneElement(f,{[a]:c}):t}function pb(t){return g.jsx(mm,{tabIndex:-1,"data-autofocus":!0,...t})}hm.displayName="@mantine/core/FocusTrap";pb.displayName="@mantine/core/FocusTrapInitialFocus";hm.InitialFocus=pb;const uc=He((t,o)=>{const a=fe("PopoverDropdown",null,t),{className:r,style:s,vars:c,children:f,onKeyDownCapture:d,variant:p,classNames:h,styles:v,...y}=a,x=db(),C=J7({opened:x.opened,shouldReturnFocus:x.returnFocus}),E=x.withRoles?{"aria-labelledby":x.getTargetId(),id:x.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=_n(o,x.floating);return x.disabled?null:g.jsx(Sa,{...x.portalProps,withinPortal:x.withinPortal,children:g.jsx(Io,{mounted:x.opened,...x.transitionProps,transition:x.transitionProps?.transition||"fade",duration:x.transitionProps?.duration??150,keepMounted:x.keepMounted,exitDuration:typeof x.transitionProps?.exitDuration=="number"?x.transitionProps.exitDuration:x.transitionProps?.duration,children:M=>g.jsx(hm,{active:x.trapFocus&&x.opened,innerRef:w,children:g.jsxs(xe,{...E,...y,variant:p,onKeyDownCapture:Z7(()=>{x.onClose?.(),x.onDismiss?.()},{active:x.closeOnEscape,onTrigger:C,onKeyDown:d}),"data-position":x.placement,"data-fixed":x.floatingStrategy==="fixed"||void 0,...x.getStyles("dropdown",{className:r,props:a,classNames:h,styles:v,style:[{...M,zIndex:x.zIndex,top:x.y??0,left:x.x??0,width:x.width==="target"?void 0:te(x.width),...x.referenceHidden?{display:"none"}:null},x.resolvedStyles.dropdown,v?.dropdown,s]}),children:[f,g.jsx($s,{ref:x.arrowRef,arrowX:x.arrowX,arrowY:x.arrowY,visible:x.withArrow,position:x.placement,arrowSize:x.arrowSize,arrowRadius:x.arrowRadius,arrowOffset:x.arrowOffset,arrowPosition:x.arrowPosition,...x.getStyles("arrow",{props:a,classNames:h,styles:v})})]})})})})});uc.classes=mb;uc.displayName="@mantine/core/PopoverDropdown";const Aw={refProp:"ref",popupType:"dialog"},gm=He((t,o)=>{const{children:a,refProp:r,popupType:s,...c}=fe("PopoverTarget",Aw,t),f=qr(a);if(!f)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 d=c,p=db(),h=_n(p.reference,rm(f),o),v=p.withRoles?{"aria-haspopup":s,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},y=f.props;return S.cloneElement(f,{...d,...v,...p.targetProps,className:So(p.targetProps.className,d.className,y.className),[r]:h,...p.controlled?null:{onClick:()=>{p.onToggle(),y.onClick?.()}}})});gm.displayName="@mantine/core/PopoverTarget";function Hw(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function Dw(t,o,a){const r=Hw(t.middlewares),s=[pn(t.offset),V4()];return t.dropdownVisible&&a!=="test"&&t.preventPositionChangeWhenVisible&&(r.flip=!1),r.flip&&s.push(typeof r.flip=="boolean"?bo():bo(r.flip)),r.shift&&s.push(Ko(typeof r.shift=="boolean"?{limiter:mv(),padding:5}:{limiter:mv(),padding:5,...r.shift})),r.inline&&s.push(typeof r.inline=="boolean"?jr():jr(r.inline)),s.push(I0({element:t.arrowRef,padding:t.arrowOffset})),(r.size||t.width==="target")&&s.push(Dr({...typeof r.size=="boolean"?{}:r.size,apply({rects:c,availableWidth:f,availableHeight:d,...p}){const v=o().refs.floating.current?.style??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:c,availableWidth:f,availableHeight:d,...p}):Object.assign(v,{maxWidth:`${f}px`,maxHeight:`${d}px`})),t.width==="target"&&Object.assign(v,{width:`${c.reference.width}px`})}})),s}function zw(t){const o=ic(),[a,r]=Ea({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),s=S.useRef(a),c=()=>{a&&!t.disabled&&r(!1)},f=()=>{t.disabled||r(!a)},d=ec({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:Dw(t,()=>d,o),whileElementsMounted:t.keepMounted?void 0:Os});return S.useEffect(()=>{if(!(!d.refs.reference.current||!d.refs.floating.current)&&a)return Os(d.refs.reference.current,d.refs.floating.current,d.update)},[a,d.update]),Lr(()=>{t.onPositionChange?.(d.placement),t.positionRef.current=d.placement},[d.placement,t.preventPositionChangeWhenVisible]),Lr(()=>{a!==s.current&&(a?t.onOpen?.():t.onClose?.()),s.current=a},[a,t.onClose,t.onOpen]),Zr(()=>{let p=-1;return a&&(p=window.setTimeout(()=>t.setDropdownVisible(!0),4)),()=>{window.clearTimeout(p)}},[a,t.position]),{floating:d,controlled:typeof t.opened=="boolean",opened:a,onClose:c,onToggle:f}}const Lw={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,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:$r("popover"),__staticSelector:"Popover",width:"max-content"},Vw=(t,{radius:o,shadow:a})=>({dropdown:{"--popover-radius":o===void 0?void 0:Rt(o),"--popover-shadow":$y(a)}});function jn(t){const o=fe("Popover",Lw,t),{children:a,position:r,offset:s,onPositionChange:c,positionDependencies:f,opened:d,transitionProps:p,onExitTransitionEnd:h,onEnterTransitionEnd:v,width:y,middlewares:x,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:M,arrowPosition:R,unstyled:O,classNames:A,styles:H,closeOnClickOutside:z,withinPortal:k,portalProps:V,closeOnEscape:J,clickOutsideEvents:W,trapFocus:Q,onClose:oe,onDismiss:ie,onOpen:le,onChange:G,zIndex:re,radius:D,shadow:B,id:U,defaultOpened:ee,__staticSelector:ne,withRoles:_,disabled:$,returnFocus:F,variant:ae,keepMounted:se,vars:ue,floatingStrategy:ve,withOverlay:Se,overlayProps:me,hideDetached:We,attributes:it,preventPositionChangeWhenVisible:tt,...Ve}=o,lt=Ae({name:ne,props:o,classes:mb,classNames:A,styles:H,unstyled:O,attributes:it,rootSelector:"dropdown",vars:ue,varsResolver:Vw}),{resolvedStyles:nn}=sc({classNames:A,styles:H,props:o}),[Nn,Co]=S.useState(d??ee??!1),An=S.useRef(r),Et=S.useRef(null),[Xn,Tl]=S.useState(null),[wc,Ec]=S.useState(null),{dir:jt}=Ta(),Tc=ic(),Na=wa(U),dt=zw({middlewares:x,width:y,position:cb(jt,r),offset:typeof s=="number"?s+(C?E/2:0):s,arrowRef:Et,arrowOffset:w,onPositionChange:c,positionDependencies:f,opened:d,defaultOpened:ee,onChange:G,onOpen:le,onClose:oe,onDismiss:ie,strategy:ve,dropdownVisible:Nn,setDropdownVisible:Co,positionRef:An,disabled:$,preventPositionChangeWhenVisible:tt,keepMounted:se});Q7(()=>{z&&(dt.onClose(),ie?.())},W,[Xn,wc]);const Ml=S.useCallback(Qn=>{Tl(Qn),dt.floating.refs.setReference(Qn)},[dt.floating.refs.setReference]),Mc=S.useCallback(Qn=>{Ec(Qn),dt.floating.refs.setFloating(Qn)},[dt.floating.refs.setFloating]),Qr=S.useCallback(()=>{p?.onExited?.(),h?.(),Co(!1),tt||(An.current=r)},[p?.onExited,h,tt,r]),Rc=S.useCallback(()=>{p?.onEntered?.(),v?.()},[p?.onEntered,v]);return g.jsxs(Nw,{value:{returnFocus:F,disabled:$,controlled:dt.controlled,reference:Ml,floating:Mc,x:dt.floating.x,y:dt.floating.y,arrowX:dt.floating?.middlewareData?.arrow?.x,arrowY:dt.floating?.middlewareData?.arrow?.y,opened:dt.opened,arrowRef:Et,transitionProps:{...p,onExited:Qr,onEntered:Rc},width:y,withArrow:C,arrowSize:E,arrowOffset:w,arrowRadius:M,arrowPosition:R,placement:dt.floating.placement,trapFocus:Q,withinPortal:k,portalProps:V,zIndex:re,radius:D,shadow:B,closeOnEscape:J,onDismiss:ie,onClose:dt.onClose,onToggle:dt.onToggle,getTargetId:()=>`${Na}-target`,getDropdownId:()=>`${Na}-dropdown`,withRoles:_,targetProps:Ve,__staticSelector:ne,classNames:A,styles:H,unstyled:O,variant:ae,keepMounted:se,getStyles:lt,resolvedStyles:nn,floatingStrategy:ve,referenceHidden:We&&Tc!=="test"?dt.floating.middlewareData.hide?.referenceHidden:!1},children:[a,Se&&g.jsx(Io,{transition:"fade",mounted:dt.opened,duration:p?.duration||250,exitDuration:p?.exitDuration||250,children:Qn=>g.jsx(Sa,{withinPortal:k,children:g.jsx(kr,{...me,...lt("overlay",{className:me?.className,style:[Qn,me?.style]})})})})]})}jn.Target=gm;jn.Dropdown=uc;jn.displayName="@mantine/core/Popover";jn.extend=t=>t;var wn={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 hb=S.forwardRef(({className:t,...o},a)=>g.jsxs(xe,{component:"span",className:So(wn.barsLoader,t),...o,ref:a,children:[g.jsx("span",{className:wn.bar}),g.jsx("span",{className:wn.bar}),g.jsx("span",{className:wn.bar})]}));hb.displayName="@mantine/core/Bars";const gb=S.forwardRef(({className:t,...o},a)=>g.jsxs(xe,{component:"span",className:So(wn.dotsLoader,t),...o,ref:a,children:[g.jsx("span",{className:wn.dot}),g.jsx("span",{className:wn.dot}),g.jsx("span",{className:wn.dot})]}));gb.displayName="@mantine/core/Dots";const vb=S.forwardRef(({className:t,...o},a)=>g.jsx(xe,{component:"span",className:So(wn.ovalLoader,t),...o,ref:a}));vb.displayName="@mantine/core/Oval";const yb={bars:hb,oval:vb,dots:gb},kw={loaders:yb,type:"oval"},Bw=(t,{size:o,color:a})=>({root:{"--loader-size":Qe(o,"loader-size"),"--loader-color":a?xo(a,t):void 0}}),Wo=He((t,o)=>{const a=fe("Loader",kw,t),{size:r,color:s,type:c,vars:f,className:d,style:p,classNames:h,styles:v,unstyled:y,loaders:x,variant:C,children:E,attributes:w,...M}=a,R=Ae({name:"Loader",props:a,classes:wn,className:d,style:p,classNames:h,styles:v,unstyled:y,attributes:w,vars:f,varsResolver:Bw});return E?g.jsx(xe,{...R("root"),ref:o,...M,children:E}):g.jsx(xe,{...R("root"),ref:o,component:x[c],variant:C,size:r,...M})});Wo.defaultLoaders=yb;Wo.classes=wn;Wo.displayName="@mantine/core/Loader";var Ma={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const c0={orientation:"horizontal"},Uw=(t,{borderWidth:o})=>({group:{"--ai-border-width":te(o)}}),vm=He((t,o)=>{const a=fe("ActionIconGroup",c0,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...E}=fe("ActionIconGroup",c0,t),w=Ae({name:"ActionIconGroup",props:a,classes:Ma,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:Uw,rootSelector:"group"});return g.jsx(xe,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...E})});vm.classes=Ma;vm.displayName="@mantine/core/ActionIconGroup";const $w=(t,{radius:o,color:a,gradient:r,variant:s,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Qe(f,"section-height"),"--section-padding-x":Qe(f,"section-padding-x"),"--section-fz":Gt(f),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},ym=He((t,o)=>{const a=fe("ActionIconGroupSection",null,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,vars:p,variant:h,gradient:v,radius:y,autoContrast:x,attributes:C,...E}=a,w=Ae({name:"ActionIconGroupSection",props:a,classes:Ma,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:$w,rootSelector:"groupSection"});return g.jsx(xe,{...w("groupSection"),ref:o,variant:h,...E})});ym.classes=Ma;ym.displayName="@mantine/core/ActionIconGroupSection";const Gw=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f})=>{const d=t.variantColorResolver({color:c||t.primaryColor,theme:t,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ai-size":Qe(o,"ai-size"),"--ai-radius":a===void 0?void 0:Rt(a),"--ai-bg":c||r?d.background:void 0,"--ai-hover":c||r?d.hover:void 0,"--ai-hover-color":c||r?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":c||r?d.border:void 0}}},El=_t((t,o)=>{const a=fe("ActionIcon",null,t),{className:r,unstyled:s,variant:c,classNames:f,styles:d,style:p,loading:h,loaderProps:v,size:y,color:x,radius:C,__staticSelector:E,gradient:w,vars:M,children:R,disabled:O,"data-disabled":A,autoContrast:H,mod:z,attributes:k,...V}=a,J=Ae({name:["ActionIcon",E],props:a,className:r,style:p,classes:Ma,classNames:f,styles:d,unstyled:s,attributes:k,vars:M,varsResolver:Gw});return g.jsxs(Jo,{...J("root",{active:!O&&!h&&!A}),...V,unstyled:s,variant:c,size:y,disabled:O||h,ref:o,mod:[{loading:h,disabled:O||A},z],children:[typeof h=="boolean"&&g.jsx(Io,{mounted:h,transition:"slide-down",duration:150,children:W=>g.jsx(xe,{component:"span",...J("loader",{style:W}),"aria-hidden":!0,children:g.jsx(Wo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...v})})}),g.jsx(xe,{component:"span",mod:{loading:h},...J("icon"),children:R})]})});El.classes=Ma;El.displayName="@mantine/core/ActionIcon";El.Group=vm;El.GroupSection=ym;const bb=S.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:o,...a},r)=>g.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...o,width:t,height:t},ref:r,...a,children:g.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"})}));bb.displayName="@mantine/core/CloseIcon";var xb={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Zw={variant:"subtle"},qw=(t,{size:o,radius:a,iconSize:r})=>({root:{"--cb-size":Qe(o,"cb-size"),"--cb-radius":a===void 0?void 0:Rt(a),"--cb-icon-size":te(r)}}),fc=_t((t,o)=>{const a=fe("CloseButton",Zw,t),{iconSize:r,children:s,vars:c,radius:f,className:d,classNames:p,style:h,styles:v,unstyled:y,"data-disabled":x,disabled:C,variant:E,icon:w,mod:M,attributes:R,__staticSelector:O,...A}=a,H=Ae({name:O||"CloseButton",props:a,className:d,style:h,classes:xb,classNames:p,styles:v,unstyled:y,attributes:R,vars:c,varsResolver:qw});return g.jsxs(Jo,{ref:o,...A,unstyled:y,variant:E,disabled:C,mod:[{disabled:C||x},M],...H("root",{variant:E,active:!C&&!x}),children:[w||g.jsx(bb,{}),s]})});fc.classes=xb;fc.displayName="@mantine/core/CloseButton";function Yw(t){return S.Children.toArray(t).filter(Boolean)}var Sb={root:"m_4081bf90"};const Pw={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Xw=(t,{grow:o,preventGrowOverflow:a,gap:r,align:s,justify:c,wrap:f},{childWidth:d})=>({root:{"--group-child-width":o&&a?d:void 0,"--group-gap":Gr(r),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),wt=He((t,o)=>{const a=fe("Group",Pw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,children:p,gap:h,align:v,justify:y,wrap:x,grow:C,preventGrowOverflow:E,vars:w,variant:M,__size:R,mod:O,attributes:A,...H}=a,z=Yw(p),k=z.length,V=Gr(h??"md"),W={childWidth:`calc(${100/k}% - (${V} - ${V} / ${k}))`},Q=Ae({name:"Group",props:a,stylesCtx:W,className:s,style:c,classes:Sb,classNames:r,styles:f,unstyled:d,attributes:A,vars:w,varsResolver:Xw});return g.jsx(xe,{...Q("root"),ref:o,variant:M,mod:[{grow:C},O],size:R,...H,children:z})});wt.classes=Sb;wt.displayName="@mantine/core/Group";const[Qw,Iw]=lc({size:"sm"});var yn={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 Cb=He((t,o)=>{const a=fe("InputClearButton",null,t),{size:r,variant:s,vars:c,classNames:f,styles:d,...p}=a,h=Iw(),{resolvedClassNames:v,resolvedStyles:y}=sc({classNames:f,styles:d,props:a});return g.jsx(fc,{variant:s||"transparent",ref:o,size:r||h?.size||"sm",classNames:v,styles:y,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...p.style},...p})});Cb.displayName="@mantine/core/InputClearButton";const Kw={xs:7,sm:8,md:10,lg:12,xl:15};function Fw({__clearable:t,__clearSection:o,rightSection:a,__defaultRightSection:r,size:s="sm"}){const c=t&&o;return c&&(a||r)?g.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Kw[s]},children:[c,a||r]}):a===null?null:a||c||r}const[Jw,dc]=lc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Ww=(t,{size:o})=>({description:{"--input-description-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),mc=He((t,o)=>{const a=fe("InputDescription",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,__staticSelector:v,__inheritStyles:y=!0,attributes:x,variant:C,...E}=fe("InputDescription",null,a),w=dc(),M=Ae({name:["InputWrapper",v],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:x,rootSelector:"description",vars:p,varsResolver:Ww}),R=y&&w?.getStyles||M;return g.jsx(xe,{component:"p",ref:o,variant:C,size:h,...R("description",w?.getStyles?{className:s,style:c}:void 0),...E})});mc.classes=yn;mc.displayName="@mantine/core/InputDescription";const e6=(t,{size:o})=>({error:{"--input-error-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),pc=He((t,o)=>{const a=fe("InputError",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,attributes:v,__staticSelector:y,__inheritStyles:x=!0,variant:C,...E}=a,w=Ae({name:["InputWrapper",y],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,rootSelector:"error",vars:p,varsResolver:e6}),M=dc(),R=x&&M?.getStyles||w;return g.jsx(xe,{component:"p",ref:o,variant:C,size:h,...R("error",M?.getStyles?{className:s,style:c}:void 0),...E})});pc.classes=yn;pc.displayName="@mantine/core/InputError";const u0={labelElement:"label"},t6=(t,{size:o})=>({label:{"--input-label-size":Gt(o),"--input-asterisk-color":void 0}}),hc=He((t,o)=>{const a=fe("InputLabel",u0,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,labelElement:h,size:v,required:y,htmlFor:x,onMouseDown:C,children:E,__staticSelector:w,variant:M,mod:R,attributes:O,...A}=fe("InputLabel",u0,a),H=Ae({name:["InputWrapper",w],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:O,rootSelector:"label",vars:p,varsResolver:t6}),z=dc(),k=z?.getStyles||H;return g.jsxs(xe,{...k("label",z?.getStyles?{className:s,style:c}:void 0),component:h,variant:M,size:v,ref:o,htmlFor:h==="label"?x:void 0,mod:[{required:y},R],onMouseDown:V=>{C?.(V),!V.defaultPrevented&&V.detail>1&&V.preventDefault()},...A,children:[E,y&&g.jsx("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});hc.classes=yn;hc.displayName="@mantine/core/InputLabel";const bm=He((t,o)=>{const a=fe("InputPlaceholder",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,__staticSelector:h,variant:v,error:y,mod:x,attributes:C,...E}=a,w=Ae({name:["InputPlaceholder",h],props:a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,rootSelector:"placeholder"});return g.jsx(xe,{...w("placeholder"),mod:[{error:!!y},x],component:"span",variant:v,ref:o,...E})});bm.classes=yn;bm.displayName="@mantine/core/InputPlaceholder";function n6(t,{hasDescription:o,hasError:a}){const r=t.findIndex(p=>p==="input"),s=t.slice(0,r),c=t.slice(r+1),f=o&&s.includes("description")||a&&s.includes("error");return{offsetBottom:o&&c.includes("description")||a&&c.includes("error"),offsetTop:f}}const o6={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},l6=(t,{size:o})=>({label:{"--input-label-size":Gt(o),"--input-asterisk-color":void 0},error:{"--input-error-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`},description:{"--input-description-size":o===void 0?void 0:`calc(${Gt(o)} - ${te(2)})`}}),xm=He((t,o)=>{const a=fe("InputWrapper",o6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,variant:v,__staticSelector:y,inputContainer:x,inputWrapperOrder:C,label:E,error:w,description:M,labelProps:R,descriptionProps:O,errorProps:A,labelElement:H,children:z,withAsterisk:k,id:V,required:J,__stylesApiProps:W,mod:Q,attributes:oe,...ie}=a,le=Ae({name:["InputWrapper",y],props:W||a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:oe,vars:p,varsResolver:l6}),G={size:h,variant:v,__staticSelector:y},re=wa(V),D=typeof k=="boolean"?k:J,B=A?.id||`${re}-error`,U=O?.id||`${re}-description`,ee=re,ne=!!w&&typeof w!="boolean",_=!!M,$=`${ne?B:""} ${_?U:""}`,F=$.trim().length>0?$.trim():void 0,ae=R?.id||`${re}-label`,se=E&&g.jsx(hc,{labelElement:H,id:ae,htmlFor:ee,required:D,...G,...R,children:E},"label"),ue=_&&g.jsx(mc,{...O,...G,size:O?.size||G.size,id:O?.id||U,children:M},"description"),ve=g.jsx(S.Fragment,{children:x(z)},"input"),Se=ne&&S.createElement(pc,{...A,...G,size:A?.size||G.size,key:"error",id:A?.id||B},w),me=C.map(We=>{switch(We){case"label":return se;case"input":return ve;case"description":return ue;case"error":return Se;default:return null}});return g.jsx(Jw,{value:{getStyles:le,describedBy:F,inputId:ee,labelId:ae,...n6(C,{hasDescription:_,hasError:ne})},children:g.jsx(xe,{ref:o,variant:v,size:h,mod:[{error:!!w},Q],...le("root"),...ie,children:me})})});xm.classes=yn;xm.displayName="@mantine/core/InputWrapper";const a6={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},r6=(t,o,a)=>({wrapper:{"--input-margin-top":a.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":a.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Qe(o.size,"input-height"),"--input-fz":Gt(o.size),"--input-radius":o.radius===void 0?void 0:Rt(o.radius),"--input-left-section-width":o.leftSectionWidth!==void 0?te(o.leftSectionWidth):void 0,"--input-right-section-width":o.rightSectionWidth!==void 0?te(o.rightSectionWidth):void 0,"--input-padding-y":o.multiline?Qe(o.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":o.leftSectionPointerEvents,"--input-right-section-pointer-events":o.rightSectionPointerEvents}}),tn=_t((t,o)=>{const a=fe("Input",a6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,required:p,__staticSelector:h,__stylesApiProps:v,size:y,wrapperProps:x,error:C,disabled:E,leftSection:w,leftSectionProps:M,leftSectionWidth:R,rightSection:O,rightSectionProps:A,rightSectionWidth:H,rightSectionPointerEvents:z,leftSectionPointerEvents:k,variant:V,vars:J,pointer:W,multiline:Q,radius:oe,id:ie,withAria:le,withErrorStyles:G,mod:re,inputSize:D,attributes:B,__clearSection:U,__clearable:ee,__defaultRightSection:ne,..._}=a,{styleProps:$,rest:F}=cc(_),ae=dc(),se={offsetBottom:ae?.offsetBottom,offsetTop:ae?.offsetTop},ue=Ae({name:["Input",h],props:v||a,classes:yn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:B,stylesCtx:se,rootSelector:"wrapper",vars:J,varsResolver:r6}),ve=le?{required:p,disabled:E,"aria-invalid":!!C,"aria-describedby":ae?.describedBy,id:ae?.inputId||ie}:{},Se=Fw({__clearable:ee,__clearSection:U,rightSection:O,__defaultRightSection:ne,size:y});return g.jsx(Qw,{value:{size:y||"sm"},children:g.jsxs(xe,{...ue("wrapper"),...$,...x,mod:[{error:!!C&&G,pointer:W,disabled:E,multiline:Q,"data-with-right-section":!!Se,"data-with-left-section":!!w},re],variant:V,size:y,children:[w&&g.jsx("div",{...M,"data-position":"left",...ue("section",{className:M?.className,style:M?.style}),children:w}),g.jsx(xe,{component:"input",...F,...ve,ref:o,required:p,mod:{disabled:E,error:!!C&&G},variant:V,__size:D,...ue("input")}),Se&&g.jsx("div",{...A,"data-position":"right",...ue("section",{className:A?.className,style:A?.style}),children:Se})]})})});tn.classes=yn;tn.Wrapper=xm;tn.Label=hc;tn.Error=pc;tn.Description=mc;tn.Placeholder=bm;tn.ClearButton=Cb;tn.displayName="@mantine/core/Input";function i6(t,o,a){const r=fe(t,o,a),{label:s,description:c,error:f,required:d,classNames:p,styles:h,className:v,unstyled:y,__staticSelector:x,__stylesApiProps:C,errorProps:E,labelProps:w,descriptionProps:M,wrapperProps:R,id:O,size:A,style:H,inputContainer:z,inputWrapperOrder:k,withAsterisk:V,variant:J,vars:W,mod:Q,attributes:oe,...ie}=r,{styleProps:le,rest:G}=cc(ie),re={label:s,description:c,error:f,required:d,classNames:p,className:v,__staticSelector:x,__stylesApiProps:C||r,errorProps:E,labelProps:w,descriptionProps:M,unstyled:y,styles:h,size:A,style:H,inputContainer:z,inputWrapperOrder:k,withAsterisk:V,variant:J,id:O,mod:Q,attributes:oe,...R};return{...G,classNames:p,styles:h,unstyled:y,wrapperProps:{...re,...le},inputProps:{required:d,classNames:p,styles:h,unstyled:y,size:A,__staticSelector:x,__stylesApiProps:C||r,error:f,variant:J,id:O,attributes:oe}}}const s6={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ra=_t((t,o)=>{const{inputProps:a,wrapperProps:r,...s}=i6("InputBase",s6,t);return g.jsx(tn.Wrapper,{...r,children:g.jsx(tn,{...a,...s,ref:o})})});Ra.classes={...tn.classes,...tn.Wrapper.classes};Ra.displayName="@mantine/core/InputBase";const c6={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 wb={root:"m_8bffd616"};const Sm=_t((t,o)=>{const a=fe("Flex",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:E,direction:w,attributes:M,...R}=a,O=Ae({name:"Flex",classes:wb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p}),A=Zt(),H=eb(),z=Wy({styleProps:{gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:E,direction:w},theme:A,data:c6});return g.jsxs(g.Fragment,{children:[z.hasResponsiveStyles&&g.jsx(Jy,{selector:`.${H}`,styles:z.styles,media:z.media}),g.jsx(xe,{ref:o,...O("root",{className:H,style:nc(z.inlineStyles)}),...R})]})});Sm.classes=wb;Sm.displayName="@mantine/core/Flex";function Eb({open:t,close:o,openDelay:a,closeDelay:r}){const s=S.useRef(-1),c=S.useRef(-1),f=()=>{window.clearTimeout(s.current),window.clearTimeout(c.current)},d=()=>{f(),a===0||a===void 0?t():s.current=window.setTimeout(t,a)},p=()=>{f(),r===0||r===void 0?o():c.current=window.setTimeout(o,r)};return S.useEffect(()=>f,[]),{openDropdown:d,closeDropdown:p}}function Tb({style:t,size:o=16,...a}){return g.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:te(o),height:te(o),display:"block"},...a,children:g.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"})})}Tb.displayName="@mantine/core/AccordionChevron";var Mb={root:"m_b6d8b162"};function u6(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const f6={inherit:!1},d6=(t,{variant:o,lineClamp:a,gradient:r,size:s,color:c})=>({root:{"--text-fz":Gt(s),"--text-lh":q7(s),"--text-gradient":o==="gradient"?Vd(r,t):void 0,"--text-line-clamp":typeof a=="number"?a.toString():void 0,"--text-color":c?xo(c,t):void 0}}),Yn=_t((t,o)=>{const a=fe("Text",f6,t),{lineClamp:r,truncate:s,inline:c,inherit:f,gradient:d,span:p,__staticSelector:h,vars:v,className:y,style:x,classNames:C,styles:E,unstyled:w,variant:M,mod:R,size:O,attributes:A,...H}=a,z=Ae({name:["Text",h],props:a,classes:Mb,className:y,style:x,classNames:C,styles:E,unstyled:w,attributes:A,vars:v,varsResolver:d6});return g.jsx(xe,{...z("root",{focusable:!0}),ref:o,component:p?"span":"p",variant:M,mod:[{"data-truncate":u6(s),"data-line-clamp":typeof r=="number","data-inline":c,"data-inherit":f},R],size:O,...H})});Yn.classes=Mb;Yn.displayName="@mantine/core/Text";function Gs({size:t,style:o,...a}){const r=t!==void 0?{width:te(t),height:te(t),...o}:o;return g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...a,children:g.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"})})}var gc={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const Rb=S.createContext(null),m6=Rb.Provider;function p6(){return{withinGroup:!!S.useContext(Rb)}}const h6=(t,{spacing:o})=>({group:{"--ag-spacing":Gr(o)}}),Cm=He((t,o)=>{const a=fe("AvatarGroup",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,spacing:h,attributes:v,...y}=a,x=Ae({name:"AvatarGroup",classes:gc,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:p,varsResolver:h6,rootSelector:"group"});return g.jsx(m6,{value:!0,children:g.jsx(xe,{ref:o,...x("group"),...y})})});Cm.classes=gc;Cm.displayName="@mantine/core/AvatarGroup";function g6(t){return g.jsx("svg",{...t,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.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"})})}function v6(t){let o=0;for(let a=0;a<t.length;a+=1){const r=t.charCodeAt(a);o=(o<<5)-o+r,o|=0}return o}const y6=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function b6(t,o=y6){const a=v6(t),r=Math.abs(a)%o.length;return o[r]}function x6(t,o=2){const a=t.split(" ");return a.length===1?t.slice(0,o).toUpperCase():a.map(r=>r[0]).slice(0,o).join("").toUpperCase()}const S6=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f,name:d,allowedInitialsColors:p})=>{const h=c==="initials"&&typeof d=="string"?b6(d,p):c,v=t.variantColorResolver({color:h||"gray",theme:t,gradient:s,variant:r||"light",autoContrast:f});return{root:{"--avatar-size":Qe(o,"avatar-size"),"--avatar-radius":a===void 0?void 0:Rt(a),"--avatar-bg":h||r?v.background:void 0,"--avatar-color":h||r?v.color:void 0,"--avatar-bd":h||r?v.border:void 0}}},vc=_t((t,o)=>{const a=fe("Avatar",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,src:h,alt:v,radius:y,color:x,gradient:C,imageProps:E,children:w,autoContrast:M,mod:R,name:O,allowedInitialsColors:A,attributes:H,...z}=a,k=p6(),[V,J]=S.useState(!h),W=Ae({name:"Avatar",props:a,classes:gc,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:H,vars:p,varsResolver:S6});return S.useEffect(()=>J(!h),[h]),g.jsx(xe,{...W("root"),mod:[{"within-group":k.withinGroup},R],ref:o,...z,children:V||!h?g.jsx("span",{...W("placeholder"),title:v,children:w||typeof O=="string"&&x6(O)||g.jsx(g6,{})}):g.jsx("img",{...E,...W("image"),src:h,alt:v,onError:Q=>{J(!0),E?.onError?.(Q)}})})});vc.classes=gc;vc.displayName="@mantine/core/Avatar";vc.Group=Cm;var _b={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const C6=(t,{radius:o,color:a,gradient:r,variant:s,size:c,autoContrast:f,circle:d})=>{const p=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Qe(c,"badge-height"),"--badge-padding-x":Qe(c,"badge-padding-x"),"--badge-fz":Qe(c,"badge-fz"),"--badge-radius":d||o===void 0?void 0:Rt(o),"--badge-bg":a||s?p.background:void 0,"--badge-color":a||s?p.color:void 0,"--badge-bd":a||s?p.border:void 0,"--badge-dot-color":s==="dot"?xo(a,t):void 0}}},wm=_t((t,o)=>{const a=fe("Badge",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,radius:h,color:v,gradient:y,leftSection:x,rightSection:C,children:E,variant:w,fullWidth:M,autoContrast:R,circle:O,mod:A,attributes:H,...z}=a,k=Ae({name:"Badge",props:a,classes:_b,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:H,vars:p,varsResolver:C6});return g.jsxs(xe,{variant:w,mod:[{block:M,circle:O,"with-right-section":!!C,"with-left-section":!!x},A],...k("root",{variant:w}),ref:o,...z,children:[x&&g.jsx("span",{...k("section"),"data-position":"left",children:x}),g.jsx("span",{...k("label"),children:E}),C&&g.jsx("span",{...k("section"),"data-position":"right",children:C})]})});wm.classes=_b;wm.displayName="@mantine/core/Badge";var _a={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const f0={orientation:"horizontal"},w6=(t,{borderWidth:o})=>({group:{"--button-border-width":te(o)}}),Em=He((t,o)=>{const a=fe("ButtonGroup",f0,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...E}=fe("ButtonGroup",f0,t),w=Ae({name:"ButtonGroup",props:a,classes:_a,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:w6,rootSelector:"group"});return g.jsx(xe,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...E})});Em.classes=_a;Em.displayName="@mantine/core/ButtonGroup";const E6=(t,{radius:o,color:a,gradient:r,variant:s,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Qe(f,"section-height"),"--section-padding-x":Qe(f,"section-padding-x"),"--section-fz":f?.includes("compact")?Gt(f.replace("compact-","")):Gt(f),"--section-radius":o===void 0?void 0:Rt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},Tm=He((t,o)=>{const a=fe("ButtonGroupSection",null,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,vars:p,variant:h,gradient:v,radius:y,autoContrast:x,attributes:C,...E}=a,w=Ae({name:"ButtonGroupSection",props:a,classes:_a,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:E6,rootSelector:"groupSection"});return g.jsx(xe,{...w("groupSection"),ref:o,variant:h,...E})});Tm.classes=_a;Tm.displayName="@mantine/core/ButtonGroupSection";const T6={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${te(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},M6=(t,{radius:o,color:a,gradient:r,variant:s,size:c,justify:f,autoContrast:d})=>{const p=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:d});return{root:{"--button-justify":f,"--button-height":Qe(c,"button-height"),"--button-padding-x":Qe(c,"button-padding-x"),"--button-fz":c?.includes("compact")?Gt(c.replace("compact-","")):Gt(c),"--button-radius":o===void 0?void 0:Rt(o),"--button-bg":a||s?p.background:void 0,"--button-hover":a||s?p.hover:void 0,"--button-color":p.color,"--button-bd":a||s?p.border:void 0,"--button-hover-color":a||s?p.hoverColor:void 0}}},On=_t((t,o)=>{const a=fe("Button",null,t),{style:r,vars:s,className:c,color:f,disabled:d,children:p,leftSection:h,rightSection:v,fullWidth:y,variant:x,radius:C,loading:E,loaderProps:w,gradient:M,classNames:R,styles:O,unstyled:A,"data-disabled":H,autoContrast:z,mod:k,attributes:V,...J}=a,W=Ae({name:"Button",props:a,classes:_a,className:c,style:r,classNames:R,styles:O,unstyled:A,attributes:V,vars:s,varsResolver:M6}),Q=!!h,oe=!!v;return g.jsxs(Jo,{ref:o,...W("root",{active:!d&&!E&&!H}),unstyled:A,variant:x,disabled:d||E,mod:[{disabled:d||H,loading:E,block:y,"with-left-section":Q,"with-right-section":oe},k],...J,children:[typeof E=="boolean"&&g.jsx(Io,{mounted:E,transition:T6,duration:150,children:ie=>g.jsx(xe,{component:"span",...W("loader",{style:ie}),"aria-hidden":!0,children:g.jsx(Wo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),g.jsxs("span",{...W("inner"),children:[h&&g.jsx(xe,{component:"span",...W("section"),mod:{position:"left"},children:h}),g.jsx(xe,{component:"span",mod:{loading:E},...W("label"),children:p}),v&&g.jsx(xe,{component:"span",...W("section"),mod:{position:"right"},children:v})]})]})});On.classes=_a;On.displayName="@mantine/core/Button";On.Group=Em;On.GroupSection=Tm;const[R6,_6]=oc("Card component was not found in tree");var Mm={root:"m_e615b15f",section:"m_599a2148"};const yc=_t((t,o)=>{const a=fe("CardSection",null,t),{classNames:r,className:s,style:c,styles:f,vars:d,withBorder:p,inheritPadding:h,mod:v,...y}=a,x=_6();return g.jsx(xe,{ref:o,mod:[{"with-border":p,"inherit-padding":h},v],...x.getStyles("section",{className:s,style:c,styles:f,classNames:r}),...y})});yc.classes=Mm;yc.displayName="@mantine/core/CardSection";const j6=(t,{padding:o})=>({root:{"--card-padding":Gr(o)}}),Yr=_t((t,o)=>{const a=fe("Card",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,children:h,padding:v,attributes:y,...x}=a,C=Ae({name:"Card",props:a,classes:Mm,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:y,vars:p,varsResolver:j6}),E=S.Children.toArray(h),w=E.map((M,R)=>typeof M=="object"&&M&&"type"in M&&M.type===yc?S.cloneElement(M,{"data-first-section":R===0||void 0,"data-last-section":R===E.length-1||void 0}):M);return g.jsx(R6,{value:{getStyles:C},children:g.jsx(pm,{ref:o,unstyled:d,...C("root"),...x,children:w})})});Yr.classes=Mm;Yr.displayName="@mantine/core/Card";Yr.Section=yc;var jb={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[O6,N6]=lc();function Ob(t){const{value:o,defaultValue:a,onChange:r,multiple:s,children:c}=fe("ChipGroup",null,t),[f,d]=Ea({value:o,defaultValue:a,finalValue:s?[]:null,onChange:r}),p=v=>Array.isArray(f)?f.includes(v):v===f,h=v=>{const y=v.currentTarget.value;Array.isArray(f)?d(f.includes(y)?f.filter(x=>x!==y):[...f,y]):d(y)};return g.jsx(O6,{value:{isChipSelected:p,onChange:h,multiple:s},children:c})}Ob.displayName="@mantine/core/ChipGroup";const A6={type:"checkbox"},H6=(t,{size:o,radius:a,variant:r,color:s,autoContrast:c})=>{const f=t.variantColorResolver({color:s||t.primaryColor,theme:t,variant:r||"filled",autoContrast:c});return{root:{"--chip-fz":Gt(o),"--chip-size":Qe(o,"chip-size"),"--chip-radius":a===void 0?void 0:Rt(a),"--chip-checked-padding":Qe(o,"chip-checked-padding"),"--chip-padding":Qe(o,"chip-padding"),"--chip-icon-size":Qe(o,"chip-icon-size"),"--chip-bg":s||r?f.background:void 0,"--chip-hover":s||r?f.hover:void 0,"--chip-color":s||r?f.color:void 0,"--chip-bd":s||r?f.border:void 0,"--chip-spacing":Qe(o,"chip-spacing")}}},bc=He((t,o)=>{const a=fe("Chip",A6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,id:h,checked:v,defaultChecked:y,onChange:x,value:C,wrapperProps:E,type:w,disabled:M,children:R,size:O,variant:A,icon:H,rootRef:z,autoContrast:k,mod:V,attributes:J,...W}=a,Q=Ae({name:"Chip",classes:jb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:J,vars:p,varsResolver:H6}),oe=N6(),ie=wa(h),{styleProps:le,rest:G}=cc(W),[re,D]=Ea({value:v,defaultValue:y,finalValue:!1,onChange:x}),B=oe?{checked:oe.isChipSelected(C),onChange:ee=>{oe.onChange(ee),x?.(ee.currentTarget.checked)},type:oe.multiple?"checkbox":"radio"}:{},U=B.checked||re;return g.jsxs(xe,{size:O,variant:A,ref:z,mod:V,...Q("root"),...le,...E,children:[g.jsx("input",{type:w,...Q("input"),checked:U,onChange:ee=>D(ee.currentTarget.checked),id:ie,disabled:M,ref:o,value:C,...B,...G}),g.jsxs("label",{htmlFor:ie,"data-checked":U||void 0,"data-disabled":M||void 0,...Q("label",{variant:A||"filled"}),children:[U&&H!==null&&H!==!1&&g.jsx("span",{...Q("iconWrapper"),children:H===void 0?g.jsx(Gs,{...Q("checkIcon")}):H}),g.jsx("span",{children:R})]})]})});bc.classes=jb;bc.displayName="@mantine/core/Chip";bc.Group=Ob;var Nb={root:"m_3eebeb36",label:"m_9e365f20"};const D6={orientation:"horizontal"},z6=(t,{color:o,variant:a,size:r})=>({root:{"--divider-color":o?xo(o,t):void 0,"--divider-border-style":a,"--divider-size":Qe(r,"divider-size")}}),Rm=He((t,o)=>{const a=fe("Divider",D6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,color:h,orientation:v,label:y,labelPosition:x,mod:C,attributes:E,...w}=a,M=Ae({name:"Divider",classes:Nb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:p,varsResolver:z6});return g.jsx(xe,{ref:o,mod:[{orientation:v,"with-label":!!y},C],...M("root"),...w,role:"separator",children:y&&g.jsx(xe,{component:"span",mod:{position:x},...M("label"),children:y})})});Rm.classes=Nb;Rm.displayName="@mantine/core/Divider";const L6={multiple:!1},Ab=S.forwardRef((t,o)=>{const{onChange:a,children:r,multiple:s,accept:c,name:f,form:d,resetRef:p,disabled:h,capture:v,inputProps:y,...x}=fe("FileButton",L6,t),C=S.useRef(null),E=()=>{!h&&C.current?.click()},w=R=>{if(R.currentTarget.files===null)return a(s?[]:null);a(s?Array.from(R.currentTarget.files):R.currentTarget.files[0]||null)};return Bs(p,()=>{C.current&&(C.current.value="")}),g.jsxs(g.Fragment,{children:[g.jsx("input",{style:{display:"none"},type:"file",accept:c,multiple:s,onChange:w,ref:_n(o,C),name:f,form:d,capture:v,...y}),r({onClick:E,...x})]})});Ab.displayName="@mantine/core/FileButton";const V6=({value:t})=>g.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(t)?t.map(o=>o.name).join(", "):t?.name}),k6={valueComponent:V6,size:"sm"},_m=He((t,o)=>{const a=fe("FileInput",k6,t),{unstyled:r,vars:s,onChange:c,value:f,defaultValue:d,multiple:p,accept:h,name:v,form:y,valueComponent:x,clearable:C,clearButtonProps:E,readOnly:w,capture:M,fileInputProps:R,rightSection:O,size:A,placeholder:H,component:z,resetRef:k,classNames:V,styles:J,attributes:W,...Q}=a,oe=S.useRef(null),{resolvedClassNames:ie,resolvedStyles:le}=sc({classNames:V,styles:J,props:a}),[G,re]=Ea({value:f,defaultValue:d,onChange:c,finalValue:p?[]:null}),D=Array.isArray(G)?G.length!==0:G!==null,B=O||(C&&D&&!w?g.jsx(fc,{...E,variant:"subtle",onClick:()=>re(p?[]:null),size:A,unstyled:r}):null);return S.useEffect(()=>{(Array.isArray(G)&&G.length===0||G===null)&&oe.current?.()},[G]),g.jsx(Ab,{onChange:re,multiple:p,accept:h,name:v,form:y,resetRef:_n(oe,k),disabled:w,capture:M,inputProps:R,children:U=>g.jsx(Ra,{component:z||"button",ref:o,rightSection:B,...U,...Q,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:a,unstyled:r,size:A,classNames:V,styles:J,attributes:W,children:D?g.jsx(x,{value:G}):g.jsx(tn.Placeholder,{__staticSelector:"FileInput",classNames:ie,styles:le,attributes:W,children:H})})})});_m.classes=Ra.classes;_m.displayName="@mantine/core/FileInput";const B6=_m;var Hb={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const d0={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:$r("overlay")},U6=(t,{zIndex:o})=>({root:{"--lo-z-index":o?.toString()}}),jm=He((t,o)=>{const a=fe("LoadingOverlay",d0,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,transitionProps:h,loaderProps:v,overlayProps:y,visible:x,zIndex:C,attributes:E,...w}=a,M=Zt(),R=Ae({name:"LoadingOverlay",classes:Hb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:E,vars:p,varsResolver:U6}),O={...d0.overlayProps,...y};return g.jsx(Io,{transition:"fade",...h,mounted:!!x,children:A=>g.jsxs(xe,{...R("root",{style:A}),ref:o,...w,children:[g.jsx(Wo,{...R("loader"),unstyled:d,...v}),g.jsx(kr,{...O,...R("overlay"),darkHidden:!0,unstyled:d,color:y?.color||M.white}),g.jsx(kr,{...O,...R("overlay"),lightHidden:!0,unstyled:d,color:y?.color||M.colors.dark[5]})]})})});jm.classes=Hb;jm.displayName="@mantine/core/LoadingOverlay";const[$6,el]=oc("Menu component was not found in the tree");var tl={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const Om=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=fe("MenuDivider",null,t),p=el();return g.jsx(xe,{ref:o,...p.getStyles("divider",{className:r,style:s,styles:c,classNames:a}),...d})});Om.classes=tl;Om.displayName="@mantine/core/MenuDivider";const Nm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=fe("MenuDropdown",null,t),x=S.useRef(null),C=el(),E=Ut(h,R=>{(R.key==="ArrowUp"||R.key==="ArrowDown")&&(R.preventDefault(),x.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),w=Ut(d,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.openDropdown()),M=Ut(p,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.closeDropdown());return g.jsxs(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:_n(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:E,children:[C.withInitialFocusPlaceholder&&g.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),v]})});Nm.classes=tl;Nm.displayName="@mantine/core/MenuDropdown";const[G6,xc]=lc(),Am=_t((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,color:d,closeMenuOnClick:p,leftSection:h,rightSection:v,children:y,disabled:x,"data-disabled":C,...E}=fe("MenuItem",null,t),w=el(),M=xc(),R=Zt(),{dir:O}=Ta(),A=S.useRef(null),H=E,z=Ut(H.onClick,()=>{C||(typeof p=="boolean"?p&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),k=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,V=d?wl({color:d,theme:R}):null,J=Ut(H.onKeyDown,W=>{W.key==="ArrowLeft"&&M&&(M.close(),M.focusParentItem())});return g.jsxs(Jo,{onMouseDown:W=>W.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:_n(A,o),role:"menuitem",disabled:x,"data-menu-item":!0,"data-disabled":x||C||void 0,"data-mantine-stop-propagation":!0,onClick:z,onKeyDown:am({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:J}),__vars:{"--menu-item-color":V?.isThemeColor&&V?.shade===void 0?`var(--mantine-color-${V.color}-6)`:k?.color,"--menu-item-hover":k?.hover},children:[h&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"left",children:h}),y&&g.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:a}),children:y}),v&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"right",children:v})]})});Am.classes=tl;Am.displayName="@mantine/core/MenuItem";const Hm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=fe("MenuLabel",null,t),p=el();return g.jsx(xe,{ref:o,...p.getStyles("label",{className:r,style:s,styles:c,classNames:a}),...d})});Hm.classes=tl;Hm.displayName="@mantine/core/MenuLabel";const Dm=He((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=fe("MenuSubDropdown",null,t),x=S.useRef(null),C=el(),E=xc(),w=Ut(d,E?.open),M=Ut(p,E?.close);return g.jsx(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:_n(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:v})});Dm.classes=tl;Dm.displayName="@mantine/core/MenuSubDropdown";const zm=_t((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,color:d,leftSection:p,rightSection:h,children:v,disabled:y,"data-disabled":x,closeMenuOnClick:C,...E}=fe("MenuSubItem",null,t),w=el(),M=xc(),R=Zt(),{dir:O}=Ta(),A=S.useRef(null),H=E,z=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,k=d?wl({color:d,theme:R}):null,V=Ut(H.onKeyDown,oe=>{oe.key==="ArrowRight"&&(M?.open(),M?.focusFirstItem()),oe.key==="ArrowLeft"&&M?.parentContext&&(M.parentContext.close(),M.parentContext.focusParentItem())}),J=Ut(H.onClick,()=>{!x&&C&&w.closeDropdownImmediately()}),W=Ut(H.onMouseEnter,M?.open),Q=Ut(H.onMouseLeave,M?.close);return g.jsxs(Jo,{onMouseDown:oe=>oe.preventDefault(),...E,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:_n(A,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||x||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:W,onMouseLeave:Q,onClick:J,onKeyDown:am({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:O,orientation:"vertical",onKeyDown:V}),__vars:{"--menu-item-color":k?.isThemeColor&&k?.shade===void 0?`var(--mantine-color-${k.color}-6)`:z?.color,"--menu-item-hover":z?.hover},children:[p&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"left",children:p}),v&&g.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:a}),children:v}),g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"right",children:h||g.jsx(Tb,{...w.getStyles("chevron"),size:14})})]})});zm.classes=tl;zm.displayName="@mantine/core/MenuSubItem";function Db({children:t,refProp:o}){if(!Uy(t))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return el(),g.jsx(jn.Target,{refProp:o,popupType:"menu",children:t})}Db.displayName="@mantine/core/MenuSubTarget";const Z6={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ja(t){const{children:o,closeDelay:a,openDelay:r,...s}=fe("MenuSub",Z6,t),c=wa(),[f,{open:d,close:p}]=s9(!1),h=xc(),{openDropdown:v,closeDropdown:y}=Eb({open:d,close:p,closeDelay:a,openDelay:r}),x=()=>window.setTimeout(()=>{document.getElementById(`${c}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),C=()=>window.setTimeout(()=>{document.getElementById(`${c}-target`)?.focus()},16);return g.jsx(G6,{value:{opened:f,close:y,open:v,focusFirstItem:x,focusParentItem:C,parentContext:h},children:g.jsx(jn,{opened:f,withinPortal:!1,withArrow:!1,id:c,...s,children:o})})}ja.extend=t=>t;ja.displayName="@mantine/core/MenuSub";ja.Target=Db;ja.Dropdown=Dm;ja.Item=zm;const q6={refProp:"ref"},zb=S.forwardRef((t,o)=>{const{children:a,refProp:r,...s}=fe("MenuTarget",q6,t),c=qr(a);if(!c)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 f=el(),d=c.props,p=Ut(d.onClick,()=>{f.trigger==="click"?f.toggleDropdown():f.trigger==="click-hover"&&(f.setOpenedViaClick(!0),f.opened||f.openDropdown())}),h=Ut(d.onMouseEnter,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=Ut(d.onMouseLeave,()=>{(f.trigger==="hover"||f.trigger==="click-hover"&&!f.openedViaClick)&&f.closeDropdown()});return g.jsx(jn.Target,{refProp:r,popupType:"menu",ref:o,...s,children:S.cloneElement(c,{onClick:p,onMouseEnter:h,onMouseLeave:v,"data-expanded":f.opened?!0:void 0})})});zb.displayName="@mantine/core/MenuTarget";const Y6={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Fe(t){const o=fe("Menu",Y6,t),{children:a,onOpen:r,onClose:s,opened:c,defaultOpened:f,trapFocus:d,onChange:p,closeOnItemClick:h,loop:v,closeOnEscape:y,trigger:x,openDelay:C,closeDelay:E,classNames:w,styles:M,unstyled:R,variant:O,vars:A,menuItemTabIndex:H,keepMounted:z,withInitialFocusPlaceholder:k,attributes:V,...J}=o,W=Ae({name:"Menu",classes:tl,props:o,classNames:w,styles:M,unstyled:R,attributes:V}),[Q,oe]=Ea({value:c,defaultValue:f,finalValue:!1,onChange:p}),[ie,le]=S.useState(!1),G=()=>{oe(!1),le(!1),Q&&s?.()},re=()=>{oe(!0),!Q&&r?.()},D=()=>{Q?G():re()},{openDropdown:B,closeDropdown:U}=Eb({open:re,close:G,closeDelay:E,openDelay:C}),ee=$=>Y7("[data-menu-item]","[data-menu-dropdown]",$),{resolvedClassNames:ne,resolvedStyles:_}=sc({classNames:w,styles:M,props:o});return g.jsx($6,{value:{getStyles:W,opened:Q,toggleDropdown:D,getItemIndex:ee,openedViaClick:ie,setOpenedViaClick:le,closeOnItemClick:h,closeDropdown:x==="click"?G:U,openDropdown:x==="click"?re:B,closeDropdownImmediately:G,loop:v,trigger:x,unstyled:R,menuItemTabIndex:H,withInitialFocusPlaceholder:k},children:g.jsx(jn,{returnFocus:!0,...J,opened:Q,onChange:D,defaultOpened:f,trapFocus:z?!1:d,closeOnEscape:y,__staticSelector:"Menu",classNames:ne,styles:_,unstyled:R,variant:O,keepMounted:z,children:a})})}Fe.extend=t=>t;Fe.withProps=bw(Fe);Fe.classes=tl;Fe.displayName="@mantine/core/Menu";Fe.Item=Am;Fe.Label=Hm;Fe.Dropdown=Nm;Fe.Target=zb;Fe.Divider=Om;Fe.Sub=ja;const P6={duration:100,transition:"fade"};function m0(t,o){return{...P6,...o,...t}}var Sc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function X6({offset:t,position:o,defaultOpened:a}){const[r,s]=S.useState(a),c=S.useRef(null),{x:f,y:d,elements:p,refs:h,update:v,placement:y}=ec({placement:o,middleware:[Ko({crossAxis:!0,padding:5,rootBoundary:"document"})]}),x=y.includes("right")?t:o.includes("left")?t*-1:0,C=y.includes("bottom")?t:o.includes("top")?t*-1:0,E=S.useCallback(({clientX:w,clientY:M})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:M,left:w+x,top:M+C,right:w,bottom:M}}})},[p.reference]);return S.useEffect(()=>{if(h.floating.current){const w=c.current;w.addEventListener("mousemove",E);const M=vo(h.floating.current);return M.forEach(R=>{R.addEventListener("scroll",v)}),()=>{w.removeEventListener("mousemove",E),M.forEach(R=>{R.removeEventListener("scroll",v)})}}},[p.reference,h.floating.current,v,E,r]),{handleMouseMove:E,x:f,y:d,opened:r,setOpened:s,boundaryRef:c,floating:h.setFloating}}const Q6={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:$r("popover")},I6=(t,{radius:o,color:a})=>({tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":a?xo(a,t):void 0,"--tooltip-color":a?"var(--mantine-color-white)":void 0}}),Lm=He((t,o)=>{const a=fe("TooltipFloating",Q6,t),{children:r,refProp:s,withinPortal:c,style:f,className:d,classNames:p,styles:h,unstyled:v,radius:y,color:x,label:C,offset:E,position:w,multiline:M,zIndex:R,disabled:O,defaultOpened:A,variant:H,vars:z,portalProps:k,attributes:V,...J}=a,W=Zt(),Q=Ae({name:"TooltipFloating",props:a,classes:Sc,className:d,style:f,classNames:p,styles:h,unstyled:v,attributes:V,rootSelector:"tooltip",vars:z,varsResolver:I6}),{handleMouseMove:oe,x:ie,y:le,opened:G,boundaryRef:re,floating:D,setOpened:B}=X6({offset:E,position:w,defaultOpened:A}),U=qr(r);if(!U)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 ee=_n(re,rm(U),o),ne=U.props,_=F=>{ne.onMouseEnter?.(F),oe(F),B(!0)},$=F=>{ne.onMouseLeave?.(F),B(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(Sa,{...k,withinPortal:c,children:g.jsx(xe,{...J,...Q("tooltip",{style:{...tb(f,W),zIndex:R,display:!O&&G?"block":"none",top:(le&&Math.round(le))??"",left:(ie&&Math.round(ie))??""}}),variant:H,ref:D,mod:{multiline:M},children:C})}),S.cloneElement(U,{...ne,[s]:ee,onMouseEnter:_,onMouseLeave:$})]})});Lm.classes=Sc;Lm.displayName="@mantine/core/TooltipFloating";const Lb=S.createContext(!1),K6=Lb.Provider,F6=()=>S.useContext(Lb),J6={openDelay:0,closeDelay:0};function Vm(t){const{openDelay:o,closeDelay:a,children:r}=fe("TooltipGroup",J6,t);return g.jsx(K6,{value:!0,children:g.jsx(y5,{delay:{open:o,close:a},children:r})})}Vm.displayName="@mantine/core/TooltipGroup";Vm.extend=t=>t;function W6(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function eE(t){const o=W6(t.middlewares),a=[pn(t.offset)];return o.shift&&a.push(Ko(typeof o.shift=="boolean"?{padding:8}:{padding:8,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?bo():bo(o.flip)),a.push(I0({element:t.arrowRef,padding:t.arrowOffset})),o.inline?a.push(typeof o.inline=="boolean"?jr():jr(o.inline)):t.inline&&a.push(jr()),a}function tE(t){const[o,a]=S.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:o,c=F6(),f=wa(),d=S.useCallback(z=>{a(z),z&&R(f)},[f]),{x:p,y:h,context:v,refs:y,placement:x,middlewareData:{arrow:{x:C,y:E}={}}}=ec({strategy:t.strategy,placement:t.position,open:s,onOpenChange:d,middleware:eE(t),whileElementsMounted:Os}),{delay:w,currentId:M,setCurrentId:R}=b5(v,{id:f}),{getReferenceProps:O,getFloatingProps:A}=ey([F0(v,{enabled:t.events?.hover,delay:c?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),E5(v,{enabled:t.events?.focus,visibleOnly:!0}),M5(v,{role:"tooltip"}),W0(v,{enabled:typeof t.opened>"u"})]);Lr(()=>{t.onPositionChange?.(x)},[x]);const H=s&&M&&M!==f;return{x:p,y:h,arrowX:C,arrowY:E,reference:y.setReference,floating:y.setFloating,getFloatingProps:A,getReferenceProps:O,isGroupPhase:H,opened:s,placement:x}}const p0={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$r("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},nE=(t,{radius:o,color:a,variant:r,autoContrast:s})=>{const c=t.variantColorResolver({theme:t,color:a||t.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":o===void 0?void 0:Rt(o),"--tooltip-bg":a?c.background:void 0,"--tooltip-color":a?c.color:void 0}}},Oa=He((t,o)=>{const a=fe("Tooltip",p0,t),{children:r,position:s,refProp:c,label:f,openDelay:d,closeDelay:p,onPositionChange:h,opened:v,defaultOpened:y,withinPortal:x,radius:C,color:E,classNames:w,styles:M,unstyled:R,style:O,className:A,withArrow:H,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,offset:W,transitionProps:Q,multiline:oe,events:ie,zIndex:le,disabled:G,positionDependencies:re,onClick:D,onMouseEnter:B,onMouseLeave:U,inline:ee,variant:ne,keepMounted:_,vars:$,portalProps:F,mod:ae,floatingStrategy:se,middlewares:ue,autoContrast:ve,attributes:Se,target:me,...We}=fe("Tooltip",p0,a),{dir:it}=Ta(),tt=S.useRef(null),Ve=tE({position:cb(it,s),closeDelay:p,openDelay:d,onPositionChange:h,opened:v,defaultOpened:y,events:ie,arrowRef:tt,arrowOffset:k,offset:typeof W=="number"?W+(H?z/2:0):W,positionDependencies:[...re,me??r],inline:ee,strategy:se,middlewares:ue});S.useEffect(()=>{const Et=me instanceof HTMLElement?me:typeof me=="string"?document.querySelector(me):me?.current||null;Et&&Ve.reference(Et)},[me,Ve]);const lt=Ae({name:"Tooltip",props:a,classes:Sc,className:A,style:O,classNames:w,styles:M,unstyled:R,attributes:Se,rootSelector:"tooltip",vars:$,varsResolver:nE}),nn=qr(r);if(!me&&!nn)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");if(me){const Et=m0(Q,{duration:100,transition:"fade"});return g.jsx(g.Fragment,{children:g.jsx(Sa,{...F,withinPortal:x,children:g.jsx(Io,{...Et,keepMounted:_,mounted:!G&&!!Ve.opened,duration:Ve.isGroupPhase?10:Et.duration,children:Xn=>g.jsxs(xe,{...We,"data-fixed":se==="fixed"||void 0,variant:ne,mod:[{multiline:oe},ae],...Ve.getFloatingProps({ref:Ve.floating,className:lt("tooltip").className,style:{...lt("tooltip").style,...Xn,zIndex:le,top:Ve.y??0,left:Ve.x??0}}),children:[f,g.jsx($s,{ref:tt,arrowX:Ve.arrowX,arrowY:Ve.arrowY,visible:H,position:Ve.placement,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,...lt("arrow")})]})})})})}const Nn=nn.props,Co=_n(Ve.reference,rm(nn),o),An=m0(Q,{duration:100,transition:"fade"});return g.jsxs(g.Fragment,{children:[g.jsx(Sa,{...F,withinPortal:x,children:g.jsx(Io,{...An,keepMounted:_,mounted:!G&&!!Ve.opened,duration:Ve.isGroupPhase?10:An.duration,children:Et=>g.jsxs(xe,{...We,"data-fixed":se==="fixed"||void 0,variant:ne,mod:[{multiline:oe},ae],...Ve.getFloatingProps({ref:Ve.floating,className:lt("tooltip").className,style:{...lt("tooltip").style,...Et,zIndex:le,top:Ve.y??0,left:Ve.x??0}}),children:[f,g.jsx($s,{ref:tt,arrowX:Ve.arrowX,arrowY:Ve.arrowY,visible:H,position:Ve.placement,arrowSize:z,arrowOffset:k,arrowRadius:V,arrowPosition:J,...lt("arrow")})]})})}),S.cloneElement(nn,Ve.getReferenceProps({onClick:D,onMouseEnter:B,onMouseLeave:U,onMouseMove:a.onMouseMove,onPointerDown:a.onPointerDown,onPointerEnter:a.onPointerEnter,...Nn,className:So(A,Nn.className),[c]:Co}))]})});Oa.classes=Sc;Oa.displayName="@mantine/core/Tooltip";Oa.Floating=Lm;Oa.Group=Vm;var Vb={root:"m_18320242","skeleton-fade":"m_299c329c"};const oE={visible:!0,animate:!0},lE=(t,{width:o,height:a,radius:r,circle:s})=>({root:{"--skeleton-height":te(a),"--skeleton-width":te(s?a:o),"--skeleton-radius":s?"1000px":r===void 0?void 0:Rt(r)}}),Zs=He((t,o)=>{const a=fe("Skeleton",oE,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,width:h,height:v,circle:y,visible:x,radius:C,animate:E,mod:w,attributes:M,...R}=a,O=Ae({name:"Skeleton",classes:Vb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p,varsResolver:lE});return g.jsx(xe,{ref:o,...O("root"),mod:[{visible:x,animate:E},w],...R})});Zs.classes=Vb;Zs.displayName="@mantine/core/Skeleton";var kb={root:"m_6d731127"};const aE={gap:"md",align:"stretch",justify:"flex-start"},rE=(t,{gap:o,align:a,justify:r})=>({root:{"--stack-gap":Gr(o),"--stack-align":a,"--stack-justify":r}}),Pr=He((t,o)=>{const a=fe("Stack",aE,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,align:h,justify:v,gap:y,variant:x,attributes:C,...E}=a,w=Ae({name:"Stack",props:a,classes:kb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:rE});return g.jsx(xe,{ref:o,...w("root"),variant:x,...E})});Pr.classes=kb;Pr.displayName="@mantine/core/Stack";const[iE,km]=oc("Tabs component was not found in the tree");var Xr={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Bm=He((t,o)=>{const a=fe("TabsList",null,t),{children:r,className:s,grow:c,justify:f,classNames:d,styles:p,style:h,mod:v,...y}=a,x=km();return g.jsx(xe,{...y,...x.getStyles("list",{className:s,style:h,classNames:d,styles:p,props:a,variant:x.variant}),ref:o,role:"tablist",variant:x.variant,mod:[{grow:c,orientation:x.orientation,placement:x.orientation==="vertical"&&x.placement,inverted:x.inverted},v],"aria-orientation":x.orientation,__vars:{"--tabs-justify":f},children:r})});Bm.classes=Xr;Bm.displayName="@mantine/core/TabsList";const Um=He((t,o)=>{const a=fe("TabsPanel",null,t),{children:r,className:s,value:c,classNames:f,styles:d,style:p,mod:h,keepMounted:v,...y}=a,x=km(),C=x.value===c,E=x.keepMounted||v||C?r:null;return g.jsx(xe,{...x.getStyles("panel",{className:s,classNames:f,styles:d,style:[p,C?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:x.orientation},h],role:"tabpanel",id:x.getPanelId(c),"aria-labelledby":x.getTabId(c),...y,children:E})});Um.classes=Xr;Um.displayName="@mantine/core/TabsPanel";const $m=He((t,o)=>{const a=fe("TabsTab",null,t),{className:r,children:s,rightSection:c,leftSection:f,value:d,onClick:p,onKeyDown:h,disabled:v,color:y,style:x,classNames:C,styles:E,vars:w,mod:M,tabIndex:R,...O}=a,A=Zt(),{dir:H}=Ta(),z=km(),k=d===z.value,V=W=>{z.onChange(z.allowTabDeactivation&&d===z.value?null:d),p?.(W)},J={classNames:C,styles:E,props:a};return g.jsxs(Jo,{...z.getStyles("tab",{className:r,style:x,variant:z.variant,...J}),disabled:v,unstyled:z.unstyled,variant:z.variant,mod:[{active:k,disabled:v,orientation:z.orientation,inverted:z.inverted,placement:z.orientation==="vertical"&&z.placement},M],ref:o,role:"tab",id:z.getTabId(d),"aria-selected":k,tabIndex:R!==void 0?R:k||z.value===null?0:-1,"aria-controls":z.getPanelId(d),onClick:V,__vars:{"--tabs-color":y?xo(y,A):void 0},onKeyDown:am({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:z.activateTabWithKeyboard,loop:z.loop,orientation:z.orientation||"horizontal",dir:H,onKeyDown:h}),...O,children:[f&&g.jsx("span",{...z.getStyles("tabSection",J),"data-position":"left",children:f}),s&&g.jsx("span",{...z.getStyles("tabLabel",J),children:s}),c&&g.jsx("span",{...z.getStyles("tabSection",J),"data-position":"right",children:c})]})});$m.classes=Xr;$m.displayName="@mantine/core/TabsTab";const h0="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",sE={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},cE=(t,{radius:o,color:a,autoContrast:r})=>({root:{"--tabs-radius":Rt(o),"--tabs-color":xo(a,t),"--tabs-text-color":J9(r,t)?Qy({color:a,theme:t,autoContrast:r}):void 0}}),po=He((t,o)=>{const a=fe("Tabs",sE,t),{defaultValue:r,value:s,onChange:c,orientation:f,children:d,loop:p,id:h,activateTabWithKeyboard:v,allowTabDeactivation:y,variant:x,color:C,radius:E,inverted:w,placement:M,keepMounted:R,classNames:O,styles:A,unstyled:H,className:z,style:k,vars:V,autoContrast:J,mod:W,attributes:Q,...oe}=a,ie=wa(h),[le,G]=Ea({value:s,defaultValue:r,finalValue:null,onChange:c}),re=Ae({name:"Tabs",props:a,classes:Xr,className:z,style:k,classNames:O,styles:A,unstyled:H,attributes:Q,vars:V,varsResolver:cE});return g.jsx(iE,{value:{placement:M,value:le,orientation:f,id:ie,loop:p,activateTabWithKeyboard:v,getTabId:Kv(`${ie}-tab`,h0),getPanelId:Kv(`${ie}-panel`,h0),onChange:G,allowTabDeactivation:y,variant:x,color:C,radius:E,inverted:w,keepMounted:R,unstyled:H,getStyles:re},children:g.jsx(xe,{ref:o,id:ie,variant:x,mod:[{orientation:f,inverted:f==="horizontal"&&w,placement:f==="vertical"&&M},W],...re("root"),...oe,children:d})})});po.classes=Xr;po.displayName="@mantine/core/Tabs";po.Tab=$m;po.Panel=Um;po.List=Bm;const Cc=He((t,o)=>{const a=fe("TextInput",null,t);return g.jsx(Ra,{component:"input",ref:o,...a,__staticSelector:"TextInput"})});Cc.classes=Ra.classes;Cc.displayName="@mantine/core/TextInput";const Bb=(t,o,a=!1)=>{const r=[];function s(c,f="--bn"){for(const d in c){const p=d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h=`${f}-${p}`;typeof c[d]!="object"?(typeof c[d]=="number"&&(c[d]=`${c[d]}px`),a?o.style.removeProperty(h):o.style.setProperty(h,c[d].toString())):s(c[d],h)}}return s(t),r},g0=(t,o)=>Bb(t,o),uE={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},fE=t=>Bb(uE,t,!0),Ub=t=>g.jsxs(Pr,{gap:0,className:"bn-tooltip",children:[g.jsx(Yn,{size:"sm",lineClamp:5,children:t.mainTooltip}),t.secondaryTooltip&&g.jsx(Yn,{size:"xs",lineClamp:5,children:t.secondaryTooltip})]}),wd=S.forwardRef((t,o)=>{const{className:a,children:r,mainTooltip:s,secondaryTooltip:c,icon:f,isSelected:d,isDisabled:p,onClick:h,label:v,variant:y,...x}=t;Me(x,!1);const[C,E]=S.useState(!1),w=r?g.jsx(On,{"aria-label":v,className:a,onMouseDown:M=>{_d()&&M.currentTarget.focus()},onClick:M=>{E(!0),h?.(M)},onPointerLeave:()=>E(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:y==="compact"?"compact-xs":"xs",disabled:p||!1,ref:o,...x,children:r}):g.jsx(El,{className:a,"aria-label":v,onMouseDown:M=>{_d()&&M.currentTarget.focus()},onClick:M=>{E(!0),h?.(M)},onPointerLeave:()=>E(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:y==="compact"?20:30,disabled:p||!1,ref:o,...x,children:f});return s?g.jsx(Oa,{disabled:C,withinPortal:!1,label:g.jsx(Ub,{mainTooltip:s,secondaryTooltip:c}),children:w}):w}),dE=S.forwardRef((t,o)=>{const{className:a,text:r,icon:s,isSelected:c,mainTooltip:f,secondaryTooltip:d,onClick:p,onMouseEnter:h,...v}=t;Me(v,!1);const[y,x]=S.useState(!1),C=g.jsxs(bc,{className:a,checked:c===!0,wrapperProps:{onMouseEnter:h,onMouseLeave:()=>x(!1),onClick:E=>{x(!0),p?.(E)}},variant:"light",icon:null,ref:o,children:[g.jsx("span",{children:s}),g.jsx("span",{children:r})]});return!f||y?C:g.jsx(Oa,{refProp:"rootRef",withinPortal:!1,label:g.jsx(Ub,{mainTooltip:f,secondaryTooltip:d}),children:C})}),mE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:r})}),pE=S.forwardRef((t,o)=>{const{className:a,children:r,headerText:s,selected:c,onFocus:f,onBlur:d,tabIndex:p,...h}=t;return Me(h,!1),g.jsxs(Yr,{className:gt(a,c?"selected":""),onFocus:f,onBlur:d,tabIndex:p,ref:o,children:[s&&g.jsx(Yn,{className:"bn-header-text",children:s}),r]})}),hE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(Yr.Section,{className:a,ref:o,children:r})}),gE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(Rm,{className:a,label:g.jsx(Yn,{children:r}),ref:o})}),vE=S.forwardRef((t,o)=>{const{authorInfo:a,timeString:r,edited:s,...c}=t,f=Te();return Me(c,!1),a==="loading"?g.jsxs(wt,{children:[g.jsx(Zs,{height:24,width:24}),g.jsx("div",{children:g.jsx(Zs,{height:12,width:100})})]}):g.jsxs(wt,{children:[g.jsx(vc,{src:a.avatarUrl,alt:a.username,radius:"xl",size:"sm",color:"initials"}),g.jsxs(Yn,{fz:"sm",fw:"bold",children:[a.username,g.jsxs(Yn,{fz:"xs",c:"dimmed",span:!0,ml:"xs",children:[r," ",s&&`(${f.comments.edited})`]})]})]})}),yE=S.forwardRef((t,o)=>{const{className:a,showActions:r,authorInfo:s,timeString:c,edited:f,actions:d,emojiPickerOpen:p,children:h,...v}=t,{hovered:y,ref:x}=i9(),C=D7([o,x]);return Me(v,!1),g.jsxs(wt,{pos:"relative",ref:C,className:a,children:[d&&(r===!0||r===void 0||r==="hover"&&y||p)?g.jsx(wt,{style:{position:"absolute",right:0,top:0,zIndex:10},children:d}):null,g.jsx(vE,{...t}),h]})}),bE=S.forwardRef((t,o)=>{const{className:a,autoFocus:r,onFocus:s,onBlur:c,editor:f,editable:d,...p}=t;Me(p,!1);const h=Rn();return g.jsx(iT,{autoFocus:r,className:a,editor:t.editor,sideMenu:!1,slashMenu:!1,tableHandles:!1,filePanel:!1,formattingToolbar:!1,editable:d,theme:h?.colorSchemePreference,ref:o,onFocus:s,onBlur:c,children:g.jsx(Oy,{formattingToolbar:xE})})}),xE=()=>{const t=_y([]).filter(o=>o.key!=="nestBlockButton"&&o.key!=="unnestBlockButton");return g.jsx(jy,{blockTypeSelectItems:[],children:t})},SE=S.forwardRef((t,o)=>{const{className:a,name:r,label:s,variant:c,icon:f,value:d,autoFocus:p,placeholder:h,disabled:v,onKeyDown:y,onChange:x,onSubmit:C,autoComplete:E,rightSection:w,...M}=t;return Me(M),g.jsx(Cc,{size:"xs",className:gt(a||"",c==="large"?"bn-mt-input-large":""),ref:o,name:r,label:s,leftSection:f,value:d,autoFocus:p,"data-autofocus":p?"true":void 0,rightSection:w,placeholder:h,disabled:v,onKeyDown:y,onChange:x,onSubmit:C,autoComplete:E})}),CE=S.createContext(void 0),wE=t=>{const{children:o,onOpenChange:a,position:r,sub:s,...c}=t;return Me(c),s?g.jsx(Fe.Sub,{transitionProps:{duration:250,exitDelay:250},withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,children:o}):g.jsx(Fe,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,returnFocus:!1,children:o})},EE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,checked:c,subTrigger:f,onClick:d,...p}=t;return Me(p,!1),f?g.jsx(Fe.Sub.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Gs,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r}):g.jsx(Fe.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Gs,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r})}),TE=t=>{const{children:o,sub:a,...r}=t;return Me(r),a?g.jsx(Fe.Sub.Target,{children:o}):g.jsx(Fe.Target,{children:o})},ME=S.forwardRef((t,o)=>{const{className:a,children:r,sub:s,...c}=t;Me(c);const f=S.useContext(CE);return s?g.jsx(Fe.Sub.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r}):g.jsx(Fe.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r})}),RE=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Me(r),g.jsx(Fe.Divider,{className:a,ref:o})}),_E=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(Fe.Label,{className:a,ref:o,children:r})}),jE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Me(v,!1),s?g.jsx(El,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(On,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),OE=S.forwardRef((t,o)=>{const{className:a,tabs:r,defaultOpenTab:s,openTab:c,setOpenTab:f,loading:d,...p}=t;return Me(p),g.jsx(wt,{className:a,ref:o,children:g.jsxs(po,{value:c,defaultValue:s,onChange:f,children:[d&&g.jsx(jm,{visible:d}),g.jsx(po.List,{children:r.map(h=>g.jsx(po.Tab,{"data-test":`${h.name.toLowerCase()}-tab`,value:h.name,children:h.name},h.name))}),r.map(h=>g.jsx(po.Panel,{value:h.name,children:h.tabPanel},h.name))]})})}),NE=S.forwardRef((t,o)=>{const{className:a,children:r,onClick:s,label:c,...f}=t;return Me(f),g.jsx(On,{size:"xs","aria-label":c,className:a,ref:o,onClick:s,...f,children:r})}),AE=S.forwardRef((t,o)=>{const{className:a,accept:r,value:s,placeholder:c,onChange:f,...d}=t;return Me(d),g.jsx(B6,{size:"xs",className:a,ref:o,accept:r,value:s,placeholder:c,onChange:f,...d})}),HE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx("div",{className:a,ref:o,children:r})}),DE=S.forwardRef((t,o)=>{const{className:a,value:r,placeholder:s,onKeyDown:c,onChange:f,...d}=t;return Me(d),g.jsx(Cc,{size:"xs","data-test":"embed-input",className:a,ref:o,value:r,placeholder:s,onKeyDown:c,onChange:f})}),zE=t=>{const{open:o,onOpenChange:a,position:r,children:s,...c}=t;return Me(c),g.jsx(jn,{middlewares:{size:{padding:20}},withinPortal:!1,opened:o,onChange:a,position:r,zIndex:1e4,children:s})},LE=t=>{const{children:o,...a}=t;return Me(a),g.jsx(gm,{children:o})},VE=S.forwardRef((t,o)=>{const{className:a,children:r,variant:s,...c}=t;return Me(c),g.jsx(uc,{className:a,ref:o,children:r})}),kE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s,!1),g.jsx(wt,{align:"center",gap:0,className:a,ref:o,...s,children:r})}),BE=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Me(v,!1),s?g.jsx(El,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(On,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),UE=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,...c}=t;return Me(c),g.jsx(Pr,{gap:0,className:a,ref:o,id:s,role:"listbox",children:r})}),$E=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:g.jsx(wt,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),GE=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Me(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Vy(p.current,p.current.closest(".bn-suggestion-menu, #ai-suggestion-menu"));h==="top"?p.current.scrollIntoView(!0):h==="bottom"&&p.current.scrollIntoView(!1)},[r]),g.jsxs(wt,{gap:0,className:a,ref:ac(o,p),id:f,role:"option",onMouseDown:h=>h.preventDefault(),onClick:s,"aria-selected":r||void 0,children:[c.icon&&g.jsx(wt,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),g.jsxs(Pr,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[g.jsx(Yn,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),g.jsx(Yn,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&g.jsx(wt,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:g.jsx(wm,{size:"xs",children:c.badge})})]})}),ZE=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Me(s),g.jsx(wt,{className:a,ref:o,children:r})}),qE=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Me(r),g.jsx(Wo,{className:a,type:"dots",size:16,ref:o})}),YE=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,columns:c,...f}=t;return Me(f),g.jsx("div",{className:a,style:{gridTemplateColumns:`repeat(${c}, 1fr)`},ref:o,id:s,role:"grid",children:r})}),PE=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Me(c),g.jsx(wt,{className:a,style:{gridColumn:`1 / ${s+1}`},ref:o,children:g.jsx(wt,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),XE=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Me(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Vy(p.current,p.current.closest(".bn-grid-suggestion-menu"));h==="top"?p.current.scrollIntoView(!0):h==="bottom"&&p.current.scrollIntoView(!1)},[r]),g.jsx("div",{className:a,ref:ac(o,p),id:f,role:"option",onClick:s,"aria-selected":r||void 0,children:c.icon})}),QE=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Me(c),g.jsx(Wo,{className:a,style:{gridColumn:`1 / ${s+1}`},type:"dots",ref:o})}),IE=S.forwardRef((t,o)=>{const{children:a,className:r,onMouseDown:s,onClick:c,...f}=t;return Me(f,!1),g.jsx(On,{className:r,ref:o,onMouseDown:s,onClick:c,...f,children:a})}),KE=S.forwardRef((t,o)=>{const{className:a,children:r,draggable:s,onDragStart:c,onDragEnd:f,style:d,label:p,...h}=t;return Me(h,!1),g.jsx(On,{className:a,ref:o,"aria-label":p,draggable:s,onDragStart:c,onDragEnd:f,style:d,...h,children:r})}),Ed=S.forwardRef((t,o)=>{const{className:a,children:r,onMouseEnter:s,onMouseLeave:c,variant:f,...d}=t;Me(d);const{ref:p,focused:h}=u9(),v=Yy(h),y=ac(o,p,v);return g.jsx(Sm,{className:a,ref:y,role:"toolbar",onMouseEnter:s,onMouseLeave:c,gap:f==="action-toolbar"?2:void 0,children:r})});var $b={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v0=Be.createContext&&Be.createContext($b),FE=["attr","size","title"];function JE(t,o){if(t==null)return{};var a=WE(t,o),r,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(s=0;s<c.length;s++)r=c[s],!(o.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function WE(t,o){if(t==null)return{};var a={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o.indexOf(r)>=0)continue;a[r]=t[r]}return a}function qs(){return qs=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},qs.apply(this,arguments)}function y0(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,r)}return a}function Ys(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?y0(Object(a),!0).forEach(function(r){eT(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):y0(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function eT(t,o,a){return o=tT(o),o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function tT(t){var o=nT(t,"string");return typeof o=="symbol"?o:o+""}function nT(t,o){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,o);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function Gb(t){return t&&t.map((o,a)=>Be.createElement(o.tag,Ys({key:a},o.attr),Gb(o.child)))}function oT(t){return o=>Be.createElement(lT,qs({attr:Ys({},t.attr)},o),Gb(t.child))}function lT(t){var o=a=>{var{attr:r,size:s,title:c}=t,f=JE(t,FE),d=s||a.size||"1em",p;return a.className&&(p=a.className),t.className&&(p=(p?p+" ":"")+t.className),Be.createElement("svg",qs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:Ys(Ys({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&Be.createElement("title",null,c),t.children)};return v0!==void 0?Be.createElement(v0.Consumer,null,a=>o(a)):o($b)}function aT(t){return oT({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}const Td=S.forwardRef((t,o)=>{const{className:a,items:r,isDisabled:s,...c}=t;Me(c);const f=r.filter(d=>d.isSelected)[0];return f?g.jsxs(Fe,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[g.jsx(Fe.Target,{children:g.jsx(On,{onMouseDown:d=>{_d()&&d.currentTarget.focus()},leftSection:f.icon,rightSection:g.jsx(aT,{}),size:"xs",variant:"subtle",disabled:s,children:f.text})}),g.jsx(Fe.Dropdown,{className:a,ref:o,children:r.map(d=>g.jsx(Fe.Item,{onClick:d.onClick,leftSection:d.icon,rightSection:d.isSelected?g.jsx(Gs,{size:10,className:"bn-tick-icon"}):g.jsx("div",{className:"bn-tick-space"}),disabled:d.isDisabled,children:d.text},d.text))})]}):null}),rT={FormattingToolbar:{Root:Ed,Button:wd,Select:Td},FilePanel:{Root:OE,Button:NE,FileInput:AE,TabPanel:HE,TextInput:DE},GridSuggestionMenu:{Root:YE,Item:XE,EmptyItem:PE,Loader:QE},LinkToolbar:{Root:Ed,Button:wd,Select:Td},SideMenu:{Root:kE,Button:BE},SuggestionMenu:{Root:UE,Item:GE,EmptyItem:$E,Label:ZE,Loader:qE},TableHandle:{Root:KE,ExtendButton:IE},Generic:{Badge:{Root:dE,Group:mE},Form:{Root:t=>g.jsx("div",{children:t.children}),TextInput:SE},Menu:{Root:wE,Trigger:TE,Dropdown:ME,Divider:RE,Label:_E,Item:EE,Button:jE},Popover:{Root:zE,Trigger:LE,Content:VE},Toolbar:{Root:Ed,Button:wd,Select:Td}},Comments:{Comment:yE,Editor:bE,Card:pE,CardSection:hE,ExpandSectionsPrompt:gE}},iT=t=>{const{className:o,theme:a,...r}=t,s=Rn(),c=Dy(),f=s?.colorSchemePreference||c,d=S.useCallback(y=>{if(y&&(fE(y),typeof a=="object")){if("light"in a&&"dark"in a){g0(a[f==="dark"?"dark":"light"],y);return}g0(a,y);return}},[f,a]),p=S.useContext(im),h=typeof a=="string"?a:f!=="no-preference"?f:"light",v=g.jsx(fy.Provider,{value:rT,children:g.jsx(y7,{"data-mantine-color-scheme":h,className:gt("bn-mantine",o||""),theme:typeof a=="object"?void 0:a,...r,ref:d})});return p?v:g.jsx(Fy,{withCssVariables:!1,getRootElement:()=>{},children:v})};export{iT as F,w0 as R,pT as U,em as X,qn as a,M0 as b,So as c,jC as d,Be as e,bo as f,Dr as g,I0 as h,V4 as i,g as j,Os as k,mv as l,Br as m,X8 as n,pn as o,P8 as p,cT as q,S as r,Ko as s,z4 as u,be as v,fT as y};
|