1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3588:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>m,Es:()=>f,L3:()=>h,c7:()=>p,lG:()=>d,rr:()=>x});var a=r(45896);r(83684);var n=r(44120),o=r(77384),s=r(17550),l=r(71082),i=r(97548);function d(e){let{...t}=e;return(0,a.jsx)(o.bL,{"data-slot":"dialog",...t})}function u(e){let{...t}=e;return(0,a.jsx)(o.ZL,{"data-slot":"dialog-portal",...t})}function c(e){let{className:t,...r}=e;return(0,a.jsx)(o.hJ,{"data-slot":"dialog-overlay",className:(0,s.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t),...r})}function m(e){let{className:t,children:r,showCloseButton:i=!0,...d}=e,{t:m}=(0,l.Bd)();return(0,a.jsxs)(u,{"data-slot":"dialog-portal",children:[(0,a.jsx)(c,{}),(0,a.jsxs)(o.UC,{"data-slot":"dialog-content",className:(0,s.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",t),...d,children:[r,i&&(0,a.jsxs)(o.bm,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,a.jsx)(n.A,{}),(0,a.jsx)("span",{className:"sr-only",children:m("common.close")})]})]})]})}function p(e){let{className:t,...r}=e;return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,s.cn)("flex flex-col gap-2 text-center sm:text-left",t),...r})}function f(e){let{className:t,showCloseButton:r=!1,children:n,...d}=e,{t:u}=(0,l.Bd)();return(0,a.jsxs)("div",{"data-slot":"dialog-footer",className:(0,s.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...d,children:[n,r&&(0,a.jsx)(o.bm,{asChild:!0,children:(0,a.jsx)(i.$,{variant:"outline",children:u("common.close")})})]})}function h(e){let{className:t,...r}=e;return(0,a.jsx)(o.hE,{"data-slot":"dialog-title",className:(0,s.cn)("text-lg leading-none font-semibold",t),...r})}function x(e){let{className:t,...r}=e;return(0,a.jsx)(o.VY,{"data-slot":"dialog-description",className:(0,s.cn)("text-sm text-muted-foreground",t),...r})}},10069:(e,t,r)=>{"use strict";r.d(t,{Bf:()=>s,U7:()=>l,e7:()=>a,n$:()=>o,o9:()=>n});let a=e=>Math.min(1e3*2**e,3e4),n={staleTime:3e5,gcTime:18e5,retry:2,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!0},o={staleTime:3e5,gcTime:18e5,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:1},s={staleTime:3e5,gcTime:18e5},l={staleTime:6e5,gcTime:36e5}},16069:(e,t,r)=>{"use strict";r.d(t,{V7:()=>a,mS:()=>n});let a=["vercel","amethyst-haze","claymorphism","clean-slate","twitter","violet-bloom"],n="vercel"},22817:(e,t,r)=>{"use strict";r.d(t,{MobileViewportController:()=>n});var a=r(83684);function n(){return(0,a.useEffect)(()=>{let e=document.documentElement,t=window.visualViewport,r=0,a=null,n=Math.max(1,Math.round(window.innerHeight)),o=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{var r,a;let n=Math.round(null!=(r=null==t?void 0:t.height)?r:window.innerHeight);if(!Number.isFinite(n)||n<160)return;let o=Math.round(null!=(a=null==t?void 0:t.offsetTop)?a:0);e.style.setProperty("--mobile-visual-viewport-height","".concat(n,"px")),e.style.setProperty("--mobile-visual-viewport-top","".concat(o,"px"))})},s=()=>{window.matchMedia("(max-width: 767px)").matches&&document.activeElement instanceof Element&&document.activeElement.matches("textarea,select,[contenteditable='true'],[role='textbox'],input:not([type='button']):not([type='checkbox']):not([type='color']):not([type='file']):not([type='hidden']):not([type='radio']):not([type='range']):not([type='reset']):not([type='submit'])")?e.setAttribute("data-mobile-editor-active","true"):e.removeAttribute("data-mobile-editor-active"),o()},l=()=>{a&&clearTimeout(a),a=setTimeout(s,0)};return s(),document.addEventListener("focusin",s),document.addEventListener("focusout",l),null==t||t.addEventListener("resize",o),null==t||t.addEventListener("scroll",o),window.addEventListener("resize",s),window.addEventListener("orientationchange",s),(
1)=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",l),null==t||t.removeEventListener("resize",o),null==t||t.removeEventListener("scroll",o),window.removeEventListener("resize",s),window.removeEventListener("orientationchange",s),cancelAnimationFrame(r),a&&clearTimeout(a),e.removeAttribute("data-mobile-editor-active"),e.style.removeProperty("--mobile-visual-viewport-height"),e.style.removeProperty("--mobile-visual-viewport-top")}},[]),null}},28468:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,57921,23)),Promise.resolve().then(r.bind(r,19070)),Promise.resolve().then(r.t.bind(r,35325,23)),Promise.resolve().then(r.bind(r,56770)),Promise.resolve().then(r.bind(r,70239)),Promise.resolve().then(r.bind(r,70369)),Promise.resolve().then(r.bind(r,44995)),Promise.resolve().then(r.bind(r,22817)),Promise.resolve().then(r.bind(r,89493)),Promise.resolve().then(r.bind(r,72861)),Promise.resolve().then(r.bind(r,56348)),Promise.resolve().then(r.bind(r,47526)),Promise.resolve().then(r.bind(r,49831))},28833:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var a=r(45896),n=r(17550);function o(e){let{open:t,title:r,onClose:o,children:s,panelClassName:l,busy:i=!1}=e;return t?(0,a.jsxs)("section",{className:(0,n.cn)("w-full rounded-[28px] bg-white px-8 py-10 shadow-[0_32px_96px_rgba(10,11,12,0.18)]",l),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("h2",{className:"text-[28px] font-[520] leading-[36px]",children:r}),(0,a.jsx)("button",{type:"button","aria-label":"Close",disabled:i,className:"flex h-10 w-10 items-center justify-center rounded-full text-[var(--text-primary)] transition-colors hover:bg-[var(--secondary-foreground)] disabled:cursor-not-allowed disabled:opacity-50",onClick:o,children:(0,a.jsx)("iconpark-icon",{name:"icon-close",size:"24"})})]}),s]}):null}},34501:(e,t,r)=>{"use strict";r.d(t,{Ev:()=>i,ph:()=>d,wb:()=>n});var a=r(16069);let n=Object.freeze({mode:"dark",themeId:a.mS}),o=new Set(["light","dark","system"]),s=new Set(a.V7);function l(e){return"string"==typeof e&&o.has(e)?e:null}function i(e){if("string"!=typeof e)return{...n};let t=function(e){let t=[e];try{t.push(decodeURIComponent(e))}catch(e){}for(let e of t)try{let t=JSON.parse(e);if("object"==typeof t&&null!==t)return t}catch(e){continue}return null}(e);if(t){var r,o,i,d;return{mode:null!=(o=null!=(r=l(t.mode))?r:l(t.colorMode))?o:n.mode,themeId:null!=(i="string"==typeof(d=t.themeId)&&s.has(d)?d:null)?i:a.mS}}return{...n}}function d(e){return JSON.stringify({mode:e.mode,themeId:e.themeId})}},35325:()=>{},39451:(e,t,r)=>{"use strict";r.d(t,{O:()=>m,K:()=>p});var a=r(45896),n=r(83684),o=r(38800),s=r(19343),l=r(34501);let i=r(16069).V7.map(e=>d(e));function d(e){return"theme-".concat(e)}async function u(e){var t,r;let{trigger:a,updateTheme:n}=e;if("undefined"==typeof document)return void n();let o=document;if("function"!=typeof o.startViewTransition||"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void n();let s=function(e){if(e&&"clientX"in e&&"number"==typeof e.clientX&&"number"==typeof e.clientY)return{x:e.clientX,y:e.clientY};if(e&&"element"in e&&e.element){let t=e.element.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}}return{x:window.innerWidth/2,y:window.innerHeight/2}}(a);t=s.x,r=s.y,"undefined"!=typeof document&&(document.documentElement.style.setProperty("--theme-transition-x","".concat(t,"px")),document.documentElement.style.setProperty("--theme-transition-y","".concat(r,"px")));let l=o.startViewTransition(()=>{n()});await l.finished}let c=n.createContext(null);function m(e){let{children:t,initialSettings:r}=e,{setTheme:m}=(0,s.D)(),[p,f]=n.useState(()=>(function(e){var t,r;let a={mode:null!=(t=null==e?void 0:e.mode)?t:l.wb.mode,themeId:null!=(r=null==e?void 0:e.themeId)?r:l.wb.themeId},n=function(){if("undefined"==typeof document)return;let e=document.cookie.split("; ").find(e=>e.startsWith("theme-config="));return null==e?void 0:e.slice(13)}(),o=n?(0,l.Ev)(n):a,s=function(){let e=window.localStorage.getItem("theme");if("light"===e||"dark"===e||"system"===e)return e}();return{mode:null!=s?s:o.mode,themeId:o.themeId}})(r)),h=n.useRef(!1);return n.useEffect(()=>{m(p.mode)},[m,p.mode]),n.useEffect(()=>{"undefined"!=typeof document&&function(e,t,r){let a=d(t);for(let t of r)e.classList.remove(t);e.classList.add(a)}(document.documentElement,p.themeId,i)},[p.themeId]),n.useEffect(()=>{if(!h.current){h.current=!0;return}(0,o.setCookie)("theme-config",(0,l.ph)(p),{path:"/"})},[p]),(0,a.jsx)(c.Provider,{value:{reset:function(){f({...l.wb})},setMode:function(e,t){u({trigger:t,updateTheme:()=>{f(t=>(t=>({...t,mode:e}))(t))}})},setThemeId:function(e){f(t=>(t=>({...t,themeId:e}))(t))},settings:p},children:t})}function p(){let e=n.useContext(c);if(!e)throw Error("useThemeSettings must be used within a ThemeSettingsProvi
1der");return e}},44995:(e,t,r)=>{"use strict";r.d(t,{LocaleReady:()=>o});var a=r(83684),n=r(71082);function o(e){let{initialLocale:t}=e,r=(0,n.DW)(e=>e.setLocale);return(0,a.useEffect)(()=>{r(t);let e=window.requestAnimationFrame(()=>{document.documentElement.setAttribute("data-locale-ready","true")});return()=>window.cancelAnimationFrame(e)},[t,r]),null}},49831:(e,t,r)=>{"use strict";r.d(t,{DeviceProvider:()=>s,Y:()=>l});var a=r(45896),n=r(83684);let o=(0,n.createContext)({device:"desktop",isMobile:!1});function s(e){let{initialDevice:t,children:r}=e,s=(0,n.useMemo)(()=>({device:t,isMobile:"mobile"===t}),[t]);return(0,a.jsx)(o.Provider,{value:s,children:r})}function l(){return(0,n.useContext)(o)}},50415:(e,t,r)=>{"use strict";function a(){let e=globalThis.crypto;return e&&"function"==typeof e.randomUUID?e.randomUUID():"reg_".concat(Date.now().toString(36),"_").concat(Math.random().toString(36).slice(2,12))}function n(e){return{"X-Registration-Trace-Id":e,"X-Trace-Id":e}}r.d(t,{AF:()=>a,ds:()=>n}),r(52988)},56348:(e,t,r)=>{"use strict";r.d(t,{default:()=>h});var a=r(45896),n=r(50665),o=r(77423),s=r(19343),l=r(34617),i=r(39451),d=r(96789),u=r(89158),c=r(63784),m=r(10069),p=r(34501);let f=new n.E({defaultOptions:{queries:{...m.o9,retryDelay:m.e7}}});function h(e){var t;let{children:r,initialThemeSettings:n,theme:m}=e;return(0,a.jsx)(s.N,{attribute:"class",defaultTheme:null!=(t=null==m?void 0:m.defaultTheme)?t:p.wb.mode,enableSystem:!0,...m,children:(0,a.jsx)(i.O,{initialSettings:n,children:(0,a.jsx)(l.SessionProvider,{children:(0,a.jsx)(o.Ht,{client:f,children:(0,a.jsx)(c.H,{children:(0,a.jsx)(u.G,{children:(0,a.jsx)(d.Bc,{children:r})})})})})})})}},56770:(e,t,r)=>{"use strict";r.d(t,{GlobalAuthDialog:()=>P});var a=r(45896),n=r(83684),o=r(2665),s=r(19070),l=r(71082),i=r(17550),d=r(89831),u=r(66889),c=r(34081),m=r(64381);let p=["@gmail.com","@qq.com","@outlook.com","@icloud.com"];function f(e){let{mode:t,email:r,agree:o=!1,password:s="",confirmPassword:f="",className:h,contentClassName:x,onEmailChange:g,onAgreeChange:v,onPasswordChange:y,onConfirmPasswordChange:b,onSubmit:w,onSwitchMode:j,onClose:N,busy:P=!1,errorMessage:k=null}=e,{t:E}
1=(0,l.Bd)(),[C,S]=(0,n.useState)(!1),[L,T]=(0,n.useState)(!1),[I,F]=(0,n.useState)(!1),_=(0,n.useRef)(null),z=r.trim(),M="register"===t,q=(0,m.t5)(z)&&(!M||o&&(0,c.tb)(s)&&s===f),A=C&&M&&z.length>=1&&!z.includes("@");return(0,n.useEffect)(()=>{let e=e=>{var t;(null==(t=_.current)?void 0:t.contains(e.target))||S(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]),(0,a.jsxs)("section",{className:(0,i.cn)("w-full bg-white","rounded-none shadow-none sm:rounded-[32px] sm:shadow-[0_24px_80px_rgba(10,11,12,0.12)]",h),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{className:"inline-flex rounded-full bg-[var(--secondary-foreground)] p-1",children:[(0,a.jsx)("button",{type:"button",className:(0,i.cn)("min-w-[96px] rounded-full px-8 py-2.5 text-[16px] font-[450] transition-all","register"===t?"text-[var(--text-tertiary)]":"bg-[var(--primary)] text-white shadow-[0_8px_20px_rgba(0,85,255,0.22)]"),onClick:()=>j("login"),children:E("login.title")}),(0,a.jsx)("button",{type:"button",className:(0,i.cn)("min-w-[96px] rounded-full px-6 py-4 text-[16px] font-[450] transition-all","register"===t?"bg-[var(--primary)] text-white shadow-[0_8px_20px_rgba(0,85,255,0.22)]":"text-[var(--text-tertiary)]"),onClick:()=>j("register"),children:E("login.register")})]}),N&&(0,a.jsx)("button",{type:"button","aria-label":"Close",className:"flex h-10 w-10 items-center justify-center rounded-full text-[var(--text-primary)] transition-colors hover:bg-[var(--secondary-foreground)]",onClick:N,children:(0,a.jsx)("iconpark-icon",{name:"icon-close",size:"24"})})]}),(0,a.jsxs)("form",{className:(0,i.cn)("mt-6",x),onSubmit:e=>{e.preventDefault(),q&&w()},children:[(0,a.jsx)("h1",{className:"text-[28px] leading-[36px] font-[520] text-[var(--text-primary)]",children:E(M?"login.registerTitle":"login.welcomeBackTitle")}),(0,a.jsx)("p",{className:"mt-2 text-[16px] font-[330] text-[var(--text-tertiary)]",children:E("login.subtitle")}),(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{className:"text-[20px] font-[450] text-[var(--text-primary)]",children:E("login.email")}),(0,a.jsxs)("div",{className:"relative mt-2",ref:_,children:[(0,a.jsx)("input",{id:"auth-dialog-email",type:"email",autoComplete:"email",autoFocus:!0,value:r,onChange:e=>g(e.target.value),onFocus:()=>S(!0),placeholder:E("login.emailPlaceholder"),className:(0,i.cn)("w-full rounded-[12px] bg-[var(--secondary-foreground)] py-4 pl-4 pr-14 text-[16px] font-[520] text-[var(--text-primary)] placeholder:font-[330] placeholder:text-[var(--input-placeholder)] outline-none transition-all",C&&"ring-2 ring-[var(--primary)]")}),r.length>0&&(0,a.jsx)("button",{type:"button","aria-label":"Clear",className:"absolute right-3 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full text-[var(--text-secondary)] transition-colors hover:bg-white",onMouseDown:e=>e.preventDefault(),onClick:()=>g(""),children:(0,a.jsx)("iconpark-icon",{name:"icon-close",size:"18"})}),A&&(0,a.jsx)("ul",{role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-2 overflow-hidden rounded-[18px] border border-[var(--border)] bg-white py-1 shadow-[0_20px_40px_rgba(10,11,12,0.12)]",children:p.map(e=>(0,a.jsx)("li",{role:"option","aria-selected":!1,children:(0,a.jsxs)("button",{type:"button",className:"flex w-full items-center px-4 py-3 text-left text-[16px]",onMouseDown:e=>e.preventDefault(),onClick:()=>{g("".concat(z).concat(e)),S(!1)},children:[(0,a.jsx)("span",{className:"text-[var(--text-secondary)]",children:z}),(0,a.jsx)("span",{className:"text-[var(--text-primary)]",children:e})]})},e))})]})]}),M&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)("label",{htmlFor:"auth-dialog-password",className:"text-[16px] font-[450] text-[var(--text-primary)]",children:E("login.password")}),(0,a.jsxs)("div",{className:"relative mt-2",children:[(0,a.jsx)("input",{id:"auth-dialog-password","aria-describedby":"auth-dialog-password-rules",type:L?"text":"password",autoComplete:"new-password",maxLength:64,value:s,onChange:e=>null==y?void 0:y(e.target.value),placeholder:E("createPassword.placeholder"),className:"w-full rounded-[12px] bg-[var(--secondary-foreground)] px-4 py-4 pr-12 text-[16px] text-[var(--text-primary)] outline-none focus-visible:ring-2 focus-visible:ring-primary"}),(0,a.jsx)("button",{type:"button","aria-label":E(L?"auth.hidePassword":"auth.showPassword"),className:"absolute right-3 top-1/2 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-full",onClick:()=>T(e=>!e),children:(0,a.jsx)("iconpark-icon",{name:L?"icon-eye-open":"icon-eye-close",size:"20"})})]})]}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("label",{htmlFor:"auth-dialog-confirm-password",className:"text-[16px] font-[450] text-[var(--text-primary)]",children:E("forgotPassword.confirmPassword")}),(0,a.jsxs)("div",{className:"relative mt-2",children:[(0,a.jsx)("input",{id:"auth-dialog-confirm-password","aria-describedby":"auth-dialog-password-rules","aria-invalid":f.length>0&&f!==s,type:I?"text":"password",autoComplete:"new-password",maxLength:64,value:f,onChange:e=>null==b?void 0:b(e.target.value),placeholder:E("forgotPassword.confirmPasswordPlaceholder"),className:"w-full rounded-[12px] bg-[var(--secondary-foreground)] px-4 py-4 pr-12 text-[16px] text-[var(--text-primary)] outline-none focus-visible:ring-2 focus-visible:ring-primary"}),(0,a.jsx)("button",{type:"button","aria-label":E(I?"auth.hidePassword":"auth.showPassword"),className:"absolute right-3 top-1/2 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded-full",onClick:()=>F(e=>!e),children:(0,a.jsx)("iconpark-icon",{name:I?"icon-eye-open":"icon-eye-close",size:"20"})})]}),(0,a.jsx)(u.f,{id:"auth-dialog-password-rules",password:s,confirmPassword:f})]})]}),k?(0,a.jsx)("div",{role:"alert",className:"mt-5 rounded-xl border border-red-200 bg-red-50 px-3 py-2 text-sm leading-5 text-red-700",children:k}):null,M&&(0,a.jsxs)("div",{className:"mt-5 flex items-center justify-start gap-2",children:[(0,a.jsx)(d.S,{id:"auth-dialog-terms",checked:o,onCheckedChange:v}),(0,a.jsx)("label",{htmlFor:"auth-dialog-terms",className:"text-[12px] leading-[16
1px] [&_a]:text-primary [&_a]:underline-offset-2 hover:[&_a]:underline",dangerouslySetInnerHTML:{__html:E("login.agreementPrefix")}})]}),(0,a.jsx)("button",{type:"submit","aria-busy":P,className:(0,i.cn)("mt-19 w-full rounded-full py-4 text-[16px] leading-[24px] font-[450] transition-colors",q?"bg-[var(--primary)] text-white":"bg-[var(--secondary-foreground)] text-[var(--text-secondary)]",M?"mt-5":"mt-19"),disabled:!q||P,children:E(P?"auth.submitting":M?"login.register":"login.next")})]})]})}var h=r(28833),x=r(3588),g=r(49831),v=r(49019),y=r(52988),b=r(50415),w=r(29129),j=r(75450),N=r(1555);function P(){let e=(0,o.useRouter)(),t=(0,o.usePathname)(),{isMobile:r}=(0,g.Y)(),{t:d}=(0,l.Bd)(),p=(0,w.z)(e=>e.open),P=(0,w.z)(e=>e.mode),k=(0,w.z)(e=>e.closeDialog),E=(0,w.z)(e=>e.setMode),C=(0,j.n)(e=>e.setToken),[S,L]=(0,n.useState)("entry"),[T,I]=(0,n.useState)(""),[F,_]=(0,n.useState)(!1),[z,M]=(0,n.useState)(""),[q,A]=(0,n.useState)(""),[D,B]=(0,n.useState)(!1),[R,O]=(0,n.useState)(""),[V,Q]=(0,n.useState)(""),[U,H]=(0,n.useState)(""),[K,W]=(0,n.useState)(!1),[Y,G]=(0,n.useState)(""),[X,J]=(0,n.use
1State)(!1),[$,Z]=(0,n.useState)(!1),[ee,et]=(0,n.useState)(!1),[er,ea]=(0,n.useState)(0),[en,eo]=(0,n.useState)(null),[es,el]=(0,n.useState)(null),ei=(0,n.useRef)(0),ed=(0,m.xs)(T),eu=(0,m.t5)(T),ec=/^[0-9]{6}$/.test(R)&&(0,c.tb)(U)&&U===Y,em=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,v.k3)(t,{network:d("createPassword.networkFailed"),unknown:d("login.failed"),requestIdLabel:d("accountError.requestId"),actionLabels:{login:d("accountError.actions.login"),register:d("accountError.actions.register"),forgotPassword:d("accountError.actions.forgotPassword"),retry:d("accountError.actions.retry"),support:d("accountError.actions.support"),resend:d("accountError.actions.resend")},actions:{login:()=>E("login"),register:()=>E("register"),forgotPassword:()=>L("forgotPassword"),support:()=>{k(),e.push("/about")},...a},focus:{email:()=>{var e;return r.email&&(null==(e=document.getElementById(r.email))?void 0:e.focus())},password:()=>{var e;return r.password&&(null==(e=document.getElementById(r.password))?void 0:e.focus())},code:()=>{var e;
1return r.code&&(null==(e=document.getElementById(r.code))?void 0:e.focus())}}});return el(null),eo(n),n},ep=()=>{ei.current+=1,L("entry"),I(""),_(!1),M(""),A(""),B(!1),O(""),Q(""),H(""),W(!1),G(""),J(!1),Z(!1),et(!1),ea(0),eo(null),el(null)},ef=()=>{k(),ep()};(0,n.useEffect)(()=>{p||ep()},[p]),(0,n.useEffect)(()=>{ep()},[P,t]),(0,n.useEffect)(()=>{if(!p||"resetPassword"!==S||er<=0)return;let e=window.setTimeout(()=>ea(e=>Math.max(0,e-1)),1e3);return()=>window.clearTimeout(e)},[p,er,S]);let eh=async e=>{C(e),await N.k.getState().fetchProfile()},ex=async()=>{if(!eu||!F||!(0,c.tb)(z)||z!==q||$)return;let t=++ei.current,r=(0,b.AF)();Z(!0),eo(null);try{let a;try{a=(await (0,m.Fg)({email:T,password:z},{traceId:r})).data.token}catch(e){if(t!==ei.current)return;em(e,{email:"auth-dialog-email",password:"auth-dialog-password"},{retry:()=>{var e;return null==(e=document.getElementById("auth-dialog-email"))?void 0:e.focus()}});return}if(t!==ei.current||(C(a),await N.k.getState().fetchProfile(),t!==ei.current))return;ef(),e.refresh()}finally{t===ei.current&&Z(!1)}},eg=async()=>{if(!(0,c.rq)(z)||$)return;let t=++ei.current;Z(!0),eo(null);try{let r=await y.http.post("/public/api/v1/pui/user/login",{email:ed,password:z},{preserveBusinessError:!0,skipAuth:!0,unauthorizedBehavior:"silent"});if(t!==ei.current)return;await eh(r.data.token),ef(),e.refresh()}catch(e){if(t!==ei.current)return;em(e,{email:"auth-dialog-email",password:"global-login-password"},{retry:()=>{var e;return null==(e=document.getElementById("global-login-password"))?void 0:e.focus()}})}finally{t===ei.current&&Z(!1)}},ev=async e=>{if(!(0,m.t5)(e)||ee||er>0)return!1;et(!0),eo(null);try{var t,r,a;let n=await y.http.post("/public/api/v1/pui/user/reset-request",{email:e},{preserveBusinessError:!0,skipAuth:!0,unauthorizedBehavior:"silent"}),o=null!=(a=null==(t=n.data)?void 0:t.retryAfterSeconds)?a:60,l=(null==(r=n.data)?void 0:r.status)==="already_sent"?o>0?d("forgotPassword.resetRequestAlreadySentWithTime").replace("{seconds}",String(o)):d("forgotPassword.resetRequestAlreadySent"):d("forgotPassword.resetRequestSent");return ea(o),el(l),s.toast.success(l),!0}catch(t){let e=em(t,{email:"global-forgot-email"},{retry:()=>{var e;return null==(e=document.getElementById("global-forgot-email"))?void 0:e.focus()}});return e.retryAfterSeconds&&ea(e.retryAfterSeconds),!1}finally{et(!1)}},ey=async()=>{await ev(ed)&&(Q(ed),O(""),H(""),G(""),L("resetPassword"))},eb=async()=>{if(!ec||$)return;let e=++ei.current;Z(!0),eo(null);try{if(await y.http.put("/public/api/v1/pui/user/reset-confirm",{email:V,code:R,newPassword:U},{preserveBusinessError:!0,skipAuth:!0,unauthorizedBehavior:"silent"}),e!==ei.current)return;j.n.getState().clearToken(),N.k.getState().clearProfile(),eo(null),el(null),s.toast.success(d("forgotPassword.resetPasswordSuccess")),E("login"),L("entry")}catch(t){if(e!==ei.current)return;em(t,{code:"global-reset-code",password:"global-reset-password"},{retry:()=>{var e;return null==(e=document.getElementById("global-reset-code"))?void 0:e.focus()},resend:()=>{ev(V)}})}finally{e===ei.current&&Z(!1)}};return r?null:(0,a.jsx)(x.lG,{open:p&&!r,onOpenChange:e=>!e&&ef(),children:(0,a.jsxs)(x.Cf,{className:(0,i.cn)("max-h-[calc(100dvh-2rem)] overflow-y-auto border-0 bg-transparent p-0 shadow-none [&>button]:hidden","password"===S?"sm:max-w-[430px]":"sm:max-w-[540px]"),children:[(0,a.jsx)(x.L3,{className:"sr-only",children:"register"===P?d("login.registerTitle"):d("login.title")}),(0,a.jsx)(x.rr,{className:"sr-only",children:d("login.subtitle")}),"entry"===S?(0,a.jsx)(f,{mode:P,email:T,agree:F,password:z,confirmPassword:q,onEmailChange:e=>{I(e),eo(null),el(null)},onAgreeChange:_,onPasswordChange:e=>{M(e),eo(null)},onConfirmPasswordChange:e=>{A(e),eo(null)},onSubmit:"register"===P?ex:()=>L("password"),onSwitchMode:E,onClose:ef,busy:$,errorMessage:en?(0,v.L4)(en,d("accountError.requestId")):null,className:"p-8"}):"password"===S?(0,a.jsx)(h.T,{open:!0,title:d("login.password"),onClose:ef,busy:$,children:(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),eg()},children:[(0,a.jsx)("label",{htmlFor:"global-login-password",className:"text-[16px] font-[450]",children:d("login.password")}),(0,a.jsxs)("div",{className:"relative mt-3",children:[(0,a.jsx)("input",{id:"global-login-password",type:D?"text":"password",autoComplete:"current-password",autoFocus:!0,value:z,onChange:e=>{M(e.target.value),eo(null)},"aria-invalid":(null==en?void 0:en.field)==="password",className:"w-full rounded-[14px] border-2 border-primary bg-[var(--secondary-foreground)] px-4 py-3 pr-14 text-[18px] outline-none"}),(0,a.jsx)("button",{type:"button","aria-label":d(D?"auth.hidePassword":"auth.showPassword"),className:"absolute right-3 top-1/2 -translate-y-1/2",onClick:()=>B(e=>!e),children:(0,a.jsx)("iconpark-icon",{name:D?"icon-eye-open":"icon-eye-close",size:"20"})})]}),(0,a.jsx)("button",{type:"button",className:"mt-3 text-sm text-primary",onClick:()=>{M(""),L("forgotPassword")},children:d("login.forget")}),en?(0,a.jsx)("div",{role:"alert",className:"mt-4 rounded-xl border border-red-200 bg-red-50 px-3 py-2 text-sm leading-5 text-red-700",children:(0,v.L4)(en,d("accountError.requestId"))}):null,(0,a.jsx)("button",{type:"submit","aria-busy":$,disabled:!(0,c.rq)(z)||$,className:(0,i.cn)("mt-10 w-full rounded-full py-3.5",(0,c.rq)(z)&&!$?"bg-primary text-white":"bg-[var(--secondary-foreground)] text-[var(--text-secondary)]"),children:$?d("auth.submitting"):d("createPassword.confirm")})]})}):"forgotPassword"===S?(0,a.jsx)(h.T,{open:!0,title:d("forgotPassword.title"),onClose:ef,busy:ee,children:(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),ey()},children:[(0,a.jsx)("label",{htmlFor:"global-forgot-email",className:"text-[16px]",children:d("login.email")}),(0,a.jsx)("input",{id:"global-forgot-email",type:"email",autoComplete:"email",autoFocus:!0,value:T,onChange:e=>{I(e.target.value),eo(null),el(null)},"aria-invalid":(null==en?void 0:en.field)==="email",className:"mt-2 w-full rounded-[14px] bg-[var(--secondary-foreground)] px-4 py-4 text-[18px] outline-none"}),(0,a.jsx)("p",{className:"mt-3 text-sm text-[var(--text-secondary)]",children:d("forgotPassword.resetRequestHint")}),es?(0,a.jsx)("div",{role:"status",className:"mt-4 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-2 text-sm leading-5 text-emerald-700",children:es}):null,en?(0,a.jsx)("div",{role:"alert",className:"mt-4 rounded-xl border border-red-200 bg-red-50 px-3 py-2 text-sm leading-5 text-red-700",children:(0,v.L4)(en,d("accountError.requestId"))}):null,(0,a.jsx)("button",{type:"submit","aria-busy":ee,disabled:!eu||ee,className:(0,i.cn)("mt-16 w-full rounded-full py-3.5",eu&&!ee?"bg-primary text-white":"bg-[var(--secondary-foreground)] text-[var(--text-secondary)]"),children:ee?d("emailValidate.sending"):d("login.next")})]})}):(0,a.jsx)(h.T,{open:!0,title:d("forgotPassword.title"),onClose:ef,busy:$||ee,children:(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),eb()},children:[(0,a.jsx)("label",{htmlFor:"global-reset-code",className:"text-sm",children:d("forgotPassword.emailCode")}),(0,a.jsx)("input",{id:"global-reset-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",autoFocus:!0,maxLength:6,value:R,onChange:e=>{O(e.target.value.replace(/\D/g,"").slice(0,6)),eo(null)},"aria-invalid":(null==en?void 0:en.field)==="code",className:"mt-2 w-full rounded-[14px] bg-[var(--secondary-foreground)] px-4 py-4 text-[18px] outline-none"}),(0,a.jsx)("button",{type:"button",disabled:ee||er>0,className:"mt-3 text-sm text-primary disabled:text-[var(--text-secondary)]",onClick:()=>void ev(V),children:ee?d("emailValidate.sending"):er>0?d("emailValidate.countdown").replace("{time}",function(e){let t=String(Math.floor(e/60)).padStart(2,"0"),r=String(e%60).padStart(2,"0");return"".concat(t,":").concat(r)}(er)):d("emailValidate.resend")}),(0,a.jsx)("label",{htmlFor:"global-reset-password",className:"mt-8 block text-sm",children:d("forgotPassword.newPassword")}),(0,a.jsx)("input",{id:"global-reset-password","aria-describedby":"global-reset-password-rules",type:K?"text":"password",autoComplete:"new-password",maxLength:64,value:U,onChange:e=>{H(e.target.value),eo(null)},"aria-invalid":(null==en?void 0:en.field)==="password",className:"mt-2 w-full rounded-[14px] bg-[var(--secondary-foreground)] px-4 py-4 text-[18px] outline-none"}),(0,a.jsx)("button",{type:"button",className:"mt-2 text-xs text-primary",onClick:()=>W(e=>!e),children:d(K?"auth.hidePassword":"auth.showPassword")}),(0,a.jsx)("label",{htmlFor:"global-reset-confirm",className:"mt-6 block text-sm",children:d("forgotPassword.confirmPassword")}),(0,a.jsx)("input",{id:"global-reset-confirm","aria-describedby":"global-reset-password-rules",type:X?"text":"password",autoComplete:"new-password",maxLength:64,value:Y,onChange:e=>{G(e.target.value),eo(null)},className:"mt-2 w-full rounded-[14px] bg-[var(--secondary-foreground)] px-4 py-4 text-[18px] outline-none"}),(0,a.jsx)("button",{type:"button",className:"mt-2 text-xs text-primary",onClick:()=>J(e=>!e),children:d(X?"auth.hidePassword":"auth.showPassword")}),(0,a.jsx)(u.f,{id:"global-reset-password-rules",password:U,confirmPassword:Y}),es?(0,a.jsx)("div",{role:"status",className:"mt-4 rounded-xl border border-emerald-200 bg-emerald-50 px-3 py-2 text-sm leading-5 text-emerald-700",children:es}):null,en?(0,a.jsx)("div",{role:"alert",className:"mt-4 rounded-xl border border-red-200 bg-red-50 px-3 py-2 text-sm leading-5 text-red-700",children:(0,v.L4)(en,d("accountError.requestId"))}):null,(0,a.jsx)("button",{type:"submit","aria-busy":$,disabled:!ec||$,className:(0,i.cn)("mt-10 w-full rounded-full py-3.5",ec&&!$?"bg-primary text-white":"bg-[var(--secondary-foreground)] text-[var(--text-secondary)]"),children:$?d("auth.submitting"):d("emailValidate.confirm")})]})})]})})}},63784:(e,t,r)=>{"use strict";r.d(t,{H:()=>p,e:()=>f});var a=r(45896),n=r(77423),o=r(25018),s=r(13111),l=r(83684),i=r(34617),d=r(19070);function u(e,t,r){return String(e.itemId)===String(t)&&e.itemType===r}var c=r(23765);let m=(0,l.createContext)(null);function p(e){var t;let{children:r}=e,{data:p}=(0,i.useSession)(),f=(0,n.jE)(),h=null==p||null==(t=p.user)?void 0:t.id,x=(0,l.useMemo)(()=>[...c.lH.user.favorites(),null!=h?h:"guest"],[h]),g=(0,l.useCallback)(async e=>{var t;if(!h)return[];let r=await fetch(e?"/api/favorites?type=".concat(e):"/api/favorites");
1if(401===r.status)return[];let a=await r.json();if(!r.ok||!a.success)throw Error(a.error||"Failed to fetch favorites");return(t=a.data)?t.map(e=>{var t,r,a,n;return{id:"id"in e&&"string"==typeof e.id?e.id:void 0,itemId:null!=(r=null!=(t=e.itemId)?t:e.item_id)?r:"",itemType:null!=(n=null!=(a=e.itemType)?a:e.item_type)?n:""}}).filter(e=>e.itemId&&e.itemType):[]},[h]),v=(0,o.I)({queryKey:x,queryFn:()=>g(),enabled:!!h,staleTime:3e5,gcTime:18e5}),y=(0,l.useMemo)(()=>{var e;return null!=(e=v.data)?e:[]},[v.data]),b=v.isLoading,w=(0,l.useCallback)((e,t)=>y.some(r=>u(r,e,t)),[y]),j=(0,s.n)({mutationFn:async e=>{let{itemId:t,itemType:r}=e,a=await fetch("/api/favorites",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({itemId:t,itemType:r})}),n=await a.json();if(!a.ok||!n.success)throw Error(n.error||"Failed to add to favorites");return n},onMutate:async e=>{var t;let{itemId:r,itemType:a}=e;await f.cancelQueries({queryKey:x});let n=null!=(t=f.getQueryData(x))?t:[];return f.setQueryData(x,n.some(e=>u(e,r,a))?n:[...n,{id:"temp-".concat(a,"-").concat(r),itemId:r,itemType:a}]),{previous:n}},onError:(e,t,r)=>{var a;f.setQueryData(x,null!=(a=null==r?void 0:r.previous)?a:[])},onSettled:async()=>{await f.invalidateQueries({queryKey:x})}}),N=(0,s.n)({mutationFn:async e=>{let{itemId:t,itemType:r}=e,a=await fetch("/api/favorites",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({itemId:t,itemType:r})}),n=await a.json();if(!a.ok||!n.success)throw Error(n.error||"Failed to remove from favorites");return n},onMutate:async e=>{var t;let{itemId:r,itemType:a}=e;await f.cancelQueries({queryKey:x});let n=null!=(t=f.getQueryData(x))?t:[];return f.setQueryData(x,n.filter(e=>!u(e,r,a))),{previous:n}},onError:(e,t,r)=>{var a;f.setQueryData(x,null!=(a=null==r?void 0:r.previous)?a:[])},onSettled:async()=>{await f.invalidateQueries({queryKey:x})}}),P=(0,l.useCallback)(async(e,t,r)=>{if(!h)return d.toast.warning("Please sign in to favorite items"),!1;try{return await j.mutateAsync({itemId:e,itemType:t}),d.toast.success(r?'"'.concat(r,'" added to favorites!'):"Added to favorites!",{description:"You can find it in your liked items."}),!0}catch(e){return console.error("Error adding favorite:",e),d.toast.error("Failed to add to favorites"),!1}},[j,h]),k=(0,l.useCallback)(async(e,t,r)=>{if(!h)return!1;try{return await N.mutateAsync({itemId:e,itemType:t}),d.toast.success(r?'"'.concat(r,'" removed from favorites'):"Removed from favorites"),!0}catch(e){return console.error("Error removing favorite:",e),d.toast.error("Failed to remove from favorites"),!1}},[N,h]),E=(0,l.useCallback)(async(e,t,r)=>w(e,t)?k(e,t,r):P(e,t,r),[P,w,k]);(0,l.useEffect)(()=>{h||f.setQueryData(x,[])},[x,f,h]);let C=(0,l.useCallback)(async()=>{if(!h)return void f.setQueryData(x,[]);await v.refetch()},[v,x,f,h]);return(0,a.jsx)(m.Provider,{value:{favorites:y,loading:b,isFavorited:w,addFavorite:P,removeFavorite:k,toggleFavorite:E,refetch:C},children:r})}function f(){let e=(0,l.useContext)(m);if(!e)throw Error("useFavoritesContext must be used within FavoritesProvider");return e}},64381:(e,t,r)=>{"use strict";r.d(t,{Fg:()=>s,t5:()=>o.t5,xs:()=>o.xs});var a=r(52988);r(49019);var n=r(50415),o=r(34081);function s(e,t){let{traceId:r}=t;return a.http.post("/public/api/v1/pui/user/register",{...e,email:(0,o.xs)(e.email)},{headers:(0,n.ds)(r),skipAuth:!0,unauthorizedBehavior:"silent",preserveBusinessError:!0})}},66889:(e,t,r)=>{"use strict";r.d(t,{f:()=>l});var a=r(45896),n=r(17550),o=r(34081),s=r(71082);function l(e){let{id:t,password:r,confirmPassword:l}=e,{t:i}=(0,s.Bd)(),d=(0,o._2)(r),u=[["minLength",d.minLength],["maxLength",d.maxLength],["notBlank",d.notBlank]];return(0,a.jsxs)("div",{id:t,className:"mt-3","aria-label":i("createPassword.passwordRule"),children:[(0,a.jsx)("ul",{className:"grid gap-1 text-xs sm:grid-cols-2",children:u.map(e=>{let[t,r]=e;return(0,a.jsxs)("li",{className:(0,n.cn)("flex items-center gap-1.5",r?"text-emerald-600":"text-[var(--text-secondary)]"),children:[(0,a.jsx)("span",{"aria-hidden":!0,children:r?"â":"â"}),(0,a.jsxs)("span",{className:"sr-only",children:[i(r?"auth.rulePassed":"auth.ruleNotMet"),": "," "]}),i("createPassword.passwordRules.".concat(t))]},t)})}),void 0!==l&&l.length>0?(0,a.jsx)("p",{role:"status",className:(0,n.cn)("mt-2 text-xs",r===l?"text-emerald-600":"text-red-600"),children:r===l?i("createPassword.passwordRules.match"):i("forgotPassword.confirmPasswordNotMatch")}):null]})}},70239:(e,t,r)=>{"use strict";r.d(t,{GlobalDataProvider:()=>d});var a=r(45896),n=r(83684),o=r(2665),s=r(30951),l=r(52988),i=r(72623);function d(e){let{children:t}=e,r=(0,o.usePathname)(),d=(0,s.o)(e=>e.setFiatList),u=(0,n.useRef)(null),c="/fclaw"===r||r.startsWith("/fclaw/")||"/quanta/fclaw"===r||r.startsWith("/quanta/fclaw/")||/^\/(en_US|ko_KR)\/(?:quanta\/)?fclaw(?:\/|$)/.test(r);return(0,n.useEffect)(()=>
1{if(c)return;let e=async()=>{try{let e=await l.http.get("/public/api/v1/pci/fiatExchange/list",{skipAuth:!0});0===e.code&&e.data&&d(e.data)}catch(e){}};return e(),u.current=setInterval(e,i.kY+57e3),()=>{u.current&&clearInterval(u.current)}},[c,d]),(0,a.jsx)(a.Fragment,{children:t})}},70369:(e,t,r)=>{"use strict";r.d(t,{GlobalLoading:()=>o,r:()=>n});var a=r(45896);let n=(0,r(6691).v)(e=>({visible:!1,showLoading:()=>e({visible:!0}),hideLoading:()=>e({visible:!1})}));function o(){return n(e=>e.visible)?(0,a.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/30",children:(0,a.jsx)("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-white px-8 py-6 shadow-lg",children:(0,a.jsx)("svg",{version:"1.1",id:"loader-1",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",children:(0,a.jsx)("path",{fill:"rgba(0, 85, 255, 1)",d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z",children:(0,a.jsx)("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})})})})}):null}},72861:(e,t,r)=>{"use strict";r.d(t,{UserProfileInitializer:()=>s});var a=r(83684),n=r(75450),o=r(1555);function s(){let e=(0,n.n)(e=>e.token),t=(0,o.k)(e=>e.profile),r=(0,o.k)(e=>e.fetchProfile),s=(0,o.k)(e=>e.clearProfile),l=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!e){l.current=!1,t&&s();return}t||l.current||(l.current=!0,r().finally(()=>{l.current=!1}))},[e,t,r,s]),null}},89493:(e,t,r)=>{"use strict";r.d(t,{ReleaseFreshnessController:()=>i});var a=r(83684);let n=/\/_next\/static\/chunks\/webpack-[^"']+\.js/,o=Date.now(),s=!1;async function l(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Date.now();if(!s&&(e||!(t-o<3e5))){s=!0,o=t;try{var r;let e=function(){for(let e of Array.from(document.scripts)){let t=e.src.match(n);if(t)return t[0]}return null}();if(!e)return;let a=await fetch("/?release-check=".concat(t),{cache:"no-store",headers:{"X-Release-Check":"1"}});if(!a.ok)return;let o=null==(r=(await a.text()).match(n))?void 0:r[0];o&&o!==e&&!Array.from(document.querySelectorAll("input, textarea")).some(e=>!e.disabled&&e.value.trim().length>0)&&window.location.reload()}catch(e){}finally{s=!1}}}function i(){return(0,a.useEffect)(()=>{let e=e=>{e.persisted&&l(!0)},t=()=>{"visible"===document.visibilityState&&l()};window.addEventListener("pageshow",e),document.addEventListener("visibilitychange",t);let r=window.setInterval(()=>{"visible"===document.visibilityState&&l(!0)},3e5);return()=>{window.removeEventListener("pageshow",e),document.removeEventListener("visibilitychange",t),window.clearInterval(r)}},[]),null}},89831:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var a=r(45896),n=r(17550);function o(e){let{checked:t,onCheckedChange:r,className:o,disabled:s=!1,id:l}=e;return(0,a.jsx)("button",{type:"button",id:l,role:"checkbox","aria-checked":t,disabled:s,className:(0,n.cn)("flex h-[14px] w-[14px] shrink-0 items-center justify-center rounded-[4px] border transition-colors",t?"border-[var(--primary)] bg-[var(--primary)] text-white":"border-[var(--border)] bg-white text-transparent",s&&"cursor-not-allowed opacity-50",o),onClick:()=>{s||null==r||r(!t)},children:t&&(0,a.jsx)("iconpark-icon",{name:"icon-checked",size:"10"})})}},96789:(e,t,r)=>{"use strict";r.d(t,{Bc:()=>l,ZI:()=>u,k$:()=>d,m_:()=>i});var a=r(45896),n=r(83684),o=r(3136),s=r(17550);let l=o.Kq,i=o.bL,d=o.l9,u=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(o.ZL,{children:(0,a.jsx)(o.UC,{ref:t,sideOffset:n,className:(0,s.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});u.displayName=o.UC.displayName}},e=>{e.O(0,[6090,9070,4271,6326,5625,4860,4617,6810,5253,3136,6684,1082,5092,2748,9158,6419,7880,4977,7358],()=>e(e.s=28468)),_N_E=e.O()}]);
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.