1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{65911:(e,t,r)=>{r.d(t,{_:()=>l});var n=r(96683),a=r(53314);class l{static get BASE_URL(){if(!this.isProd){let e=n.A.get("baseUrlOverride");if(e)return e}return this.defaultBaseUrl}static async getServerSideBaseUrl(){if(this.isProd)return this.defaultBaseUrl;try{let e=await r.e(46).then(r.bind(r,46)).then(e=>e.cookies),t=(await e()).get("baseUrlOverride");if(t)return t.value}catch(e){}return this.defaultBaseUrl}static get defaultBaseUrl(){return"https://api.liveavatar.com"}static clearBaseUrlOverride(){this.isProd||n.A.remove("baseUrlOverride")}static setBaseUrlOverride(e){this.isProd||n.A.set("baseUrlOverride",e)}static get isProd(){return"prod"===this.ENV}static get ENV(){return"prod"}static get APP_URL(){return a.env.NEXT_PUBLIC_APP_URL||"https://app.liveavatar.com"}}},76054:(e,t,r)=>{var n=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))s.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(n=l(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?n(i(e)):{},c(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)),u={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(u,{Button:()=>S,ButtonSize:()=>h,ButtonVariant:()=>g,Checkbox:()=>tA,Dialog:()=>ef,DialogContextProvider:()=>ev,Field:()=>tM,Icon:()=>C,IconButton:()=>z,InfoTooltip:()=>e9,Input:()=>eN,Loading:()=>tn,LoadingWrapper:()=>tl,MaybeIcon:()=>N,Notification:()=>eG,NotificationContextProvider:()=>eq,Popover:()=>en,PopoverAnchor:()=>ec,PopoverArrow:()=>ei,PopoverClose:()=>es,PopoverContent:()=>eo,PopoverMenu:()=>et,PopoverPortal:()=>el,PopoverTrigger:()=>ea,PrimaryButton:()=>M,SecondaryButton:()=>O,Select:()=>tN,StackedBarChart:()=>E,Switch:()=>ts,Tabs:()=>tu,TextField:()=>eM,Toast:()=>eD,ToastContextProvider:()=>eT,Tooltip:()=>e3,computeYAxisConfig:()=>I,useDialog:()=>ej,useDialogContext:()=>ew,useGridColumns:()=>tR,useNotification:()=>eX,useToastContext:()=>e_}),e.exports=c(a({},"__esModule",{value:!0}),u);var p=r(75465),x=r(86458),f=r(27125),g=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.SUBTLE="subtle",e.DANGER="danger",e.TRANSPARENT="transparent",e))(g||{}),h=(e=>(e.DEFAULT="default",e.SMALL="sm",e.LARGE="lg",e.ICON="icon",e.ICON_MD="iconMd",e.ICON_SM="iconSm",e))(h||{}),m=r(75465),b=r(44572),v=r(99133),w=e=>{let{children:t,width:r,height:n,className:a}=e,l=(0,m.useRef)(null),[o,i]=(0,m.useState)(null);return(0,m.useLayoutEffect)(()=>{var e;let t=l.current;t&&i(null!=(e=t.shadowRoot)?e:t.attachShadow({mode:"open"}))},[]),(0,v.jsx)("span",{ref:l,style:{width:r,height:n},className:a,children:o?(0,b.createPortal)(t,o):null})},j=r(99133),C=e=>{let{IconComponent:t,size:r=20,className:n,width:a,height:l}=e;return(0,j.jsx)(w,{width:a||r,height:l||r,className:n,children:(0,j.jsx)(t,{className:n,width:a||r,height:l||r,pointerEvents:"none"})})},y=r(99133),N=e=>{let{IconComponent:t,size:r=20,className:n}=e;return"function"==typeof t?(0,y.jsx)(C,{IconComponent:t,size:r,className:n}):t},k=r(99133),P=(0,f.cva)("inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md leading-[20px] tracking-normal focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{primary:"bg-brand text-on-brand shadow hover:bg-brand-hover active:bg-brand-active disabled:bg-brand-disabled",secondary:"bg-general text-on-general hover:bg-general-hover active:bg-general-active disabled:opacity-disabled border border-line",subtle:"bg-subtle text-on-general hover:bg-subtle-hover active:bg-subtle-active disabled:opacity-disabled",danger:"bg-danger text-on-brand hover:bg-danger-hover active:bg-danger-active disabled:opacity-disabled",transparent:"bg-transparent text-on-general disabled:opacity-disabled"},size:{default:"h-btn-md px-3 gap-1.5",sm:"h-btn-sm px-2 gap-1",lg:"h-btn-lg px-4 gap-2",icon:"h-10 w-10",iconMd:"h-8 w-8",iconSm:"h-6 w-6"}},defaultVariants:{variant:"primary",size:"default"}}),M=(0,p.forwardRef)((e,t)=>(0,k.jsx)(S,{variant:"primary",ref:t,...e})),O=(0,p.forwardRef)((e,t)=>(0,k.jsx)(S,{variant:"secondary",ref:t,...e})),S=(0,p.forwardRef)((e,t)=>{let{children:r,iconLeft:n,iconRight:a,disabled:l,variant:o,size:i="default",className:s,...c}=e,d=(0,p.useMemo)(()=>"default"===i||"iconMd"===i?16:"lg"===i||"icon"===i?20:"sm"===i||"iconSm"===i?14:void 0,[i]);return(0,k.jsxs)("button",{ref:t,className:(0,x.twMerge)("flex gap-2",P({variant:o,size:i}),s),disabled:l,...c,children:[n&&(0,k.jsx)(N,{IconComponent:n,size:d}),r,a&&(0,k.jsx)(N,{IconComponent:a,size:d})]})});S.displayName="Button",M.displayName="PrimaryButton",O.displayName="SecondaryButton";var z=(0,p.forwardRef)((e,t)=>{let{icon:r,size:n="iconMd",...a}=e;return(0,k.jsx)(S,{ref:t,...a,size:n,iconLeft:r})});z.displayName="IconButton";var D=r(75465),A=r(98764),I=(e,t,r)=>{var n;let a=0;for(let n of e)if(r)for(let e of t){let t=Number(n[e.dataKey])||0;t>a&&(a=t)}else{let e=0;for(let r of t)e+=Number(n[r.dataKey])||0;e>a&&(a=e)}if(a<=0)return{domain:[0,10],ticks:[0,2,4,6,8,10]};let l=a/5,o=Math.pow(10,Math.floor(Math.log10(l))),i=(null!=(n=[1,2,2.5,3,5,10].find(e=>e*o>=l))?n:10)*o,s=[];for(let e=0;e<6;e++)s.push(Math.round(i*e*100)/100);return{domain:[0,5*i],ticks:s}},R=r(99133),B=e=>{let{x:t=0,y:r=0,width:n=0,height:a=0,fill:l,payload:o,dataKey:i,seriesKeys:s}=e;if(!a||a<=0||!n)return null;
1let c=6*(i===[...s].reverse().find(e=>((null==o?void 0:o[e])||0)>0));if(c>0){let e=Math.min(c,n/2,a);return(0,R.jsx)("path",{d:"M".concat(t,",").concat(r+e,"\n Q").concat(t,",").concat(r," ").concat(t+e,",").concat(r,"\n L").concat(t+n-e,",").concat(r,"\n Q").concat(t+n,",").concat(r," ").concat(t+n,",").concat(r+e,"\n L").concat(t+n,",").concat(r+a,"\n L").concat(t,",").concat(r+a,"Z"),fill:l})}return(0,R.jsx)("rect",{x:t,y:r,width:n,height:a,fill:l})},L={fill:"#232833",fontSize:12,fontFamily:"Inter",fontWeight:400},T={backgroundColor:"#232833",borderRadius:8,padding:"8px 12px",color:"#FFFFFF",fontFamily:"Inter",fontSize:12,fontWeight:500,textAlign:"center",lineHeight:1.4},_=e=>{var t,r,n,a,l;let{active:o,payload:i}=e;if(!o||!i||!i.length)return null;let s=null!=(l=null==(r=i[0])||null==(t=r.payload)?void 0:t.tooltipLabel)?l:null==(a=i[0])||null==(n=a.payload)?void 0:n.label;return(0,R.jsxs)("div",{style:T,children:[(0,R.jsx)("div",{style:{opacity:.8,marginBottom:4},children:s}),i.filter(e=>(Number(e.value)||0)>0).map((e,t)=>(0,R.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,R.jsx)("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:e.color,flexShrink:0}}),(0,R.jsxs)("span",{children:[e.name,": ",(Number(e.value)||0).toLocaleString()]})]},t))]})},E=e=>{var t;let{data:r,series:n,height:a=300,showLegend:l=!0,variant:o="stacked"}=e,i="grouped"===o,s=(0,D.useMemo)(()=>n.map(e=>e.dataKey),[n]),{domain:c,ticks:d}=I(r,n,i),u=Math.max(40,9*(null!=(t=d[d.length-1])?t:0).toLocaleString().length+12);return(0,R.jsx)(A.ResponsiveContainer,{width:"100%",height:a,children:(0,R.jsxs)(A.BarChart,{data:r,margin:{top:10,right:0,left:0,bottom:0},barSize:i?16:32,barCategoryGap:20,children:[(0,R.jsx)(A.CartesianGrid,{vertical:!1,horizontal:!0,stroke:"#E5E7EB"}),(0,R.jsx)(A.XAxis,{dataKey:"label",axisLine:!1,tickLine:!1,tick:L}),(0,R.jsx)(A.YAxis,{axisLine:!1,tickLine:!1,ticks:d,domain:c,allowDataOverflow:!0,width:u,tick:L,tickFormatter:e=>e.toLocaleString()}),(0,R.jsx)(A.Tooltip,{cursor:!1,content:(0,R.jsx)(_,{}),isAnimationActive:!1}),l&&(0,R.jsx)(A.Legend,{}),n.map(e=>(0,R.jsx)(A.Bar,{dataKey:e.dataKey,name:e.name,stackId:i?void 0:"stack",fill:e.color,radius:i?[6,6,0,0]:void 0,shape:i?void 0:t=>(0,R.jsx)(B,{...t,dataKey:e.dataKey,seriesKeys:s})},e.dataKey))]})})},F=d(r(15494)),U=r(86458),K=r(86458),V=r(75465),G=r(99133),Z=e=>{let{children:t,onClick:r,isDisabled:n,className:a,separatorBefore:l,separatorAfter:o}=e;return(0,G.jsxs)(G.Fragment,{children:[l&&(0,G.jsx)("div",{className:"h-px bg-line w-full my-1"}),(0,G.jsx)("div",{className:(0,K.twMerge)("flex flex-row px-2 py-2 gap-1.5 items-center bg-general rounded-lg text-on-general hover:bg-general-hover active:bg-general-active cursor-pointer",n&&"opacity-disabled cursor-not-allowed",a),onClick:e=>{n||r(e)},children:t}),o&&(0,G.jsx)("div",{className:"h-px bg-line w-full my-1"})]})};function Y(e){var t,r,n;let{item:a,itemData:l,onSelect:o}=e,i=(0,V.useCallback)(e=>{null==o||o(e,a)},[a,o]);return"Component"in l?(0,G.jsx)(Z,{onClick:i,isDisabled:null!=(t=l.isDisabled)&&t,className:l.className,separatorBefore:l.separatorBefore,separatorAfter:l.separatorAfter,children:(0,G.jsx)(l.Component,{isDisabled:null!=(r=l.isDisabled)&&r,item:a})}):(0,G.jsxs)(Z,{onClick:i,isDisabled:null!=(n=l.isDisabled)&&n,className:l.className,separatorBefore:l.separatorBefore,separatorAfter:l.separatorAfter,children:[l.iconLeft&&(0,G.jsx)(N,{IconComponent:l.iconLeft,size:16}),(0,G.jsx)("span",{className:"text-sm",children:l.label}),l.iconRight&&(0,G.jsx)(N,{IconComponent:l.iconRight,size:16})]})}var W=r(75465),H=r(75465),Q=r(99133),q={dialog:999,popover:99,tooltip:99,select:99},X=(0,H.createContext)({componentType:"dialog",offset:0}),J=e=>{let{children:t,componentType:r}=e,{currentOffset:n}=$(r),a=(0,H.useMemo)(()=>n+q[r],[n,r]);return(0,Q.jsx)(X.Provider,{value:{componentType:r,offset:a},children:t})},$=e=>{let t=(0,H.useContext)(X);return t?{currentOffset:t.offset,componentOverlayOffset:t.offset+q[e],componentContentOffset:t.offset+q[e]+1}:{currentOffset:0,componentOverlayOffset:q[e],componentContentOffset:q[e]+1}},ee=r(99133);function et(e){let{children:t,items:r,isDisabled:n,side:a="top",sideOffset:l=5,align:o,alignOffset:i,onSelect:s,getItemData:c,contentClassName:d,arrow:u,onOpenChange:p}=e,{componentOverlayOffset:x}=$("popover"),[f,g]=(0,W.useState)(!1);return(0,ee.jsxs)(F.Root,{open:f,onOpenChange:e=>{g(e),null==p||p(e)},children:[(0,ee.jsx)(F.Trigger,{disabled:n,asChild:!0,children:t}),(0,ee.jsx)(J,{componentType:"popover",children:(0,ee.jsx)(F.Portal,{children:(0,ee.jsxs)(F.Content,{side:a,sideOffset:l,align:o,alignOffset:i,className:(0,U.twMerge)("relative min-w-[8rem] rounded-xl bg-general shadow-popover","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",d),style:{zIndex:x},children:[(0,ee.jsx)("div",{className:"overflow-hidden min-h-0 rounded-xl max-h-96 flex flex-col p-1",children:(0,ee.jsx)("div",{className:"min-h-0 max-h-96 overflow-y-auto flex flex-col",children:r.map(e=>{let t=c(e);if(t)return(0,ee.jsx)(Y,{item:e,itemData:t,onSelect:(e,r)=>{t.onClick?t.onClick(e,r):null==s||s(r,e),e.isPropagationStopped()||(g(!1),null==p||p(!1))}},t.key)})})}),u&&(0,ee.jsx)(F.Arrow,{className:"fill-general"})]})})})]})}var er=d(r(15494)),en=er.Root,ea=er.Trigger,el=er.Portal,eo=er.Content,ei=er.Arrow,es=er.Close,ec=er.Anchor,ed=d(r(99854)),eu=r(86458),ep=r(92791),ex=r(99133),ef=e=>{let{children:t,trigger:r,className:n,overlayClassName:a,zIndexOffset:l=0,title:o="Dialog",disableCloseOnOutsideClick:i,onEscapeKeyDown:s,onOpenAutoFocus:c,...d}=e,{componentOverlayOffset:u,componentContentOffset:p}=$("dialog");return(0,ex.jsxs)(ed.Root,{open:d.isOpen,onOpenChange:d.onOpenChange,children:[r&&(0,ex.jsx)(ed.Trigger,{asChild:!0,children:r}),(0,ex.jsx)(J,{componentType:"dialog",children:(0,ex.jsxs)(ed.Portal,{children:[(0,ex.jsx)(ed.Overlay,{className:(0,eu.twMerge)("fixed inset-0 bg-black/50",a),style:{zIndex:u+l}}),(0,ex.jsxs)(ed.Content,{onOpenAutoFocus:c,className:(0,eu.twMerge)("fixed inset-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 outline-none","bg-general rounded-xl h-fit max-h-[calc(100vh-40px)] max-w-[calc(100vw-20px)] overflow-y-auto w-[500px] p-5 flex flex-col",n),style:{zIndex:p+l},"aria-describedby":void 0,onInteractOutside:e=>{i&&e.preventDefault()},onEscapeKeyDown:e=>{null==s||s(e),i&&e.preventDefault()},children:[(0,ex.jsx)(ed.Title,{className:"hidden",children:(0,ex.jsx)(ep.VisuallyHidden,{children:o})}),t]})]})})]})},eg=r(75465),eh=r(75465),em=r(99133),eb=(0,eh.createContext)({openDialog:()=>{},closeDialog:()=>{},onPropsChange:()=>{},hasOpenDialogs:!1}),ev=e=>{let{children:t}=e,[r,n]=(0,eh.useState)([]),a=(0,eh.useCallback)((e,t)=>{n(r=>{let n=r.findIndex(t=>t.Component===e);return -1===n?[...r,{Component:e,props:{...t,isOpen:!0}}]:r.map((e,r)=>r===n?{...e,props:{...t,isOpen:!0}}:e)})},[]),l=(0,eh.useCallback)(e=>{n(t=>t.map(t=>t.Component===e?{...t,props:{isOpen:!1}}:t))},[]),o=(0,eh.useCallback)((e,t)=>{n(r=>r.map(r=>r.Component===e?{...r,props:{...r.props,...t}}:r))},[]),i=r.some(e=>e.props.isOpen);return(0,em.jsxs)(eb.Provider,{value:{openDialog:a,closeDialog:l,onPropsChange:o,hasOpenDialogs:i},children:[t,r.map((e,t)=>{let{Component:n,props:a}=e;if(a.isOpen){let e=r.slice(0,t).filter(e=>e.props.isOpen).length;return(0,em.jsx)(X.Provider,{value:{componentType:"dialog",offset:1001*e},children:(0,em.jsx)(n,{...a,onOpenChange:e=>{var t;l(n),null==(t=a.onOpenChange)||t.call(a,e)}})},t)}return null})]})},ew=()=>{let e=(0,eh.useContext)(eb);if(!e)throw Error("useDialogContext must be used within a DialogContextProvider");return e},ej=e=>{let{openDialog:t,closeDialog:r,onPropsChange:n}=ew(),a=(0,eg.useCallback)(r=>{t(e,r)},[t,e]);return{open:a,close:(0,eg.useCallback)(()=>{r(e)},[r,e]),setProps:(0,eg.useCallback)(t=>{n(e,t)},[n,e])}},eC=r(86458),ey=r(99133),eN=e=>{let{className:t,inputClassName:r,iconLeft:n,iconRight:a,onChange:l,invalid:o,onEnter:i,disabled:s,value:c,ref:d,...u}=e;return(0,ey.jsxs)("div",{className:(0,eC.twMerge)("flex flex-row items-center gap-2 rounded-md border border-line w-full bg-general hover:border-brand px-3 py-2.5","focus-within:border-brand focus-within:shadow-input text-allGray focus-within:text-on-general",o&&"border-danger hover:border-danger focus-within:border-danger",t),children:[n&&(0,ey.jsx)(N,{IconComponent:n,size:18}),(0,ey.jsx)("input",{className:(0,eC.twMerge)("flex-1 bg-transparent outline-none border-none placeholder:text-allGray",r),ref:d,onChange:e=>null==l?void 0:l(e.target.value,e),onKeyDown:e=>{var t;null==(t=u.onKeyDown)||t.call(u,e),"Enter"!==e.key||s||null==i||i(e)},disabled:s,value:c,...u}),a&&(0,ey.jsx)(N,{IconComponent:a,size:18})]})},ek=r(86458),eP=r(99133),eM=e=>{let{className:t,onChange:r,...n}=e;return(0,eP.jsx)("textarea",{className:(0,ek.twMerge)("bg-general outline-none border border-line hover:border-brand focus:border-brand rounded-md p-2 w-full resize-none overflow-y-auto",t),onChange:e=>null==r?void 0:r(e.target.value,e),...n})},eO=r(75465),eS=d(r(68568)),ez=r(99133),eD=e=>{let{icon:t,title:r,onClose:n,closeIcon:a}=e,[l,o]=(0,eO.useState)(!0),i=(0,eO.useCallback)(()=>{o(!1),n()},[n]);return(0,ez.jsxs)(eS.Root,{open:l,className:"bg-general px-4 py-2.5 rounded-lg shadow-toast flex flex-row items-center gap-2 w-fit border border-line data-[state=open]:animate-toastAppear data-[state=closed]:animate-toastDisappear",onOpenChange:e=>{e||i()},children:[(0,ez.jsx)(N,{IconComponent:t,size:20}),(0,ez.jsx)(eS.Title,{className:"text-on-general flex-1",children:r}),a&&(0,ez.jsx)(z,{icon:a,onClick:i,variant:"transparent",size:"iconSm"})]})},eA=d(r(75465)),eI=r(53143),eR=d(r(68568)),eB=r(99133),eL=eA.default.createContext({openToast:()=>{}}),eT=e=>{let{children:t}=e,[r,n]=(0,eA.useState)([]),a=(0,eA.useCallback)(e=>{n(t=>[...t,{id:(0,eI.nanoid)(),props:e}])},[]),l=(0,eA.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e))},[]);return(0,eB.jsxs)(eL.Provider,{value:{openToast:a},children:[t,(0,eB.jsxs)(eR.Provider,{duration:3e3,children:[r.map(e=>{let{id:t,props:r}=e;return(0,eB.jsx)(eD,{...r,onClose:()=>l(t)},t)}),(0,eB.jsx)(eR.Viewport,{className:"fixed top-12 right-1/2 translate-x-1/2 z-[9999] flex flex-col gap-2"})]})]})},e_=()=>{let e=(0,eA.useContext)(eL);if(!e)throw Error("useToastContext must be used within a ToastContextProvider");return e},eE=r(75465),eF=d(r(68568));d(r(75465));var eU=r(99133),eK=e=>(0,eU.jsx)("svg",{preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none",viewBox:"0 0 48 48",...e,children:(0,eU.jsx)("g",{children:(0,eU.jsx)("path",{fill:"currentColor",d:"M37.712 8.231c.229.075.427.273.823.669l.566.565c.395.396.593.594.668.823.065.2.065.417 0 .618-.075.228-.273.426-.669.822L26.828 24 39.1 36.272c.396.396.594.594.669.822a1 1 0 0 1 0 .618c-.075.229-.273.427-.669.823l-.565.565c-.396.396-.594.594-.823.669a1 1 0 0 1-.618 0c-.228-.075-.426-.273-.822-.669L24 26.828 11.728 39.1c-.396.396-.594.594-.822.668-.2.066-.417.066-.618 0-.228-.074-.426-.272-.822-.668l-.566-.566c-.396-.395-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822L21.172 24 8.9 11.728c-.396-.396-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.229.272-.427.668-.823l.565-.565c.396-.396.595-.594.823-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L24 21.172 36.272 8.9c.396-.396.594-.594.822-.669a1 1 0 0 1 .618 0Z","data-follow-fill":"currentColor"})})}),eV=r(99133),eG=e=>
1{let{icon:t,title:r,description:n,onClose:a}=e,[l,o]=(0,eE.useState)(!0),i=(0,eE.useCallback)(()=>{o(!1),a()},[a]);return(0,eV.jsxs)(eF.Root,{open:l,className:"bg-general px-4 py-2.5 rounded-lg shadow-toast flex flex-row items-center gap-2 w-[350px] border border-line data-[state=open]:animate-notificationAppear data-[state=closed]:animate-notificationDisappear mr-4",onOpenChange:e=>{e||i()},children:[t&&(0,eV.jsx)(N,{IconComponent:t,size:20}),(0,eV.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,eV.jsx)(eF.Title,{className:"text-on-general flex-1",children:r}),n&&(0,eV.jsx)(eF.Description,{className:"text-on-general text-xs text-textSupport",children:n})]}),(0,eV.jsx)(z,{icon:eK,onClick:i,variant:"transparent",size:"iconSm"})]})},eZ=d(r(75465)),eY=r(53143),eW=d(r(68568)),eH=r(99133),eQ=eZ.default.createContext({notify:()=>{}}),eq=e=>{let{children:t}=e,[r,n]=(0,eZ.useState)([]),a=(0,eZ.useCallback)(e=>{n(t=>[...t,{id:(0,eY.nanoid)(),props:e}])},[]),l=(0,eZ.useCallback)(e=>{n(t=>t.filter(t=>t.id!==e))},[]);return(0,eH.jsxs)(eQ.Provider,{value:{notify:a},children:[t,(0,eH.jsxs)(eW.Provider,{duration:3e3,children:[r.map(e=>{let{id:t,props:r}=e;return(0,eH.jsx)(eG,{...r,onClose:()=>l(t)},t)}),(0,eH.jsx)(eW.Viewport,{className:"fixed top-12 right-0 z-[9999] flex flex-col gap-2"})]})]})},eX=()=>{let e=(0,eZ.useContext)(eQ);if(!e)throw Error("useNotification must be used within a NotificationContextProvider");return e},eJ=d(r(49706)),e$=r(86458),e0=r(99133),e3=e=>{let{children:t,content:r,className:n,side:a,sideOffset:l=5,align:o,alignOffset:i,arrow:s=!0,open:c,onOpenChange:d}=e,{componentOverlayOffset:u}=$("tooltip");return r?(0,e0.jsx)(eJ.Provider,{delayDuration:200,children:(0,e0.jsxs)(eJ.Root,{open:c,onOpenChange:d,children:[(0,e0.jsx)(eJ.Trigger,{asChild:!0,children:t}),(0,e0.jsx)(J,{componentType:"tooltip",children:(0,e0.jsx)(eJ.Portal,{children:(0,e0.jsxs)(eJ.Content,{className:(0,e$.twMerge)("bg-tooltip text-on-brand rounded-lg p-3 max-w-[250px] sm:max-w-[500px] text-sm text-center",n),side:a,sideOffset:l,align:o,alignOffset:i,style:{zIndex:u},children:[r,s&&(0,e0.jsx)(eJ.Arrow,{className:"fill-tooltip"})]})})})]})}):t};d(r(75465));var e6=r(99133),e1=e=>(0,e6.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:16,viewBox:"0 0 17 16",fill:"none",...e,children:(0,e6.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.33431 15.3337C12.3844 15.3337 15.6676 12.0504 15.6676 8.00033C15.6676 3.95024 12.3844 0.666992 8.33431 0.666992C4.28422 0.666992 1.00098 3.95024 1.00098 8.00033C1.00098 12.0504 4.28422 15.3337 8.33431 15.3337ZM9.33431 5.00033C9.33431 5.55261 8.88659 6.00033 8.33431 6.00033C7.78202 6.00033 7.33431 5.55261 7.33431 5.00033C7.33431 4.44804 7.78202 4.00033 8.33431 4.00033C8.88659 4.00033 9.33431 4.44804 9.33431 5.00033ZM7.66764 7.86699C7.66764 7.68031 7.66764 7.58697 7.70397 7.51566C7.73593 7.45294 7.78693 7.40195 7.84965 7.36999C7.92095 7.33366 8.01429 7.33366 8.20098 7.33366H8.46764C8.65433 7.33366 8.74767 7.33366 8.81897 7.36999C8.88169 7.40195 8.93269 7.45294 8.96464 7.51566C9.00098 7.58697 9.00098 7.68031 9.00098 7.86699V11.467C9.00098 11.6537 9.00098 11.747 8.96464 11.8183C8.93269 11.881 8.88169 11.932 8.81897 11.964C8.74767 12.0003 8.65433 12.0003 8.46764 12.0003H8.20098C8.01429 12.0003 7.92095 12.0003 7.84965 11.964C7.78693 11.932 7.73593 11.881 7.70397 11.8183C7.66764 11.747 7.66764 11.6537 7.66764 11.467V7.86699Z",fill:"currentColor"})}),e2=r(99133),e9=e=>{let{size:t=16,iconClassName:r,children:n,...a}=e;return(0,e2.jsx)(e3,{...a,content:n,children:(0,e2.jsx)("span",{className:"flex items-center justify-center",children:(0,e2.jsx)(C,{IconComponent:e1,size:t,className:r})})})};d(r(75465));var e8=r(99133),e4=e=>(0,e8.jsx)("svg",{preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:36,height:36,fill:"currentColor",viewBox:"0 0 1024 1024",...e,children:(0,e8.jsxs)("g",{children:[(0,e8.jsx)("path",{"data-follow-fill":"currentColor",d:"M512 170.667c-188.523 0-341.333 152.81-341.333 341.333S323.477 853.333 512 853.333a339.84 339.84 0 0 0 208.704-71.232c22.4-17.322 33.621-26.005 39.403-28.842 4.202-2.07 5.781-2.944 7.466-3.499 1.664-.576 3.435-.853 8.043-1.813 6.315-1.28 22.997-1.28 56.384-1.28 13.333 0 20.01 0 22.933 2.325a10.347 10.347 0 0 1 4.011 8.256c.043 3.733-3.627 8.384-10.923 17.707C769.941 874.624 648.448 938.667 512 938.667 276.352 938.667 85.333 747.648 85.333 512S276.352 85.333 512 85.333c136.448 0 257.92 64.043 336.021 163.712 7.318 9.323 10.966 13.974 10.923 17.707a10.347 10.347 0 0 1-4.01 8.256c-2.923 2.325-9.6 2.325-22.934 2.325-33.387 0-50.07 0-56.384-1.28-4.608-.938-6.379-1.237-8.043-1.813-1.685-.555-3.264-1.43-7.466-3.499-5.782-2.837-16.982-11.52-39.403-28.842A339.84 339.84 0 0 0 512 170.667z",fill:"
1currentColor"}),(0,e8.jsx)("path",{"data-follow-fill":"currentColor",d:"M832 682.667a170.667 170.667 0 1 0 0-341.334 170.667 170.667 0 0 0 0 341.334z",fill:"currentColor"})]})}),e5=r(75465),e7=r(86458),te=r(99133),tt=e=>{let{delay:t,children:r}=e,[n,a]=(0,e5.useState)(!1);return(0,e5.useEffect)(()=>{let e=setTimeout(()=>{a(!0)},t);return()=>clearTimeout(e)},[t]),n?(0,te.jsx)(te.Fragment,{children:r}):null},tr=e=>{let{className:t,size:r=48}=e;return(0,te.jsx)("div",{className:(0,e7.twMerge)("flex flex-col justify-center items-center text-on-general",t),children:(0,te.jsx)(C,{IconComponent:e4,className:"animate-spin",size:r})})},tn=e=>{let{delay:t,...r}=e;return t?(0,te.jsx)(tt,{delay:t,children:(0,te.jsx)(tr,{...r})}):(0,te.jsx)(tr,{...r})},ta=r(99133),tl=e=>{let{children:t,isLoading:r,...n}=e;return r?(0,ta.jsx)(tn,{...n}):(0,ta.jsx)(ta.Fragment,{children:t})},to=r(86458),ti=r(99133),ts=e=>{let{checked:t,onChange:r,className:n,disabled:a,isLoading:l}=e;return(0,ti.jsxs)("button",{className:(0,to.twMerge)("relative inline-flex h-[26px] w-[54px] shrink-0 cursor-pointer rounded-full border transition-colors duration-200 p-0.5 flex flex-row items-center justify-between","disabled:opacity-disabled disabled:pointer-events-none outline-none",t?"bg-brand border-line":"bg-fillBlock border-line-dark",n),disabled:a||l,onClick:()=>r(!t),children:[(0,ti.jsx)("span",{className:(0,to.twMerge)("absolute inset-0 m-0.5 size-5 rounded-full bg-general transition-transform duration-200 shadow-switch","flex items-center justify-center",t?"translate-x-[28px]":"translate-x-0"),children:l&&(0,ti.jsx)(C,{IconComponent:e4,size:12,className:"animate-spin flex flex-row items-center justify-center text-brand"})}),(0,ti.jsx)("span",{className:(0,to.twMerge)("absolute left-1 text-on-brand text-xs transition-opacity duration-200 w-6 text-center",!t&&"opacity-0"),children:"ON"}),(0,ti.jsx)("span",{className:(0,to.twMerge)("absolute right-1 text-textDisabled text-xs transition-opacity duration-200 w-6 text-center",t&&"opacity-0"),children:"OFF"})]})},tc=r(86458),td=r(99133);function tu(e){let{tabs:t,getTabData:r,setTab:n,className:a}=e;return(0,td.jsx)("div",{className:(0,tc.twMerge)("flex flex-row gap-1 bg-offWhite rounded-[9px] p-[1px] w-fit",a),children:t.map(e=>{let{label:t,isActive:a,className:l}=r(e);return(0,td.jsx)("button",{className:(0,tc.twMerge)("rounded-lg py-1 px-2 outline-none border border-transparent font-medium min-w-20 shrink-0 text-center text-textSupport no-wrap",a&&"bg-general text-on-general border-line",l),onClick:()=>!a&&n(e),children:t},t)})})}var tp=d(r(75465)),tx=d(r(65570)),tf=r(86458),tg=r(86458),th=r(75465),tm=r(99133),tb=e=>{let{children:t,onClick:r,isDisabled:n,isSelected:a,className:l,separatorBefore:o,separatorAfter:i}=e;return(0,tm.jsxs)(tm.Fragment,{children:[o&&(0,tm.jsx)("div",{className:"h-px bg-line w-full my-1"}),(0,tm.jsx)("div",{className:(0,tg.twMerge)("flex flex-row px-2 py-2 gap-1.5 items-center bg-general rounded-lg text-on-general hover:bg-general-hover active:bg-general-active cursor-pointer",n&&"opacity-disabled cursor-not-allowed",a&&"bg-general-active",l),onClick:e=>{n||r(e)},children:t}),i&&(0,tm.jsx)("div",{className:"h-px bg-line w-full my-1"})]})};function tv(e){var t,r,n,a,l;let{item:o,itemData:i,onSelect:s}=e,c=(0,th.useCallback)(e=>{null==s||s(e,o)},[o,s]);return"Component"in i?(0,tm.jsx)(tb,{onClick:c,isDisabled:null!=(t=i.isDisabled)&&t,isSelected:null!=(r=i.isSelected)&&r,className:i.className,separatorBefore:i.separatorBefore,separatorAfter:i.separatorAfter,children:(0,tm.jsx)(i.Component,{isDisabled:null!=(n=i.isDisabled)&&n,item:o})}):(0,tm.jsxs)(tb,{onClick:c,isDisabled:null!=(a=i.isDisabled)&&a,isSelected:null!=(l=i.isSelected)&&l,className:i.className,separatorBefore:i.separatorBefore,separatorAfter:i.separatorAfter,children:[i.iconLeft&&(0,tm.jsx)(N,{IconComponent:i.iconLeft,size:16}),(0,tm.jsx)("span",{className:"text-sm",children:i.label}),i.iconRight&&(0,tm.jsx)(N,{IconComponent:i.iconRight,size:16})]})}function tw(e){let{children:t,isFirst:r,className:n}=e;return(0,tm.jsxs)(tm.Fragment,{children:[!r&&(0,tm.jsx)("div",{className:"h-px bg-line w-full my-1"}),(0,tm.jsx)("div",{className:(0,tg.twMerge)("flex flex-row px-2 py-2 gap-1.5 items-center bg-general rounded-lg text-on-general font-semibold text-xs text-textSupport",n),children:t})]})}d(r(75465));var tj=r(99133),tC=e=>(0,tj.jsx)("svg",{preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 48 48",...e,children:(0,tj.jsx)("g",{children:(0,tj.jsx)("path",{fill:"currentColor",d:"M11.717 18.283c-.396.396-.594.594-.668.822-.065.201-.065.418 0 .618.074.229.272.427.668.823L21.172 30a4 4 0 0 0 5.656 0l9.455-9.454c.396-.396.594-.594.668-.823.065-.2.065-.417 0-.618-.074-.228-.272-.426-.668-.822l-.566-.566c-.396-.396-.594-.594-.822-.668a1 1 0 0 0-.618 0c-.229.074-.427.272-.823.668l-8.323 8.323c-.396.396-.594.594-.822.669a1 1 0 0 1-.618 0c-.228-.075-.426-.273-.822-.669l-8.323-8.323c-.396-.396-.594-.594-.823-.668a1 1 0 0 0-.618 0c-.228.074-.426.272-.822.668l-.566.566Z","data-follow-fill":"currentColor"})})}),ty=r(99133);function tN(e){let{getItemData:t,onSelect:r,contentClassName:n,onOpenChange:a,isDisabled:l,side:o="bottom",sideOffset:i=5,align:s,alignOffset:c,position:d="popper",fieldClassName:u,value:p,placeholder:x,leadingIcon:f,Trigger:g,...h}=e,[m,b]=(0,tp.useState)(!1),{componentOverlayOffset:v}=$("select");return(0,ty.jsxs)(tx.Root,{disabled:l,open:m,onOpenChange:e=>{b(e),null==a||a(e)},children:[g?(0,ty.jsx)(g,{Wrapper:tx.Trigger,isOpen:m}):(0,ty.jsxs)(tx.Trigger,{className:(0,tf.twMerge)("w-full text-on-general cursor-pointer flex flex-row justify-between items-center disabled:opacity-50 gap-1.5","min-w-[80px] rounded-md border border-line bg-general hover:border-brand px-3 py-2 h-fit outline-none hover:bg-general-hover active:bg-general-active",m&&"bg-general-active",!p&&"text-textSupport",u),children:[f&&(0,ty.jsx)("span",{className:"flex h-full shrink-0 items-center justify-center leading-none",children:(0,ty.jsx)(N,{IconComponent:f,size:18})}),(0,ty.jsx)("div",{className:"flex h-full min-w-0 flex-1 items-center text-start leading-5 truncate",children:p||x}),(0,ty.jsx)("span",{className:"flex h-full shrink-0 items-center justify-center leading-none",children:(0,ty.jsx)(C,{IconComponent:tC,size:20,className:(0,tf.twMerge)(m&&"rotate-180")}
1)})]}),(0,ty.jsx)(tx.Portal,{children:(0,ty.jsx)(tx.Content,{className:(0,tf.twMerge)("max-h-[300px] overflow-y-auto bg-general rounded-xl shadow-select w-[var(--radix-select-trigger-width)] p-1",n),style:{zIndex:v},position:d,sideOffset:i,side:o,align:s,alignOffset:c,children:(0,ty.jsx)(tx.Viewport,{children:"items"in h?h.items.map(e=>{let n=t(e);if(n)return(0,ty.jsx)(tv,{item:e,itemData:n,onSelect:(e,t)=>{n.onSelect?n.onSelect(e,t):null==r||r(t,e),e.isPropagationStopped()||(b(!1),null==a||a(!1))}},n.key)}):h.groups.map(e=>({groupData:h.getGroupData(e),groupItems:h.getGroupItems(e).map(e=>{let r=t(e);return r?{itemData:r,item:e}:null}).filter(Boolean)})).filter(e=>{let{groupData:t,groupItems:r}=e;return t&&r.length>0}).map((e,t)=>{let{groupData:n,groupItems:l}=e;return n?(0,ty.jsxs)(tp.default.Fragment,{children:[(0,ty.jsx)(tw,{isFirst:0===t,className:n.className,children:n.label},n.key),l.map(e=>{if(!e||!e.itemData)return null;let t=e.itemData,n=e.item;return(0,ty.jsx)(tv,{item:n,itemData:t,onSelect:(e,n)=>{t.onSelect?t.onSelect(e,n):null==r||r(n,e),e.isPropagationStopped()||(b(!1),null==a||a(!1))}},t.key)})]},n.key):null})})})})]})}var tk=r(86458),tP=r(99133),tM=e=>{let{className:t,children:r,error:n,description:a}=e;return(0,tP.jsxs)("div",{className:(0,tk.twMerge)("flex flex-col gap-2 w-full",t),children:[r,n&&(0,tP.jsx)("div",{className:"text-danger text-xs",children:n}),a&&!n&&(0,tP.jsx)("div",{className:"text-allGray text-xs",children:a})]})},tO=r(86458);d(r(75465));var tS=r(99133),tz=e=>(0,tS.jsx)("svg",{preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none",viewBox:"0 0 48 48",...e,children:(0,tS.jsx)("g",{children:(0,tS.jsx)("path",{fill:"currentColor",d:"M42.53 11.049c.228.074.426.272.822.668l.566.566c.396.396.594.594.668.822a1 1 0 0 1 0 .618c-.074.229-.272.427-.668.823l-23.971 23.97c-.395.395-.592.593-.82.667a1 1 0 0 1-.619 0c-.228-.074-.426-.272-.822-.668L5.717 26.545c-.396-.395-.594-.593-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822l.566-.566c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.229.074.427.272.823.668L18.817 33.99 41.09 11.717c.396-.396.594-.594.823-.668a1 1 0 0 1 .618 0Z","data-follow-fill":"currentColor"})})}),tD=r(99133),tA=e=>{let{checked:t,disabled:r,onChange:n,className:a,children:l}=e;return(0,tD.jsxs)("label",{className:(0,tO.twMerge)("relative inline-flex items-center gap-2",r?"cursor-not-allowed":"cursor-pointer",a),children:[(0,tD.jsxs)("span",{className:(0,tO.twMerge)("relative flex items-center justify-center",!r&&"hover:before:bg-general-hover active:before:bg-general-active",!r&&'hover:before:w-7 hover:before:h-7 hover:before:rounded-md hover:before:absolute hover:before:top-1/2 hover:before:left-1/2 hover:before:transform hover:before:-translate-x-1/2 hover:before:-translate-y-1/2 hover:before:z-0 hover:before:content-[""]'),children:[(0,tD.jsx)("input",{type:"checkbox",className:(0,tO.twMerge)("absolute z-10 w-full h-full opacity-0",r?"cursor-not-allowed":"cursor-pointer"),checked:t,onChange:n,disabled:r}),(0,tD.jsx)("span",{className:(0,tO.twMerge)("relative w-[18px] h-[18px] rounded border transition-all flex items-center justify-center",t?"bg-brand border-brand":"bg-general border-line-dark"),children:t?(0,tD.jsx)(C,{IconComponent:tz,size:12,className:"text-on-brand flex"}):(0,tD.jsx)("span",{className:"w-[14px] h-[14px] opacity-0"})})]}),l?(0,tD.jsx)("span",{children:l}):null]})},tI=r(75465),tR=()=>{let[e,t]=(0,tI.useState)(void 0),r=(0,tI.useRef)(null);return{columnNumber:e,gridRef:(0,tI.useCallback)(e=>{if(r.current&&(r.current.disconnect(),r.current=null),!e)return;let n=e=>{let r=window.getComputedStyle(e).getPropertyValue("grid-template-columns");if(!r)return t(void 0);t(r.split(" ").length)};n(e),r.current=new ResizeObserver(e=>{var t;(null==(t=e[0])?void 0:t.target)&&n(e[0].target)}),r.current.observe(e)},[])}}},98596:(e,t,r)=>{var n=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of o(t))s.call(e,i)||i===r||a(e,i,{get:()=>t[i],enumerable:!(n=l(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?n(i(e)):{}
1,c(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)),u={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(u,{AnalyticsProvider:()=>m,analytics:()=>x,track:()=>g}),e.exports=c(a({},"__esModule",{value:!0}),u);var p=d(r(93462)).default.create({baseURL:"https://api.liveavatar.com",headers:{"Content-Type":"application/json"},withCredentials:!0}),x=new class{getCookie(e){if("undefined"==typeof document)return null;try{let r="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===r.length){var t;return(null==(t=r.pop())?void 0:t.split(";").shift())||null}return null}catch(e){return null}}async initializeZid(){let e=this.getCookie("zid");if(e){this.zid=e;return}try{let{getThumbmark:e}=await r.e(943).then(r.bind(r,55943)),t=await e();"string"==typeof t?this.zid=t:"object"==typeof t&&null!==t&&(this.zid=t.thumbmark)}catch(e){}}initializeSid(){let e=this.getCookie("sid");if(e){this.sid=e;return}let t=new URLSearchParams(window.location.search).get("sid");t&&(this.sid=t)}getOrigin(){return window.location.hostname}getQueryString(){return window.location.search}formatParams(e){let t=e?Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t.toLowerCase(),r]})):{},r=this.getQueryString();return!r||"query_string"in t||(t.query_string=r),t}async getZid(){return this.zidPromise&&(await this.zidPromise,this.zidPromise=null),this.zid}async track(e,t){this.zidPromise&&(await this.zidPromise,this.zidPromise=null);let r={event_name:e.toUpperCase(),url_path:window.location.pathname,params:this.formatParams(t),origin:this.getOrigin(),client_ts:new Date().toISOString(),zid:this.zid,sid:this.sid};try{await p.post("/v1/analytics/track",r)}catch(e){"localhost"===window.location.hostname&&console.error("[Analytics] Failed to track event:",e)}}constructor(){this.zid=void 0,this.sid=void 0,this.zidPromise=null,this.zidPromise=this.initializeZid(),this.initializeSid()}},f=d(r(41536)),g=(e,t)=>{x.track(e,t),f.default.__loaded&&f.default.capture(e,t)},h=r(99133),m=e=>{let{children:t}=e;return(0,h.jsx)(h.Fragment,{children:t})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.