UNPKG

@syngrisi/syngrisi

Version:
1 lines 243 kB
var Lp=Object.defineProperty;var n=(e,r)=>Lp(e,"name",{value:r,configurable:!0});import{as as Ap,r as v,at as $e,au as Vp,av as Ge,b as o,c as M,aw as G,B as re,j as S,an as Or,ax as cr,ay as Pr,az as Qe,aA as we,aB as er,aC as jr,aD as Dr,d as Re,W as dr,R as Ee,a0 as Sr,P as rr,aE as bl,T as fe,aF as wl,aG as Ol,aH as Pl,aI as Pn,aJ as Mp,aK as $r,aL as Fp,aM as Oa,$ as Pa,aN as sn,q as ve,G as ge,aO as Bp,aP as Hp,A as Sn,_ as nt,aQ as Sl,aR as Wp,s as xr,h as ze,C as Gp,aS as Up,F as $l,e as ln,aT as Kp,aU as qp,L as $n,aV as Xp,M as xl,aW as Yp,aX as Zp,i as Jp,K as xn,S as Qp,g as Tr,Y as cn,aY as ef,aZ as rf,a_ as tf,a$ as af,b0 as nf,b1 as of,b2 as sf,b3 as lf,V as Cl,b4 as cf,b5 as so,b6 as df,b7 as uf,b8 as pf,b9 as ff,p as Sa,J as gf,l as sr,ba as mf,m as vf,n as Cn,bb as Nl,bc as hf,bd as yf,u as Il,be as io,O as kl,a5 as _f,a6 as bf,a7 as wf,a2 as Of,a1 as Pf,y as Sf,am as $f,a3 as xf,ap as dn,aq as or,Q as Cf,f as Nf,ao as If,E as kf,H as zf,I as Rf,ar as lo}from"./use-form-CYJtOIAE.js";import{a9 as Lr,aa as zl,z as $a,ab as Cr,ac as Ef,ad as jf,ae as Df,af as Rl,ag as Nn,ah as yr,ai as xa,aj as El,ak as Tf,P as We,A as In,al as Lf,am as Af,an as Vf,ao as jl,ap as ot,a as Mf,aq as Ff,ar as Bf,as as Dl,at as Tl,i as Hf,au as Wf,D as un,a0 as Ll,av as Gf,r as Al,B as Vl,O as Uf,y as Kf,aw as qf,f as pn,C as Xf,F as Yf,ax as Zf,H as Ml,ay as Jf,I as Qf,K as Fl,L as eg,az as rg,aA as tg,M as ag,N as fn,aB as ng,R as Bl,d as Ar,Q as og,aC as sg,aD as ig,k as ir,V as kn,T as Hl,aE as lr,n as lg,aF as cg,aG as dg,l as ug,g as pg,o as fg,U as gg,j as st,h as Ca,t as mg,s as it,e as Er,G as br,v as vg,$ as zn,m as hg,p as Wl,u as Gl,S as gn,J as lt,W as yg,X as Ul,Y as co,Z as _g,q as bg,a1 as wg,a2 as Og,a3 as Pg,a4 as Sg,a5 as $g,a6 as xg,a7 as Cg,a8 as Ng}from"./LogicalGroup-kcI-7Vr5.js";import{P as Kl}from"./PasswordInput-DBLgbJ8-.js";function ct(e,r){return t=>{if(typeof t!="string"||t.trim().length===0)throw new Error(r);return`${e}-${t}`}}n(ct,"getSafeId");function Ig(e){return Object.keys(e)}n(Ig,"keys");const kg=Object.keys(Ap);function Me(e,r,t){return Math.min(Math.max(e,r),t)}n(Me,"clamp");const ql=n(e=>({x:Me(e.x,0,1),y:Me(e.y,0,1)}),"clampUseMovePosition");function Na(e,r,t="ltr"){const a=v.useRef(),s=v.useRef(!1),i=v.useRef(!1),l=v.useRef(0),[d,c]=v.useState(!1);return v.useEffect(()=>{s.current=!0},[]),v.useEffect(()=>{const u=n(({x:b,y:w})=>{cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{if(s.current&&a.current){a.current.style.userSelect="none";const P=a.current.getBoundingClientRect();if(P.width&&P.height){const C=Me((b-P.left)/P.width,0,1);e({x:t==="ltr"?C:1-C,y:Me((w-P.top)/P.height,0,1)})}}})},"onScrub"),f=n(()=>{document.addEventListener("mousemove",_),document.addEventListener("mouseup",m),document.addEventListener("touchmove",O),document.addEventListener("touchend",m)},"bindEvents"),p=n(()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",m)},"unbindEvents"),g=n(()=>{!i.current&&s.current&&(i.current=!0,typeof(r==null?void 0:r.onScrubStart)=="function"&&r.onScrubStart(),c(!0),f())},"startScrubbing"),m=n(()=>{i.current&&s.current&&(i.current=!1,c(!1),p(),setTimeout(()=>{typeof(r==null?void 0:r.onScrubEnd)=="function"&&r.onScrubEnd()},0))},"stopScrubbing"),y=n(b=>{g(),b.preventDefault(),_(b)},"onMouseDown"),_=n(b=>u({x:b.clientX,y:b.clientY}),"onMouseMove"),h=n(b=>{b.cancelable&&b.preventDefault(),g(),O(b)},"onTouchStart"),O=n(b=>{b.cancelable&&b.preventDefault(),u({x:b.changedTouches[0].clientX,y:b.changedTouches[0].clientY})},"onTouchMove");return a.current.addEventListener("mousedown",y),a.current.addEventListener("touchstart",h,{passive:!1}),()=>{a.current&&(a.current.removeEventListener("mousedown",y),a.current.removeEventListener("touchstart",h))}},[t,e]),{ref:a,active:d}}n(Na,"useMove");function Je(e,r){const t=r-e+1;return Array.from({length:t},(a,s)=>s+e)}n(Je,"range");const Kr="dots";function zg({total:e,siblings:r=1,boundaries:t=1,page:a,initialPage:s=1,onChange:i}){const l=Math.max(Math.trunc(e),0),[d,c]=$e({value:a,onChange:i,defaultValue:s,finalValue:s}),u=n(_=>{_<=0?c(1):_>l?c(l):c(_)},"setPage"),f=n(()=>u(d+1),"next"),p=n(()=>u(d-1),"previous"),g=n(()=>u(1),"first"),m=n(()=>u(l),"last");return{range:v.useMemo(()=>{if(r*2+3+t*2>=l)return Je(1,l);const h=Math.max(d-r,t),O=Math.min(d+r,l-t),b=h>t+2,w=O<l-(t+1);if(!b&&w){const P=r*2+t+2;return[...Je(1,P),Kr,...Je(l-(t-1),l)]}if(b&&!w){const P=t+1+2*r;return[...Je(1,t),Kr,...Je(l-P,l)]}return[...Je(1,t),Kr,...Je(h,O),Kr,...Je(l-t+1,l)]},[l,r,d]),active:d,setPage:u,next:f,previous:p,first:g,last:m}}n(zg,"usePagination");function Xl(e){const r=v.useRef();return v.useEffect(()=>{r.current=e},[e]),r.current}n(Xl,"usePrevious");function Rg(){const[e,r]=v.useState(!1);Vp(()=>{r(typeof window<"u"&&"EyeDropper"in window)},[]);const t=v.useCallback((a={})=>{if(e)return new window.EyeDropper().open(a)},[e]);return{supported:e,open:t}}n(Rg,"useEyeDropper");const dt={context:"Accordion component was not found in the tree",itemContext:"Accordion.Item component was not found in the tree",value:"Accordion.Item component was rendered with invalid value or without value"},[Eg,ut]=Lr(dt.context);function jg({children:e,multiple:r,value:t,defaultValue:a,onChange:s,id:i,loop:l,transitionDuration:d,disableChevronRotation:c,chevronPosition:u,chevronSize:f,order:p,chevron:g,variant:m,radius:y,classNames:_,styles:h,unstyled:O}){const b=Ge(i),[w,P]=$e({value:t,defaultValue:a,finalValue:r?[]:null,onChange:s});return o(Eg,{value:{isItemActive:n(I=>Array.isArray(w)?w.includes(I):I===w,"isItemActive"),onChange:n(I=>{const x=Array.isArray(w)?w.includes(I)?w.filter(T=>T!==I):[...w,I]:I===w?null:I;P(x)},"handleItemChange"),getControlId:ct(`${b}-control`,dt.value),getRegionId:ct(`${b}-panel`,dt.value),transitionDuration:d,disableChevronRotation:c,chevronPosition:u,chevronSize:f,order:p,chevron:g,loop:l,variant:m,radius:y,classNames:_,styles:h,unstyled:O},children:e})}n(jg,"AccordionProvider");const[Dg,Yl]=Lr(dt.itemContext);function Tg(e,{variant:r,radius:t}){const a=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3],s=e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0],i=e.fn.radius(t);return r==="default"?{color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,borderBottom:`1px solid ${a}`}:r==="contained"?{border:`1px solid ${a}`,transition:"background-color 150ms ease","&[data-active]":{backgroundColor:s},"&:first-of-type":{borderTopRightRadius:i,borderTopLeftRadius:i,"& > [data-accordion-control]":{borderTopRightRadius:i,borderTopLeftRadius:i}},"&:last-of-type":{borderBottomRightRadius:i,borderBottomLeftRadius:i,"& > [data-accordion-control]":{borderBottomRightRadius:i,borderBottomLeftRadius:i}},"& + &":{borderTop:0}}:r==="filled"?{borderRadius:i,"&[data-active]":{backgroundColor:s}}:r==="separated"?{borderRadius:i,backgroundColor:s,border:"1px solid transparent",transition:"background-color 150ms ease","& + &":{marginTop:e.spacing.md},"&[data-active]":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.white,borderColor:a}}:{}}n(Tg,"getVariantStyles$4");var Lg=M((e,r)=>({item:Tg(e,r)})),Ag=Object.defineProperty,pt=Object.getOwnPropertySymbols,Zl=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,uo=n((e,r,t)=>r in e?Ag(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1x"),Vg=n((e,r)=>{for(var t in r)Zl.call(r,t)&&uo(e,t,r[t]);if(pt)for(var t of pt(r))Jl.call(r,t)&&uo(e,t,r[t]);return e},"__spreadValues$1x"),Mg=n((e,r)=>{var t={};for(var a in e)Zl.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&pt)for(var a of pt(e))r.indexOf(a)<0&&Jl.call(e,a)&&(t[a]=e[a]);return t},"__objRest$Y");const Fg={},Ql=v.forwardRef((e,r)=>{const t=G("AccordionItem",Fg,e),{children:a,className:s,value:i}=t,l=Mg(t,["children","className","value"]),d=ut(),{classes:c,cx:u}=Lg({variant:d.variant,radius:d.radius},{name:"Accordion",classNames:d.classNames,styles:d.styles,unstyled:d.unstyled});return o(Dg,{value:{value:i},children:o(re,{...Vg({ref:r,className:u(c.item,s),"data-active":d.isItemActive(i)||void 0},l),children:a})})});Ql.displayName="@mantine/core/AccordionItem";var Bg=Object.defineProperty,Hg=Object.defineProperties,Wg=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,ec=Object.prototype.hasOwnProperty,rc=Object.prototype.propertyIsEnumerable,po=n((e,r,t)=>r in e?Bg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1w"),qr=n((e,r)=>{for(var t in r||(r={}))ec.call(r,t)&&po(e,t,r[t]);if(ft)for(var t of ft(r))rc.call(r,t)&&po(e,t,r[t]);return e},"__spreadValues$1w"),Gg=n((e,r)=>Hg(e,Wg(r)),"__spreadProps$L"),Ug=n((e,r)=>{var t={};for(var a in e)ec.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&ft)for(var a of ft(e))r.indexOf(a)<0&&rc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$X");function Kg(e,{variant:r}){return r==="default"||r==="contained"?e.fn.hover({backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.colors.gray[0]}):{}}n(Kg,"getVariantStyles$3");var qg=M((e,r)=>{var t=r,{transitionDuration:a,chevronPosition:s,chevronSize:i}=t,l=Ug(t,["transitionDuration","chevronPosition","chevronSize"]);return{icon:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:s==="left"?0:e.spacing.sm,marginLeft:s==="left"?e.spacing.lg:0},chevron:{display:"flex",alignItems:"center",justifyContent:"center",transition:`transform ${a}ms ease`,marginRight:s==="right"?0:e.spacing.sm,marginLeft:s==="right"?e.spacing.lg:0,width:i,minWidth:i,"&[data-rotate]":{transform:"rotate(180deg)"}},label:{color:"inherit",fontWeight:400,flex:1,overflow:"hidden",textOverflow:"ellipsis"},itemTitle:{margin:0,padding:0},control:Gg(qr(qr(qr({},e.fn.focusStyles()),e.fn.fontStyles()),Kg(e,l)),{width:"100%",display:"flex",alignItems:"center",flexDirection:s==="right"?"row-reverse":"row",padding:`${e.spacing.md}px ${e.spacing.md/2}px`,paddingLeft:s==="right"?`calc(${e.spacing.sm}px + 4px)`:null,textAlign:"left",color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,"&:disabled":qr({opacity:.4,cursor:"not-allowed"},e.fn.hover({backgroundColor:"transparent"}))})}}),Xg=Object.defineProperty,Yg=Object.defineProperties,Zg=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,tc=Object.prototype.hasOwnProperty,ac=Object.prototype.propertyIsEnumerable,fo=n((e,r,t)=>r in e?Xg(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1v"),Jg=n((e,r)=>{for(var t in r)tc.call(r,t)&&fo(e,t,r[t]);if(gt)for(var t of gt(r))ac.call(r,t)&&fo(e,t,r[t]);return e},"__spreadValues$1v"),Qg=n((e,r)=>Yg(e,Zg(r)),"__spreadProps$K"),em=n((e,r)=>{var t={};for(var a in e)tc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&gt)for(var a of gt(e))r.indexOf(a)<0&&ac.call(e,a)&&(t[a]=e[a]);return t},"__objRest$W");const rm={},nc=v.forwardRef((e,r)=>{const t=G("AccordionControl",rm,e),{disabled:a,onKeyDown:s,onClick:i,chevron:l,children:d,className:c,icon:u}=t,f=em(t,["disabled","onKeyDown","onClick","chevron","children","className","icon"]),p=ut(),{value:g}=Yl(),{classes:m,cx:y}=qg({transitionDuration:p.transitionDuration,chevronPosition:p.chevronPosition,chevronSize:p.chevronSize,variant:p.variant,radius:p.radius},{name:"Accordion",classNames:p.classNames,styles:p.styles,unstyled:p.unstyled}),_=p.isItemActive(g),h=typeof p.order=="number",O=`h${p.order}`,b=S(Or,{...Qg(Jg({},f),{ref:r,"data-accordion-control":!0,disabled:a,className:y(m.control,c),onClick:n(w=>{i==null||i(w),p.onChange(g)},"onClick"),type:"button","data-active":_||void 0,"aria-expanded":_,"aria-controls":p.getRegionId(g),id:p.getControlId(g),unstyled:p.unstyled,onKeyDown:zl({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:p.loop,orientation:"vertical",onKeyDown:s})}),children:[o("div",{className:m.chevron,"data-rotate":!p.disableChevronRotation&&_||void 0,children:l||p.chevron}),o("div",{className:m.label,children:d}),u&&o("div",{className:m.icon,children:u})]});return h?o(O,{className:m.itemTitle,children:b}):b});nc.displayName="@mantine/core/AccordionControl";var tm=Object.defineProperty,am=Object.defineProperties,nm=Object.getOwnPropertyDescriptors,go=Object.getOwnPropertySymbols,om=Object.prototype.hasOwnProperty,sm=Object.prototype.propertyIsEnumerable,mo=n((e,r,t)=>r in e?tm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1u"),im=n((e,r)=>{for(var t in r||(r={}))om.call(r,t)&&mo(e,t,r[t]);if(go)for(var t of go(r))sm.call(r,t)&&mo(e,t,r[t]);return e},"__spreadValues$1u"),lm=n((e,r)=>am(e,nm(r)),"__spreadProps$J"),cm=M((e,r)=>({panel:lm(im({},e.fn.fontStyles()),{wordBreak:"break-word",lineHeight:e.lineHeight}),content:{padding:e.spacing.md,paddingTop:`calc(${e.spacing.xs}px / 2)`}})),dm=Object.defineProperty,um=Object.defineProperties,pm=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,vo=n((e,r,t)=>r in e?dm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1t"),fm=n((e,r)=>{for(var t in r)oc.call(r,t)&&vo(e,t,r[t]);if(mt)for(var t of mt(r))sc.call(r,t)&&vo(e,t,r[t]);return e},"__spreadValues$1t"),gm=n((e,r)=>um(e,pm(r)),"__spreadProps$I"),mm=n((e,r)=>{var t={};for(var a in e)oc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&mt)for(var a of mt(e))r.indexOf(a)<0&&sc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$V");const vm={};function ic(e){const r=G("AccordionPanel",vm,e),{children:t,className:a}=r,s=mm(r,["children","className"]),i=ut(),{value:l}=Yl(),{classNames:d,styles:c,unstyled:u}=ut(),{classes:f,cx:p}=cm({variant:i.variant,radius:i.radius},{name:"Accordion",classNames:d,styles:c,unstyled:u});return o($a,{...gm(fm({},s),{className:p(f.panel,a),in:i.isItemActive(l),transitionDuration:i.transitionDuration,role:"region",id:i.getRegionId(l),"aria-labelledby":i.getControlId(l)}),children:o("div",{className:f.content,children:t})})}n(ic,"AccordionPanel");ic.displayName="@mantine/core/AccordionPanel";var hm=Object.defineProperty,ho=Object.getOwnPropertySymbols,ym=Object.prototype.hasOwnProperty,_m=Object.prototype.propertyIsEnumerable,yo=n((e,r,t)=>r in e?hm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1s"),bm=n((e,r)=>{for(var t in r||(r={}))ym.call(r,t)&&yo(e,t,r[t]);if(ho)for(var t of ho(r))_m.call(r,t)&&yo(e,t,r[t]);return e},"__spreadValues$1s");function Rn(e){return o("svg",{...bm({viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),children:o("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"})})}n(Rn,"ChevronIcon");var wm=Object.defineProperty,Om=Object.defineProperties,Pm=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,lc=Object.prototype.hasOwnProperty,cc=Object.prototype.propertyIsEnumerable,_o=n((e,r,t)=>r in e?wm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1r"),Sm=n((e,r)=>{for(var t in r)lc.call(r,t)&&_o(e,t,r[t]);if(vt)for(var t of vt(r))cc.call(r,t)&&_o(e,t,r[t]);return e},"__spreadValues$1r"),$m=n((e,r)=>Om(e,Pm(r)),"__spreadProps$H"),xm=n((e,r)=>{var t={};for(var a in e)lc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&vt)for(var a of vt(e))r.indexOf(a)<0&&cc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$U");const Cm={multiple:!1,disableChevronRotation:!1,transitionDuration:200,chevronPosition:"right",variant:"default",chevronSize:24,chevron:o(Rn,{})};function Vr(e){const r=G("Accordion",Cm,e),{id:t,loop:a,children:s,multiple:i,value:l,defaultValue:d,onChange:c,transitionDuration:u,disableChevronRotation:f,chevronPosition:p,chevronSize:g,order:m,chevron:y,classNames:_,styles:h,unstyled:O,variant:b,radius:w}=r,P=xm(r,["id","loop","children","multiple","value","defaultValue","onChange","transitionDuration","disableChevronRotation","chevronPosition","chevronSize","order","chevron","classNames","styles","unstyled","variant","radius"]);return o(jg,{id:t,multiple:i,value:l,defaultValue:d,onChange:c,loop:a,transitionDuration:u,disableChevronRotation:f,chevronPosition:p,chevronSize:g,order:m,chevron:y,variant:b,radius:w,classNames:_,styles:h,unstyled:O,children:o(re,{...$m(Sm({},P),{"data-accordion":!0}),children:s})})}n(Vr,"Accordion");Vr.Item=Ql;Vr.Control=nc;Vr.Panel=ic;Vr.displayName="@mantine/core/Accordion";var Nm=Object.defineProperty,Im=Object.defineProperties,km=Object.getOwnPropertyDescriptors,bo=Object.getOwnPropertySymbols,zm=Object.prototype.hasOwnProperty,Rm=Object.prototype.propertyIsEnumerable,wo=n((e,r,t)=>r in e?Nm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1q"),Ha=n((e,r)=>{for(var t in r||(r={}))zm.call(r,t)&&wo(e,t,r[t]);if(bo)for(var t of bo(r))Rm.call(r,t)&&wo(e,t,r[t]);return e},"__spreadValues$1q"),Oo=n((e,r)=>Im(e,km(r)),"__spreadProps$G");function Em({variant:e,color:r,theme:t}){if(e==="filled")return{backgroundColor:t.fn.variant({variant:"filled",color:r}).background,color:t.white};if(e==="outline"){const s=t.fn.variant({variant:"outline",color:r});return{color:s.color,borderColor:s.border,backgroundColor:t.colorScheme==="dark"?t.colors.dark[6]:t.white}}const a=t.fn.variant({variant:"light",color:r});return{backgroundColor:a.background,color:a.color}}n(Em,"getVariantStyles$2");var jm=M((e,{color:r,radius:t,variant:a})=>({root:Ha(Oo(Ha({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",padding:`${e.spacing.sm}px ${e.spacing.md}px`,borderRadius:e.fn.radius(t),border:"1px solid transparent"}),Em({variant:a,color:r,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:7,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:20,height:20,display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:Oo(Ha({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:a==="filled"?e.white:e.colorScheme==="dark"?a==="light"?e.white:e.colors.dark[0]:e.black}),closeButton:{position:"absolute",top:e.spacing.sm,right:e.spacing.sm,color:"inherit"}})),Dm=Object.defineProperty,ht=Object.getOwnPropertySymbols,dc=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable,Po=n((e,r,t)=>r in e?Dm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1p"),Tm=n((e,r)=>{for(var t in r)dc.call(r,t)&&Po(e,t,r[t]);if(ht)for(var t of ht(r))uc.call(r,t)&&Po(e,t,r[t]);return e},"__spreadValues$1p"),Lm=n((e,r)=>{var t={};for(var a in e)dc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&ht)for(var a of ht(e))r.indexOf(a)<0&&uc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$T");const Am={variant:"light"},pc=v.forwardRef((e,r)=>{const t=G("Alert",Am,e),{id:a,className:s,title:i,variant:l,children:d,color:c,classNames:u,icon:f,styles:p,onClose:g,radius:m,withCloseButton:y,closeButtonLabel:_,unstyled:h}=t,O=Lm(t,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:b,cx:w}=jm({color:c,radius:m,variant:l},{classNames:u,styles:p,unstyled:h,name:"Alert"}),P=Ge(a),C=i&&`${P}-title`,z=`${P}-body`;return o(re,{...Tm({id:P,role:"alert","aria-labelledby":C,"aria-describedby":z,className:w(b.root,b[l],s),ref:r},O),children:S("div",{className:b.wrapper,children:[f&&o("div",{className:b.icon,children:f}),S("div",{className:b.body,children:[i&&o("div",{className:b.title,"data-with-close-button":y||void 0,children:o("span",{id:C,className:b.label,children:i})}),y&&o(Cr,{className:b.closeButton,onClick:g,variant:"transparent",size:16,iconSize:16,"aria-label":_}),o("div",{id:z,className:b.message,children:d})]})]})})});pc.displayName="@mantine/core/Alert";var Vm=Object.defineProperty,So=Object.getOwnPropertySymbols,Mm=Object.prototype.hasOwnProperty,Fm=Object.prototype.propertyIsEnumerable,$o=n((e,r,t)=>r in e?Vm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1o"),Bm=n((e,r)=>{for(var t in r||(r={}))Mm.call(r,t)&&$o(e,t,r[t]);if(So)for(var t of So(r))Fm.call(r,t)&&$o(e,t,r[t]);return e},"__spreadValues$1o");const Hm={fixed:!1,position:{top:0,right:0},hiddenBreakpoint:"md",hidden:!1},En=v.forwardRef((e,r)=>{const t=G("Aside",Hm,e);return o(Ef,{...Bm({section:"aside",__staticSelector:"Aside",ref:r},t)})});En.Section=jf;En.displayName="@mantine/core/Aside";var Wm=Object.defineProperty,Gm=Object.defineProperties,Um=Object.getOwnPropertyDescriptors,xo=Object.getOwnPropertySymbols,Km=Object.prototype.hasOwnProperty,qm=Object.prototype.propertyIsEnumerable,Co=n((e,r,t)=>r in e?Wm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1n"),Xm=n((e,r)=>{for(var t in r||(r={}))Km.call(r,t)&&Co(e,t,r[t]);if(xo)for(var t of xo(r))qm.call(r,t)&&Co(e,t,r[t]);return e},"__spreadValues$1n"),Ym=n((e,r)=>Gm(e,Um(r)),"__spreadProps$F");const Zm={fixed:!1,position:{bottom:0,left:0,right:0}},fc=v.forwardRef((e,r)=>{const t=G("Footer",Zm,e);return o(Df,{...Ym(Xm({section:"footer",__staticSelector:"Footer"},t),{ref:r})})});fc.displayName="@mantine/core/Footer";var Jm=M((e,{ratio:r})=>({root:{position:"relative",maxWidth:"100%","&::before":{content:'""',height:0,display:"block",paddingBottom:`${1/r*100}%`},"&::after":{content:'""',display:"table",clear:"both"},"& > *:not(style)":{overflow:"hidden",position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}})),Qm=Object.defineProperty,yt=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,No=n((e,r,t)=>r in e?Qm(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1m"),ev=n((e,r)=>{for(var t in r)gc.call(r,t)&&No(e,t,r[t]);if(yt)for(var t of yt(r))mc.call(r,t)&&No(e,t,r[t]);return e},"__spreadValues$1m"),rv=n((e,r)=>{var t={};for(var a in e)gc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&yt)for(var a of yt(e))r.indexOf(a)<0&&mc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$S");const vc=v.forwardRef((e,r)=>{const t=G("AspectRatio",{},e),{className:a,ratio:s,children:i,unstyled:l}=t,d=rv(t,["className","ratio","children","unstyled"]),{classes:c,cx:u}=Jm({ratio:s},{name:"AspectRatio",unstyled:l});return o(re,{...ev({ref:r,className:u(c.root,a)},d),children:i})});vc.displayName="@mantine/core/AspectRatio";function tv({data:e,limit:r,value:t,filter:a}){const s=[];for(let i=0;i<e.length&&(a(t,e[i])&&s.push(e[i]),!(s.length>=r));i+=1);return s}n(tv,"filterData$1");var av=M(()=>({wrapper:{position:"relative"}})),nv=Object.defineProperty,ov=Object.defineProperties,sv=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,hc=Object.prototype.hasOwnProperty,yc=Object.prototype.propertyIsEnumerable,Io=n((e,r,t)=>r in e?nv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1l"),Wa=n((e,r)=>{for(var t in r||(r={}))hc.call(r,t)&&Io(e,t,r[t]);if(_t)for(var t of _t(r))yc.call(r,t)&&Io(e,t,r[t]);return e},"__spreadValues$1l"),ko=n((e,r)=>ov(e,sv(r)),"__spreadProps$E"),iv=n((e,r)=>{var t={};for(var a in e)hc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&_t)for(var a of _t(e))r.indexOf(a)<0&&yc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$R");function lv(e,r){return r.value.toLowerCase().trim().includes(e.toLowerCase().trim())}n(lv,"defaultFilter$2");const cv={required:!1,size:"sm",shadow:"sm",limit:5,itemComponent:Rl,transition:"pop",transitionDuration:0,initiallyOpened:!1,filter:lv,switchDirectionOnFlip:!1,zIndex:cr("popover"),dropdownPosition:"flip",maxDropdownHeight:"auto",positionDependencies:[]},_c=v.forwardRef((e,r)=>{const t=Pr("Autocomplete",cv,e),{inputProps:a,wrapperProps:s,shadow:i,data:l,limit:d,value:c,defaultValue:u,onChange:f,unstyled:p,itemComponent:g,onItemSubmit:m,onKeyDown:y,onFocus:_,onBlur:h,onClick:O,transition:b,transitionDuration:w,initiallyOpened:P,transitionTimingFunction:C,classNames:z,styles:I,filter:x,nothingFound:T,onDropdownClose:$,onDropdownOpen:D,withinPortal:N,switchDirectionOnFlip:k,zIndex:j,dropdownPosition:Z,maxDropdownHeight:U,dropdownComponent:H,positionDependencies:ae,readOnly:R,hoverOnSearchChange:E}=t,A=iv(t,["inputProps","wrapperProps","shadow","data","limit","value","defaultValue","onChange","unstyled","itemComponent","onItemSubmit","onKeyDown","onFocus","onBlur","onClick","transition","transitionDuration","initiallyOpened","transitionTimingFunction","classNames","styles","filter","nothingFound","onDropdownClose","onDropdownOpen","withinPortal","switchDirectionOnFlip","zIndex","dropdownPosition","maxDropdownHeight","dropdownComponent","positionDependencies","readOnly","hoverOnSearchChange"]),{classes:Y}=av(null,{classNames:z,styles:I,name:"Autocomplete",unstyled:p}),[q,L]=v.useState(P),[ie,K]=v.useState(-1),[oe,pe]=v.useState("column"),J=v.useRef(null),[ce,W]=v.useState(!1),[ee,le]=$e({value:c,defaultValue:u,finalValue:"",onChange:f}),ne=n(Q=>{L(Q);const de=Q?D:$;typeof de=="function"&&de()},"setDropdownOpened");Qe(()=>{K(E&&ee?0:-1)},[ee,E]);const ye=n(Q=>{le(Q.value),typeof m=="function"&&m(Q),ne(!1)},"handleItemClick"),xe=l.map(Q=>typeof Q=="string"?{value:Q}:Q),se=Nn({data:tv({data:xe,value:ee,limit:d,filter:x})}),je=n(Q=>{if(ce)return;typeof y=="function"&&y(Q);const de=oe==="column",Fe=n(()=>{K(Te=>Te<se.length-1?Te+1:Te)},"handleNext"),De=n(()=>{K(Te=>Te>0?Te-1:Te)},"handlePrevious");switch(Q.key){case"ArrowUp":{Q.preventDefault(),de?De():Fe();break}case"ArrowDown":{Q.preventDefault(),de?Fe():De();break}case"Enter":{se[ie]&&q&&(Q.preventDefault(),le(se[ie].value),typeof m=="function"&&m(se[ie]),ne(!1));break}case"Escape":q&&(Q.preventDefault(),ne(!1))}},"handleInputKeydown"),Pe=n(Q=>{typeof _=="function"&&_(Q),ne(!0)},"handleInputFocus"),Oe=n(Q=>{typeof h=="function"&&h(Q),ne(!1)},"handleInputBlur"),V=n(Q=>{typeof O=="function"&&O(Q),ne(!0)},"handleInputClick"),X=q&&(se.length>0||se.length===0&&!!T);return o(we.Wrapper,{...ko(Wa({},s),{__staticSelector:"Autocomplete"}),children:S(yr,{opened:X,transition:b,transitionDuration:w,shadow:"sm",withinPortal:N,__staticSelector:"Autocomplete",onDirectionChange:pe,switchDirectionOnFlip:k,zIndex:j,dropdownPosition:Z,positionDependencies:ae,classNames:z,styles:I,unstyled:p,readOnly:R,children:[o(yr.Target,{children:o("div",{className:Y.wrapper,role:"combobox","aria-haspopup":"listbox","aria-owns":X?`${a.id}-items`:null,"aria-controls":a.id,"aria-expanded":X,onMouseLeave:n(()=>K(-1),"onMouseLeave"),tabIndex:-1,children:o(we,{...ko(Wa(Wa({type:"search",autoComplete:"off"},a),A),{readOnly:R,"data-mantine-stop-propagation":q,ref:er(r,J),onKeyDown:je,classNames:z,styles:I,__staticSelector:"Autocomplete",value:ee,onChange:n(Q=>{le(Q.currentTarget.value),ne(!0)},"onChange"),onFocus:Pe,onBlur:Oe,onClick:V,onCompositionStart:n(()=>W(!0),"onCompositionStart"),onCompositionEnd:n(()=>W(!1),"onCompositionEnd"),"aria-autocomplete":"list","aria-controls":X?`${a.id}-items`:null,"aria-activedescendant":ie>=0?`${a.id}-${ie}`:null})})})}),o(yr.Dropdown,{component:H||xa,maxHeight:U,direction:oe,id:a.id,__staticSelector:"Autocomplete",classNames:z,styles:I,children:o(El,{data:se,hovered:ie,classNames:z,styles:I,uuid:a.id,__staticSelector:"Autocomplete",onItemHover:K,onItemSelect:ye,itemComponent:g,size:a.size,nothingFound:T})})]})})});_c.displayName="@mantine/core/Autocomplete";var dv=Object.defineProperty,uv=Object.defineProperties,pv=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,zo=n((e,r,t)=>r in e?dv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1k"),Ro=n((e,r)=>{for(var t in r||(r={}))bc.call(r,t)&&zo(e,t,r[t]);if(bt)for(var t of bt(r))wc.call(r,t)&&zo(e,t,r[t]);return e},"__spreadValues$1k"),Eo=n((e,r)=>uv(e,pv(r)),"__spreadProps$D"),fv=n((e,r)=>{var t={};for(var a in e)bc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&bt)for(var a of bt(e))r.indexOf(a)<0&&wc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$Q");const gv={radius:0},Oc=v.forwardRef((e,r)=>{const t=G("BackgroundImage",gv,e),{src:a,radius:s,sx:i}=t,l=fv(t,["src","radius","sx"]);return o(re,{...Eo(Ro({},l),{ref:r,sx:[d=>Eo(Ro({},d.fn.focusStyles()),{backgroundSize:"cover",backgroundPosition:"center",display:"block",width:"100%",border:0,textDecoration:"none",color:d.colorScheme==="dark"?d.colors.dark[0]:d.black,backgroundImage:`url(${a})`,borderRadius:d.fn.radius(s)}),...jr(i)]})})});Oc.displayName="@mantine/core/BackgroundImage";const mv=Dr(Oc);var vv=Object.defineProperty,jo=Object.getOwnPropertySymbols,hv=Object.prototype.hasOwnProperty,yv=Object.prototype.propertyIsEnumerable,Do=n((e,r,t)=>r in e?vv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1j"),_v=n((e,r)=>{for(var t in r||(r={}))hv.call(r,t)&&Do(e,t,r[t]);if(jo)for(var t of jo(r))yv.call(r,t)&&Do(e,t,r[t]);return e},"__spreadValues$1j");function bv(e){return o("svg",{..._v({width:"20",height:"20",viewBox:"0 0 409.294 409.294",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),children:o("path",{d:"M0 204.647v175.412h175.412V204.647H58.471c0-64.48 52.461-116.941 116.941-116.941V29.235C78.684 29.235 0 107.919 0 204.647zM409.294 87.706V29.235c-96.728 0-175.412 78.684-175.412 175.412v175.412h175.412V204.647H292.353c0-64.48 52.461-116.941 116.941-116.941z"})})}n(bv,"QuoteIcon");var wv=Object.defineProperty,Ov=Object.defineProperties,Pv=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,Sv=Object.prototype.hasOwnProperty,$v=Object.prototype.propertyIsEnumerable,Lo=n((e,r,t)=>r in e?wv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1i"),xv=n((e,r)=>{for(var t in r||(r={}))Sv.call(r,t)&&Lo(e,t,r[t]);if(To)for(var t of To(r))$v.call(r,t)&&Lo(e,t,r[t]);return e},"__spreadValues$1i"),Cv=n((e,r)=>Ov(e,Pv(r)),"__spreadProps$C"),Nv=M((e,{color:r})=>({root:Cv(xv({},e.fn.fontStyles()),{fontSize:e.fontSizes.lg,lineHeight:e.lineHeight,color:e.colorScheme==="dark"?e.colors.dark[0]:e.black,margin:0,borderTopRightRadius:e.radius.sm,borderBottomRightRadius:e.radius.sm,padding:`${e.spacing.md}px ${e.spacing.lg}px`}),inner:{display:"flex"},body:{flex:1,overflow:"hidden",textOverflow:"ellipsis"},icon:{color:e.fn.variant({variant:"filled",color:r}).background,marginRight:e.spacing.lg,marginTop:2,width:22},cite:{display:"block",fontSize:e.fontSizes.sm,marginTop:e.spacing.xs,color:e.colorScheme==="dark"?e.colors.dark[2]:e.colors.gray[6],overflow:"hidden",textOverflow:"ellipsis"}})),Iv=Object.defineProperty,wt=Object.getOwnPropertySymbols,Pc=Object.prototype.hasOwnProperty,Sc=Object.prototype.propertyIsEnumerable,Ao=n((e,r,t)=>r in e?Iv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1h"),kv=n((e,r)=>{for(var t in r)Pc.call(r,t)&&Ao(e,t,r[t]);if(wt)for(var t of wt(r))Sc.call(r,t)&&Ao(e,t,r[t]);return e},"__spreadValues$1h"),zv=n((e,r)=>{var t={};for(var a in e)Pc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&wt)for(var a of wt(e))r.indexOf(a)<0&&Sc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$P");const Rv={color:"gray",icon:o(bv,{})},$c=v.forwardRef((e,r)=>{const t=G("Blockquote",Rv,e),{className:a,color:s,icon:i,cite:l,children:d,classNames:c,styles:u,unstyled:f}=t,p=zv(t,["className","color","icon","cite","children","classNames","styles","unstyled"]),{classes:g,cx:m}=Nv({color:s},{classNames:c,styles:u,unstyled:f,name:"Blockquote"});return o(re,{...kv({component:"blockquote",className:m(g.root,a),ref:r},p),children:S("div",{className:g.inner,children:[i&&o("div",{className:g.icon,children:i}),S("div",{className:g.body,children:[d,l&&o("cite",{className:g.cite,children:l})]})]})})});$c.displayName="@mantine/core/Blockquote";var Ev=Object.defineProperty,jv=Object.defineProperties,Dv=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Tv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Mo=n((e,r,t)=>r in e?Ev(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1g"),Av=n((e,r)=>{for(var t in r||(r={}))Tv.call(r,t)&&Mo(e,t,r[t]);if(Vo)for(var t of Vo(r))Lv.call(r,t)&&Mo(e,t,r[t]);return e},"__spreadValues$1g"),Vv=n((e,r)=>jv(e,Dv(r)),"__spreadProps$B"),Mv=M((e,{color:r})=>{const t=r||(e.colorScheme==="dark"?"dark":"gray"),a=e.fn.variant({color:t,variant:"light"});return{root:Vv(Av({},e.fn.fontStyles()),{lineHeight:e.lineHeight,padding:`2px calc(${e.spacing.xs}px / 2)`,borderRadius:e.radius.sm,color:e.colorScheme==="dark"?t==="dark"?e.colors.dark[0]:e.white:e.colors.dark[7],backgroundColor:e.colorScheme==="dark"&&t==="dark"?e.colors.dark[5]:a.background,fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs}),block:{padding:e.spacing.xs,margin:0,overflowX:"auto"}}}),Fv=Object.defineProperty,Ot=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty,Cc=Object.prototype.propertyIsEnumerable,Fo=n((e,r,t)=>r in e?Fv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1f"),Bo=n((e,r)=>{for(var t in r)xc.call(r,t)&&Fo(e,t,r[t]);if(Ot)for(var t of Ot(r))Cc.call(r,t)&&Fo(e,t,r[t]);return e},"__spreadValues$1f"),Bv=n((e,r)=>{var t={};for(var a in e)xc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Ot)for(var a of Ot(e))r.indexOf(a)<0&&Cc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$O");const Nc=v.forwardRef((e,r)=>{const t=G("Code",{},e),{className:a,children:s,block:i,color:l,unstyled:d}=t,c=Bv(t,["className","children","block","color","unstyled"]),{classes:u,cx:f}=Mv({color:l},{name:"Code",unstyled:d});return i?o(re,{...Bo({component:"pre",dir:"ltr",className:f(u.root,u.block,a),ref:r},c),children:s}):o(re,{...Bo({component:"code",className:f(u.root,a),ref:r,dir:"ltr"},c),children:s})});Nc.displayName="@mantine/core/Code";var Hv=Object.defineProperty,Wv=Object.defineProperties,Gv=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertySymbols,Uv=Object.prototype.hasOwnProperty,Kv=Object.prototype.propertyIsEnumerable,Wo=n((e,r,t)=>r in e?Hv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1e"),qv=n((e,r)=>{for(var t in r||(r={}))Uv.call(r,t)&&Wo(e,t,r[t]);if(Ho)for(var t of Ho(r))Kv.call(r,t)&&Wo(e,t,r[t]);return e},"__spreadValues$1e"),Xv=n((e,r)=>Wv(e,Gv(r)),"__spreadProps$A"),Yv=M((e,{size:r,radius:t})=>{const a=e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3];return{root:Xv(qv({},e.fn.focusStyles()),{width:r,height:r,WebkitTapHighlightColor:"transparent",border:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),appearance:"none",WebkitAppearance:"none",padding:0,position:"relative",overflow:"hidden"}),overlay:{position:"absolute",borderRadius:e.fn.size({size:t,sizes:e.radius}),top:0,left:0,right:0,bottom:0},children:{display:"inline-flex",justifyContent:"center",alignItems:"center"},shadowOverlay:{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset",zIndex:1},alphaOverlay:{backgroundImage:`linear-gradient(45deg, ${a} 25%, transparent 25%), linear-gradient(-45deg, ${a} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${a} 75%), linear-gradient(-45deg, ${e.colorScheme==="dark"?e.colors.dark[7]:e.white} 75%, ${a} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"}}}),Zv=Object.defineProperty,Pt=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable,Go=n((e,r,t)=>r in e?Zv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1d"),Jv=n((e,r)=>{for(var t in r)Ic.call(r,t)&&Go(e,t,r[t]);if(Pt)for(var t of Pt(r))kc.call(r,t)&&Go(e,t,r[t]);return e},"__spreadValues$1d"),Qv=n((e,r)=>{var t={};for(var a in e)Ic.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Pt)for(var a of Pt(e))r.indexOf(a)<0&&kc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$N");const eh={size:25,radius:25,withShadow:!0},zc=v.forwardRef((e,r)=>{const t=G("ColorSwatch",eh,e),{color:a,size:s,radius:i,className:l,children:d,classNames:c,styles:u,unstyled:f,withShadow:p}=t,g=Qv(t,["color","size","radius","className","children","classNames","styles","unstyled","withShadow"]),{classes:m,cx:y}=Yv({radius:i,size:s},{classNames:c,styles:u,unstyled:f,name:"ColorSwatch"});return S(re,{...Jv({className:y(m.root,l),ref:r},g),children:[o("div",{className:y(m.alphaOverlay,m.overlay)}),p&&o("div",{className:y(m.shadowOverlay,m.overlay)}),o("div",{className:m.overlay,style:{backgroundColor:a}}),o("div",{className:y(m.children,m.overlay),children:d})]})});zc.displayName="@mantine/core/ColorSwatch";const Ia=Dr(zc),He={xs:8,sm:12,md:16,lg:20,xl:22};var rh=M((e,{size:r})=>{const t=e.fn.size({size:r,sizes:He});return{thumb:{overflow:"hidden",boxSizing:"border-box",position:"absolute",boxShadow:"0 0 1px rgba(0, 0, 0, .6)",border:`2px solid ${e.white}`,backgroundColor:"transparent",width:t,height:t,borderRadius:t}}}),th=Object.defineProperty,Uo=Object.getOwnPropertySymbols,ah=Object.prototype.hasOwnProperty,nh=Object.prototype.propertyIsEnumerable,Ko=n((e,r,t)=>r in e?th(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1c"),oh=n((e,r)=>{for(var t in r||(r={}))ah.call(r,t)&&Ko(e,t,r[t]);if(Uo)for(var t of Uo(r))nh.call(r,t)&&Ko(e,t,r[t]);return e},"__spreadValues$1c");function jn({position:e,className:r,styles:t,classNames:a,style:s,size:i,__staticSelector:l,unstyled:d}){const{classes:c,cx:u}=rh({size:i},{classNames:a,styles:t,name:l,unstyled:d});return o("div",{className:u(c.thumb,r),style:oh({left:`calc(${e.x*100}% - ${He[i]/2}px)`,top:`calc(${e.y*100}% - ${He[i]/2}px)`},s)})}n(jn,"Thumb$1");jn.displayName="@mantine/core/Thumb";var sh=Object.defineProperty,qo=Object.getOwnPropertySymbols,ih=Object.prototype.hasOwnProperty,lh=Object.prototype.propertyIsEnumerable,Xo=n((e,r,t)=>r in e?sh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1b"),Yo=n((e,r)=>{for(var t in r||(r={}))ih.call(r,t)&&Xo(e,t,r[t]);if(qo)for(var t of qo(r))lh.call(r,t)&&Xo(e,t,r[t]);return e},"__spreadValues$1b"),ch=M((e,{size:r},t)=>({sliderThumb:{ref:t("sliderThumb")},slider:{position:"relative",height:e.fn.size({size:r,sizes:He})+2,boxSizing:"border-box",marginLeft:e.fn.size({size:r,sizes:He})/2,marginRight:e.fn.size({size:r,sizes:He})/2,outline:0,[`&:focus .${t("sliderThumb")}`]:Yo({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${t("sliderThumb")}`]:Yo({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},sliderOverlay:{position:"absolute",boxSizing:"border-box",top:0,bottom:0,left:-e.fn.size({size:r,sizes:He})/2-1,right:-e.fn.size({size:r,sizes:He})/2-1,borderRadius:1e3}})),dh=Object.defineProperty,uh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Rc=Object.prototype.hasOwnProperty,Ec=Object.prototype.propertyIsEnumerable,Zo=n((e,r,t)=>r in e?dh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$1a"),fh=n((e,r)=>{for(var t in r)Rc.call(r,t)&&Zo(e,t,r[t]);if(St)for(var t of St(r))Ec.call(r,t)&&Zo(e,t,r[t]);return e},"__spreadValues$1a"),gh=n((e,r)=>uh(e,ph(r)),"__spreadProps$z"),mh=n((e,r)=>{var t={};for(var a in e)Rc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&St)for(var a of St(e))r.indexOf(a)<0&&Ec.call(e,a)&&(t[a]=e[a]);return t},"__objRest$M");const Dn=v.forwardRef((e,r)=>{var t=e,{value:a,onChange:s,onChangeEnd:i,maxValue:l,round:d,size:c="md",thumbColor:u="transparent",__staticSelector:f="ColorSlider",focusable:p=!0,overlays:g,classNames:m,styles:y,className:_,unstyled:h}=t,O=mh(t,["value","onChange","onChangeEnd","maxValue","round","size","thumbColor","__staticSelector","focusable","overlays","classNames","styles","className","unstyled"]);const{classes:b,cx:w}=ch({size:c},{classNames:m,styles:y,name:f,unstyled:h}),[P,C]=v.useState({y:0,x:a/l}),z=v.useRef(P),I=n(N=>d?Math.round(N*l):N*l,"getChangeValue"),{ref:x}=Na(({x:N,y:k})=>{z.current={x:N,y:k},s(I(N))},{onScrubEnd:n(()=>{const{x:N}=z.current;i(I(N))},"onScrubEnd")});Qe(()=>{C({y:0,x:a/l})},[a]);const T=n((N,k)=>{N.preventDefault();const j=ql(k);s(I(j.x)),i(I(j.x))},"handleArrow"),$=n(N=>{switch(N.key){case"ArrowRight":{T(N,{x:P.x+.05,y:P.y});break}case"ArrowLeft":{T(N,{x:P.x-.05,y:P.y});break}}},"handleKeyDown"),D=g.map((N,k)=>o("div",{className:b.sliderOverlay,style:N},k));return S(re,{...gh(fh({},O),{ref:er(x,r),className:w(b.slider,_),role:"slider","aria-valuenow":a,"aria-valuemax":l,"aria-valuemin":0,tabIndex:p?0:-1,onKeyDown:$}),children:[D,o(jn,{__staticSelector:f,classNames:m,styles:y,position:P,style:{top:1,backgroundColor:u},className:b.sliderThumb,size:c})]})});Dn.displayName="@mantine/core/ColorSlider";var vh=Object.defineProperty,hh=Object.defineProperties,yh=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,jc=Object.prototype.hasOwnProperty,Dc=Object.prototype.propertyIsEnumerable,Jo=n((e,r,t)=>r in e?vh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$19"),_h=n((e,r)=>{for(var t in r)jc.call(r,t)&&Jo(e,t,r[t]);if($t)for(var t of $t(r))Dc.call(r,t)&&Jo(e,t,r[t]);return e},"__spreadValues$19"),bh=n((e,r)=>hh(e,yh(r)),"__spreadProps$y"),wh=n((e,r)=>{var t={};for(var a in e)jc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&$t)for(var a of $t(e))r.indexOf(a)<0&&Dc.call(e,a)&&(t[a]=e[a]);return t},"__objRest$L");const Tn=v.forwardRef((e,r)=>{var t=e,{value:a,onChange:s,onChangeEnd:i}=t,l=wh(t,["value","onChange","onChangeEnd"]);return o(Dn,{...bh(_h({},l),{ref:r,value:a,onChange:s,onChangeEnd:i,maxValue:360,thumbColor:`hsl(${a}, 100%, 50%)`,round:!0,overlays:[{backgroundImage:"linear-gradient(to right,hsl(0,100%,50%),hsl(60,100%,50%),hsl(120,100%,50%),hsl(170,100%,50%),hsl(240,100%,50%),hsl(300,100%,50%),hsl(360,100%,50%))"},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]})})});Tn.displayName="@mantine/core/HueSlider";var Oh=Object.defineProperty,Ph=Object.defineProperties,Sh=Object.getOwnPropertyDescriptors,Qo=Object.getOwnPropertySymbols,$h=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,es=n((e,r,t)=>r in e?Oh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$18"),rs=n((e,r)=>{for(var t in r||(r={}))$h.call(r,t)&&es(e,t,r[t]);if(Qo)for(var t of Qo(r))xh.call(r,t)&&es(e,t,r[t]);return e},"__spreadValues$18"),ts=n((e,r)=>Ph(e,Sh(r)),"__spreadProps$x");function Ve(e,r=0,t=10**r){return Math.round(t*e)/t}n(Ve,"round");function Ch({h:e,s:r,l:t,a}){const s=r*((t<50?t:100-t)/100);return{h:e,s:s>0?2*s/(t+s)*100:0,v:t+s,a}}n(Ch,"hslaToHsva");const Nh={grad:360/400,turn:360,rad:360/(Math.PI*2)};function Ih(e,r="deg"){return Number(e)*(Nh[r]||1)}n(Ih,"parseHue");const kh=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function as(e){const r=kh.exec(e);return r?Ch({h:Ih(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:r[5]===void 0?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}}n(as,"parseHsla");function mn({r:e,g:r,b:t,a}){const s=Math.max(e,r,t),i=s-Math.min(e,r,t),l=i?s===e?(r-t)/i:s===r?2+(t-e)/i:4+(e-r)/i:0;return{h:Ve(60*(l<0?l+6:l)),s:Ve(s?i/s*100:0),v:Ve(s/255*100),a}}n(mn,"rgbaToHsva");function vn(e){const r=e[0]==="#"?e.slice(1):e;return r.length===3?mn({r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:1}):mn({r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:1})}n(vn,"parseHex");function zh(e){const r=e[0]==="#"?e.slice(1):e,t=n(l=>Math.round(parseInt(l,16)/255*100)/100,"roundA");if(r.length===4){const l=r.slice(0,3),d=t(r[3]+r[3]);return ts(rs({},vn(l)),{a:d})}const a=r.slice(0,6),s=t(r.slice(6,8));return ts(rs({},vn(a)),{a:s})}n(zh,"parseHexa");const Rh=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function ns(e){const r=Rh.exec(e);return r?mn({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:r[7]===void 0?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}}n(ns,"parseRgba");const Tc={hex:/^#?([0-9A-F]{3}){1,2}$/i,hexa:/^#?([0-9A-F]{4}){1,2}$/i,rgb:/^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,rgba:/^rgba\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i,hsl:/hsl\(\s*(\d+)\s*,\s*(\d+(?:\.\d+)?%)\s*,\s*(\d+(?:\.\d+)?%)\)/i,hsla:/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/i},Eh={hex:vn,hexa:zh,rgb:ns,rgba:ns,hsl:as,hsla:as};function Rr(e){for(const[,r]of Object.entries(Tc))if(r.test(e))return!0;return!1}n(Rr,"isColorValid");function _r(e){if(typeof e!="string")return{h:0,s:0,v:0,a:1};if(e==="transparent")return{h:0,s:0,v:0,a:0};const r=e.trim();for(const[t,a]of Object.entries(Tc))if(a.test(r))return Eh[t](r);return{h:0,s:0,v:0,a:1}}n(_r,"parseColor");var jh=Object.defineProperty,Dh=Object.defineProperties,Th=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Lc=Object.prototype.hasOwnProperty,Ac=Object.prototype.propertyIsEnumerable,os=n((e,r,t)=>r in e?jh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$17"),Lh=n((e,r)=>{for(var t in r)Lc.call(r,t)&&os(e,t,r[t]);if(xt)for(var t of xt(r))Ac.call(r,t)&&os(e,t,r[t]);return e},"__spreadValues$17"),Ah=n((e,r)=>Dh(e,Th(r)),"__spreadProps$w"),Vh=n((e,r)=>{var t={};for(var a in e)Lc.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&xt)for(var a of xt(e))r.indexOf(a)<0&&Ac.call(e,a)&&(t[a]=e[a]);return t},"__objRest$K");const Ln=v.forwardRef((e,r)=>{var t=e,{value:a,onChange:s,onChangeEnd:i,color:l}=t,d=Vh(t,["value","onChange","onChangeEnd","color"]);const c=Re(),u=c.colorScheme==="dark"?c.colors.dark[4]:c.colors.gray[3];return o(Dn,{...Ah(Lh({},d),{ref:r,value:a,onChange:n(f=>s(Ve(f,2)),"onChange"),onChangeEnd:n(f=>i(Ve(f,2)),"onChangeEnd"),maxValue:1,round:!1,overlays:[{backgroundImage:`linear-gradient(45deg, ${u} 25%, transparent 25%), linear-gradient(-45deg, ${u} 25%, transparent 25%), linear-gradient(45deg, transparent 75%, ${u} 75%), linear-gradient(-45deg, ${c.colorScheme==="dark"?c.colors.dark[7]:c.white} 75%, ${u} 75%)`,backgroundSize:"8px 8px",backgroundPosition:"0 0, 0 4px, 4px -4px, -4px 0px"},{backgroundImage:`linear-gradient(90deg, transparent, ${l})`},{boxShadow:"rgba(0, 0, 0, .1) 0px 0px 0px 1px inset, rgb(0, 0, 0, .15) 0px 0px 4px inset"}]})})});Ln.displayName="@mantine/core/AlphaSlider";var Mh=Object.defineProperty,ss=Object.getOwnPropertySymbols,Fh=Object.prototype.hasOwnProperty,Bh=Object.prototype.propertyIsEnumerable,is=n((e,r,t)=>r in e?Mh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,"__defNormalProp$16"),Ga=n((e,r)=>{for(var t in r||(r={}))Fh.call(r,t)&&is(e,t,r[t]);if(ss)for(var t of ss(r))Bh.call(r,t)&&is(e,t,r[t]);return e},"__spreadValues$16");const Hh={xs:100,sm:110,md:120,lg:140,xl:160};var Wh=M((e,{size:r},t)=>({saturationThumb:{ref:t("saturationThumb")},saturation:{boxSizing:"border-box",position:"relative",height:e.fn.size({size:r,sizes:Hh}),borderRadius:e.radius.sm,margin:e.fn.size({size:r,sizes:He})/2,WebkitTapHighlightColor:"transparent",[`&:focus .${t("saturationThumb")}`]:Ga({},e.focusRing==="always"||e.focusRing==="auto"?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[`&:focus:not(:focus-visible) .${t("saturationThumb")}`]:Ga({},e.focusRing==="auto"||e.focusRing==="never"?e.focusRingStyles.resetStyles(e):null)},saturationOverlay:Ga({boxSizing:"border-box",borderRadius:e.radius.sm},e.fn.cover(-e.fn.size({size:r,sizes:He})/2-1))}));function Vc({h:e,s:r,v:t,a}){const s=e/360*6,i=r/100,l=t/100,d=Math.floor(s),c=l*(1-i),u=l*(1-(s-d)*i),f=l*(1-(1-s+d)*i),p=d%6;return{r:Ve([l,u,c,c,f,l][p]*255),g:Ve([f,l,l,u,c,c][p]*255),b:Ve([c,c,f,l,l,u][p]*255),a:Ve(a,2)}}n(Vc,"hsvaToRgbaObject");function ls(e,r){const{r:t,g:a,b:s,a:i}=Vc(e);return r?`rgba(${t}, ${a}, ${s}, ${Ve(i,2)})`:`rgb(${t}, ${a}, ${s})`}n(ls,"hsvaToRgba");function cs({h:e,s:r,v:t,a},s){const i=(200-r)*t/100,l={h:Math.round(e),s:Math.round(i>0&&i<200?r*t/100/(i<=100?i:200-i)*100:0),l:Math.round(i/2)};return s?`hsla(${l.h}, ${l.s}%, ${l.l}%, ${Ve(a,2)})`:`hsl(${l.h}, ${l.s}%, ${l.l}%)`}n(cs,"hsvaToHsl");function tt(e){const r=e.toString(16);return r.length<2?`0${r}`:r}n(tt,"formatHexPart");function Mc(e){const{r,g:t,b:a}=Vc(e);return`#${tt(r)}${tt(t)}${tt(a)}`}n(Mc,"hsvaToHex");function Gh(e){const r=Math.round(e.a*255);return`${Mc(e)}${tt(r)}`}n(Gh,"hsvaToHexa");const Ua={hex:Mc,hexa:n(e=>Gh(e),"hexa"),rgb:n(e=>ls(e,!1),"rgb"),rgba:n(e=>ls(e,!0),"rgba"),hsl:n(e=>cs(e,!1),"hsl"),hsla:n(e=>cs(e,!0),"hsla")};function Ae(e,r){return r?e in Ua?Ua[e](r):Ua.hex(r):"#000000"}n(Ae,"convertHsvaTo");function Fc({value:e,onChange:r,onChangeEnd:t,focusable:a=!0,__staticSelector:s="saturation",size:i,color:l,saturationLabel:d,classNames:c,styles:u,unstyled:f}){const{classes:p}=Wh({size:i},{classNames:c,styles:u,name:s,unstyled:f}),[g,m]=v.useState({x:e.s/100,y:1-e.v/100}),y=v.useRef(g),{ref:_}=Na(({x:b,y:w})=>{y.current={x:b,y:w},r({s:Math.round(b*100),v:Math.round((1-w)*100)})},{onScrubEnd:n(()=>{const{x:b,y:w}=y.current;t({s:Math.round(b*100),v:Math.round((1-w)*100)})},"onScrubEnd")});v.useEffect(()=>{m({x:e.s/100,y:1-e.v/100})},[e.s,e.v]);const h=n((b,w)=>{b