@syngrisi/syngrisi
Version:
Syngrisi - Visual Testing Tool
7 lines • 227 kB
JavaScript
var Ki=Object.defineProperty;var a=(e,t)=>Ki(e,"name",{value:t,configurable:!0});import{a0 as Fs,r as m,a1 as Ne,J as Ot,a2 as Ji,a3 as Na,j as s,a4 as Ia,u as Ee,W as As,a5 as vs,a6 as z,a7 as oe,a8 as Vs,a9 as Da,aa as Jt,B as A,ab as bs,ac as V,ad as de,ae as at,af as Hs,ag as Oe,ah as Ge,ai as K,aj as Pt,ak as Nr,al as Me,am as _e,an as Gn,ao as Ea,ap as Xi,aq as Xt,ar as Yt,as as He,at as Ms,au as Te,av as Un,aw as jr,ax as lo,ay as Aa,az as je,aA as Ta,K as kt,aB as Ut,V as xs,P as Be,aC as ys,aD as io,aE as Zt,aF as Qt,aG as za,aH as Ir,U as Et,aI as Yi,aJ as $a,aK as Dr,G as re,aL as Zi,aM as Qi,A as co,O as hs,aN as Fa,aO as ec,aP as tc,h as Se,aQ as sc,aR as rc,s as es,aS as nc,aT as oc,aU as ac,aV as lc,aW as ic,aX as cc,C as Wn,aY as dc,D as Kn,aZ as uc,a_ as pc,a$ as hc,b0 as fc,b1 as mc,b2 as gc,b3 as vc,b4 as bc,b5 as xc,L as uo,b6 as yc,b7 as Sc,M as Ma,b8 as wc,b9 as jc,ba as Cc,i as Oa,bb as kc,bc as _c,bd as Pc,be as Rc,S as Er,bf as Nc,bg as Ic,T as ee,q as ye,g as Le,bh as La,bi as Dc,bj as Ec,bk as Ac,bl as Tc,bm as zc,bn as $c,bo as Fc,bp as Mc,bq as Oc,br as Lc,bs as Bc,bt as Vc,bu as Hc,bv as qc,bw as Gc,bx as Uc,by as Wc,bz as Kc,bA as Jc,bB as Xc,bC as Yc,bD as Zc,bE as Qc,a as ut,bF as ed,Z as td,bG as sd,bH as rd,bI as nd,bJ as od,bK as ad,bL as ld,bM as id,bN as cd,bO as dd,bP as ud,E as Ba,bQ as pd,bR as hd,c as mt,p as Mt,Y as fd,bS as Xo,o as qs,l as Ct,bT as md,k as po,m as Gs,b as Us,d as gd,R as vd,x as bd,N as Va,_ as Jn,$ as jt,Q as xd,e as yd,X as Sd,z as wd,F as jd,H as Cd}from"./http-CC8JzV-G.js";import{ae as rt,af as Ar,ag as Ws,ah as Tr,ai as zr,aj as Fe,ak as $r,P as Vt,A as ho,al as Ha,am as qa,an as Ga,ao as Ua,ap as Wa,aq as Ka,ar as ts,as as Ja,c as zt,at as Xa,au as Ya,av as Za,aw as fo,ax as Qa,ay as Cr,_ as mo,az as zs,aA as Xn,aB as kd,aC as _d,aD as Pd,aE as Rd,N as ot,B as el,Z as Nd,aF as Id,d as Yn,aG as Dd,aH as Ed,aI as Ad,aJ as Td,aK as zd,aL as $d,aM as Fd,aN as Md,aO as Od,aP as Ld,aQ as Bd,aR as Vd,aS as Hd,aT as qd,aU as Gd,C as Ud,aV as Wd,aW as Kd,aX as Jd,aY as Xd,F as Yd,aZ as Zd,a_ as Qd,a7 as eu,a$ as tu,b0 as su,b1 as ru,b2 as nu,Y as ou,K as tl,L as au,b3 as lu,b4 as iu,b5 as cu,b6 as du,b7 as uu,b8 as pu,b9 as hu,ba as fu,bb as mu,bc as gu,bd as vu,be as bu,M as xu,bf as yu,bg as Su,bh as wu,bi as ju,bj as Cu,bk as ku,bl as _u,bm as Pu,bn as Ru,bo as Nu,bp as Iu,bq as Du,br as Eu,R as sl,bs as Au,a2 as Tu,bt as go,m as Ht,S as Ke,$ as Ks,bu as zu,bv as $u,bw as Fu,bx as Mu,by as Ou,bz as Lu,bA as Bu,bB as Vu,Q as rl,T as Zn,bC as Hu,bD as qu,bE as Gu,V as Uu,bF as Wu,bG as Ku,bH as Ju,bI as Xu,bJ as Yu,bK as Zu,bL as Qu,bM as ep,bN as tp,bO as sp,bP as rp,bQ as np,bR as op,bS as ap,bT as lp,bU as ip,bV as cp,bW as dp,bX as up,bY as pp,bZ as hp,b_ as fp,b$ as mp,c0 as gp,c1 as Wt,r as vp,c2 as bp,c3 as xp,l as yp,H as Sp,o as wp,g as nl,U as jp,c4 as Cp,c5 as kp,c6 as _p,s as Pp,h as st,G as Kt,j as qt,k as Os,f as Fr,D as Rp,c7 as Np,c8 as Yo,O as Ip,a5 as vo,I as Mr,x as Dp,t as ol,y as Ep,z as Ap,u as al,J as kr,a as Qn,a0 as Tp,a1 as ll,q as zp,n as $p,a3 as Zo,a4 as Fp,v as Mp,a6 as Op,w as Lp,c9 as We,E as Bp,a8 as Vp,a9 as Hp,aa as qp,ab as Gp,ac as Up,ad as Wp}from"./LogicalGroup-qEd2Ojyr.js";import{N as Kp,A as $s,a as Jp,b as Xp,c as Yp,B as Zp,d as il,T as Qp,e as eh,f as th,g as sh,h as rh,u as nh,i as oh,j as ah,I as lh}from"./IconAlertTriangle-1gFtSaOu.js";import{C as ih}from"./Center-CHBiBbZO.js";import{P as cl}from"./PasswordInput-DaqYfuPs.js";function Or(e,t){return e in t?Fs(t[e]):Fs(e)}a(Or,"getBreakpointValue");function fs(e,t){const r=e.map(n=>({value:n,px:Or(n,t)}));return r.sort((n,o)=>n.px-o.px),r}a(fs,"getSortedBreakpoints");function Je(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}a(Je,"getBaseValue");function ch(){const[e,t]=m.useState(-1);return[e,{setHovered:t,resetHovered:a(()=>t(-1),"resetHovered")}]}a(ch,"useHovered");function dl(e){return{x:rt(e.x,0,1),y:rt(e.y,0,1)}}a(dl,"clampUseMovePosition");function Lr(e,t,r="ltr"){const n=m.useRef(!1),o=m.useRef(!1),c=m.useRef(0),[l,i]=m.useState(!1);return m.useEffect(()=>{n.current=!0},[]),{ref:m.useCallback(d=>{const u=a(({x,y:k})=>{cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{if(n.current&&d){d.style.userSelect="none";const b=d.getBoundingClientRect();if(b.width&&b.height){const v=rt((x-b.left)/b.width,0,1);e({x:r==="ltr"?v:1-v,y:rt((k-b.top)/b.height,0,1)})}}})},"onScrub"),f=a(()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",g),document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",g)},"bindEvents"),p=a(()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",j),document.removeEventListener("touchend",g)},"unbindEvents"),h=a(()=>{!o.current&&n.current&&(o.current=!0,typeof t?.onScrubStart=="function"&&t.onScrubStart(),i(!0),f())},"startScrubbing"),g=a(()=>{o.current&&n.current&&(o.current=!1,i(!1),p(),setTimeout(()=>{typeof t?.onScrubEnd=="function"&&t.onScrubEnd()},0))},"stopScrubbing"),y=a(x=>{h(),x.preventDefault(),w(x)},"onMouseDown"),w=a(x=>u({x:x.clientX,y:x.clientY}),"onMouseMove"),S=a(x=>{x.cancelable&&x.preventDefault(),h(),j(x)},"onTouchStart"),j=a(x=>{x.cancelable&&x.preventDefault(),u({x:x.changedTouches[0].clientX,y:x.changedTouches[0].clientY})},"onTouchMove");return d?.addEventListener("mousedown",y),d?.addEventListener("touchstart",S,{passive:!1}),()=>{d&&(d.removeEventListener("mousedown",y),d.removeEventListener("touchstart",S))}},[r,e]),active:l}}a(Lr,"useMove");function It(e,t){const r=t-e+1;return Array.from({length:r},(n,o)=>o+e)}a(It,"range");const gr="dots";function dh({total:e,siblings:t=1,boundaries:r=1,page:n,initialPage:o,onChange:c,startValue:l=1}){const i=Math.max(Math.trunc(l),1),d=Math.max(Math.trunc(e),i),u=d-i+1,f=o??i,[p,h]=Ne({value:n,onChange:c,defaultValue:f,finalValue:f}),g=m.useCallback(x=>{x<i?h(i):x>d?h(d):h(x)},[i,d,h]),y=m.useCallback(()=>g(p+1),[p,g]),w=m.useCallback(()=>g(p-1),[p,g]),S=m.useCallback(()=>g(i),[g,i]),j=m.useCallback(()=>g(d),[d,g]);return{range:m.useMemo(()=>{if(t*2+3+r*2>=u)return It(i,d);const x=Math.max(p-t,i+r-1),k=Math.min(p+t,d-r),b=x>i+r+1,v=k<d-r;if(!b&&v)return[...It(i,i+(t*2+r+2)-1),gr,...It(d-(r-1),d)];if(b&&!v){const R=r+1+2*t;return[...It(i,i+r-1),gr,...It(d-R,d)]}return[...It(i,i+r-1),gr,...It(x,k),gr,...It(d-r+1,d)]},[u,t,p,i,d,r]),active:p,setPage:g,next:y,previous:w,first:S,last:j}}a(dh,"usePagination");const uh={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function ph(e){const t=m.useRef(0),[r,n]=m.useState(uh),o=m.useRef(null);return[m.useCallback(c=>{o.current&&(o.current.disconnect(),o.current=null),t.current&&cancelAnimationFrame(t.current),c&&(o.current=new ResizeObserver(l=>{const i=l[0];i&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{const d=i.borderBoxSize?.[0]||i.contentBoxSize?.[0];if(d){const u=d.inlineSize,f=d.blockSize;n({width:u,height:f,x:i.contentRect.x,y:i.contentRect.y,top:i.contentRect.top,left:i.contentRect.left,bottom:i.contentRect.bottom,right:i.contentRect.right})}else n(i.contentRect)}))}),o.current.observe(c,e))},[e]),r]}a(ph,"useResizeObserver");function hh(e){const[t,{width:r,height:n}]=ph(e);return{ref:t,width:r,height:n}}a(hh,"useElementSize");function fh(){const[e,t]=m.useState(!1);return Ot(()=>{t(typeof window<"u"&&!mh()&&"EyeDropper"in window)},[]),{supported:e,open:m.useCallback((r={})=>e?new window.EyeDropper().open(r):Promise.resolve(void 0),[e])}}a(fh,"useEyeDropper");function mh(){return navigator.userAgent.includes("OPR")}a(mh,"isOpera");function gh(e){return e*(180/Math.PI)}a(gh,"radiansToDegrees");function vh(e){const t=e.getBoundingClientRect();return[t.left+t.width/2,t.top+t.height/2]}a(vh,"getElementCenter");function bh(e,t){const r=vh(t),n=e[0]-r[0],o=e[1]-r[1];return 360-(gh(Math.atan2(n,o))+180)}a(bh,"getAngle");function xh(e,t){return parseFloat(e.toFixed(t))}a(xh,"toFixed");function yh(e){return e.toString().split(".")[1]?.length||0}a(yh,"getDigitsAfterDot");function eo(e,t){const r=rt(e,0,360),n=Math.ceil(r/t),o=Math.round(r/t);return xh(n>=r/t?n*t===360?0:n*t:o*t,yh(t))}a(eo,"normalizeRadialValue");function Sh(e,{step:t=.01,onChangeEnd:r,onScrubStart:n,onScrubEnd:o}={}){const c=m.useRef(!1),[l,i]=m.useState(!1);return m.useEffect(()=>{c.current=!0},[]),{ref:m.useCallback(d=>{const u=a((x,k=!1)=>{if(d){d.style.userSelect="none";const b=eo(bh([x.clientX,x.clientY],d),t||1);e(b),k&&r?.(b)}},"update"),f=a(()=>{n?.(),i(!0),document.addEventListener("mousemove",g,!1),document.addEventListener("mouseup",y,!1),document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",S,!1)},"beginTracking"),p=a(()=>{o?.(),i(!1),document.removeEventListener("mousemove",g,!1),document.removeEventListener("mouseup",y,!1),document.removeEventListener("touchmove",w,!1),document.removeEventListener("touchend",S,!1)},"endTracking"),h=a(x=>{f(),u(x)},"onMouseDown"),g=a(x=>{u(x)},"handleMouseMove"),y=a(x=>{u(x,!0),p()},"handleMouseUp"),w=a(x=>{x.preventDefault(),u(x.touches[0])},"handleTouchMove"),S=a(x=>{u(x.changedTouches[0],!0),p()},"handleTouchEnd"),j=a(x=>{x.preventDefault(),f(),u(x.touches[0])},"handleTouchStart");return d?.addEventListener("mousedown",h),d?.addEventListener("touchstart",j,{passive:!1}),()=>{d&&(d.removeEventListener("mousedown",h),d.removeEventListener("touchstart",j))}},[e]),active:l}}a(Sh,"useRadialMove");function wh(e,t,r){const n=[];for(let o=0;o<e.length;o+=1){const c=e[o];n.push({depth:t(c),value:r(c),id:c.id||Ji(),getNode:a(()=>c.id?document.getElementById(c.id):c,"getNode")})}return n}a(wh,"getHeadingsData");function Qo(e,t=0){return e.length===0?-1:e.reduce((r,n,o)=>Math.abs(r.position-t)<Math.abs(n.y-t)?r:{index:o,position:n.y},{index:0,position:e[0].y}).index}a(Qo,"getActiveElement");function jh(e){return Number(e.tagName[1])}a(jh,"getDefaultDepth");function Ch(e){return e.textContent||""}a(Ch,"getDefaultValue");function kh({selector:e="h1, h2, h3, h4, h5, h6",getDepth:t=jh,getValue:r=Ch,offset:n=0,scrollHost:o}={}){const[c,l]=m.useState(-1),[i,d]=m.useState(!1),[u,f]=m.useState([]),p=m.useRef([]),h=a(()=>{l(Qo(p.current.map(y=>y.getNode().getBoundingClientRect()),n))},"handleScroll"),g=a(()=>{const y=wh(Array.from(document.querySelectorAll(e)),t,r);p.current=y,d(!0),f(y),l(Qo(y.map(w=>w.getNode().getBoundingClientRect()),n))},"initialize");return m.useEffect(()=>{g();const y=o||window;return y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)},[o]),{reinitialize:g,active:c,initialized:i,data:u}}a(kh,"useScrollSpy");function _h(e={}){const{scrollAmount:t=200,draggable:r=!0,onScrollStateChange:n}=e,o=m.useRef(null),[c,l]=m.useState(!1),[i,d]=m.useState(!1),[u,f]=m.useState(!1),p=m.useRef(!1),h=m.useRef(!1),g=m.useRef(0),y=m.useRef(0),w=m.useRef(n);w.current=n;const S=m.useCallback(()=>{const _=o.current;if(_){const{scrollLeft:P,scrollWidth:I,clientWidth:E}=_,F=getComputedStyle(_).direction==="rtl";let T,L;F?(T=P<0,L=P>-(I-E)):(T=P>0,L=P<I-E-1),l(T),d(L),w.current?.({canScrollStart:T,canScrollEnd:L})}},[]);m.useEffect(()=>{S();const _=o.current;if(_){_.addEventListener("scroll",S);const P=new ResizeObserver(S);return P.observe(_),()=>{_.removeEventListener("scroll",S),P.disconnect()}}},[S]);const j=m.useCallback(_=>{const P=o.current;if(P){const I=getComputedStyle(P).direction==="rtl",E=t,F=_==="end"?E:-E,T=I?-F:F;P.scrollBy({left:T,behavior:"smooth"})}},[t]),x=m.useCallback(()=>j("start"),[j]),k=m.useCallback(()=>j("end"),[j]),b=m.useCallback(_=>{if(!r)return;const P=o.current;P&&(p.current=!0,h.current=!1,f(!0),g.current=_.pageX-P.offsetLeft,y.current=P.scrollLeft,P.style.cursor="grabbing",P.style.userSelect="none")},[r]),v=m.useCallback(_=>{if(!p.current)return;_.preventDefault();const P=o.current;if(P){const I=_.pageX-P.offsetLeft-g.current;Math.abs(I)>5&&(h.current=!0),P.scrollLeft=y.current-I}},[]),R=m.useCallback(()=>{const _=h.current;p.current=!1,h.current=!1,f(!1);const P=o.current;if(P&&(P.style.cursor="",P.style.userSelect="",_)){const I=a(E=>{E.stopPropagation(),E.preventDefault(),P.removeEventListener("click",I,!0)},"suppressClick");P.addEventListener("click",I,!0)}},[]),C=m.useCallback(()=>{p.current&&R()},[R]);return{ref:m.useCallback(_=>{o.current=_,_&&S()},[S]),canScrollStart:c,canScrollEnd:i,scrollStart:x,scrollEnd:k,isDragging:u,dragHandlers:{onMouseDown:b,onMouseMove:v,onMouseUp:R,onMouseLeave:C}}}a(_h,"useScroller");function Ph(e){const t=m.useRef(e);return t.current=e,t}a(Ph,"useRefValue");function Rh(e={}){const[t,r]=m.useState(null),n=m.useRef(null),o=m.useRef({x:0,y:0}),c=m.useRef({x:0,y:0}),[l,i]=m.useState(!1),d=m.useRef(!1),u=m.useRef(!1),f=Ph(e.enabled),p=m.useCallback(g=>{i(g),d.current=g},[]),h=m.useCallback(g=>{g?(n.current=g,r(g)):(n.current=null,r(null))},[]);return m.useEffect(()=>{const g=n.current;return!u.current&&g&&(u.current=!0,o.current=Nh(g,e),g.style.left=`${o.current.x}px`,g.style.top=`${o.current.y}px`,g.style.right="unset",g.style.bottom="unset"),()=>{u.current=!1}},[t,e.constrainOffset,e.initialPosition?.top,e.initialPosition?.left,e.initialPosition?.right,e.initialPosition?.bottom,e.constrainToViewport]),m.useEffect(()=>{const g=n.current;if(!g)return;const y=new AbortController,w=y.signal,S=a(k=>{if(f.current===!1)return;const b="touches"in k?k.touches[0]:k;if("button"in k&&k.button!==0||!Ih(g,k.target,e))return;p(!0),document.body.style.userSelect="none",document.body.style.webkitUserSelect="none";const v=g.getBoundingClientRect();c.current={x:b.clientX-v.left,y:b.clientY-v.top},e.onDragStart?.(),document.addEventListener("mousemove",j,{signal:w}),document.addEventListener("mouseup",x,{signal:w}),document.addEventListener("touchmove",j,{signal:w,passive:!1}),document.addEventListener("touchend",x,{signal:w})},"onStart"),j=a(k=>{if(!d.current)return;const b="touches"in k?k.touches[0]:k;k.preventDefault();let v=b.clientX-c.current.x,R=b.clientY-c.current.y;const C=ea(g,{x:v,y:R},e);e.axis==="x"?(v=C.x,R=o.current.y):e.axis==="y"?(v=o.current.x,R=C.y):(v=C.x,R=C.y),o.current={x:v,y:R},n.current&&(n.current.style.left=`${v}px`,n.current.style.top=`${R}px`),e.onPositionChange?.({x:v,y:R})},"onMove"),x=a(()=>{d.current&&(p(!1),document.body.style.userSelect="",document.body.style.webkitUserSelect="",e.onDragEnd?.())},"onEnd");return g.addEventListener("mousedown",S,{signal:w}),g.addEventListener("touchstart",S,{signal:w,passive:!1}),()=>{y.abort()}},[e.constrainToViewport,e.constrainOffset,e.dragHandleSelector,e.axis,e.onPositionChange,e.onDragStart,e.onDragEnd,e.initialPosition?.top,e.initialPosition?.left,e.initialPosition?.right,e.initialPosition?.bottom,t]),m.useEffect(()=>{const g=n.current;if(!g)return;const y=new ResizeObserver(()=>{const w=ea(g,o.current,e);o.current=w,g.style.left=`${w.x}px`,g.style.top=`${w.y}px`});return y.observe(g),()=>{y.disconnect()}},[e.constrainToViewport,e.constrainOffset]),{ref:h,setPosition:Dh(n,o,e),isDragging:l}}a(Rh,"useFloatingWindow");function vr(e){return e.endsWith("px")?parseFloat(e):0}a(vr,"px");function Nh(e,t){const r=e.getBoundingClientRect(),n=t.constrainOffset??0,o=window.innerWidth,c=window.innerHeight,l=window.getComputedStyle(e),i=t.initialPosition?.top,d=t.initialPosition?.left,u=t.initialPosition?.right,f=t.initialPosition?.bottom;let p=n,h=n;return d!=null?p=d:u!=null?p=o-r.width-u:p=vr(l.left)||o-r.width-vr(l.right)||n,i!=null?h=i:f!=null?h=c-r.height-f:h=vr(l.top)||c-r.height-vr(l.bottom)||n,t.constrainToViewport?ul(p,h,e,t.constrainOffset):{x:p,y:h}}a(Nh,"calculateInitialPosition");function ea(e,t,r){if(!r.constrainToViewport||!e)return t;const n=e.getBoundingClientRect(),o=r.constrainOffset??0,c=window.innerWidth-n.width-o,l=window.innerHeight-n.height-o;return{x:Math.min(Math.max(o,t.x),c),y:Math.min(Math.max(o,t.y),l)}}a(ea,"getConstrainedPosition");function ta(e,t){return!t||!(e instanceof Element)?!1:!!e.closest(t)}a(ta,"matchesExcludeSelector");function Ih(e,t,r){return t instanceof Node?r.dragHandleSelector?Array.from(e.querySelectorAll(r.dragHandleSelector)).some(n=>n.contains(t)&&!ta(t,r.excludeDragHandleSelector)):!ta(t,r.excludeDragHandleSelector):!1}a(Ih,"getHandle");function ul(e,t,r,n=0){const o=r.getBoundingClientRect(),c=window.innerWidth-o.width-n,l=window.innerHeight-o.height-n;return{x:Math.min(Math.max(n,e),c),y:Math.min(Math.max(n,t),l)}}a(ul,"clampToViewport");function Dh(e,t,r){return m.useCallback(n=>{const o=e.current;if(!o)return;const c=r.constrainOffset??0,l=o.getBoundingClientRect();let i,d;if(n.left!=null?i=n.left:n.right!=null&&(i=window.innerWidth-l.width-n.right),n.top!=null?d=n.top:n.bottom!=null&&(d=window.innerHeight-l.height-n.bottom),i=i??t.current.x,d=d??t.current.y,r.constrainToViewport){const u=ul(i,d,o,c);i=u.x,d=u.y}t.current={x:i,y:d},o.style.left=`${i}px`,o.style.top=`${d}px`,r.onPositionChange?.({x:i,y:d})},[r.constrainToViewport,r.constrainOffset,r.onPositionChange])}a(Dh,"createSetPosition");function Eh(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}a(Eh,"dispatchEvent");function Ah(e){function t(n){const o=Object.keys(n).reduce((c,l)=>(c[`${e}:${l}`]=i=>n[l](i.detail),c),{});Ot(()=>(Object.keys(o).forEach(c=>{window.removeEventListener(c,o[c]),window.addEventListener(c,o[c])}),()=>Object.keys(o).forEach(c=>{window.removeEventListener(c,o[c])})),[o])}a(t,"_useExternalEvents");function r(n){return(...o)=>Eh(`${e}:${String(n)}`,o[0])}return a(r,"createEvent"),[t,r]}a(Ah,"createUseExternalEvents");function bo(e){const t=new Map;return(...r)=>{const n=JSON.stringify(r);if(t.has(n))return t.get(n);const o=e(...r);return t.set(n,o),o}}a(bo,"memoize");function Gt(e,t){return t.length===0?e:t.reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r)}a(Gt,"findClosestNumber");function Th(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, white ${t*100}%)`;const{r,g:n,b:o,a:c}=Na(e),l=a(i=>Math.round(i+(255-i)*t),"light");return`rgba(${l(r)}, ${l(n)}, ${l(o)}, ${c})`}a(Th,"lighten");const zh=a(({defaultColorScheme:e,localStorageKey:t,forceColorScheme:r})=>r?`document.documentElement.setAttribute("data-mantine-color-scheme", '${r}');`:`try {
var _colorScheme = window.localStorage.getItem("${t}");
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${e}";
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
} catch (e) {}
`,"getScript");function $h({defaultColorScheme:e="light",localStorageKey:t="mantine-color-scheme-value",forceColorScheme:r,...n}){const o=["light","dark","auto"].includes(e)?e:"light";return s.jsx("script",{...n,"data-mantine-script":!0,dangerouslySetInnerHTML:{__html:zh({defaultColorScheme:o,localStorageKey:t,forceColorScheme:r})}})}a($h,"ColorSchemeScript");function Fh(e){return e}a(Fh,"createTheme");function Mh(...e){return e.reduce((t,r)=>Ia(t,r),{})}a(Mh,"mergeThemeOverrides");const yr=["xs","sm","md","lg","xl"];function Oh(e,t){if(!t)return e.base;let r=yr.indexOf(t);for(;r>=0;){if(yr[r]in e)return e[yr[r]];r-=1}return e.base}a(Oh,"getFirstMatchingValue");function Lh(e){return e.findLastIndex(t=>t)}a(Lh,"getFirstMatchingBreakpoint");function Bh(e,t){const r=Ee();return Oh(e,yr[Lh([As(`(min-width: ${r.breakpoints.xs})`,!1,t),As(`(min-width: ${r.breakpoints.sm})`,!1,t),As(`(min-width: ${r.breakpoints.md})`,!1,t),As(`(min-width: ${r.breakpoints.lg})`,!1,t),As(`(min-width: ${r.breakpoints.xl})`,!1,t)])])}a(Bh,"useMatches");const Vh={suppressHydrationWarning:!0,"data-mantine-color-scheme":"light"},pl={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 hl={root:"m_8bffd616"};const xo=vs(e=>{const t=z("Flex",null,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,gap:d,rowGap:u,columnGap:f,align:p,justify:h,wrap:g,direction:y,attributes:w,...S}=t,j=oe({name:"Flex",classes:hl,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:w,vars:i}),x=Ee(),k=Vs(),b=Da({styleProps:{gap:d,rowGap:u,columnGap:f,align:p,justify:h,wrap:g,direction:y},theme:x,data:pl});return s.jsxs(s.Fragment,{children:[b.hasResponsiveStyles&&s.jsx(Jt,{selector:`.${k}`,styles:b.styles,media:b.media}),s.jsx(A,{...j("root",{className:k,style:bs(b.inlineStyles)}),...S})]})});xo.classes=hl;xo.displayName="@mantine/core/Flex";var fl={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const ml=de((e,{radius:t,color:r,variant:n,autoContrast:o})=>{const c=e.variantColorResolver({color:r||e.primaryColor,theme:e,variant:n||"light",autoContrast:o});return{root:{"--alert-radius":t===void 0?void 0:Oe(t),"--alert-bg":r||n?c.background:void 0,"--alert-color":c.color,"--alert-bd":r||n?c.border:void 0}}}),lt=V(e=>{const t=z("Alert",null,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,radius:d,color:u,title:f,children:p,id:h,icon:g,withCloseButton:y,onClose:w,closeButtonLabel:S,variant:j,autoContrast:x,role:k,attributes:b,...v}=t,R=oe({name:"Alert",classes:fl,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:b,vars:i,varsResolver:ml}),C=at(h),_=f&&`${C}-title`||void 0,P=`${C}-body`;return s.jsx(A,{id:C,...R("root",{variant:j}),variant:j,...v,role:k||"alert","aria-describedby":p?P:void 0,"aria-labelledby":f?_:void 0,children:s.jsxs("div",{...R("wrapper"),children:[g&&s.jsx("div",{...R("icon"),children:g}),s.jsxs("div",{...R("body"),children:[f&&s.jsx("div",{...R("title"),"data-with-close-button":y||void 0,children:s.jsx("span",{id:_,...R("label"),children:f})}),p&&s.jsx("div",{id:P,...R("message"),"data-variant":j,children:p})]}),y&&s.jsx(Hs,{...R("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":S,unstyled:l})]})})});lt.classes=fl;lt.varsResolver=ml;lt.displayName="@mantine/core/Alert";var gl={root:"m_48204f9b",marks:"m_bb9cdbad",mark:"m_481dd586",thumb:"m_bc02ba3d",label:"m_bb8e875b"};const Hh={step:1,withLabel:!0},vl=de((e,{size:t,thumbSize:r})=>({root:{"--slider-size":K(t),"--thumb-size":K(r)}})),Br=V(e=>{const t=z("AngleSlider",Hh,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,step:d,value:u,defaultValue:f,onChange:p,onMouseDown:h,withLabel:g,marks:y,thumbSize:w,restrictToMarks:S,formatLabel:j,onChangeEnd:x,disabled:k,onTouchStart:b,name:v,hiddenInputProps:R,"aria-label":C,tabIndex:_,onScrubStart:P,onScrubEnd:I,mod:E,attributes:F,ref:T,...L}=t,B=m.useRef(null),[X,$]=Ne({value:u,defaultValue:f,finalValue:0,onChange:p}),O=a(N=>{B.current&&!k&&$(S&&Array.isArray(y)?Gt(N,y.map(M=>M.value)):N)},"update"),{ref:G}=Sh(O,{step:d,onChangeEnd:x,onScrubStart:P,onScrubEnd:I}),Y=oe({name:"AngleSlider",classes:gl,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:F,vars:i,varsResolver:vl}),Q=a(N=>{if(k)return;let M=X;if((N.key==="ArrowLeft"||N.key==="ArrowDown")&&(N.preventDefault(),X===0?M=359:M=eo(X-d,d)),(N.key==="ArrowRight"||N.key==="ArrowUp")&&(N.preventDefault(),X===359?M=0:M=eo(X+d,d)),N.key==="Home"&&(M=0),N.key==="End"&&(M=359),S&&Array.isArray(y)){const U=y.map(ne=>ne.value),he=U.indexOf(X);he!==-1?N.key==="ArrowLeft"||N.key==="ArrowDown"?M=U[he===0?U.length-1:he-1]:N.key==="ArrowRight"||N.key==="ArrowUp"?M=U[he===U.length-1?0:he+1]:M=Gt(M,U):M=Gt(M,U)}$(M),x?.(M)},"handleKeyDown"),Z=y?.map((N,M)=>m.createElement("div",{...Y("mark",{style:{"--angle":`${N.value}deg`}}),"data-label":N.label||void 0,key:M}));return s.jsxs(A,{ref:Ge(T,B,G),...Y("root",{focusable:!0}),mod:[{disabled:k},E],...L,children:[Z&&Z.length>0&&s.jsx("div",{...Y("marks"),children:Z}),g&&s.jsx("div",{...Y("label"),children:typeof j=="function"?j(X):X}),s.jsx("div",{tabIndex:_??(k?-1:0),role:"slider","aria-valuemax":360,"aria-valuemin":0,"aria-valuenow":X,onKeyDown:Q,"aria-label":C,...Y("thumb",{style:{transform:`rotate(${X}deg)`}})}),s.jsx("input",{type:"hidden",name:v,value:X,...R})]})});Br.displayName="@mantine/core/AngleSlider";Br.classes=gl;Br.varsResolver=vl;const[qh,ss]=Pt("AppShell was not found in tree");var $t={root:"m_89ab340",navbar:"m_45252eee",aside:"m_9cdde9a",header:"m_3b16f56b",main:"m_8983817",footer:"m_3840c879",section:"m_6dcfc7c7"};const Vr=V(e=>{const{classNames:t,className:r,style:n,styles:o,unstyled:c,vars:l,withBorder:i,zIndex:d,mod:u,...f}=z("AppShellAside",null,e),p=ss();return p.disabled?null:s.jsx(A,{component:"aside",mod:[{"with-border":i??p.withBorder},u],...p.getStyles("aside",{className:Nr({[Ar.classNames.zeroRight]:p.offsetScrollbars},r),classNames:t,styles:o,style:n}),...f,__vars:{"--app-shell-aside-z-index":`calc(${d??p.zIndex} + 1)`}})});Vr.classes=$t;Vr.displayName="@mantine/core/AppShellAside";const Hr=V(e=>{const{classNames:t,className:r,style:n,styles:o,unstyled:c,vars:l,withBorder:i,zIndex:d,mod:u,...f}=z("AppShellFooter",null,e),p=ss();return p.disabled?null:s.jsx(A,{component:"footer",mod:[{"with-border":i??p.withBorder},u],...p.getStyles("footer",{className:Nr({[Ar.classNames.zeroRight]:p.offsetScrollbars},r),classNames:t,styles:o,style:n}),...f,__vars:{"--app-shell-footer-z-index":(d??p.zIndex)?.toString()}})});Hr.classes=$t;Hr.displayName="@mantine/core/AppShellFooter";const qr=V(e=>{const{classNames:t,className:r,style:n,styles:o,unstyled:c,vars:l,withBorder:i,zIndex:d,mod:u,...f}=z("AppShellHeader",null,e),p=ss();return p.disabled?null:s.jsx(A,{component:"header",mod:[{"with-border":i??p.withBorder},u],...p.getStyles("header",{className:Nr({[Ar.classNames.zeroRight]:p.offsetScrollbars},r),classNames:t,styles:o,style:n}),...f,__vars:{"--app-shell-header-z-index":(d??p.zIndex)?.toString()}})});qr.classes=$t;qr.displayName="@mantine/core/AppShellHeader";const Gr=V(e=>{const{classNames:t,className:r,style:n,styles:o,vars:c,...l}=z("AppShellMain",null,e);return s.jsx(A,{component:"main",...ss().getStyles("main",{className:r,style:n,classNames:t,styles:o}),...l})});Gr.classes=$t;Gr.displayName="@mantine/core/AppShellMain";const Ur=V(e=>{const{classNames:t,className:r,style:n,styles:o,unstyled:c,vars:l,withBorder:i,zIndex:d,mod:u,...f}=z("AppShellNavbar",null,e),p=ss();return p.disabled?null:s.jsx(A,{component:"nav",mod:[{"with-border":i??p.withBorder},u],...p.getStyles("navbar",{className:r,classNames:t,styles:o,style:n}),...f,__vars:{"--app-shell-navbar-z-index":`calc(${d??p.zIndex} + 1)`}})});Ur.classes=$t;Ur.displayName="@mantine/core/AppShellNavbar";const Wr=vs(e=>{const{classNames:t,className:r,style:n,styles:o,vars:c,grow:l,mod:i,...d}=z("AppShellSection",null,e),u=ss();return s.jsx(A,{mod:[{grow:l},i],...u.getStyles("section",{className:r,style:n,classNames:t,styles:o}),...d})});Wr.classes=$t;Wr.displayName="@mantine/core/AppShellSection";function Js(e){return typeof e=="object"?e.base:e}a(Js,"getBaseSize");function Xs(e){const t=typeof e=="object"&&e!==null&&typeof e.base<"u"&&Object.keys(e).length===1;return typeof e=="number"||typeof e=="string"||t}a(Xs,"isPrimitiveSize");function Ys(e){return!(typeof e!="object"||e===null||Object.keys(e).length===1&&"base"in e)}a(Ys,"isResponsiveSize");function Gh({baseStyles:e,minMediaStyles:t,maxMediaStyles:r,aside:n,theme:o,mode:c}){const l=n?.width,i="translateX(var(--app-shell-aside-width))",d="translateX(calc(var(--app-shell-aside-width) * -1))";if(n?.breakpoint&&!n?.collapsed?.mobile&&(r[n?.breakpoint]=r[n?.breakpoint]||{},c==="fixed"?(r[n?.breakpoint]["--app-shell-aside-width"]="100%",r[n?.breakpoint]["--app-shell-aside-offset"]="0px"):(r[n?.breakpoint]["--app-shell-aside-width"]="0px",r[n?.breakpoint]["--app-shell-aside-offset"]="0px")),Xs(l)){const u=K(Js(l));e["--app-shell-aside-width"]=u,e["--app-shell-aside-offset"]=u}if(Ys(l)&&(typeof l.base<"u"&&(e["--app-shell-aside-width"]=K(l.base),e["--app-shell-aside-offset"]=K(l.base)),Me(l).forEach(u=>{u!=="base"&&(t[u]=t[u]||{},t[u]["--app-shell-aside-width"]=K(l[u]),t[u]["--app-shell-aside-offset"]=K(l[u]))})),n?.breakpoint&&c==="static"&&(t[n.breakpoint]=t[n.breakpoint]||{},t[n.breakpoint]["--app-shell-aside-position"]="sticky",t[n.breakpoint]["--app-shell-aside-grid-row"]="2",t[n.breakpoint]["--app-shell-aside-grid-column"]="3",t[n.breakpoint]["--app-shell-main-column-end"]="3"),n?.collapsed?.desktop){const u=n.breakpoint;t[u]=t[u]||{},t[u]["--app-shell-aside-transform"]=i,t[u]["--app-shell-aside-transform-rtl"]=d,c==="fixed"?t[u]["--app-shell-aside-offset"]="0px !important":(t[u]["--app-shell-aside-width"]="0px",t[u]["--app-shell-aside-display"]="none",t[u]["--app-shell-main-column-end"]="-1"),t[u]["--app-shell-aside-scroll-locked-visibility"]="hidden"}if(n?.collapsed?.mobile){const u=Or(n.breakpoint,o.breakpoints)-.1;r[u]=r[u]||{},c==="fixed"?(r[u]["--app-shell-aside-width"]="100%",r[u]["--app-shell-aside-offset"]="0px"):r[u]["--app-shell-aside-width"]="0px",r[u]["--app-shell-aside-transform"]=i,r[u]["--app-shell-aside-transform-rtl"]=d,r[u]["--app-shell-aside-scroll-locked-visibility"]="hidden"}}a(Gh,"assignAsideVariables");function Uh({baseStyles:e,minMediaStyles:t,footer:r,mode:n}){const o=r?.height,c="translateY(var(--app-shell-footer-height))",l=n==="static"?!0:r?.offset??!0;if(n==="static"&&r&&(e["--app-shell-footer-position"]="sticky",e["--app-shell-footer-grid-column"]="1 / -1",e["--app-shell-footer-grid-row"]="3"),Xs(o)){const i=K(Js(o));e["--app-shell-footer-height"]=i,l&&(e["--app-shell-footer-offset"]=i)}Ys(o)&&(typeof o.base<"u"&&(e["--app-shell-footer-height"]=K(o.base),l&&(e["--app-shell-footer-offset"]=K(o.base))),Me(o).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-footer-height"]=K(o[i]),l&&(t[i]["--app-shell-footer-offset"]=K(o[i])))})),r?.collapsed&&(e["--app-shell-footer-transform"]=c,n==="fixed"&&(e["--app-shell-footer-offset"]="0px !important"))}a(Uh,"assignFooterVariables");function Wh({baseStyles:e,minMediaStyles:t,header:r,mode:n}){const o=r?.height,c="translateY(calc(var(--app-shell-header-height) * -1))",l=n==="static"?!0:r?.offset??!0;if(n==="static"&&r&&(e["--app-shell-header-position"]="sticky",e["--app-shell-header-grid-column"]="1 / -1",e["--app-shell-header-grid-row"]="1"),Xs(o)){const i=K(Js(o));e["--app-shell-header-height"]=i,l&&(e["--app-shell-header-offset"]=i)}Ys(o)&&(typeof o.base<"u"&&(e["--app-shell-header-height"]=K(o.base),l&&(e["--app-shell-header-offset"]=K(o.base))),Me(o).forEach(i=>{i!=="base"&&(t[i]=t[i]||{},t[i]["--app-shell-header-height"]=K(o[i]),l&&(t[i]["--app-shell-header-offset"]=K(o[i])))})),r?.collapsed&&(e["--app-shell-header-transform"]=c,n==="fixed"&&(e["--app-shell-header-offset"]="0px !important"))}a(Wh,"assignHeaderVariables");function Kh({baseStyles:e,minMediaStyles:t,maxMediaStyles:r,navbar:n,theme:o,mode:c}){const l=n?.width,i="translateX(calc(var(--app-shell-navbar-width) * -1))",d="translateX(var(--app-shell-navbar-width))";if(n?.breakpoint&&!n?.collapsed?.mobile&&(r[n?.breakpoint]=r[n?.breakpoint]||{},r[n?.breakpoint]["--app-shell-navbar-offset"]="0px",r[n?.breakpoint]["--app-shell-navbar-width"]="100%",c==="static"&&(r[n?.breakpoint]["--app-shell-navbar-grid-width"]="0px")),Xs(l)){const u=K(Js(l));e["--app-shell-navbar-width"]=u,e["--app-shell-navbar-offset"]=u,c==="static"&&(e["--app-shell-navbar-grid-width"]=u)}if(Ys(l)&&(typeof l.base<"u"&&(e["--app-shell-navbar-width"]=K(l.base),e["--app-shell-navbar-offset"]=K(l.base),c==="static"&&(e["--app-shell-navbar-grid-width"]=K(l.base))),Me(l).forEach(u=>{u!=="base"&&(t[u]=t[u]||{},t[u]["--app-shell-navbar-width"]=K(l[u]),t[u]["--app-shell-navbar-offset"]=K(l[u]),c==="static"&&(t[u]["--app-shell-navbar-grid-width"]=K(l[u])))})),n?.breakpoint&&c==="static"&&(t[n.breakpoint]=t[n.breakpoint]||{},t[n.breakpoint]["--app-shell-navbar-position"]="sticky",t[n.breakpoint]["--app-shell-navbar-grid-row"]="2",t[n.breakpoint]["--app-shell-navbar-grid-column"]="1",t[n.breakpoint]["--app-shell-main-column-start"]="2"),n?.collapsed?.desktop){const u=n.breakpoint;t[u]=t[u]||{},t[u]["--app-shell-navbar-transform"]=i,t[u]["--app-shell-navbar-transform-rtl"]=d,c==="fixed"?t[u]["--app-shell-navbar-offset"]="0px !important":(t[u]["--app-shell-navbar-width"]="0px",t[u]["--app-shell-navbar-display"]="none",t[u]["--app-shell-main-column-start"]="1")}if(n?.collapsed?.mobile){const u=Or(n.breakpoint,o.breakpoints)-.1;r[u]=r[u]||{},r[u]["--app-shell-navbar-width"]="100%",r[u]["--app-shell-navbar-offset"]="0px",c==="static"&&(r[u]["--app-shell-navbar-grid-width"]="0px"),r[u]["--app-shell-navbar-transform"]=i,r[u]["--app-shell-navbar-transform-rtl"]=d}}a(Kh,"assignNavbarVariables");function On(e){return Number(e)===0?"0px":_e(e)}a(On,"getPaddingValue");function Jh({padding:e,baseStyles:t,minMediaStyles:r}){Xs(e)&&(t["--app-shell-padding"]=On(Js(e))),Ys(e)&&(e.base&&(t["--app-shell-padding"]=On(e.base)),Me(e).forEach(n=>{n!=="base"&&(r[n]=r[n]||{},r[n]["--app-shell-padding"]=On(e[n]))}))}a(Jh,"assignPaddingVariables");function Xh({navbar:e,header:t,footer:r,aside:n,padding:o,theme:c,mode:l}){const i={},d={},u={};l==="static"&&(u["--app-shell-main-grid-column"]="1 / -1",u["--app-shell-main-grid-row"]="2"),Kh({baseStyles:u,minMediaStyles:i,maxMediaStyles:d,navbar:e,theme:c,mode:l}),Gh({baseStyles:u,minMediaStyles:i,maxMediaStyles:d,aside:n,theme:c,mode:l}),Wh({baseStyles:u,minMediaStyles:i,header:t,mode:l}),Uh({baseStyles:u,minMediaStyles:i,footer:r,mode:l}),Jh({baseStyles:u,minMediaStyles:i,padding:o});const f=fs(Me(i),c.breakpoints).map(h=>({query:`(min-width: ${Gn(h.px)})`,styles:i[h.value]})),p=fs(Me(d),c.breakpoints).map(h=>({query:`(max-width: ${Gn(h.px)})`,styles:d[h.value]}));return{baseStyles:u,media:[...f,...p]}}a(Xh,"getVariables");function Yh({navbar:e,header:t,aside:r,footer:n,padding:o,mode:c,selector:l}){const i=Ee(),d=Ea(),{media:u,baseStyles:f}=Xh({navbar:e,header:t,footer:n,aside:r,padding:o,theme:i,mode:c});return s.jsx(Jt,{media:u,styles:f,selector:l||d.cssVariablesSelector})}a(Yh,"AppShellMediaStyles");function Zh({transitionDuration:e,disabled:t}){const[r,n]=m.useState(!0),o=m.useRef(-1),c=m.useRef(-1);return Xi("resize",()=>{n(!0),clearTimeout(o.current),o.current=window.setTimeout(()=>m.startTransition(()=>{n(!1)}),200)}),Ot(()=>{n(!0),clearTimeout(c.current),c.current=window.setTimeout(()=>m.startTransition(()=>{n(!1)}),e||0)},[t,e]),r}a(Zh,"useResizing");const Qh={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:"ease",zIndex:Xt("app"),mode:"fixed"},bl=de((e,{transitionDuration:t,transitionTimingFunction:r})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":r}})),gt=V(e=>{const t=z("AppShell",Qh,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,navbar:d,withBorder:u,padding:f,transitionDuration:p,transitionTimingFunction:h,header:g,zIndex:y,layout:w,disabled:S,aside:j,footer:x,offsetScrollbars:k=!0,mode:b,mod:v,attributes:R,id:C,..._}=t,P=oe({name:"AppShell",classes:$t,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:R,vars:i,varsResolver:bl}),I=Zh({disabled:S,transitionDuration:p}),E=at(C);return s.jsxs(qh,{value:{getStyles:P,withBorder:u,zIndex:y,disabled:S,offsetScrollbars:k,mode:b},children:[s.jsx(Yh,{navbar:d,header:g,aside:j,footer:x,padding:f,mode:b,selector:b==="static"?`#${E}`:void 0}),s.jsx(A,{...P("root"),id:E,mod:[{resizing:I,layout:w,disabled:S,mode:b},v],..._})]})});gt.classes=$t;gt.varsResolver=bl;gt.displayName="@mantine/core/AppShell";gt.Navbar=Ur;gt.Header=qr;gt.Main=Gr;gt.Aside=Vr;gt.Footer=Hr;gt.Section=Wr;var xl={root:"m_71ac47fc"};const yl=de((e,{ratio:t})=>({root:{"--ar-ratio":t?.toString()}})),Kr=V(e=>{const t=z("AspectRatio",null,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,ratio:d,attributes:u,...f}=t;return s.jsx(A,{...oe({name:"AspectRatio",classes:xl,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:u,vars:i,varsResolver:yl})("root"),...f})});Kr.classes=xl;Kr.varsResolver=yl;Kr.displayName="@mantine/core/AspectRatio";function ef({currentIndex:e,isOptionDisabled:t,totalOptionsCount:r,loop:n}){for(let o=e-1;o>=0;o-=1)if(!t(o))return o;if(n){for(let o=r-1;o>-1;o-=1)if(!t(o))return o}return e}a(ef,"getPreviousIndex");function tf({currentIndex:e,isOptionDisabled:t,totalOptionsCount:r,loop:n}){for(let o=e+1;o<r;o+=1)if(!t(o))return o;if(n){for(let o=0;o<r;o+=1)if(!t(o))return o}return e}a(tf,"getNextIndex");function sf({totalOptionsCount:e,isOptionDisabled:t}){for(let r=0;r<e;r+=1)if(!t(r))return r;return-1}a(sf,"getFirstIndex");function rf({defaultOpened:e,opened:t,onOpenedChange:r,onDropdownClose:n,onDropdownOpen:o,loop:c=!0,totalOptionsCount:l,isOptionDisabled:i=a(()=>!1,"isOptionDisabled"),getOptionId:d,selectedOptionIndex:u,setSelectedOptionIndex:f,activeOptionIndex:p,onSelectedOptionSubmit:h}={totalOptionsCount:0,getOptionId:a(()=>null,"getOptionId"),selectedOptionIndex:-1,setSelectedOptionIndex:a(()=>{},"setSelectedOptionIndex"),onSelectedOptionSubmit:a(()=>{},"onSelectedOptionSubmit")}){const[g,y]=Ne({value:t,defaultValue:e,finalValue:!1,onChange:r}),w=m.useRef(null),S=m.useRef(null),j=m.useRef(null),x=m.useRef(-1),k=m.useRef(-1),b=m.useCallback(($="unknown")=>{g||(y(!0),o?.($))},[y,o,g]),v=m.useCallback(($="unknown")=>{g&&(y(!1),n?.($))},[y,n,g]),R=m.useCallback(($="unknown")=>{g?v($):b($)},[v,b,g]),C=m.useCallback($=>{if(l===0)return f(-1),null;const O=$>=l?0:$<0?l-1:$;return i(O)?null:(f(O),d(O))},[l,i,f,d]),_=m.useCallback(()=>C(p??0),[C,p]),P=m.useCallback(()=>C(tf({currentIndex:u,isOptionDisabled:i,totalOptionsCount:l,loop:c})),[C,u,i,l,c]),I=m.useCallback(()=>C(ef({currentIndex:u,isOptionDisabled:i,totalOptionsCount:l,loop:c})),[C,u,i,l,c]),E=m.useCallback(()=>C(sf({isOptionDisabled:i,totalOptionsCount:l})),[C,i,l]),F=m.useCallback(()=>{f(-1)},[f]),T=m.useCallback(()=>{u>=0&&u<l&&!i(u)&&h?.(u)},[u,l,i,h]),L=m.useCallback($=>{w.current=$},[]),B=m.useCallback(()=>{x.current=window.setTimeout(()=>S.current?.focus(),0)},[]),X=m.useCallback(()=>{k.current=window.setTimeout(()=>j.current?.focus(),0)},[]);return m.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(k.current)},[]),{dropdownOpened:g,openDropdown:b,closeDropdown:v,toggleDropdown:R,selectedOptionIndex:u,getSelectedOptionIndex:m.useCallback(()=>u,[u]),selectOption:C,selectFirstOption:E,selectActiveOption:_,selectNextOption:P,selectPreviousOption:I,resetSelectedOption:F,updateSelectedOptionIndex:m.useCallback($=>{typeof $=="number"&&f($),$==="active"&&typeof p=="number"&&f(p)},[f,p]),listId:w.current,setListId:L,clickSelectedOption:T,searchRef:S,focusSearchInput:B,targetRef:j,focusTarget:X}}a(rf,"useVirtualizedCombobox");const yo=V(e=>{const t=z("Autocomplete",{size:"sm"},e),{classNames:r,styles:n,unstyled:o,vars:c,dropdownOpened:l,defaultDropdownOpened:i,onDropdownClose:d,onDropdownOpen:u,onFocus:f,onBlur:p,onClick:h,onChange:g,data:y,value:w,defaultValue:S,selectFirstOptionOnChange:j,selectFirstOptionOnDropdownOpen:x,onOptionSubmit:k,comboboxProps:b,readOnly:v,disabled:R,filter:C,limit:_,withScrollArea:P,maxDropdownHeight:I,size:E,id:F,renderOption:T,autoComplete:L,scrollAreaProps:B,onClear:X,clearButtonProps:$,error:O,clearable:G,clearSectionMode:Y,rightSection:Q,autoSelectOnBlur:Z,openOnFocus:N=!0,attributes:M,...U}=t,he=at(F),ne=Ws(y),ae=Tr(ne),[fe,le]=Ne({value:w,defaultValue:S,finalValue:"",onChange:g}),W=zr({opened:l,defaultOpened:i,onDropdownOpen:a(()=>{u?.(),x&&W.selectFirstOption()},"onDropdownOpen"),onDropdownClose:a(()=>{d?.(),setTimeout(W.resetSelectedOption,0)},"onDropdownClose")}),Ie=a(ue=>{le(ue),W.resetSelectedOption()},"handleValueChange"),{resolvedClassNames:ce,resolvedStyles:we}=Yt({props:t,styles:n,classNames:r});m.useEffect(()=>{j&&W.selectFirstOption()},[j,fe]);const me=s.jsx(Fe.ClearButton,{...$,onClear:a(()=>{Ie(""),X?.()},"onClear")});return s.jsxs(Fe,{store:W,__staticSelector:"Autocomplete",classNames:ce,styles:we,unstyled:o,readOnly:v,size:E,attributes:M,keepMounted:Z,onOptionSubmit:a(ue=>{k?.(ue),Ie(ae[ue].label),W.closeDropdown()},"onOptionSubmit"),...b,children:[s.jsx(Fe.Target,{autoComplete:L,withExpandedAttribute:!0,children:s.jsx(He,{...U,size:E,__staticSelector:"Autocomplete",__clearSection:me,__clearable:G&&!!fe&&!R&&!v,__clearSectionMode:Y,rightSection:Q,disabled:R,readOnly:v,value:fe,error:O,onChange:a(ue=>{Ie(ue.currentTarget.value),W.openDropdown(),j&&W.selectFirstOption()},"onChange"),onFocus:a(ue=>{N&&W.openDropdown(),f?.(ue)},"onFocus"),onBlur:a(ue=>{Z&&W.clickSelectedOption(),W.closeDropdown(),p?.(ue)},"onBlur"),onClick:a(ue=>{W.openDropdown(),h?.(ue)},"onClick"),classNames:ce,styles:we,unstyled:o,attributes:M,id:he})}),s.jsx($r,{data:ne,hidden:v||R,filter:C,search:fe,limit:_,hiddenWhenEmpty:!0,withScrollArea:P,maxDropdownHeight:I,unstyled:o,labelId:U.label?`${he}-label`:void 0,"aria-label":U.label?void 0:U["aria-label"],renderOption:T,scrollAreaProps:B})]})});yo.classes={...He.classes,...Fe.classes};yo.displayName="@mantine/core/Autocomplete";var Sl={root:"m_2ce0de02"};const wl=de((e,{radius:t})=>({root:{"--bi-radius":t===void 0?void 0:Oe(t)}})),Jr=vs(e=>{const t=z("BackgroundImage",null,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,radius:d,src:u,variant:f,attributes:p,...h}=t;return s.jsx(A,{variant:f,...oe({name:"BackgroundImage",props:t,classes:Sl,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:p,vars:i,varsResolver:wl})("root",{style:{backgroundImage:`url(${u})`}}),...h})});Jr.classes=Sl;Jr.varsResolver=wl;Jr.displayName="@mantine/core/BackgroundImage";var jl={root:"m_ddec01c0",icon:"m_dde7bd57",cite:"m_dde51a35"};const nf={iconSize:48},Cl=de((e,{color:t,iconSize:r,radius:n})=>{const o=Ms({color:t||e.primaryColor,theme:e,colorScheme:"dark"}),c=Ms({color:t||e.primaryColor,theme:e,colorScheme:"light"});return{root:{"--bq-bg-light":Un(c.value,.07),"--bq-bg-dark":Un(o.value,.06),"--bq-bd":Te(t,e),"--bq-icon-size":K(r),"--bq-radius":Oe(n)}}}),Xr=V(e=>{const t=z("Blockquote",nf,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,children:d,icon:u,iconSize:f,cite:p,attributes:h,...g}=t,y=oe({name:"Blockquote",classes:jl,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:h,vars:i,varsResolver:Cl});return s.jsxs(A,{component:"blockquote",...y("root"),...g,children:[u&&s.jsx("span",{...y("icon"),children:u}),d,p&&s.jsx("cite",{...y("cite"),children:p})]})});Xr.classes=jl;Xr.varsResolver=Cl;Xr.displayName="@mantine/core/Blockquote";var kl={root:"m_b183c0a2"};const _l=de((e,{color:t})=>({root:{"--code-bg":t?Te(t,e):void 0}})),At=V(e=>{const t=z("Code",null,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,color:d,block:u,mod:f,attributes:p,...h}=t,g=oe({name:"Code",props:t,classes:kl,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:p,vars:i,varsResolver:_l});return s.jsx(A,{component:u?"pre":"code",mod:[{block:u},f],...g("root"),...h,dir:"ltr"})});At.classes=kl;At.varsResolver=_l;At.displayName="@mantine/core/Code";var Pl={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const sa={withShadow:!0},Rl=de((e,{radius:t,size:r})=>({root:{"--cs-radius":t===void 0?void 0:Oe(t),"--cs-size":K(r)}})),rs=vs(e=>{const t=z("ColorSwatch",sa,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,color:d,radius:u,withShadow:f,children:p,attributes:h,...g}=z("ColorSwatch",sa,t),y=oe({name:"ColorSwatch",props:t,classes:Pl,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:h,vars:i,varsResolver:Rl});return s.jsxs(A,{...y("root",{focusable:!0}),...g,children:[s.jsx("span",{...y("alphaOverlay")}),f&&s.jsx("span",{...y("shadowOverlay")}),s.jsx("span",{...y("colorOverlay",{style:{backgroundColor:d}})}),s.jsx("span",{...y("childrenOverlay"),children:p})]})});rs.classes=Pl;rs.varsResolver=Rl;rs.displayName="@mantine/core/ColorSwatch";function nt(e,t=0,r=10**t){return Math.round(r*e)/r}a(nt,"round");function of({h:e,s:t,l:r,a:n}){const o=t*((r<50?r:100-r)/100);return{h:e,s:o>0?2*o/(r+o)*100:0,v:r+o,a:n}}a(of,"hslaToHsva");const af={grad:360/400,turn:360,rad:360/(Math.PI*2)};function lf(e,t="deg"){return Number(e)*(af[t]||1)}a(lf,"parseHue");const cf=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function ra(e){const t=cf.exec(e);return t?of({h:lf(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}}a(ra,"parseHsla");function to({r:e,g:t,b:r,a:n}){const o=Math.max(e,t,r),c=o-Math.min(e,t,r),l=c?o===e?(t-r)/c:o===t?2+(r-e)/c:4+(e-t)/c:0;return{h:nt(60*(l<0?l+6:l),3),s:nt(o?c/o*100:0,3),v:nt(o/255*100,3),a:n}}a(to,"rgbaToHsva");function so(e){const t=e[0]==="#"?e.slice(1):e;return t.length===3?to({r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:1}):to({r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:1})}a(so,"parseHex");function df(e){const t=e[0]==="#"?e.slice(1):e,r=a(c=>nt(parseInt(c,16)/255,3),"roundA");if(t.length===4){const c=t.slice(0,3),l=r(t[3]+t[3]);return{...so(c),a:l}}const n=t.slice(0,6),o=r(t.slice(6,8));return{...so(n),a:o}}a(df,"parseHexa");const uf=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i;function na(e){const t=uf.exec(e);return t?to({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}}a(na,"parseRgba");const Nl={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},pf={hex:so,hexa:df,rgb:na,rgba:na,hsl:ra,hsla:ra};function ps(e){for(const[,t]of Object.entries(Nl))if(t.test(e))return!0;return!1}a(ps,"isColorValid");function Dt(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 t=e.trim();for(const[r,n]of Object.entries(Nl))if(n.test(t))return pf[r](t);return{h:0,s:0,v:0,a:1}}a(Dt,"parseColor");const Yr=m.createContext(null);function So({position:e,...t}){return s.jsx(A,{__vars:{"--thumb-y-offset":`${e.y*100}%`,"--thumb-x-offset":`${e.x*100}%`},...t})}a(So,"Thumb$1");So.displayName="@mantine/core/ColorPickerThumb";var Zr={wrapper:"m_fee9c77",preview:"m_9dddfbac",body:"m_bffecc3e",sliders:"m_3283bb96",thumb:"m_40d572ba",swatch:"m_d8ee6fd8",swatches:"m_5711e686",saturation:"m_202a296e",saturationOverlay:"m_11b3db02",slider:"m_d856d47d",sliderOverlay:"m_8f327113"};const Ss=V(e=>{const t=z("ColorSlider",null,e),{classNames:r,className:n,style:o,styles:c,unstyled:l,vars:i,onChange:d,onChangeEnd:u,maxValue:f,round:p,size:h="md",focusable:g=!0,value:y,overlays:w,thumbColor:S="transparent",onScrubStart:j,onScrubEnd:x,__staticSelector:k="ColorPicker",attributes:b,ref:v,...R}=t,C=oe({name:k,classes:Zr,props:t,className:n,style:o,classNames:r,styles:c,unstyled:l,attributes:b,rootSelector:"slider"}),_=m.use(Yr)?.getStyles||C,P=Ee(),[I,E]=m.useState({y:0,x:y/f}),F=m.useRef(I),T=a(O=>p?Math.round(O*f):O*f,"getChangeValue"),{ref:L}=Lr(({x:O,y:G})=>{F.current={x:O,y:G},d?.(T(O))},{onScrubEnd:a(()=>{const{x:O}=F.current;u?.(T(O)),x?.()},"onScrubEnd"),onScrubStart:j});jr(()=>{E({y:0,x:y/f})},[y]);const B=a((O,G)=>{O.preventDefault();const Y=dl(G);d?.(T(Y.x)),u?.(T(Y.x))},"handleArrow"),X=a(O=>{switch(O.key){case"ArrowRight":B(O,{x:I.x+.05,y:I.y});break;case"ArrowLeft":B(O,{x:I.x-.05,y:I.y});break}},"handleKeyDown"),$=w.map((O,G)=>m.createElement("div",{..._("sliderOverlay"),style:O,key:G}));return s.jsxs(A,{...R,ref:Ge(L,v),..._("slider"),size:h,role:"slider","aria-valuenow":y,"aria-valuemax":f,"aria-valuemin":0,tabIndex:g?0:-1,onKeyDown:X,"data-focus-ring":P.focusRing,__vars:{"--cp-thumb-size":`var(--cp-thumb-size-${h})`},children:[$,s.jsx(So,{position:I,..._("thumb",{style:{top:K(1),background:S}})})]})});Ss.displayName="@mantine/core/ColorSlider";Ss.classes=Zr;const hf={__staticSelector:"AlphaSlider"},Qr=V(e=>{const{value:t,onChange:r,onChangeEnd:n,color:o,...c}=z("AlphaSlider",hf,e);return s.jsx(Ss,{...c,value:t,onChange:a(l=>r?.(nt(l,2)),"onChange"),onChangeEnd:a(l=>n?.(nt(l,2)),"onChangeEnd"),maxValue:1,round:!1,"data-alpha":!0,overlays:[{backgroundImage:"linear-gradient(45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(-45deg, var(--slider-checkers) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--slider-checkers) 75%), linear-gradient(-45deg, var(--mantine-color-body) 75%, var(--slider-checkers) 75%)",backgroundSize:`${K(8)} ${K(8)}`,backgroundPosition:`0 0, 0 ${K(4)}, ${K(4)} ${K(-4)}, ${K(-4)} 0`},{backgroundImage:`linear-gradient(90deg, transparent, ${o})`},{boxShadow:`rgba(0, 0, 0, .1) 0 0 0 ${K(1)} inset, rgb(0, 0, 0, .15) 0 0 ${K(4)} inset`}]})});Qr.displayName="@mantine/core/AlphaSlider";Qr.classes=Ss.classes;function Il({h:e,s:t,v:r,a:n}){const o=e/360*6,c=t/100,l=r/100,i=Math.floor(o),d=l*(1-c),u=l*(1-(o-i)*c),f=l*(1-(1-o+i)*c),p=i%6;return{r:nt([l,u,d,d,f,l][p]*255),g:nt([f,l,l,u,d,d][p]*255),b:nt([d,d,f,l,l,u][p]*255),a:nt(n,2)}}a(Il,"hsvaToRgbaObject");function oa(e,t){const{r,g:n,b:o,a:c}=Il(e);return t?`rgba(${r}, ${n}, ${o}, ${nt(c,2)})`:`rgb(${r}, ${n}, ${o})`}a(oa,"hsvaToRgba");function aa({h:e,s:t,v:r,a:n},o){const c=(200-t)*r/100,l={h:Math.round(e),s:Math.round(c>0&&c<200?t*r/100/(c<=100?c:200-c)*100:0),l:Math.round(c/2)};return o?`hsla(${l.h}, ${l.s}%, ${l.l}%, ${nt(n,2)})`:`hsl(${l.h}, ${l.s}%, ${l.l}%)`}a(aa,"hsvaToHsl");function Sr(e){const t=e.toString(16);return t.length<2?