1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/KarriChatWidget-DLMVuUNt.js","assets/input-vDQBe-JT.js","assets/karri-spotlight-action-card-B6GM4v1B.js","assets/progress-BoK1DPLu.js","assets/message-circle-H94x7xJG.js","assets/calendar-CU31YO3K.js","assets/send-Couac_0z.js","assets/use-usage-tracking-mgTZWHXB.js","assets/bot-DLpjRd1d.js","assets/rotate-ccw-aFgX9Lg-.js","assets/user-plus-C8nUtPEo.js","assets/auth-page-DAI5m3va.js","assets/form-BHD_WCWp.js","assets/label-Dy2y5-t4.js","assets/tabs-BHUZ5gNW.js","assets/eye-off-DROBu2ey.js","assets/eye-DY-tXWqI.js","assets/home-B4lSDOZG.js","assets/SEOHead-Ds-RTFOM.js","assets/dynamic-content-BuTu3-34.js","assets/skeleton-B5u9x4rk.js","assets/trust-badges-GVOPAvfK.js","assets/shield-DWVR3kWb.js","assets/award-Bk-ika5F.js","assets/switch-Az4P1RRI.js","assets/index-t4aEIOG4.js","assets/chevron-left-zZtjK6SQ.js","assets/resume-template-picker-wvzjL5JG.js","assets/download-btkOFYqE.js","assets/upload-CihDZckk.js","assets/wand-sparkles-CmsqYC6O.js","assets/panels-top-left-BTemQpFZ.js","assets/search-card-demo-sSI1rbl2.js","assets/plus-DktfV83D.js","assets/forgot-password-DgBpEiso.js","assets/alert-3uJ6KVoX.js","assets/forgot-username-CI-fOLpA.js","assets/reset-password-B0sMxYZm.js","assets/set-password-CAO-I0P7.js","assets/package-Bwc0Kiaq.js","assets/career-management-C3VDrwA8.js","assets/use-saved-careers-BBytpHzZ.js","assets/trash-2-7h1YtwjO.js","assets/career-toolkit-bqpLAvAo.js","assets/select-HfpfM0Qc.js","assets/index-BdQq_4o_.js","assets/chevron-up-C-GLauZe.js","assets/pen-tool-DG59HZzc.js","assets/refresh-cw-Cy0TRvBZ.js","assets/lightbulb-B4Eqw1ZQ.js","assets/archive-CKZHHxmL.js","assets/printer-Bavk0qya.js","assets/save-CiuHZur7.js","assets/info-ubLLwv1D.js","assets/circle-help-CFYyawcx.js","assets/chart-column-BPmGppZI.js","assets/square-pen-Dth2iaQP.js","assets/job-search-toolkit-CItwtETr.js","assets/map-pin-NtNX2OCM.js","assets/interview-coach--WK2PxRG.js","assets/building-L5ykcbwO.js","assets/newspaper-Dkx1xfyN.js","assets/salary-lookup-DsKpeS39.js","assets/premium-upgrade-W8coRCE1.js","assets/checkbox-C7o2FaDQ.js","assets/app-pro-81E-OWPR.js","assets/accordion-D1GUEZ7o.js","assets/index-BKMmZGZp.js","assets/rocket-BmPwHFOw.js","assets/tag-B6RM78I8.js","assets/mail-C8iJO0nG.js","assets/horoscope-C4UUuMOV.js","assets/index-CFeqIJyn.js","assets/admin-dashboard-D5DC8EiC.js","assets/format-DykkyaZG.js","assets/isBefore-C7aXFx2I.js","assets/alert-dialog-DXffjOjG.js","assets/table-Bci6VFRa.js","assets/palette-Bv3DTQ0h.js","assets/key-BapXSifl.js","assets/ban-DSOYZLVn.js","assets/filter-C1qdFJeV.js","assets/user-check-eBAIt1Zz.js","assets/activity-CWK6SWIe.js","assets/arrow-up-BzIKna2S.js","assets/globe-7zcmKexQ.js","assets/database-C3gFzeiL.js","assets/scroll-area-BEe4dM_p.js","assets/PieChart-DQHqrSvS.js","assets/link-BeT7Ht5h.js","assets/phone--ed2D1Ut.js","assets/user-x-DVpaYwXd.js","assets/history-B6fLhnGg.js","assets/shield-check-C36LMn4F.js","assets/heart-B32mn8hA.js","assets/share-2-Dzhx59It.js","assets/appsumo-codes-DWhtgee9.js","assets/copy-DxiEpZCQ.js","assets/legacy-migration-BAJdeIMD.js","assets/admin-dashboard-MPWXhL5q.css","assets/promo-codes-DoS7UStT.js","assets/pencil-DGBTlTMT.js","assets/user-notifications-Dz9vG-2n.js","assets/subscription-management-OqBpWRW7.js","assets/karri-management-C7kBdw_r.js","assets/karri-analytics-ZwPw7u-e.js","assets/feedback-analytics-EuIKCDJI.js","assets/thumbs-up-DyKtb84c.js","assets/recruiter-helper-BnD6aYBH.js","assets/collapsible-BbZjhiZL.js","assets/archive-restore-DnMOJIlf.js","assets/recruiter-usage-BldfXeTf.js","assets/settings-2-BWtF5MyD.js","assets/lead-magnet-stats-CKihnKn3.js","assets/partner-links-D8DJ3RU7.js","assets/grip-vertical-C8GY8HU7.js","assets/career-hub-management-w25bZ7zl.js","assets/career-hub-DeB72T5F.js","assets/career-hub-article-B_Y1YPy7.js","assets/user-guide-BkiUQdkQ.js","assets/resource-guide-CJuxcllM.js","assets/about-DjYKFnhI.js","assets/seo-meta-Brqd6s_4.js","assets/skill-development-ChLVMTa-.js","assets/circle-plus-DIfBFItf.js","assets/user-profile-B3WpnmhJ.js","assets/video-CAcHlydw.js","assets/subscription-cancel-DJxNsyqt.js","assets/subscription-manage-CzZ_OdeT.js","assets/career-assessment-CEf_76jl.js","assets/career-types-Be7RKum7.js","assets/assessment-results-P5SHPg-q.js","assets/contact-poexvjrr.js","assets/contact-admin-BSTVnH8E.js","assets/subscription-upgrade-CH2lCnds.js","assets/subscription-success-BfWrO1K2.js","assets/trophy-DiPeVBe5.js","assets/career-paths-DzgNDU-l.js","assets/hot-technologies-DdQMP0iV.js","assets/jobs-z12UgEUG.js","assets/documents-page-Dty2MJ-_.js","assets/download-l
1imit-modal-CQO1BQdE.js","assets/admin-assistant-BFGCGzok.js","assets/support-Bl8_gpZV.js","assets/karri-subscription-CP0bIqk0.js","assets/karri-guide-CW0RMZ6P.js","assets/karri-chat-BLOj059U.js","assets/conversation-history-CnoDics-.js","assets/resume-builder-ushT5ssF.js","assets/file-up-uvoXvwAu.js","assets/resume-builder-info-BL6s-Iyg.js","assets/resume-roaster-landing-D_rzqRLP.js","assets/cover-letter-generator-BQelTc0p.js","assets/quick-search-Bhhj3JfI.js","assets/brand-generator-DLWJ9GtQ.js","assets/karriai-challenge-Bsoef1C4.js","assets/saved-jobs-CxLLSVg2.js","assets/create-job-Xc4Zi7WB.js","assets/registration-confirmation-B-j2TiPR.js","assets/demo-DasYUSlI.js","assets/partnerships-DBoe4Lr-.js","assets/partnership-confirmation-CplS_Ol1.js","assets/interview-ghost-analyzer-landing-xJ2dR8lu.js","assets/team-recruiter-landing-B-Zv71R5.js","assets/layers-j8p_Jl0Z.js","assets/school-demo-EBJzYB7q.js","assets/career-transitions-direct-Cdu_Rzpx.js","assets/bookmark-plus-DGWmALFQ.js","assets/profile-roaster-CKw-Z_bW.js","assets/profile-assessment-BTuQpSAN.js","assets/linkedin-kvi-assessment-DU0kXMHA.js","assets/interview-ghosting-diagnosis-DMB3j7FQ.js","assets/enhanced-email-demo-DwgiOzC3.js","assets/knowledge-base-cmh-Xvyq.js","assets/thumbs-down-fmW27E2z.js","assets/knowledge-base-article-XZVK7dT_.js","assets/recent-activity-zjpQN5CC.js","assets/user-activity-154-DlIuvI8A.js","assets/premium-career-tools-CF61HOtL.js","assets/agency-training-guide-C4oFiaus.js","assets/agency-clients-BCjV0F13.js","assets/ellipsis-vertical-D_9PaMm4.js","assets/agency-workspace-DP06mAkR.js","assets/workspace-hub-_TbWCZEC.js","assets/workspace-documents-3Zr2ECX6.js","assets/dashboard-DrU7Iutb.js","assets/hub-yQOirKfH.js","assets/toolkit-dashboard-BPOuPQKe.js","assets/resume-workspace-BOXQzE6l.js","assets/linkedin-roaster-CkrprlU1.js","assets/job-search-helper-BZ5tPxL0.js","assets/application-cycle-start-eqHigMCC.js","assets/tooltip-CRXkxyvj.js","assets/application-cycle-detail-DoYuvLyb.js","assets/application-cycle-dashboard-4bMNqnYK.js","assets/layout-dashboard-Dm0uNKOQ.js","assets/appsumo-redeem-DiwEAyoN.js","assets/team-recruiter-RdcCB0EA.js","assets/stop-go-DL9P6PcT.js","assets/stop-go-results-BV1aTPLZ.js"])))=>i.map(i=>d[i]); 2var yb=Object.defineProperty;var Gm=t=>{throw TypeError(t)};var xb=(t,n,s)=>n in t?yb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s;var Lr=(t,n,s)=>xb(t,typeof n!="symbol"?n+"":n,s),Hu=(t,n,s)=>n.has(t)||Gm("Cannot "+s);var T=(t,n,s)=>(Hu(t,n,"read from private field"),s?s.call(t):n.get(t)),me=(t,n,s)=>n.has(t)?Gm("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,s),re=(t,n,s,a)=>(Hu(t,n,"write to private field"),a?a.call(t,s):n.set(t,s),s),_e=(t,n,s)=>(Hu(t,n,"access private method"),s);var el=(t,n,s,a)=>({set _(c){re(t,n,c,s)},get _(){return T(t,n,a)}});function wb(t,n){for(var s=0;s<n.length;s++){const a=n[s];if(typeof a!="string"&&!Array.isArray(a)){for(const c in a)if(c!=="default"&&!(c in t)){const u=Object.getOwnPropertyDescriptor(a,c);u&&Object.defineProperty(t,c,u.get?u:{enumerable:!0,get:()=>a[c]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function s(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(c){if(c.ep)return;c.ep=!0;const u=s(c);fetch(c.href,u)}})();var jR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bu={exports:{}},ai={},Wu={exports:{}},Ne={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var Qm;function bb(){if(Qm)return Ne;Qm=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function b(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,j={};function S(R,W,ge){this.props=R,this.context=W,this.refs=j,this.updater=ge||k}S.prototype.isReactComponent={},S.prototype.setState=function(R,W){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,W,"setState")},S.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function C(){}C.prototype=S.prototype;function M(R,W,ge){this.props=R,this.context=W,this.refs=j,this.updater=ge||k}var N=M.prototype=new C;N.constructor=M,E(N,S.prototype),N.isPureReactComponent=!0;var A=Array.isArray,D=Object.prototype.hasOwnProperty,U={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function V(R,W,ge){var xe,Ce={},he=null,je=null;if(W!=null)for(xe in W.ref!==void 0&&(je=W.ref),W.key!==void 0&&(he=""+W.key),W)D.call(W,xe)&&!I.hasOwnProperty(xe)&&(Ce[xe]=W[xe]);var Ae=arguments.length-2;if(Ae===1)Ce.children=ge;else if(1<Ae){for(var Re=Array(Ae),rt=0;rt<Ae;rt++)Re[rt]=arguments[rt+2];Ce.children=Re}if(R&&R.defaultProps)for(xe in Ae=R.defaultProps,Ae)Ce[xe]===void 0&&(Ce[xe]=Ae[xe]);return{$$typeof:t,type:R,key:he,ref:je,props:Ce,_owner:U.current}}function Q(R,W){return{$$typeof:t,type:R.type,key:W,ref:R.ref,props:R.props,_owner:R._owner}}
vendor: 9,909 bytes, lines 10-26
10function Z(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function le(R){var W={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ge){return W[ge]})}var te=/\/+/g;function de(R,W){return typeof R=="object"&&R!==null&&R.key!=null?le(""+R.key):W.toString(36)}function ee(R,W,ge,xe,Ce){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var je=!1;if(R===null)je=!0;else switch(he){case"string":case"number":je=!0;break;case"object":switch(R.$$typeof){case t:case n:je=!0}}if(je)return je=R,Ce=Ce(je),R=xe===""?"."+de(je,0):xe,A(Ce)?(ge="",R!=null&&(ge=R.replace(te,"$&/")+"/"),ee(Ce,W,ge,"",function(rt){return rt})):Ce!=null&&(Z(Ce)&&(Ce=Q(Ce,ge+(!Ce.key||je&&je.key===Ce.key?"":(""+Ce.key).replace(te,"$&/")+"/")+R)),W.push(Ce)),1;if(je=0,xe=xe===""?".":xe+":",A(R))for(var Ae=0;Ae<R.length;Ae++){he=R[Ae];var Re=xe+de(he,Ae);je+=ee(he,W,ge,Re,Ce)}else if(Re=b(R),typeof Re=="function")for(R=Re.call(R),Ae=0;!(he=R.next()).done;)he=he.value,Re=xe+de(he,Ae++),je+=ee(he,W,ge,Re,Ce);else if(he==="object")throw W=String(R),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return je}function fe(R,W,ge){if(R==null)return R;var xe=[],Ce=0;return ee(R,xe,"","",function(he){return W.call(ge,he,Ce++)}),xe}function oe(R){if(R._status===-1){var W=R._result;W=W(),W.then(function(ge){(R._status===0||R._status===-1)&&(R._status=1,R._result=ge)},function(ge){(R._status===0||R._status===-1)&&(R._status=2,R._result=ge)}),R._status===-1&&(R._status=0,R._result=W)}if(R._status===1)return R._result.default;throw R._result}var ue={current:null},H={transition:null},B={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:H,ReactCurrentOwner:U};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Ne.Children={map:fe,forEach:function(R,W,ge){fe(R,function(){W.apply(this,arguments)},ge)},count:function(R){var W=0;return fe(R,function(){W++}),W},toArray:function(R){return fe(R,function(W){return W})||[]},only:function(R){if(!Z(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Ne.Component=S,Ne.Fragment=s,Ne.Profiler=c,Ne.PureComponent=M,Ne.StrictMode=a,Ne.Suspense=g,Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Ne.act=Y,Ne.cloneElement=function(R,W,ge){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var xe=E({},R.props),Ce=R.key,he=R.ref,je=R._owner;if(W!=null){if(W.ref!==void 0&&(he=W.ref,je=U.current),W.key!==void 0&&(Ce=""+W.key),R.type&&R.type.defaultProps)var Ae=R.type.defaultProps;for(Re in W)D.call(W,Re)&&!I.hasOwnProperty(Re)&&(xe[Re]=W[Re]===void 0&&Ae!==void 0?Ae[Re]:W[Re])}var Re=arguments.length-2;if(Re===1)xe.children=ge;else if(1<Re){Ae=Array(Re);for(var rt=0;rt<Re;rt++)Ae[rt]=arguments[rt+2];xe.children=Ae}return{$$typeof:t,type:R.type,key:Ce,ref:he,props:xe,_owner:je}},Ne.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:u,_context:R},R.Consumer=R},Ne.createElement=V,Ne.createFactory=function(R){var W=V.bind(null,R);return W.type=R,W},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:h,render:R}},Ne.isValidElement=Z,Ne.lazy=function(R){return{$$typeof:x,_payload:{_status:-1,_result:R},_init:oe}},Ne.memo=function(R,W){return{$$typeof:v,type:R,compare:W===void 0?null:W}},Ne.startTransition=function(R){var W=H.transition;H.transition={};try{R()}finally{H.transition=W}},Ne.unstable_act=Y,Ne.useCallback=function(R,W){return ue.current.useCallback(R,W)},Ne.useContext=function(R){return ue.current.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R){return ue.current.useDeferredValue(R)},Ne.useEffect=function(R,W){return ue.current.useEffect(R,W)},Ne.useId=function(){return ue.current.useId()},Ne.useImperativeHandle=function(R,W,ge){return ue.current.useImperativeHandle(R,W,ge)},Ne.useInsertionEffect=function(R,W){return ue.current.useInsertionEffect(R,W)},Ne.useLayoutEffect=function(R,W){return ue.current.useLayoutEffect(R,W)},Ne.useMemo=function(R,W){return ue.current.useMemo(R,W)},Ne.useReducer=function(R,W,ge){return ue.current.useReducer(R,W,ge)},Ne.useRef=function(R){return ue.current.useRef(R)},Ne.useState=function(R){return ue.current.useState(R)},Ne.useSyncExternalStore=function(R,W,ge){return ue.current.useSyncExternalStore(R,W,ge)},Ne.useTransition=function(){return ue.current.useTransition()},Ne.version="18.3.1",Ne}var Ym;function Dl(){return Ym||(Ym=1,Wu.exports=bb()),Wu.exports}/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var Xm;function jb(){if(Xm)return ai;Xm=1;var t=Dl(),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,g,v){var x,y={},b=null,k=null;v!==void 0&&(b=""+v),g.key!==void 0&&(b=""+g.key),g.ref!==void 0&&(k=g.ref);for(x in g)a.call(g,x)&&!u.hasOwnProperty(x)&&(y[x]=g[x]);if(h&&h.defaultProps)for(x in g=h.defaultProps,g)y[x]===void 0&&(y[x]=g[x]);return{$$typeof:n,type:h,key:b,ref:k,props:y,_owner:c.current}}return ai.Fragment=s,ai.jsx=f,ai.jsxs=f,ai}var Jm;function Sb(){return Jm||(Jm=1,Bu.exports=jb()),Bu.exports}var i=Sb(),tl={},Ku={exports:{}},Ot={},qu={exports:{}},Gu={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var Zm;function kb(){return Zm||(Zm=1,(function(t){function n(H,B){var Y=H.length;H.push(B);e:for(;0<Y;){var R=Y-1>>>1,W=H[R];if(0<c(W,B))H[R]=B,H[Y]=W,Y=R;else break e}}function s(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var B=H[0],Y=H.pop();if(Y!==B){H[0]=Y;e:for(var R=0,W=H.length,ge=W>>>1;R<ge;){var xe=2*(R+1)-1,Ce=H[xe],he=xe+1,je=H[he];if(0>c(Ce,Y))he<W&&0>c(je,Ce)?(H[R]=je,H[he]=Y,R=he):(H[R]=Ce,H[xe]=Y,R=xe);else if(he<W&&0>c(je,Y))H[R]=je,H[he]=Y,R=he;else break e}}return B}function c(H,B){var Y=H.sortIndex-B.sortIndex;return Y!==0?Y:H.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var g=[],v=[],x=1,y=null,b=3,k=!1,E=!1,j=!1,S=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(H){for(var B=s(v);B!==null;){if(B.callback===null)a(v);else if(B.startTime<=H)a(v),B.sortIndex=B.expirationTime,n(g,B);else break;B=s(v)}}function A(H){if(j=!1,N(H),!E)if(s(g)!==null)E=!0,oe(D);else{var B=s(v);B!==null&&ue(A,B.startTime-H)}}function D(H,B){E=!1,j&&(j=!1,C(V),V=-1),k=!0;var Y=b;try{for(N(B),y=s(g);y!==null&&(!(y.expirationTime>B)||H&&!le());){var R=y.callback;if(typeof R=="function"){y.callback=null,b=y.priorityLevel;var W=R(y.expirationTime<=B);B=t.unstable_now(),typeof W=="function"?y.callback=W:y===s(g)&&a(g),N(B)}else a(g);y=s(g)}if(y!==null)var ge=!0;else{var xe=s(v);xe!==null&&ue(A,xe.startTime-B),ge=!1}return ge}finally{y=null,b=Y,k=!1}}var U=!1,I=null,V=-1,Q=5,Z=-1;function le(){return!(t.unstable_now()-Z<Q)}function te(){if(I!==null){var H=t.unstable_now();Z=H;var B=!0;try{B=I(!0,H)}finally{B?de():(U=!1,I=null)}}else U=!1}var de;if(typeof M=="function")de=function(){M(te)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,fe=ee.port2;ee.port1.onmessage=te,de=function(){fe.postMessage(null)}}else de=function(){S(te,0)};function oe(H){I=H,U||(U=!0,de())}function ue(H,B){V=S(function(){H(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_continueExecution=function(){E||k||(E=!0,oe(D))},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_getFirstCallbackNode=function(){return s(g)},t.unstable_next=function(H){switch(b){case 1:case 2:case 3:var B=3;break;default:B=b}var Y=b;b=B;try{return H()}finally{b=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(H,B){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Y=b;b=H;try{return B()}finally{b=Y}},t.unstable_scheduleCallback=function(H,B,Y){var R=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?R+Y:R):Y=R,H){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Y+W,H={id:x++,callback:B,priorityLevel:H,startTime:Y,expirationTime:W,sortIndex:-1},Y>R?(H.sortIndex=Y,n(v,H),s(g)===null&&H===s(v)&&(j?(C(V),V=-1):j=!0,ue(A,Y-R))):(H.sortIndex=W,n(g,H),E||k||(E=!0,oe(D))),H},t.unstable_shouldYield=le,t.unstable_wrapCallback=function(H){var B=b;return function(){var Y=b;b=B;try{return H.apply(this,arguments)}finally{b=Y}}}})(Gu)),Gu}var eg;
vendor: 4,268 bytes, lines 26-34
26function Eb(){return eg||(eg=1,qu.exports=kb()),qu.exports}/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var tg;function _b(){if(tg)return Ot;tg=1;var t=Dl(),n=Eb();function s(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,c={};function u(e,r){f(e,r),f(e+"Capture",r)}function f(e,r){for(c[e]=r,e=0;e<r.length;e++)a.add(r[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},y={};function b(e){return g.call(y,e)?!0:g.call(x,e)?!1:v.test(e)?y[e]=!0:(x[e]=!0,!1)}function k(e,r,o,l){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,r,o,l){if(r===null||typeof r>"u"||k(e,r,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function j(e,r,o,l,d,p,w){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=l,this.attributeNamespace=d,this.mustUseProperty=o,this.propertyName=e,this.type=r,this.sanitizeURL=p,this.removeEmptyString=w}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];S[r]=new j(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new j(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function M(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
34-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(C,M);S[r]=new j(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(C,M);S[r]=new j(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(C,M);S[r]=new j(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function N(e,r,o,l){var d=S.hasOwnProperty(r)?S[r]:null;(d!==null?d.type!==0:l||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(E(r,o,d,l)&&(o=null),l||d===null?b(r)&&(o===null?e.removeAttribute(r):e.setAttribute(r,""+o)):d.mustUseProperty?e[d.propertyName]=o===null?d.type===3?!1:"":o:(r=d.attributeName,l=d.attributeNamespace,o===null?e.removeAttribute(r):(d=d.type,o=d===3||d===4&&o===!0?"":""+o,l?e.setAttributeNS(l,r,o):e.setAttribute(r,o))))}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),U=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),le=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),H=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,R;function W(e){if(R===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);R=r&&r[1]||""}return` 35`+R+e}var ge=!1;function xe(e,r){if(!e||ge)return"";ge=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(z){var l=z}Reflect.construct(e,[],r)}else{try{r.call()}catch(z){l=z}e.call(r.prototype)}else{try{throw Error()}catch(z){l=z}e()}}catch(z){if(z&&l&&typeof z.stack=="string"){for(var d=z.stack.split(` 36`),p=l.stack.split(` 37`),w=d.length-1,_=p.length-1;1<=w&&0<=_&&d[w]!==p[_];)_--;for(;1<=w&&0<=_;w--,_--)if(d[w]!==p[_]){if(w!==1||_!==1)do if(w--,_--,0>_||d[w]!==p[_]){var P=` 38`+d[w].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=w&&0<=_);break}}}finally{ge=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?W(e):""}function Ce(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=xe(e.type,!1),e;case 11:return e=xe(e.type.render,!1),e;case 1:return e=xe(e.type,!0),e;default:return""}}function he(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case I:return"Fragment";case U:return"Portal";case Q:return"Profiler";case V:return"StrictMode";case de:return"Suspense";case ee:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case le:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case te:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fe:return r=e.displayName||null,r!==null?r:he(e.type)||"Memo";case oe:r=e._payload,e=e._init;try{return he(e(r))}catch{}}return null}function je(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(r);case 8:return r===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Ae(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function rt(e){var r=Re(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),l=""+e[r];if(!e.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return d.call(this)},set:function(w){l=""+w,p.call(this,w)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function On(e){e._valueTracker||(e._valueTracker=rt(e))}function wo(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var o=r.getValue(),l="";return e&&(l=Re(e)?e.checked?"true":"false":e.value),e=l,e!==o?(r.setValue(e),!0):!1}function mr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hs(e,r){var o=r.checked;return Y({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Hi(e,r){var o=r.defaultValue==null?"":r.defaultValue,l=r.checked!=null?r.checked:r.defaultChecked;o=Ae(r.value!=null?r.value:o),e._wrapperState={initialChecked:l,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Bi(e,r){r=r.checked,r!=null&&N(e,"checked",r,!1)}function bo(e,r){Bi(e,r);var o=Ae(r.value),l=r.type;if(o!=null)l==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?qr(e,r.type,o):r.hasOwnProperty("defaultValue")&&qr(e,r.type,Ae(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function Wi(e,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var l=r.type;if(!(l!=="submit"&&l!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,o||r===e.value||(e.value=r),e.defaultValue=r}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function qr(e,r,o){(r!=="number"||mr(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var jo=Array.isArray;function ps(e,r,o,l){if(e=e.options,r){r={};for(var d=0;d<o.length;d++)r["$"+o[d]]=!0;for(o=0;o<e.length;o++)d=r.hasOwnProperty("$"+e[o].value),e[o].selected!==d&&(e[o].selected=d),d&&l&&(e[o].defaultSelected=!0)}else{for(o=""+Ae(o),r=null,d=0;d<e.length;d++){if(e[d].value===o){e[d].selected=!0,l&&(e[d].defaultSelected=!0);return}r!==null||e[d].disabled||(r=e[d])}r!==null&&(r.selected=!0)}}function Zl(e,r){if(r.dangerouslySetInnerHTML!=null)throw Error(s(91));return Y({},r,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sh(e,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(s(92));
vendor: 35,278 bytes, lines 38-39
38if(jo(o)){if(1<o.length)throw Error(s(93));o=o[0]}r=o}r==null&&(r=""),o=r}e._wrapperState={initialValue:Ae(o)}}function oh(e,r){var o=Ae(r.value),l=Ae(r.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),r.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),l!=null&&(e.defaultValue=""+l)}function ih(e){var r=e.textContent;r===e._wrapperState.initialValue&&r!==""&&r!==null&&(e.value=r)}function ah(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ec(e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?ah(r):e==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ki,lh=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,l,d){MSApp.execUnsafeLocalFunction(function(){return e(r,o,l,d)})}:e})(function(e,r){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=r;else{for(Ki=Ki||document.createElement("div"),Ki.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function So(e,r){if(r){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=r;return}}e.textContent=r}var ko={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jw=["Webkit","ms","Moz","O"];Object.keys(ko).forEach(function(e){jw.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),ko[r]=ko[e]})});function ch(e,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||ko.hasOwnProperty(e)&&ko[e]?(""+r).trim():r+"px"}function uh(e,r){e=e.style;for(var o in r)if(r.hasOwnProperty(o)){var l=o.indexOf("--")===0,d=ch(o,r[o],l);o==="float"&&(o="cssFloat"),l?e.setProperty(o,d):e[o]=d}}var Sw=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tc(e,r){if(r){if(Sw[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(s(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(s(61))}if(r.style!=null&&typeof r.style!="object")throw Error(s(62))}}function rc(e,r){if(e.indexOf("-")===-1)return typeof r.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nc=null;function sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oc=null,ms=null,gs=null;function dh(e){if(e=Ko(e)){if(typeof oc!="function")throw Error(s(280));var r=e.stateNode;r&&(r=ma(r),oc(e.stateNode,e.type,r))}}function fh(e){ms?gs?gs.push(e):gs=[e]:ms=e}function hh(){if(ms){var e=ms,r=gs;if(gs=ms=null,dh(e),r)for(e=0;e<r.length;e++)dh(r[e])}}function ph(e,r){return e(r)}function mh(){}var ic=!1;function gh(e,r,o){if(ic)return e(r,o);ic=!0;try{return ph(e,r,o)}finally{ic=!1,(ms!==null||gs!==null)&&(mh(),hh())}}function Eo(e,r){var o=e.stateNode;if(o===null)return null;var l=ma(o);if(l===null)return null;o=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(s(231,r,typeof o));return o}var ac=!1;if(h)try{var _o={};Object.defineProperty(_o,"passive",{get:function(){ac=!0}}),window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{ac=!1}function kw(e,r,o,l,d,p,w,_,P){var z=Array.prototype.slice.call(arguments,3);try{r.apply(o,z)}catch(G){this.onError(G)}}var Co=!1,qi=null,Gi=!1,lc=null,Ew={onError:function(e){Co=!0,qi=e}};function _w(e,r,o,l,d,p,w,_,P){Co=!1,qi=null,kw.apply(Ew,arguments)}function Cw(e,r,o,l,d,p,w,_,P){if(_w.apply(this,arguments),Co){if(Co){var z=qi;Co=!1,qi=null}else throw Error(s(198));Gi||(Gi=!0,lc=z)}}function In(e){var r=e,o=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(o=r.return),e=r.return;while(e)}return r.tag===3?o:null}function vh(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function yh(e){if(In(e)!==e)throw Error(s(188))}function Nw(e){var r=e.alternate;if(!r){if(r=In(e),r===null)throw Error(s(188));return r!==e?null:e}for(var o=e,l=r;;){var d=o.return;if(d===null)break;var p=d.alternate;if(p===null){if(l=d.return,l!==null){o=l;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===o)return yh(d),e;if(p===l)return yh(d),r;p=p.sibling}throw Error(s(188))}if(o.return!==l.return)o=d,l=p;else{for(var w=!1,_=d.child;_;){if(_===o){w=!0,o=d,l=p;break}if(_===l){w=!0,l=d,o=p;break}_=_.sibling}if(!w){for(_=p.child;_;){if(_===o){w=!0,o=p,l=d;break}if(_===l){w=!0,l=p,o=d;break}_=_.sibling}if(!w)throw Error(s(189))}}if(o.alternate!==l)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?e:r}function xh(e){return e=Nw(e),e!==null?wh(e):null}function wh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var r=wh(e);if(r!==null)return r;e=e.sibling}return null}var bh=n.unstable_scheduleCallback,jh=n.unstable_cancelCallback,Tw=n.unstable_shouldYield,Pw=n.unstable_requestPaint,Je=n.unstable_now,Rw=n.unstable_getCurrentPriorityLevel,cc=n.unstable_ImmediatePriority,Sh=n.unstable_UserBlockingPriority,Qi=n.unstable_NormalPriority,Aw=n.unstable_LowPriority,kh=n.unstable_IdlePriority,Yi=null,gr=null;function Ow(e){if(gr&&typeof gr.onCommitFiberRoot=="function")try{gr.onCommitFiberRoot(Yi,e,void 0,(e.current.flags&128)===128)}catch{}}var er=Math.clz32?Math.clz32:Dw,Iw=Math.log,Mw=Math.LN2;function Dw(e){return e>>>=0,e===0?32:31-(Iw(e)/Mw|0)|0}var Xi=64,Ji=4194304;function No(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zi(e,r){var o=e.pendingLanes;if(o===0)return 0;var l=0,d=e.suspendedLanes,p=e.pingedLanes,w=o&268435455;if(w!==0){var _=w&~d;_!==0?l=No(_):(p&=w,p!==0&&(l=No(p)))}else w=o&~d,w!==0?l=No(w):p!==0&&(l=No(p));if(l===0)return 0;if(r!==0&&r!==l&&(r&d)===0&&(d=l&-l,p=r&-r,d>=p||d===16&&(p&4194240)!==0))return r;if((l&4)!==0&&(l|=o&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=l;0<r;)o=31-er(r),d=1<<o,l|=e[o],r&=~d;return l}function Lw(e,r){switch(e){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fw(e,r){for(var o=e.suspendedLanes,l=e.pingedLanes,d=e.expirationTimes,p=e.pendingLanes;0<p;){var w=31-er(p),_=1<<w,P=d[w];P===-1?((_&o)===0||(_&l)!==0)&&(d[w]=Lw(_,r)):P<=r&&(e.expiredLanes|=_),p&=~_}}function uc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Eh(){var e=Xi;return Xi<<=1,(Xi&4194240)===0&&(Xi=64),e}function dc(e){for(var r=[],o=0;31>o;o++)r.push(e);return r}function To(e,r,o){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-er(r),e[r]=o}function zw(e,r){var o=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<o;){var d=31-er(o),p=1<<d;r[d]=0,l[d]=-1,e[d]=-1,o&=~p}}function fc(e,r){var o=e.entangledLanes|=r;for(e=e.entanglements;o;){var l=31-er(o),d=1<<l;d&r|e[l]&r&&(e[l]|=r),o&=~d}}var Ue=0;function _h(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Ch,hc,Nh,Th,Ph,pc=!1,ea=[],Gr=null,Qr=null,Yr=null,Po=new Map,Ro=new Map,Xr=[],Uw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rh(e,r){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Yr=null;break;case"pointerover":case"pointerout":Po.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ro.delete(r.pointerId)}}function Ao(e,r,o,l,d,p){return e===null||e.nativeEvent!==p?(e={blockedOn:r,domEventName:o,eventSystemFlags:l,nativeEvent:p,targetContainers:[d]},r!==null&&(r=Ko(r),r!==null&&hc(r)),e):(e.eventSystemFlags|=l,r=e.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),e)}function Vw(e,r,o,l,d){switch(r){case"focusin":return Gr=Ao(Gr,e,r,o,l,d),!0;case"dragenter":return Qr=Ao(Qr,e,r,o,l,d),!0;case"mouseover":return Yr=Ao(Yr,e,r,o,l,d),!0;case"pointerover":var p=d.pointerId;return Po.set(p,Ao(Po.get(p)||null,e,r,o,l,d)),!0;case"gotpointercapture":return p=d.pointerId,Ro.set(p,Ao(Ro.get(p)||null,e,r,o,l,d)),!0}return!1}function Ah(e){var r=Mn(e.target);if(r!==null){var o=In(r);if(o!==null){if(r=o.tag,r===13){if(r=vh(o),r!==null){e.blockedOn=r,Ph(e.priority,function(){Nh(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ta(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var o=gc(e.domEventName,e.eventSystemFlags,r[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o);nc=l,o.target.dispatchEvent(l),nc=null}else return r=Ko(o),r!==null&&hc(r),e.blockedOn=o,!1;r.shift()}return!0}function Oh(e,r,o){ta(e)&&o.delete(r)}function $w(){pc=!1,Gr!==null&&ta(Gr)&&(Gr=null),Qr!==null&&ta(Qr)&&(Qr=null),Yr!==null&&ta(Yr)&&(Yr=null),Po.forEach(Oh),Ro.forEach(Oh)}function Oo(e,r){e.blockedOn===r&&(e.blockedOn=null,pc||(pc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$w)))}function Io(e){function r(d){return Oo(d,e)}if(0<ea.length){Oo(ea[0],e);for(var o=1;o<ea.length;o++){var l=ea[o];l.blockedOn===e&&(l.blockedOn=null)}}for(Gr!==null&&Oo(Gr,e),Qr!==null&&Oo(Qr,e),Yr!==null&&Oo(Yr,e),Po.forEach(r),Ro.forEach(r),o=0;o<Xr.length;o++)l=Xr[o],l.blockedOn===e&&(l.blockedOn=null);for(;0<Xr.length&&(o=Xr[0],o.blockedOn===null);)Ah(o),o.blockedOn===null&&Xr.shift()}var vs=A.ReactCurrentBatchConfig,ra=!0;function Hw(e,r,o,l){var d=Ue,p=vs.transition;vs.transition=null;try{Ue=1,mc(e,r,o,l)}finally{Ue=d,vs.transition=p}}function Bw(e,r,o,l){var d=Ue,p=vs.transition;vs.transition=null;try{Ue=4,mc(e,r,o,l)}finally{Ue=d,vs.transition=p}}function mc(e,r,o,l){if(ra){var d=gc(e,r,o,l);if(d===null)Oc(e,r,l,na,o),Rh(e,l);else if(Vw(d,e,r,o,l))l.stopPropagation();else if(Rh(e,l),r&4&&-1<Uw.indexOf(e)){for(;d!==null;){var p=Ko(d);if(p!==null&&Ch(p),p=gc(e,r,o,l),p===null&&Oc(e,r,l,na,o),p===d)break;d=p}d!==null&&l.stopPropagation()}else Oc(e,r,l,null,o)}}var na=null;function gc(e,r,o,l){if(na=null,e=sc(l),e=Mn(e),e!==null)if(r=In(e),r===null)e=null;else if(o=r.tag,o===13){if(e=vh(r),e!==null)return e;e=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null);return na=e,null}function Ih(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Rw()){case cc:return 1;case Sh:return 4;case Qi:case Aw:return 16;case kh:return 536870912;default:return 16}default:return 16}}var Jr=null,vc=null,sa=null;function Mh(){if(sa)return sa;var e,r=vc,o=r.length,l,d="value"in Jr?Jr.value:Jr.textContent,p=d.length;for(e=0;e<o&&r[e]===d[e];e++);var w=o-e;for(l=1;l<=w&&r[o-l]===d[p-l];l++);return sa=d.slice(e,1<l?1-l:void 0)}function oa(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function ia(){return!0}function Dh(){return!1}function Lt(e){function r(o,l,d,p,w){this._reactName=o,this._targetInst=d,this.type=l,this.nativeEvent=p,this.target=w,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(o=e[_],this[_]=o?o(p):p[_]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ia:Dh,this.isPropagationStopped=Dh,this}return Y(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ia)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ia)},persist:function(){},isPersistent:ia}),r}var ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yc=Lt(ys),Mo=Y({},ys,{view:0,detail:0}),Ww=Lt(Mo),xc,wc,Do,aa=Y({},Mo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Do&&(Do&&e.type==="mousemove"?(xc=e.screenX-Do.screenX,wc=e.screenY-Do.screenY):wc=xc=0,Do=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:wc}}),Lh=Lt(aa),Kw=Y({},aa,{dataTransfer:0}),qw=Lt(Kw),Gw=Y({},Mo,{relatedTarget:0}),bc=Lt(Gw),Qw=Y({},ys,{animationName:0,elapsedTime:0,pseudoElement:0}),Yw=Lt(Qw),Xw=Y({},ys,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jw=Lt(Xw),Zw=Y({},ys,{data:0}),Fh=Lt(Zw),e1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n1(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=r1[e])?!!r[e]:!1}function jc(){return n1}var s1=Y({},Mo,{key:function(e){if(e.key){var r=e1[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=oa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?t1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(e){return e.type==="keypress"?oa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),o1=Lt(s1),i1=Y({},aa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zh=Lt(i1),a1=Y({},Mo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),l1=Lt(a1),c1=Y({},ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),u1=Lt(c1),d1=Y({},aa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),f1=Lt(d1),h1=[9,13,27,32],Sc=h&&"CompositionEvent"in window,Lo=null;h&&"documentMode"in document&&(Lo=document.documentMode);var p1=h&&"TextEvent"in window&&!Lo,Uh=h&&(!Sc||Lo&&8<Lo&&11>=Lo),Vh=" ",$h=!1;function Hh(e,r){switch(e){case"keyup":return h1.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xs=!1;function m1(e,r){switch(e){case"compositionend":return Bh(r);case"keypress":return r.which!==32?null:($h=!0,Vh);case"textInput":return e=r.data,e===Vh&&$h?null:e;default:return null}}function g1(e,r){if(xs)return e==="compositionend"||!Sc&&Hh(e,r)?(e=Mh(),sa=vc=Jr=null,xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Uh&&r.locale!=="ko"?null:r.data;default:return null}}var v1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wh(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!v1[e.type]:r==="textarea"}function Kh(e,r,o,l){fh(l),r=fa(r,"onChange"),0<r.length&&(o=new yc("onChange","change",null,o,l),e.push({event:o,listeners:r}))}var Fo=null,zo=null;function y1(e){up(e,0)}function la(e){var r=ks(e);if(wo(r))return e}function x1(e,r){if(e==="change")return r}var qh=!1;if(h){var kc;if(h){var Ec="oninput"in document;if(!Ec){var Gh=document.createElement("div");Gh.setAttribute("oninput","return;"),Ec=typeof Gh.oninput=="function"}kc=Ec}else kc=!1;qh=kc&&(!document.documentMode||9<document.documentMode)}function Qh(){Fo&&(Fo.detachEvent("onpropertychange",Yh),zo=Fo=null)}function Yh(e){if(e.propertyName==="value"&&la(zo)){var r=[];Kh(r,zo,e,sc(e)),gh(y1,r)}}function w1(e,r,o){e==="focusin"?(Qh(),Fo=r,zo=o,Fo.attachEvent("onpropertychange",Yh)):e==="focusout"&&Qh()}function b1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return la(zo)}function j1(e,r){if(e==="click")return la(r)}function S1(e,r){if(e==="input"||e==="change")return la(r)}function k1(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var tr=typeof Object.is=="function"?Object.is:k1;function Uo(e,r){if(tr(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var o=Object.keys(e),l=Object.keys(r);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var d=o[l];if(!g.call(r,d)||!tr(e[d],r[d]))return!1}return!0}function Xh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jh(e,r){var o=Xh(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=r&&l>=r)return{node:o,offset:r-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Xh(o)}}function Zh(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?Zh(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function ep(){for(var e=window,r=mr();r instanceof e.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)e=r.contentWindow;else break;r=mr(e.document)}return r}function _c(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function E1(e){var r=ep(),o=e.focusedElem,l=e.selectionRange;if(r!==o&&o&&o.ownerDocument&&Zh(o.ownerDocument.documentElement,o)){if(l!==null&&_c(o)){if(r=l.start,e=l.end,e===void 0&&(e=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(e,o.value.length);else if(e=(r=o.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var d=o.textContent.length,p=Math.min(l.start,d);l=l.end===void 0?p:Math.min(l.end,d),!e.extend&&p>l&&(d=l,l=p,p=d),d=Jh(o,p);var w=Jh(o,l);d&&w&&(e.rangeCount!==1||e.anchorNode!==d.node||e.anchorOffset!==d.offset||e.focusNode!==w.node||e.focusOffset!==w.offset)&&(r=r.createRange(),r.setStart(d.node,d.offset),e.removeAllRanges(),p>l?(e.addRange(r),e.extend(w.node,w.offset)):(r.setEnd(w.node,w.offset),e.addRange(r)))}}for(r=[],e=o;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)e=r[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _1=h&&"documentMode"in document&&11>=document.documentMode,ws=null,Cc=null,Vo=null,Nc=!1;function tp(e,r,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Nc||ws==null||ws!==mr(l)||(l=ws,"selectionStart"in l&&_c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Vo&&Uo(Vo,l)||(Vo=l,l=fa(Cc,"onSelect"),0<l.length&&(r=new yc("onSelect","select",null,r,o),e.push({event:r,listeners:l}),r.target=ws)))}function ca(e,r){var o={};return o[e.toLowerCase()]=r.toLowerCase(),o["Webkit"+e]="webkit"+r,o["Moz"+e]="moz"+r,o}var bs={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionend:ca("Transition","TransitionEnd")},Tc={},rp={};h&&(rp=document.createElement("div").style,"AnimationEvent"in window||(delete bs.animationend.animation,delete bs.animationiteration.animation,delete bs.animationstart.animation),"TransitionEvent"in window||delete bs.transitionend.transition);function ua(e){if(Tc[e])return Tc[e];if(!bs[e])return e;var r=bs[e],o;for(o in r)if(r.hasOwnProperty(o)&&o in rp)return Tc[e]=r[o];return e}var np=ua("animationend"),sp=ua("animationiteration"),op=ua("animationstart"),ip=ua("transitionend"),ap=new Map,lp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Zr(e,r){ap.set(e,r),u(r,[e])}for(var Pc=0;Pc<lp.length;Pc++){var Rc=lp[Pc],C1=Rc.toLowerCase(),N1=Rc[0].toUpperCase()+Rc.slice(1);Zr(C1,"on"+N1)}Zr(np,"onAnimationEnd"),Zr(sp,"onAnimationIteration"),Zr(op,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(ip,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T1=new Set("cancel close invalid load scroll toggle".split(" ").concat($o));function cp(e,r,o){var l=e.type||"unknown-event";e.currentTarget=o,Cw(l,r,void 0,e),e.currentTarget=null}function up(e,r){r=(r&4)!==0;for(var o=0;o<e.length;o++){var l=e[o],d=l.event;l=l.listeners;e:{var p=void 0;if(r)for(var w=l.length-1;0<=w;w--){var _=l[w],P=_.instance,z=_.currentTarget;if(_=_.listener,P!==p&&d.isPropagationStopped())break e;cp(d,_,z),p=P}else for(w=0;w<l.length;w++){if(_=l[w],P=_.instance,z=_.currentTarget,_=_.listener,P!==p&&d.isPropagationStopped())break e;cp(d,_,z),p=P}}}if(Gi)throw e=lc,Gi=!1,lc=null,e}function He(e,r){var o=r[zc];o===void 0&&(o=r[zc]=new Set);var l=e+"__bubble";o.has(l)||(dp(r,e,2,!1),o.add(l))}function Ac(e,r,o){var l=0;r&&(l|=4),dp(o,e,l,r)}var da="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[da]){e[da]=!0,a.forEach(function(o){o!=="selectionchange"&&(T1.has(o)||Ac(o,!1,e),Ac(o,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[da]||(r[da]=!0,Ac("selectionchange",!1,r))}}function dp(e,r,o,l){switch(Ih(r)){case 1:var d=Hw;break;case 4:d=Bw;break;default:d=mc}o=d.bind(null,r,o,e),d=void 0,!ac||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),l?d!==void 0?e.addEventListener(r,o,{capture:!0,passive:d}):e.addEventListener(r,o,!0):d!==void 0?e.addEventListener(r,o,{passive:d}):e.addEventListener(r,o,!1)}function Oc(e,r,o,l,d){var p=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var w=l.tag;if(w===3||w===4){var _=l.stateNode.containerInfo;if(_===d||_.nodeType===8&&_.parentNode===d)break;if(w===4)for(w=l.return;w!==null;){var P=w.tag;if((P===3||P===4)&&(P=w.stateNode.containerInfo,P===d||P.nodeType===8&&P.parentNode===d))return;w=w.return}for(;_!==null;){if(w=Mn(_),w===null)return;if(P=w.tag,P===5||P===6){l=p=w;continue e}_=_.parentNode}}l=l.return}gh(function(){var z=p,G=sc(o),X=[];e:{var q=ap.get(e);if(q!==void 0){var ne=yc,ie=e;switch(e){case"keypress":if(oa(o)===0)break e;case"keydown":case"keyup":ne=o1;break;case"focusin":ie="focus",ne=bc;break;case"focusout":ie="blur",ne=bc;break;case"beforeblur":case"afterblur":ne=bc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=qw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=l1;break;case np:case sp:case op:ne=Yw;break;case ip:ne=u1;break;case"scroll":ne=Ww;break;case"wheel":ne=f1;break;case"copy":case"cut":case"paste":ne=Jw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=zh}var ae=(r&4)!==0,Ze=!ae&&e==="scroll",L=ae?q!==null?q+"Capture":null:q;ae=[];for(var O=z,F;O!==null;){F=O;var J=F.stateNode;if(F.tag===5&&J!==null&&(F=J,L!==null&&(J=Eo(O,L),J!=null&&ae.push(Bo(O,J,F)))),Ze)break;O=O.return}0<ae.length&&(q=new ne(q,ie,null,o,G),X.push({event:q,listeners:ae}))}}if((r&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",ne=e==="mouseout"||e==="pointerout",q&&o!==nc&&(ie=o.relatedTarget||o.fromElement)&&(Mn(ie)||ie[Tr]))break e;if((ne||q)&&(q=G.window===G?G:(q=G.ownerDocument)?q.defaultView||q.parentWindow:window,ne?(ie=o.relatedTarget||o.toElement,ne=z,ie=ie?Mn(ie):null,ie!==null&&(Ze=In(ie),ie!==Ze||ie.tag!==5&&ie.tag!==6)&&(ie=null)):(ne=null,ie=z),ne!==ie)){if(ae=Lh,J="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ae=zh,J="onPointerLeave",L="onPointerEnter",O="pointer"),Ze=ne==null?q:ks(ne),F=ie==null?q:ks(ie),q=new ae(J,O+"leave",ne,o,G),q.target=Ze,q.relatedTarget=F,J=null,Mn(G)===z&&(ae=new ae(L,O+"enter",ie,o,G),ae.target=F,ae.relatedTarget=Ze,J=ae),Ze=J,ne&&ie)t:{for(ae=ne,L=ie,O=0,F=ae;F;F=js(F))O++;for(F=0,J=L;J;J=js(J))F++;for(;0<O-F;)ae=js(ae),O--;for(;0<F-O;)L=js(L),F--;for(;O--;){if(ae===L||L!==null&&ae===L.alternate)break t;ae=js(ae),L=js(L)}ae=null}else ae=null;ne!==null&&fp(X,q,ne,ae,!1),ie!==null&&Ze!==null&&fp(X,Ze,ie,ae,!0)}}e:{if(q=z?ks(z):window,ne=q.nodeName&&q.nodeName.toLowerCase(),ne==="select"||ne==="input"&&q.type==="file")var ce=x1;else if(Wh(q))if(qh)ce=S1;else{ce=b1;var ve=w1}else(ne=q.nodeName)&&ne.toLowerCase()==="input"&&(q.type==="checkbox"||q.type==="radio")&&(ce=j1);if(ce&&(ce=ce(e,z))){Kh(X,ce,o,G);break e}ve&&ve(e,q,z),e==="focusout"&&(ve=q._wrapperState)&&ve.controlled&&q.type==="number"&&qr(q,"number",q.value)}switch(ve=z?ks(z):window,e){case"focusin":(Wh(ve)||ve.contentEditable==="true")&&(ws=ve,Cc=z,Vo=null);break;case"focusout":Vo=Cc=ws=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,tp(X,o,G);break;case"selectionchange":if(_1)break;case"keydown":case"keyup":tp(X,o,G)}var ye;if(Sc)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else xs?Hh(e,o)&&(be="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(be="onCompositionStart");be&&(Uh&&o.locale!=="ko"&&(xs||be!=="onCompositionStart"?be==="onCompositionEnd"&&xs&&(ye=Mh()):(Jr=G,vc="value"in Jr?Jr.value:Jr.textContent,xs=!0)),ve=fa(z,be),0<ve.length&&(be=new Fh(be,e,null,o,G),X.push({event:be,listeners:ve}),ye?be.data=ye:(ye=Bh(o),ye!==null&&(be.data=ye)))),(ye=p1?m1(e,o):g1(e,o))&&(z=fa(z,"onBeforeInput"),0<z.length&&(G=new Fh("onBeforeInput","beforeinput",null,o,G),X.push({event:G,listeners:z}),G.data=ye))}up(X,r)})}function Bo(e,r,o){return{instance:e,listener:r,currentTarget:o}}function fa(e,r){for(var o=r+"Capture",l=[];e!==null;){var d=e,p=d.stateNode;d.tag===5&&p!==null&&(d=p,p=Eo(e,o),p!=null&&l.unshift(Bo(e,p,d)),p=Eo(e,r),p!=null&&l.push(Bo(e,p,d))),e=e.return}return l}function js(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fp(e,r,o,l,d){for(var p=r._reactName,w=[];o!==null&&o!==l;){var _=o,P=_.alternate,z=_.stateNode;if(P!==null&&P===l)break;_.tag===5&&z!==null&&(_=z,d?(P=Eo(o,p),P!=null&&w.unshift(Bo(o,P,_))):d||(P=Eo(o,p),P!=null&&w.push(Bo(o,P,_)))),o=o.return}w.length!==0&&e.push({event:r,listeners:w})}var P1=/\r\n?/g,R1=/\u0000|\uFFFD/g;function hp(e){return(typeof e=="string"?e:""+e).replace(P1,` 39`).replace(R1,"")}function ha(e,r,o){if(r=hp(r),hp(e)!==r&&o)throw Error(s(425))}function pa(){}var Ic=null,Mc=null;function Dc(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Lc=typeof setTimeout=="function"?setTimeout:void 0,A1=typeof clearTimeout=="function"?clearTimeout:void 0,pp=typeof Promise=="function"?Promise:void 0,O1=typeof queueMicrotask=="function"?queueMicrotask:typeof pp<"u"?function(e){return pp.resolve(null).then(e).catch(I1)}:Lc;function I1(e){setTimeout(function(){throw e})}function Fc(e,r){var o=r,l=0;do{var d=o.nextSibling;if(e.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(l===0){e.removeChild(d),Io(r);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=d}while(o);Io(r)}function en(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return e}function mp(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return e;r--}else o==="/$"&&r++}e=e.previousSibling}return null}var Ss=Math.random().toString(36).slice(2),vr="__reactFiber$"+Ss,Wo="__reactProps$"+Ss,Tr="__reactContainer$"+Ss,zc="__reactEvents$"+Ss,M1="__reactListeners$"+Ss,D1="__reactHandles$"+Ss;function Mn(e){var r=e[vr];if(r)return r;for(var o=e.parentNode;o;){if(r=o[Tr]||o[vr]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(e=mp(e);e!==null;){if(o=e[vr])return o;e=mp(e)}return r}e=o,o=e.parentNode}return null}function Ko(e){return e=e[vr]||e[Tr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ks(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function ma(e){return e[Wo]||null}var Uc=[],Es=-1;function tn(e){return{current:e}}function Be(e){0>Es||(e.current=Uc[Es],Uc[Es]=null,Es--)}function $e(e,r){Es++,Uc[Es]=e.current,e.current=r}var rn={},gt=tn(rn),Nt=tn(!1),Dn=rn;function _s(e,r){var o=e.type.contextTypes;if(!o)return rn;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===r)return l.__reactInternalMemoizedMaskedChildContext;var d={},p;for(p in o)d[p]=r[p];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=d),d}function Tt(e){return e=e.childContextTypes,e!=null}function ga(){Be(Nt),Be(gt)}function gp(e,r,o){if(gt.current!==rn)throw Error(s(168));$e(gt,r),$e(Nt,o)}function vp(e,r,o){var l=e.stateNode;if(r=r.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var d in l)if(!(d in r))throw Error(s(108,je(e)||"Unknown",d));return Y({},o,l)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||r
vendor: 7,840 bytes, line 39
39n,Dn=gt.current,$e(gt,e),$e(Nt,Nt.current),!0}function yp(e,r,o){var l=e.stateNode;if(!l)throw Error(s(169));o?(e=vp(e,r,Dn),l.__reactInternalMemoizedMergedChildContext=e,Be(Nt),Be(gt),$e(gt,e)):Be(Nt),$e(Nt,o)}var Pr=null,ya=!1,Vc=!1;function xp(e){Pr===null?Pr=[e]:Pr.push(e)}function L1(e){ya=!0,xp(e)}function nn(){if(!Vc&&Pr!==null){Vc=!0;var e=0,r=Ue;try{var o=Pr;for(Ue=1;e<o.length;e++){var l=o[e];do l=l(!0);while(l!==null)}Pr=null,ya=!1}catch(d){throw Pr!==null&&(Pr=Pr.slice(e+1)),bh(cc,nn),d}finally{Ue=r,Vc=!1}}return null}var Cs=[],Ns=0,xa=null,wa=0,Bt=[],Wt=0,Ln=null,Rr=1,Ar="";function Fn(e,r){Cs[Ns++]=wa,Cs[Ns++]=xa,xa=e,wa=r}function wp(e,r,o){Bt[Wt++]=Rr,Bt[Wt++]=Ar,Bt[Wt++]=Ln,Ln=e;var l=Rr;e=Ar;var d=32-er(l)-1;l&=~(1<<d),o+=1;var p=32-er(r)+d;if(30<p){var w=d-d%5;p=(l&(1<<w)-1).toString(32),l>>=w,d-=w,Rr=1<<32-er(r)+d|o<<d|l,Ar=p+e}else Rr=1<<p|o<<d|l,Ar=e}function $c(e){e.return!==null&&(Fn(e,1),wp(e,1,0))}function Hc(e){for(;e===xa;)xa=Cs[--Ns],Cs[Ns]=null,wa=Cs[--Ns],Cs[Ns]=null;for(;e===Ln;)Ln=Bt[--Wt],Bt[Wt]=null,Ar=Bt[--Wt],Bt[Wt]=null,Rr=Bt[--Wt],Bt[Wt]=null}var Ft=null,zt=null,Ke=!1,rr=null;function bp(e,r){var o=Qt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=e,r=e.deletions,r===null?(e.deletions=[o],e.flags|=16):r.push(o)}function jp(e,r){switch(e.tag){case 5:var o=e.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(e.stateNode=r,Ft=e,zt=en(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,Ft=e,zt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=Ln!==null?{id:Rr,overflow:Ar}:null,e.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Qt(18,null,null,0),o.stateNode=r,o.return=e,e.child=o,Ft=e,zt=null,!0):!1;default:return!1}}function Bc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wc(e){if(Ke){var r=zt;if(r){var o=r;if(!jp(e,r)){if(Bc(e))throw Error(s(418));r=en(o.nextSibling);var l=Ft;r&&jp(e,r)?bp(l,o):(e.flags=e.flags&-4097|2,Ke=!1,Ft=e)}}else{if(Bc(e))throw Error(s(418));e.flags=e.flags&-4097|2,Ke=!1,Ft=e}}}function Sp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ft=e}function ba(e){if(e!==Ft)return!1;if(!Ke)return Sp(e),Ke=!0,!1;var r;if((r=e.tag!==3)&&!(r=e.tag!==5)&&(r=e.type,r=r!=="head"&&r!=="body"&&!Dc(e.type,e.memoizedProps)),r&&(r=zt)){if(Bc(e))throw kp(),Error(s(418));for(;r;)bp(e,r),r=en(r.nextSibling)}if(Sp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(r===0){zt=en(e.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}e=e.nextSibling}zt=null}}else zt=Ft?en(e.stateNode.nextSibling):null;return!0}function kp(){for(var e=zt;e;)e=en(e.nextSibling)}function Ts(){zt=Ft=null,Ke=!1}function Kc(e){rr===null?rr=[e]:rr.push(e)}var F1=A.ReactCurrentBatchConfig;function qo(e,r,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(s(309));var l=o.stateNode}if(!l)throw Error(s(147,e));var d=l,p=""+e;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===p?r.ref:(r=function(w){var _=d.refs;w===null?delete _[p]:_[p]=w},r._stringRef=p,r)}if(typeof e!="string")throw Error(s(284));if(!o._owner)throw Error(s(290,e))}return e}function ja(e,r){throw e=Object.prototype.toString.call(r),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function Ep(e){var r=e._init;return r(e._payload)}function _p(e){function r(L,O){if(e){var F=L.deletions;F===null?(L.deletions=[O],L.flags|=16):F.push(O)}}function o(L,O){if(!e)return null;for(;O!==null;)r(L,O),O=O.sibling;return null}function l(L,O){for(L=new Map;O!==null;)O.key!==null?L.set(O.key,O):L.set(O.index,O),O=O.sibling;return L}function d(L,O){return L=fn(L,O),L.index=0,L.sibling=null,L}function p(L,O,F){return L.index=F,e?(F=L.alternate,F!==null?(F=F.index,F<O?(L.flags|=2,O):F):(L.flags|=2,O)):(L.flags|=1048576,O)}function w(L){return e&&L.alternate===null&&(L.flags|=2),L}function _(L,O,F,J){return O===null||O.tag!==6?(O=Lu(F,L.mode,J),O.return=L,O):(O=d(O,F),O.return=L,O)}function P(L,O,F,J){var ce=F.type;return ce===I?G(L,O,F.props.children,J,F.key):O!==null&&(O.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===oe&&Ep(ce)===O.type)?(J=d(O,F.props),J.ref=qo(L,O,F),J.return=L,J):(J=Ka(F.type,F.key,F.props,null,L.mode,J),J.ref=qo(L,O,F),J.return=L,J)}function z(L,O,F,J){return O===null||O.tag!==4||O.stateNode.containerInfo!==F.containerInfo||O.stateNode.implementation!==F.implementation?(O=Fu(F,L.mode,J),O.return=L,O):(O=d(O,F.children||[]),O.return=L,O)}function G(L,O,F,J,ce){return O===null||O.tag!==7?(O=Kn(F,L.mode,J,ce),O.return=L,O):(O=d(O,F),O.return=L,O)}function X(L,O,F){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Lu(""+O,L.mode,F),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case D:return F=Ka(O.type,O.key,O.props,null,L.mode,F),F.ref=qo(L,null,O),F.return=L,F;case U:return O=Fu(O,L.mode,F),O.return=L,O;case oe:var J=O._init;return X(L,J(O._payload),F)}if(jo(O)||B(O))return O=Kn(O,L.mode,F,null),O.return=L,O;ja(L,O)}return null}function q(L,O,F,J){var ce=O!==null?O.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ce!==null?null:_(L,O,""+F,J);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case D:return F.key===ce?P(L,O,F,J):null;case U:return F.key===ce?z(L,O,F,J):null;case oe:return ce=F._init,q(L,O,ce(F._payload),J)}if(jo(F)||B(F))return ce!==null?null:G(L,O,F,J,null);ja(L,F)}return null}function ne(L,O,F,J,ce){if(typeof J=="string"&&J!==""||typeof J=="number")return L=L.get(F)||null,_(O,L,""+J,ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case D:return L=L.get(J.key===null?F:J.key)||null,P(O,L,J,ce);case U:return L=L.get(J.key===null?F:J.key)||null,z(O,L,J,ce);case oe:var ve=J._init;return ne(L,O,F,ve(J._payload),ce)}if(jo(J)||B(J))return L=L.get(F)||null,G(O,L,J,ce,null);ja(O,J)}return null}function ie(L,O,F,J){for(var ce=null,ve=null,ye=O,be=O=0,ut=null;ye!==null&&be<F.length;be++){ye.index>be?(ut=ye,ye=null):ut=ye.sibling;var De=q(L,ye,F[be],J);if(De===null){ye===null&&(ye=ut);break}e&&ye&&De.alternate===null&&r(L,ye),O=p(De,O,be),ve===null?ce=De:ve.sibling=De,ve=De,ye=ut}if(be===F.length)return o(L,ye),Ke&&Fn(L,be),ce;if(ye===null){for(;be<F.length;be++)ye=X(L,F[be],J),ye!==null&&(O=p(ye,O,be),ve===null?ce=ye:ve.sibling=ye,ve=ye);return Ke&&Fn(L,be),ce}for(ye=l(L,ye);be<F.length;be++)ut=ne(ye,L,be,F[be],J),ut!==null&&(e&&ut.alternate!==null&&ye.delete(ut.key===null?be:ut.key),O=p(ut,O,be),ve===null?ce=ut:ve.sibling=ut,ve=ut);return e&&ye.forEach(function(hn){return r(L,hn)}),Ke&&Fn(L,be),ce}function ae(L,O,F,J){var ce=B(F);if(typeof ce!="function")throw Error(s(150));if(F=ce.call(F),F==null)throw Error(s(151));for(var ve=ce=null,ye=O,be=O=0,ut=null,De=F.next();ye!==null&&!De.done;be++,De=F.next()){ye.index>be?(ut=ye,ye=null):ut=ye.sibling;var hn=q(L,ye,De.value,J);if(hn===null){ye===null&&(ye=ut);break}e&&ye&&hn.alternate===null&&r(L,ye),O=p(hn,O,be),ve===null?ce=hn:ve.sibling=hn,ve=hn,ye=ut}if(De.done)return o(L,ye),Ke&&Fn(L,be),ce;if(ye===null){for(;!De.done;be++,De=F.next())De=X(L,De.value,J),De!==null&&(O=p(De,O,be),ve===null?ce=De:ve.sibling=De,ve=De);return Ke&&Fn(L,be),ce}for(ye=l(L,ye);!De.done;be++,De=F.next())De=ne(ye,L,be,De.value,J),De!==null&&(e&&De.alternate!==null&&ye.delete(De.key===null?be:De.key),O=p(De,O,be),ve===null?ce=De:ve.sibling=De,ve=De);return e&&ye.forEach(function(vb){return r(L,vb)}),Ke&&Fn(L,be),ce}function Ze(L,O,F,J){if(typeof F=="object"&&F!==null&&F.type===I&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case D:e:{for(var ce=F.key,ve=O;ve!==null;
vendor: 5,453 bytes, line 39
39){if(ve.key===ce){if(ce=F.type,ce===I){if(ve.tag===7){o(L,ve.sibling),O=d(ve,F.props.children),O.return=L,L=O;break e}}else if(ve.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===oe&&Ep(ce)===ve.type){o(L,ve.sibling),O=d(ve,F.props),O.ref=qo(L,ve,F),O.return=L,L=O;break e}o(L,ve);break}else r(L,ve);ve=ve.sibling}F.type===I?(O=Kn(F.props.children,L.mode,J,F.key),O.return=L,L=O):(J=Ka(F.type,F.key,F.props,null,L.mode,J),J.ref=qo(L,O,F),J.return=L,L=J)}return w(L);case U:e:{for(ve=F.key;O!==null;){if(O.key===ve)if(O.tag===4&&O.stateNode.containerInfo===F.containerInfo&&O.stateNode.implementation===F.implementation){o(L,O.sibling),O=d(O,F.children||[]),O.return=L,L=O;break e}else{o(L,O);break}else r(L,O);O=O.sibling}O=Fu(F,L.mode,J),O.return=L,L=O}return w(L);case oe:return ve=F._init,Ze(L,O,ve(F._payload),J)}if(jo(F))return ie(L,O,F,J);if(B(F))return ae(L,O,F,J);ja(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,O!==null&&O.tag===6?(o(L,O.sibling),O=d(O,F),O.return=L,L=O):(o(L,O),O=Lu(F,L.mode,J),O.return=L,L=O),w(L)):o(L,O)}return Ze}var Ps=_p(!0),Cp=_p(!1),Sa=tn(null),ka=null,Rs=null,qc=null;function Gc(){qc=Rs=ka=null}function Qc(e){var r=Sa.current;Be(Sa),e._currentValue=r}function Yc(e,r,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),e===o)break;e=e.return}}function As(e,r){ka=e,qc=Rs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&r)!==0&&(Pt=!0),e.firstContext=null)}function Kt(e){var r=e._currentValue;if(qc!==e)if(e={context:e,memoizedValue:r,next:null},Rs===null){if(ka===null)throw Error(s(308));Rs=e,ka.dependencies={lanes:0,firstContext:e}}else Rs=Rs.next=e;return r}var zn=null;function Xc(e){zn===null?zn=[e]:zn.push(e)}function Np(e,r,o,l){var d=r.interleaved;return d===null?(o.next=o,Xc(r)):(o.next=d.next,d.next=o),r.interleaved=o,Or(e,l)}function Or(e,r){e.lanes|=r;var o=e.alternate;for(o!==null&&(o.lanes|=r),o=e,e=e.return;e!==null;)e.childLanes|=r,o=e.alternate,o!==null&&(o.childLanes|=r),o=e,e=e.return;return o.tag===3?o.stateNode:null}var sn=!1;function Jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tp(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ir(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function on(e,r,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ie&2)!==0){var d=l.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r,Or(e,o)}return d=l.interleaved,d===null?(r.next=r,Xc(l)):(r.next=d.next,d.next=r),l.interleaved=r,Or(e,o)}function Ea(e,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var l=r.lanes;l&=e.pendingLanes,o|=l,r.lanes=o,fc(e,o)}}function Pp(e,r){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var d=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var w={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};p===null?d=p=w:p=p.next=w,o=o.next}while(o!==null);p===null?d=p=r:p=p.next=r}else d=p=r;o={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:l.shared,effects:l.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=r:e.next=r,o.lastBaseUpdate=r}function _a(e,r,o,l){var d=e.updateQueue;sn=!1;var p=d.firstBaseUpdate,w=d.lastBaseUpdate,_=d.shared.pending;if(_!==null){d.shared.pending=null;var P=_,z=P.next;P.next=null,w===null?p=z:w.next=z,w=P;var G=e.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==w&&(_===null?G.firstBaseUpdate=z:_.next=z,G.lastBaseUpdate=P))}if(p!==null){var X=d.baseState;w=0,G=z=P=null,_=p;do{var q=_.lane,ne=_.eventTime;if((l&q)===q){G!==null&&(G=G.next={eventTime:ne,lane:0,tag:_.tag,payload:_.payload,callback:_.callback,next:null});e:{var ie=e,ae=_;switch(q=r,ne=o,ae.tag){case 1:if(ie=ae.payload,typeof ie=="function"){X=ie.call(ne,X,q);break e}X=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ae.payload,q=typeof ie=="function"?ie.call(ne,X,q):ie,q==null)break e;X=Y({},X,q);break e;case 2:sn=!0}}_.callback!==null&&_.lane!==0&&(e.flags|=64,q=d.effects,q===null?d.effects=[_]:q.push(_))}else ne={eventTime:ne,lane:q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(z=G=ne,P=X):G=G.next=ne,w|=q;if(_=_.next,_===null){if(_=d.shared.pending,_===null)break;q=_,_=q.next,q.next=null,d.lastBaseUpdate=q,d.shared.pending=null}}while(!0);if(G===null&&(P=X),d.baseState=P,d.firstBaseUpdate=z,d.lastBaseUpdate=G,r=d.shared.interleaved,r!==null){d=r;do w|=d.lane,d=d.next;while(d!==r)}else p===null&&(d.shared.lanes=0);$n|=w,e.lanes=w,e.memoizedState=X}}function Rp(e,r,o){if(e=r.effects,r.effects=null,e!==null)for(r=0;r<e.length;r++){var l=e[r],d=l.callback;if(d!==null){if(l.callback=null,l=o,typeof d!="function")throw Error(s(191,d));d.call(l)}}}var Go={},yr=tn(Go),Qo=tn(Go),Yo=tn(Go);function Un(e){if(e===Go)throw Error(s(174));return e}function Zc(e,r){switch($e(Yo,r),$e(Qo,e),$e(yr,Go),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:ec(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=ec(r,e)}Be(yr),$e(yr,r)}function Os(){Be(yr),Be(Qo),Be(Yo)}
vendor: 8,332 bytes, line 39
39function Ap(e){Un(Yo.current);var r=Un(yr.current),o=ec(r,e.type);r!==o&&($e(Qo,e),$e(yr,o))}function eu(e){Qo.current===e&&(Be(yr),Be(Qo))}var qe=tn(0);function Ca(e){for(var r=e;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var tu=[];function ru(){for(var e=0;e<tu.length;e++)tu[e]._workInProgressVersionPrimary=null;tu.length=0}var Na=A.ReactCurrentDispatcher,nu=A.ReactCurrentBatchConfig,Vn=0,Ge=null,nt=null,lt=null,Ta=!1,Xo=!1,Jo=0,z1=0;function vt(){throw Error(s(321))}function su(e,r){if(r===null)return!1;for(var o=0;o<r.length&&o<e.length;o++)if(!tr(e[o],r[o]))return!1;return!0}function ou(e,r,o,l,d,p){if(Vn=p,Ge=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Na.current=e===null||e.memoizedState===null?H1:B1,e=o(l,d),Xo){p=0;do{if(Xo=!1,Jo=0,25<=p)throw Error(s(301));p+=1,lt=nt=null,r.updateQueue=null,Na.current=W1,e=o(l,d)}while(Xo)}if(Na.current=Aa,r=nt!==null&&nt.next!==null,Vn=0,lt=nt=Ge=null,Ta=!1,r)throw Error(s(300));return e}function iu(){var e=Jo!==0;return Jo=0,e}function xr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Ge.memoizedState=lt=e:lt=lt.next=e,lt}function qt(){if(nt===null){var e=Ge.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var r=lt===null?Ge.memoizedState:lt.next;if(r!==null)lt=r,nt=e;else{if(e===null)throw Error(s(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},lt===null?Ge.memoizedState=lt=e:lt=lt.next=e}return lt}function Zo(e,r){return typeof r=="function"?r(e):r}function au(e){var r=qt(),o=r.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=e;var l=nt,d=l.baseQueue,p=o.pending;if(p!==null){if(d!==null){var w=d.next;d.next=p.next,p.next=w}l.baseQueue=d=p,o.pending=null}if(d!==null){p=d.next,l=l.baseState;var _=w=null,P=null,z=p;do{var G=z.lane;if((Vn&G)===G)P!==null&&(P=P.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),l=z.hasEagerState?z.eagerState:e(l,z.action);else{var X={lane:G,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};P===null?(_=P=X,w=l):P=P.next=X,Ge.lanes|=G,$n|=G}z=z.next}while(z!==null&&z!==p);P===null?w=l:P.next=_,tr(l,r.memoizedState)||(Pt=!0),r.memoizedState=l,r.baseState=w,r.baseQueue=P,o.lastRenderedState=l}if(e=o.interleaved,e!==null){d=e;do p=d.lane,Ge.lanes|=p,$n|=p,d=d.next;while(d!==e)}else d===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function lu(e){var r=qt(),o=r.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=e;var l=o.dispatch,d=o.pending,p=r.memoizedState;if(d!==null){o.pending=null;var w=d=d.next;do p=e(p,w.action),w=w.next;while(w!==d);tr(p,r.memoizedState)||(Pt=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),o.lastRenderedState=p}return[p,l]}function Op(){}function Ip(e,r){var o=Ge,l=qt(),d=r(),p=!tr(l.memoizedState,d);if(p&&(l.memoizedState=d,Pt=!0),l=l.queue,cu(Lp.bind(null,o,l,e),[e]),l.getSnapshot!==r||p||lt!==null&<.memoizedState.tag&1){if(o.flags|=2048,ei(9,Dp.bind(null,o,l,d,r),void 0,null),ct===null)throw Error(s(349));(Vn&30)!==0||Mp(o,r,d)}return d}function Mp(e,r,o){e.flags|=16384,e={getSnapshot:r,value:o},r=Ge.updateQueue,r===null?(r={lastEffect:null,stores:null},Ge.updateQueue=r,r.stores=[e]):(o=r.stores,o===null?r.stores=[e]:o.push(e))}function Dp(e,r,o,l){r.value=o,r.getSnapshot=l,Fp(r)&&zp(e)}function Lp(e,r,o){return o(function(){Fp(r)&&zp(e)})}function Fp(e){var r=e.getSnapshot;e=e.value;try{var o=r();return!tr(e,o)}catch{return!0}}function zp(e){var r=Or(e,1);r!==null&&ir(r,e,1,-1)}function Up(e){var r=xr();return typeof e=="function"&&(e=e()),r.memoizedState=r.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:e},r.queue=e,e=e.dispatch=$1.bind(null,Ge,e),[r.memoizedState,e]}function ei(e,r,o,l){return e={tag:e,create:r,destroy:o,deps:l,next:null},r=Ge.updateQueue,r===null?(r={lastEffect:null,stores:null},Ge.updateQueue=r,r.lastEffect=e.next=e):(o=r.lastEffect,o===null?r.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,r.lastEffect=e)),e}function Vp(){return qt().memoizedState}function Pa(e,r,o,l){var d=xr();Ge.flags|=e,d.memoizedState=ei(1|r,o,void 0,l===void 0?null:l)}function Ra(e,r,o,l){var d=qt();l=l===void 0?null:l;var p=void 0;if(nt!==null){var w=nt.memoizedState;if(p=w.destroy,l!==null&&su(l,w.deps)){d.memoizedState=ei(r,o,p,l);return}}Ge.flags|=e,d.memoizedState=ei(1|r,o,p,l)}function $p(e,r){return Pa(8390656,8,e,r)}function cu(e,r){return Ra(2048,8,e,r)}function Hp(e,r){return Ra(4,2,e,r)}function Bp(e,r){return Ra(4,4,e,r)}function Wp(e,r){if(typeof r=="function")return e=e(),r(e),function(){r(null)};if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function Kp(e,r,o){return o=o!=null?o.concat([e]):null,Ra(4,4,Wp.bind(null,r,e),o)}function uu(){}function qp(e,r){var o=qt();r=r===void 0?null:r;var l=o.memoizedState;return l!==null&&r!==null&&su(r,l[1])?l[0]:(o.memoizedState=[e,r],e)}function Gp(e,r){var o=qt();r=r===void 0?null:r;var l=o.memoizedState;return l!==null&&r!==null&&su(r,l[1])?l[0]:(e=e(),o.memoizedState=[e,r],e)}function Qp(e,r,o){return(Vn&21)===0?(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=o):(tr(o,r)||(o=Eh(),Ge.lanes|=o,$n|=o,e.baseState=!0),r)}function U1(e,r){var o=Ue;Ue=o!==0&&4>o?o:4,e(!0);var l=nu.transition;nu.transition={};try{e(!1),r()}finally{Ue=o,nu.transition=l}}function Yp(){return qt().memoizedState}function V1(e,r,o){var l=un(e);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Xp(e))Jp(r,o);else if(o=Np(e,r,o,l),o!==null){var d=kt();ir(o,e,l,d),Zp(o,r,l)}}function $1(e,r,o){var l=un(e),d={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Xp(e))Jp(r,d);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var w=r.lastRenderedState,_=p(w,o);if(d.hasEagerState=!0,d.eagerState=_,tr(_,w)){var P=r.interleaved;P===null?(d.next=d,Xc(r)):(d.next=P.next,P.next=d),r.interleaved=d;return}}catch{}finally{}o=Np(e,r,d,l),o!==null&&(d=kt(),ir(o,e,l,d),Zp(o,r,l))}}function Xp(e){var r=e.alternate;return e===Ge||r!==null&&r===Ge}function Jp(e,r){Xo=Ta=!0;var o=e.pending;o===null?r.next=r:(r.next=o.next,o.next=r),e.pending=r}function Zp(e,r,o){if((o&4194240)!==0){var l=r.lanes;l&=e.pendingLanes,o|=l,r.lanes=o,fc(e,o)}}var Aa={readContext:Kt,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},H1={readContext:Kt,useCallback:function(e,r){return xr().memoizedState=[e,r===void 0?null:r],e},useContext:Kt,useEffect:$p,useImperativeHandle:function(e,r,o){return o=o!=null?o.concat([e]):null,Pa(4194308,4,Wp.bind(null,r,e),o)},useLayoutEffect:function(e,r){return Pa(4194308,4,e,r)},useInsertionEffect:function(e,r){return Pa(4,2,e,r)},useMemo:function(e,r){var o=xr();return r=r===void 0?null:r,e=e(),o.memoizedState=[e,r],e},useReducer:function(e,r,o){var l=xr();return r=o!==void 0?o(r):r,l.memoizedState=l.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=V1.bind(null,Ge,e),[l.memoizedState,e]},useRef:function(e){var r=xr();return e={current:e},r.memoizedState=e},useState:Up,useDebugValue:uu,useDeferredValue:function(e){return xr().memoizedState=e},useTransition:function(){var e=Up(!1),r=e[0];return e=U1.bind(null,e[1]),xr().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,o){var l=Ge,d=xr();if(Ke){if(o===void 0)throw Error(s(407));o=o()}else{if(o=r(),ct===null)throw Error(s(349));(Vn&30)!==0||Mp(l,r,o)}d.memoizedState=o;var p={value:o,getSnapshot:r};return d.queue=p,$p(Lp.bind(null,l,p,e),[e]),l.flags|=2048,ei(9,Dp.bind(null,l,p,o,r),void 0,null),o}
vendor: 4,745 bytes, lines 39-41
39,useId:function(){var e=xr(),r=ct.identifierPrefix;if(Ke){var o=Ar,l=Rr;o=(l&~(1<<32-er(l)-1)).toString(32)+o,r=":"+r+"R"+o,o=Jo++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=z1++,r=":"+r+"r"+o.toString(32)+":";return e.memoizedState=r},unstable_isNewReconciler:!1},B1={readContext:Kt,useCallback:qp,useContext:Kt,useEffect:cu,useImperativeHandle:Kp,useInsertionEffect:Hp,useLayoutEffect:Bp,useMemo:Gp,useReducer:au,useRef:Vp,useState:function(){return au(Zo)},useDebugValue:uu,useDeferredValue:function(e){var r=qt();return Qp(r,nt.memoizedState,e)},useTransition:function(){var e=au(Zo)[0],r=qt().memoizedState;return[e,r]},useMutableSource:Op,useSyncExternalStore:Ip,useId:Yp,unstable_isNewReconciler:!1},W1={readContext:Kt,useCallback:qp,useContext:Kt,useEffect:cu,useImperativeHandle:Kp,useInsertionEffect:Hp,useLayoutEffect:Bp,useMemo:Gp,useReducer:lu,useRef:Vp,useState:function(){return lu(Zo)},useDebugValue:uu,useDeferredValue:function(e){var r=qt();return nt===null?r.memoizedState=e:Qp(r,nt.memoizedState,e)},useTransition:function(){var e=lu(Zo)[0],r=qt().memoizedState;return[e,r]},useMutableSource:Op,useSyncExternalStore:Ip,useId:Yp,unstable_isNewReconciler:!1};function nr(e,r){if(e&&e.defaultProps){r=Y({},r),e=e.defaultProps;for(var o in e)r[o]===void 0&&(r[o]=e[o]);return r}return r}function du(e,r,o,l){r=e.memoizedState,o=o(l,r),o=o==null?r:Y({},r,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Oa={isMounted:function(e){return(e=e._reactInternals)?In(e)===e:!1},enqueueSetState:function(e,r,o){e=e._reactInternals;var l=kt(),d=un(e),p=Ir(l,d);p.payload=r,o!=null&&(p.callback=o),r=on(e,p,d),r!==null&&(ir(r,e,d,l),Ea(r,e,d))},enqueueReplaceState:function(e,r,o){e=e._reactInternals;var l=kt(),d=un(e),p=Ir(l,d);p.tag=1,p.payload=r,o!=null&&(p.callback=o),r=on(e,p,d),r!==null&&(ir(r,e,d,l),Ea(r,e,d))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var o=kt(),l=un(e),d=Ir(o,l);d.tag=2,r!=null&&(d.callback=r),r=on(e,d,l),r!==null&&(ir(r,e,l,o),Ea(r,e,l))}};function em(e,r,o,l,d,p,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,p,w):r.prototype&&r.prototype.isPureReactComponent?!Uo(o,l)||!Uo(d,p):!0}function tm(e,r,o){var l=!1,d=rn,p=r.contextType;return typeof p=="object"&&p!==null?p=Kt(p):(d=Tt(r)?Dn:gt.current,l=r.contextTypes,p=(l=l!=null)?_s(e,d):rn),r=new r(o,p),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Oa,e.stateNode=r,r._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=d,e.__reactInternalMemoizedMaskedChildContext=p),r}function rm(e,r,o,l){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==e&&Oa.enqueueReplaceState(r,r.state,null)}function fu(e,r,o,l){var d=e.stateNode;d.props=o,d.state=e.memoizedState,d.refs={},Jc(e);var p=r.contextType;typeof p=="object"&&p!==null?d.context=Kt(p):(p=Tt(r)?Dn:gt.current,d.context=_s(e,p)),d.state=e.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(du(e,r,p,o),d.state=e.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(r=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),r!==d.state&&Oa.enqueueReplaceState(d,d.state,null),_a(e,o,d,l),d.state=e.memoizedState),typeof d.componentDidMount=="function"&&(e.flags|=4194308)}function Is(e,r){try{var o="",l=r;do o+=Ce(l),l=l.return;while(l);var d=o}catch(p){d=` 40Error generating stack: `+p.message+` 41`+p.stack}return{value:e,source:r,stack:d,digest:null}}function hu(e,r,o){return{value:e,source:null,stack:o??null,digest:r??null}}function pu(e,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var K1=typeof WeakMap=="function"?WeakMap:Map;function nm(e,r,o){o=Ir(-1,o),o.tag=3,o.payload={element:null};var l=r.value;return o.callback=function(){Ua||(Ua=!0,Tu=l),pu(e,r)},o}function sm(e,r,o){o=Ir(-1,o),o.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var d=r.value;o.payload=function(){return l(d)},o.callback=function(){pu(e,r)}}var p=e.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(o.callback=function(){pu(e,r),typeof l!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var w=r.stack;this.componentDidCatch(r.value,{componentStack:w!==null?w:""})}),o}function om(e,r,o){var l=e.pingCache;if(l===null){l=e.pingCache=new K1;var d=new Set;l.set(r,d)}else d=l.get(r),d===void 0&&(d=new Set,l.set(r,d));
vendor: 15,806 bytes, line 41
41d.has(o)||(d.add(o),e=ib.bind(null,e,r,o),r.then(e,e))}function im(e){do{var r;if((r=e.tag===13)&&(r=e.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return e;e=e.return}while(e!==null);return null}function am(e,r,o,l,d){return(e.mode&1)===0?(e===r?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=Ir(-1,1),r.tag=2,on(o,r,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=d,e)}var q1=A.ReactCurrentOwner,Pt=!1;function St(e,r,o,l){r.child=e===null?Cp(r,null,o,l):Ps(r,e.child,o,l)}function lm(e,r,o,l,d){o=o.render;var p=r.ref;return As(r,d),l=ou(e,r,o,l,p,d),o=iu(),e!==null&&!Pt?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~d,Mr(e,r,d)):(Ke&&o&&$c(r),r.flags|=1,St(e,r,l,d),r.child)}function cm(e,r,o,l,d){if(e===null){var p=o.type;return typeof p=="function"&&!Du(p)&&p.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=p,um(e,r,p,l,d)):(e=Ka(o.type,null,l,r,r.mode,d),e.ref=r.ref,e.return=r,r.child=e)}if(p=e.child,(e.lanes&d)===0){var w=p.memoizedProps;if(o=o.compare,o=o!==null?o:Uo,o(w,l)&&e.ref===r.ref)return Mr(e,r,d)}return r.flags|=1,e=fn(p,l),e.ref=r.ref,e.return=r,r.child=e}function um(e,r,o,l,d){if(e!==null){var p=e.memoizedProps;if(Uo(p,l)&&e.ref===r.ref)if(Pt=!1,r.pendingProps=l=p,(e.lanes&d)!==0)(e.flags&131072)!==0&&(Pt=!0);else return r.lanes=e.lanes,Mr(e,r,d)}return mu(e,r,o,l,d)}function dm(e,r,o){var l=r.pendingProps,d=l.children,p=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(Ds,Ut),Ut|=o;else{if((o&1073741824)===0)return e=p!==null?p.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:e,cachePool:null,transitions:null},r.updateQueue=null,$e(Ds,Ut),Ut|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=p!==null?p.baseLanes:o,$e(Ds,Ut),Ut|=l}else p!==null?(l=p.baseLanes|o,r.memoizedState=null):l=o,$e(Ds,Ut),Ut|=l;return St(e,r,d,o),r.child}function fm(e,r){var o=r.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function mu(e,r,o,l,d){var p=Tt(o)?Dn:gt.current;return p=_s(r,p),As(r,d),o=ou(e,r,o,l,p,d),l=iu(),e!==null&&!Pt?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~d,Mr(e,r,d)):(Ke&&l&&$c(r),r.flags|=1,St(e,r,o,d),r.child)}function hm(e,r,o,l,d){if(Tt(o)){var p=!0;va(r)}else p=!1;if(As(r,d),r.stateNode===null)Ma(e,r),tm(r,o,l),fu(r,o,l,d),l=!0;else if(e===null){var w=r.stateNode,_=r.memoizedProps;w.props=_;var P=w.context,z=o.contextType;typeof z=="object"&&z!==null?z=Kt(z):(z=Tt(o)?Dn:gt.current,z=_s(r,z));var G=o.getDerivedStateFromProps,X=typeof G=="function"||typeof w.getSnapshotBeforeUpdate=="function";X||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(_!==l||P!==z)&&rm(r,w,l,z),sn=!1;var q=r.memoizedState;w.state=q,_a(r,l,w,d),P=r.memoizedState,_!==l||q!==P||Nt.current||sn?(typeof G=="function"&&(du(r,o,G,l),P=r.memoizedState),(_=sn||em(r,o,_,l,q,P,z))?(X||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(r.flags|=4194308)):(typeof w.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=P),w.props=l,w.state=P,w.context=z,l=_):(typeof w.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{w=r.stateNode,Tp(e,r),_=r.memoizedProps,z=r.type===r.elementType?_:nr(r.type,_),w.props=z,X=r.pendingProps,q=w.context,P=o.contextType,typeof P=="object"&&P!==null?P=Kt(P):(P=Tt(o)?Dn:gt.current,P=_s(r,P));var ne=o.getDerivedStateFromProps;(G=typeof ne=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(_!==X||q!==P)&&rm(r,w,l,P),sn=!1,q=r.memoizedState,w.state=q,_a(r,l,w,d);var ie=r.memoizedState;_!==X||q!==ie||Nt.current||sn?(typeof ne=="function"&&(du(r,o,ne,l),ie=r.memoizedState),(z=sn||em(r,o,z,l,q,ie,P)||!1)?(G||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(l,ie,P),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(l,ie,P)),typeof w.componentDidUpdate=="function"&&(r.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof w.componentDidUpdate!="function"||_===e.memoizedProps&&q===e.memoizedState||(r.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&q===e.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=ie),w.props=l,w.state=ie,w.context=P,l=z):(typeof w.componentDidUpdate!="function"||_===e.memoizedProps&&q===e.memoizedState||(r.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&q===e.memoizedState||(r.flags|=1024),l=!1)}return gu(e,r,o,l,p,d)}function gu(e,r,o,l,d,p){fm(e,r);var w=(r.flags&128)!==0;if(!l&&!w)return d&&yp(r,o,!1),Mr(e,r,p);l=r.stateNode,q1.current=r;var _=w&&typeof o.getDerivedStateFromError!="function"?null:l.render();return r.flags|=1,e!==null&&w?(r.child=Ps(r,e.child,null,p),r.child=Ps(r,null,_,p)):St(e,r,_,p),r.memoizedState=l.state,d&&yp(r,o,!0),r.child}function pm(e){var r=e.stateNode;r.pendingContext?gp(e,r.pendingContext,r.pendingContext!==r.context):r.context&&gp(e,r.context,!1),Zc(e,r.containerInfo)}function mm(e,r,o,l,d){return Ts(),Kc(d),r.flags|=256,St(e,r,o,l),r.child}var vu={dehydrated:null,treeContext:null,retryLane:0};function yu(e){return{baseLanes:e,cachePool:null,transitions:null}}function gm(e,r,o){var l=r.pendingProps,d=qe.current,p=!1,w=(r.flags&128)!==0,_;if((_=w)||(_=e!==null&&e.memoizedState===null?!1:(d&2)!==0),_?(p=!0,r.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),$e(qe,d&1),e===null)return Wc(r),e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((r.mode&1)===0?r.lanes=1:e.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(w=l.children,e=l.fallback,p?(l=r.mode,p=r.child,w={mode:"hidden",children:w},(l&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=w):p=qa(w,l,0,null),e=Kn(e,l,o,null),p.return=r,e.return=r,p.sibling=e,r.child=p,r.child.memoizedState=yu(o),r.memoizedState=vu,e):xu(r,w));if(d=e.memoizedState,d!==null&&(_=d.dehydrated,_!==null))return G1(e,r,w,l,_,d,o);if(p){p=l.fallback,w=r.mode,d=e.child,_=d.sibling;var P={mode:"hidden",children:l.children};return(w&1)===0&&r.child!==d?(l=r.child,l.childLanes=0,l.pendingProps=P,r.deletions=null):(l=fn(d,P),l.subtreeFlags=d.subtreeFlags&14680064),_!==null?p=fn(_,p):(p=Kn(p,w,o,null),p.flags|=2),p.return=r,l.return=r,l.sibling=p,r.child=l,l=p,p=r.child,w=e.child.memoizedState,w=w===null?yu(o):{baseLanes:w.baseLanes|o,cachePool:null,transitions:w.transitions},p.memoizedState=w,p.childLanes=e.childLanes&~o,r.memoizedState=vu,l}return p=e.child,e=p.sibling,l=fn(p,{mode:"visible",children:l.children}),(r.mode&1)===0&&(l.lanes=o),l.return=r,l.sibling=null,e!==null&&(o=r.deletions,o===null?(r.deletions=[e],r.flags|=16):o.push(e)),r.child=l,r.memoizedState=null,l}function xu(e,r){return r=qa({mode:"visible",children:r},e.mode,0,null),r.return=e,e.child=r}function Ia(e,r,o,l){return l!==null&&Kc(l),Ps(r,e.child,null,o),e=xu(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function G1(e,r,o,l,d,p,w){if(o)return r.flags&256?(r.flags&=-257,l=hu(Error(s(422))),Ia(e,r,w,l)):r.memoizedState!==null?(r.child=e.child,r.flags|=128,null):(p=l.fallback,d=r.mode,l=qa({mode:"visible",children:l.children},d,0,null),p=Kn(p,d,w,null),p.flags|=2,l.return=r,p.return=r,l.sibling=p,r.child=l,(r.mode&1)!==0&&Ps(r,e.child,null,w),r.child.memoizedState=yu(w),r.memoizedState=vu,p);if((r.mode&1)===0)return Ia(e,r,w,null);if(d.data==="$!"){if(l=d.nextSibling&&d.nextSibling.dataset,l)var _=l.dgst;return l=_,p=Error(s(419)),l=hu(p,l,void 0),Ia(e,r,w,l)}if(_=(w&e.childLanes)!==0,Pt||_){if(l=ct,l!==null){switch(w&-w){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(l.suspendedLanes|w))!==0?0:d,d!==0&&d!==p.retryLane&&(p.retryLane=d,Or(e,d),ir(l,e,d,-1))}return Mu(),l=hu(Error(s(421))),Ia(e,r,w,l)}return d.data==="$?"?(r.flags|=128,r.child=e.child,r=ab.bind(null,e),d._reactRetry=r,null):(e=p.treeContext,zt=en(d.nextSibling),Ft=r,Ke=!0,rr=null,e!==null&&(Bt[Wt++]=Rr,Bt[Wt++]=Ar,Bt[Wt++]=Ln,Rr=e.id,Ar=e.overflow,Ln=r),r=xu(r,l.children),r.flags|=4096,r)}function vm(e,r,o){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r),Yc(e.return,r,o)}function wu(e,r,o,l,d){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:d}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=o,p.tailMode=d)}function ym(e,r,o){var l=r.pendingProps,d=l.revealOrder,p=l.tail;if(St(e,r,l.children,o),l=qe.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vm(e,o,r);else if(e.tag===19)vm(e,o,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if($e(qe,l),(r.mode&1)===0)r.memoizedState=null;else switch(d){case"forwards":for(o=r.child,d=null;o!==null;)e=o.alternate,e!==null&&Ca(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=r.child,r.child=null):(d=o.sibling,o.sibling=null),wu(r,!1,d,o,p);break;case"backwards":for(o=null,d=r.child,r.child=null;d!==null;){if(e=d.alternate,e!==null&&Ca(e)===null){r.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}wu(r,!0,o,null,p);break;case"together":wu(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Ma(e,r){(r.mode&1)===0&&e!==null&&(e.alternate=null,r.alternate=null,r.flags|=2)}function Mr(e,r,o){if(e!==null&&(r.dependencies=e.dependencies),$n|=r.lanes,(o&r.childLanes)===0)return null;if(e!==null&&r.child!==e.child)throw Error(s(153));if(r.child!==null){for(e=r.child,o=fn(e,e.pendingProps),r.child=o,o.return=r;e.sibling!==null;)e=e.sibling,o=o.sibling=fn(e,e.pendingProps),o.return=r;o.sibling=null}return r.child}function Q1(e,r,o){switch(r.tag){case 3:pm(r),Ts();break;case 5:Ap(r);break;case 1:Tt(r.type)&&va(r);break;case 4:Zc(r,r.stateNode.containerInfo);break;case 10:var l=r.type._context,d=r.memoizedProps.value;$e(Sa,l._currentValue),l._currentValue=d;break;case 13:if(l=r.memoizedState,l!==null)return l.dehydrated!==null?($e(qe,qe.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?gm(e,r,o):($e(qe,qe.current&1),e=Mr(e,r,o),e!==null?e.sibling:null);$e(qe,qe.current&1);break;case 19:if(l=(o&r.childLanes)!==0,(e.flags&128)!==0){if(l)return ym(e,r,o);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),$e(qe,qe.current),l)break;return null;case 22:case 23:return r.lanes=0,dm(e,r,o)}return Mr(e,r,o)}var xm,bu,wm,bm;xm=function(e,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},bu=function(){},wm=function(e,r,o,l){var d=e.memoizedProps;if(d!==l){e=r.stateNode,Un(yr.current);var p=null;switch(o){case"input":d=hs(e,d),l=hs(e,l),p=[];break;case"select":d=Y({},d,{value:void 0}),l=Y({},l,{value:void 0}),p=[];break;case"textarea":d=Zl(e,d),l=Zl(e,l),p=[];break;default:typeof d.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=pa)}tc(o,l);var w;o=null;for(z in d)if(!l.hasOwnProperty(z)&&d.hasOwnProperty(z)&&d[z]!=null)if(z==="style"){var _=d[z];for(w in _)_.hasOwnProperty(w)&&(o||(o={}),o[w]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(c.hasOwnProperty(z)?p||(p=[]):(p=p||[]).push(z,null));for(z in l){var P=l[z];if(_=d!=null?d[z]:void 0,l.hasOwnProperty(z)&&P!==_&&(P!=null||_!=null))if(z==="style")if(_){for(w in _)!_.hasOwnProperty(w)||P&&P.hasOwnProperty(w)||(o||(o={}),o[w]="");for(w in P)P.hasOwnProperty(w)&&_[w]!==P[w]&&(o||(o={}),o[w]=P[w])}else o||(p||(p=[]),p.push(z,o)),o=P;else z==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,_=_?_.__html:void 0,P!=null&&_!==P&&(p=p||[]).push(z,P)):z==="children"?typeof P!="string"&&typeof P!="number"||(p=p||[]).push(z,""+P):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(c.hasOwnProperty(z)?(P!=null&&z==="onScroll"&&He("scroll",e),p||_===P||(p=[])):(p=p||[]).push(z,P))}o&&(p=p||[]).push("style",o);var z=p;(r.updateQueue=z)&&(r.flags|=4)}},bm=function(e,r,o,l){o!==l&&(r.flags|=4)};function ti(e,r){if(!Ke)switch(e.tailMode){case"hidden":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function yt(e){var r=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(r)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,l|=d.subtreeFlags&14680064,l|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=l,e.childLanes=o,r}function Y1(e,r,o){var l=r.pendingProps;switch(Hc(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(r),null;case 1:return Tt(r.type)&&ga(),yt(r),null;case 3:return l=r.stateNode,Os(),Be(Nt),Be(gt),ru(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ba(r)?r.flags|=4:e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,rr!==null&&(Au(rr),rr=null))),bu(e,r),yt(r),null;case 5:eu(r);var d=Un(Yo.current);if(o=r.type,e!==null&&r.stateNode!=null)wm(e,r,o,l,d),e.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!l){if(r.stateNode===null)throw Error(s(166));return yt(r),null}if(e=Un(yr.current),ba(r)){l=r.stateNode,o=r.type;var p=r.memoizedProps;switch(l[vr]=r,l[Wo]=p,e=(r.mode&1)!==0,o){case"dialog":He("cancel",l),He("close",l);break;case"iframe":case"object":case"embed":He("load",l);break;case"video":case"audio":for(d=0;d<$o.length;d++)He($o[d],l);break;case"source":He("error",l);break;case"img":case"image":case"link":He("error",l),He("load",l);break;case"details":He("toggle",l);break;case"input":Hi(l,p),He("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!p.multiple},He("invalid",l);break;case"textarea":sh(l,p),He("invalid",l)}tc(o,p),d=null;for(var w in p)if(p.hasOwnProperty(w)){var _=p[w];w==="children"?typeof _=="string"?l.textContent!==_&&(p.suppressHydrationWarning!==!0&&ha(l.textContent,_,e),d=["children",_]):typeof _=="number"&&l.textContent!==""+_&&(p.suppressHydrationWarning!==!0&&ha(l.textContent,_,e),d=["children",""+_]):c.hasOwnProperty(w)&&_!=null&&w==="onScroll"&&He("scroll",l)}switch(o){case"input":On(l),Wi(l,p,!0);break;case"textarea":On(l),ih(l);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(l.onclick=pa)}l=d,r.updateQueue=l,l!==null&&(r.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ah(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=w.createElement("div"),e.innerHTML="<script><\/script>
41",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=w.createElement(o,{is:l.is}):(e=w.createElement(o),o==="select"&&(w=e,l.multiple?w.multiple=!0:l.size&&(w.size=l.size))):e=w.createElementNS(e,o),e[vr]=r,e[Wo]=l,xm(e,r,!1,!1),r.stateNode=e;e:{switch(w=rc(o,l),o){case"dialog":He("cancel",e),He("close",e),d=l;break;case"iframe":case"object":case"embed":He("load",e),d=l;break;case"video":case"audio":for(d=0;d<$o.length;d++)He($o[d],e);d=l;break;case"source":He("error",e),d=l;break;case"img":case"image":case"link":He("error",e),He("load",e),d=l;break;case"details":He("toggle",e),d=l;break;case"input":Hi(e,l),d=hs(e,l),He("invalid",e);break;case"option":d=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},d=Y({},l,{value:void 0}),He("invalid",e);break;case"textarea":sh(e,l),d=Zl(e,l),He("invalid",e);break;default:d=l}tc(o,d),_=d;for(p in _)if(_.hasOwnProperty(p)){var P=_[p];p==="style"?uh(e,P):p==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&lh(e,P)):p==="children"?typeof P=="string"?(o!=="textarea"||P!=="")&&So(e,P):typeof P=="number"&&So(e,""+P):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(c.hasOwnProperty(p)?P!=null&&p==="onScroll"&&He("scroll",e):P!=null&&N(e,p,P,w))}switch(o){case"input":On(e),Wi(e,l,!1);break;case"textarea":On(e),ih(e);break;case"option":l.value!=null&&e.setAttribute("value",""+Ae(l.value));break;case"select":e.multiple=!!l.multiple,p=l.value,p!=null?ps(e,!!l.multiple,p,!1):l.defaultValue!=null&&ps(e,!!l.multiple,l.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=pa)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return yt(r),null;case 6:if(e&&r.stateNode!=null)bm(e,r,e.memoizedProps,l);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(o=Un(Yo.current),Un(yr.current),ba(r)){if(l=r.stateNode,o=r.memoizedProps,l[vr]=r,(p=l.nodeValue!==o)&&(e=Ft,e!==null))switch(e.tag){case 3:ha(l.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ha(l.nodeValue,o,(e.mode&1)!==0)}p&&(r.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[vr]=r,r.stateNode=l}return yt(r),null;case 13:if(Be(qe),l=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ke&&zt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)kp(),Ts(),r.flags|=98560,p=!1;else if(p=ba(r),l!==null&&l.dehydrated!==null){if(e===null){if(!p)throw Error(s(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[vr]=r}else Ts(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;yt(r),p=!1}else rr!==null&&(Au(rr),rr=null),p=!0;if(!p)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(r.child.flags|=8192,(r.mode&1)!==0&&(e===null||(qe.current&1)!==0?st===0&&(st=3):Mu())),r.updateQueue!==null&&(r.flags|=4),yt(r),null);case 4:return Os(),bu(e,r),e===null&&Ho(r.stateNode.containerInfo),yt(r),null;case 10:return Qc(r.type._context),yt(r),null;case 17:return Tt(r.type)&&ga(),yt(r),null;case 19:if(Be(qe),p=r.memoizedState,p===null)return yt(r),null;if(l=(r.flags&128)!==0,w=p.rendering,w===null)if(l)ti(p,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(w=Ca(e),w!==null){for(r.flags|=128,ti(p,!1),l=w.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),r.subtreeFlags=0,l=o,o=r.child;o!==null;)p=o,e=l,p.flags&=14680066,w=p.alternate,w===null?(p.childLanes=0,p.lanes=e,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=w.childLanes,p.lanes=w.lanes,p.child=w.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=w.memoizedProps,p.memoizedState=w.memoizedState,p.updateQueue=w.updateQueue,p.type=w.type,e=w.dependencies,p.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return $e(qe,qe.current&1|2),r.child}e=e.sibling}p.tail!==null&&Je()>Ls&&(r.flags|=128,l=!0,ti(p,!1),r.lanes=4194304)}else{if(!l)if(e=Ca(w),e!==null){if(r.flags|=128,l=!0,o=e.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),ti(p,!0),p.tail===null&&p.tailMode==="hidden"&&!w.alternate&&!Ke)return yt(r),null}else 2*Je()-p.renderingStartTime>Ls&&o!==1073741824&&(r.flags|=128,l=!0,ti(p,!1),r.lanes=4194304);p.isBackwards?(w.sibling=r.child,r.child=w):(o=p.last,o!==null?o.sibling=w:r.child=w,p.last=w)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Je(),r.sibling=null,o=qe.current,$e(qe,l?o&1|2:o&1),r):(yt(r),null);case 22:case 23:return Iu(),l=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(r.flags|=8192),l&&(r.mode&1)!==0?(Ut&1073741824)!==0&&(yt(r),r.subtreeFlags&6&&(r.flags|=8192)):yt(r),null;case 24:return null;case 25:return null}throw Error(s(156,r.tag))}function X1(e,r){switch(Hc(r),r.tag){case 1:return Tt(r.type)&&ga(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return Os(),Be(Nt),Be(gt),ru(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 5:return eu(r),null;case 13:if(Be(qe),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Ts()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Be(qe),null;case 4:return Os(),null;case 10:return Qc(r.type._context),null;case 22:case 23:return Iu(),null;case 24:return null;default:return null}}var Da=!1,xt=!1,J1=typeof WeakSet=="function"?WeakSet:Set,se=null;function Ms(e,r){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Ye(e,r,l)}else o.current=null}function ju(e,r,o){try{o()}catch(l){Ye(e,r,l)}}var jm=!1;function Z1(e,r){if(Ic=ra,e=ep(),_c(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var d=l.anchorOffset,p=l.focusNode;
vendor: 14,989 bytes, line 41
41l=l.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var w=0,_=-1,P=-1,z=0,G=0,X=e,q=null;t:for(;;){for(var ne;X!==o||d!==0&&X.nodeType!==3||(_=w+d),X!==p||l!==0&&X.nodeType!==3||(P=w+l),X.nodeType===3&&(w+=X.nodeValue.length),(ne=X.firstChild)!==null;)q=X,X=ne;for(;;){if(X===e)break t;if(q===o&&++z===d&&(_=w),q===p&&++G===l&&(P=w),(ne=X.nextSibling)!==null)break;X=q,q=X.parentNode}X=ne}o=_===-1||P===-1?null:{start:_,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(Mc={focusedElem:e,selectionRange:o},ra=!1,se=r;se!==null;)if(r=se,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,se=e;else for(;se!==null;){r=se;try{var ie=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(ie!==null){var ae=ie.memoizedProps,Ze=ie.memoizedState,L=r.stateNode,O=L.getSnapshotBeforeUpdate(r.elementType===r.type?ae:nr(r.type,ae),Ze);L.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var F=r.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(J){Ye(r,r.return,J)}if(e=r.sibling,e!==null){e.return=r.return,se=e;break}se=r.return}return ie=jm,jm=!1,ie}function ri(e,r,o){var l=r.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var d=l=l.next;do{if((d.tag&e)===e){var p=d.destroy;d.destroy=void 0,p!==void 0&&ju(r,o,p)}d=d.next}while(d!==l)}}function La(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==r)}}function Su(e){var r=e.ref;if(r!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof r=="function"?r(e):r.current=e}}function Sm(e){var r=e.alternate;r!==null&&(e.alternate=null,Sm(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[vr],delete r[Wo],delete r[zc],delete r[M1],delete r[D1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function km(e){return e.tag===5||e.tag===3||e.tag===4}function Em(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||km(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ku(e,r,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(e,r):o.insertBefore(e,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(e,o)):(r=o,r.appendChild(e)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=pa));else if(l!==4&&(e=e.child,e!==null))for(ku(e,r,o),e=e.sibling;e!==null;)ku(e,r,o),e=e.sibling}function Eu(e,r,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,r?o.insertBefore(e,r):o.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(Eu(e,r,o),e=e.sibling;e!==null;)Eu(e,r,o),e=e.sibling}var ft=null,sr=!1;function an(e,r,o){for(o=o.child;o!==null;)_m(e,r,o),o=o.sibling}function _m(e,r,o){if(gr&&typeof gr.onCommitFiberUnmount=="function")try{gr.onCommitFiberUnmount(Yi,o)}catch{}switch(o.tag){case 5:xt||Ms(o,r);case 6:var l=ft,d=sr;ft=null,an(e,r,o),ft=l,sr=d,ft!==null&&(sr?(e=ft,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):ft.removeChild(o.stateNode));break;case 18:ft!==null&&(sr?(e=ft,o=o.stateNode,e.nodeType===8?Fc(e.parentNode,o):e.nodeType===1&&Fc(e,o),Io(e)):Fc(ft,o.stateNode));break;case 4:l=ft,d=sr,ft=o.stateNode.containerInfo,sr=!0,an(e,r,o),ft=l,sr=d;break;case 0:case 11:case 14:case 15:if(!xt&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){d=l=l.next;do{var p=d,w=p.destroy;p=p.tag,w!==void 0&&((p&2)!==0||(p&4)!==0)&&ju(o,r,w),d=d.next}while(d!==l)}an(e,r,o);break;case 1:if(!xt&&(Ms(o,r),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(_){Ye(o,r,_)}an(e,r,o);break;case 21:an(e,r,o);break;case 22:o.mode&1?(xt=(l=xt)||o.memoizedState!==null,an(e,r,o),xt=l):an(e,r,o);break;default:an(e,r,o)}}function Cm(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new J1),r.forEach(function(l){var d=lb.bind(null,e,l);o.has(l)||(o.add(l),l.then(d,d))})}}function or(e,r){var o=r.deletions;if(o!==null)for(var l=0;l<o.length;l++){var d=o[l];try{var p=e,w=r,_=w;e:for(;_!==null;){switch(_.tag){case 5:ft=_.stateNode,sr=!1;break e;case 3:ft=_.stateNode.containerInfo,sr=!0;break e;case 4:ft=_.stateNode.containerInfo,sr=!0;break e}_=_.return}if(ft===null)throw Error(s(160));_m(p,w,d),ft=null,sr=!1;var P=d.alternate;P!==null&&(P.return=null),d.return=null}catch(z){Ye(d,r,z)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Nm(r,e),r=r.sibling}function Nm(e,r){var o=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(or(r,e),wr(e),l&4){try{ri(3,e,e.return),La(3,e)}catch(ae){Ye(e,e.return,ae)}try{ri(5,e,e.return)}catch(ae){Ye(e,e.return,ae)}}break;case 1:or(r,e),wr(e),l&512&&o!==null&&Ms(o,o.return);break;case 5:if(or(r,e),wr(e),l&512&&o!==null&&Ms(o,o.return),e.flags&32){var d=e.stateNode;try{So(d,"")}catch(ae){Ye(e,e.return,ae)}}if(l&4&&(d=e.stateNode,d!=null)){var p=e.memoizedProps,w=o!==null?o.memoizedProps:p,_=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{_==="input"&&p.type==="radio"&&p.name!=null&&Bi(d,p),rc(_,w);var z=rc(_,p);for(w=0;w<P.length;w+=2){var G=P[w],X=P[w+1];G==="style"?uh(d,X):G==="dangerouslySetInnerHTML"?lh(d,X):G==="children"?So(d,X):N(d,G,X,z)}switch(_){case"input":bo(d,p);break;case"textarea":oh(d,p);break;case"select":var q=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!p.multiple;var ne=p.value;ne!=null?ps(d,!!p.multiple,ne,!1):q!==!!p.multiple&&(p.defaultValue!=null?ps(d,!!p.multiple,p.defaultValue,!0):ps(d,!!p.multiple,p.multiple?[]:"",!1))}d[Wo]=p}catch(ae){Ye(e,e.return,ae)}}break;case 6:if(or(r,e),wr(e),l&4){if(e.stateNode===null)throw Error(s(162));d=e.stateNode,p=e.memoizedProps;try{d.nodeValue=p}catch(ae){Ye(e,e.return,ae)}}break;case 3:if(or(r,e),wr(e),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Io(r.containerInfo)}catch(ae){Ye(e,e.return,ae)}break;case 4:or(r,e),wr(e);break;case 13:or(r,e),wr(e),d=e.child,d.flags&8192&&(p=d.memoizedState!==null,d.stateNode.isHidden=p,!p||d.alternate!==null&&d.alternate.memoizedState!==null||(Nu=Je())),l&4&&Cm(e);break;case 22:if(G=o!==null&&o.memoizedState!==null,e.mode&1?(xt=(z=xt)||G,or(r,e),xt=z):or(r,e),wr(e),l&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!G&&(e.mode&1)!==0)for(se=e,G=e.child;G!==null;){for(X=se=G;se!==null;){switch(q=se,ne=q.child,q.tag){case 0:case 11:case 14:case 15:ri(4,q,q.return);break;case 1:Ms(q,q.return);var ie=q.stateNode;if(typeof ie.componentWillUnmount=="function"){l=q,o=q.return;try{r=l,ie.props=r.memoizedProps,ie.state=r.memoizedState,ie.componentWillUnmount()}catch(ae){Ye(l,o,ae)}}break;case 5:Ms(q,q.return);break;case 22:if(q.memoizedState!==null){Rm(X);continue}}ne!==null?(ne.return=q,se=ne):Rm(X)}G=G.sibling}e:for(G=null,X=e;;){if(X.tag===5){if(G===null){G=X;try{d=X.stateNode,z?(p=d.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(_=X.stateNode,P=X.memoizedProps.style,w=P!=null&&P.hasOwnProperty("display")?P.display:null,_.style.display=ch("display",w))}catch(ae){Ye(e,e.return,ae)}}}else if(X.tag===6){if(G===null)try{X.stateNode.nodeValue=z?"":X.memoizedProps}catch(ae){Ye(e,e.return,ae)}}else if((X.tag!==22&&X.tag!==23||X.memoizedState===null||X===e)&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===e)break e;for(;X.sibling===null;){if(X.return===null||X.return===e)break e;G===X&&(G=null),X=X.return}G===X&&(G=null),X.sibling.return=X.return,X=X.sibling}}break;case 19:or(r,e),wr(e),l&4&&Cm(e);break;case 21:break;default:or(r,e),wr(e)}}function wr(e){var r=e.flags;if(r&2){try{e:{for(var o=e.return;o!==null;){if(km(o)){var l=o;break e}o=o.return}throw Error(s(160))}switch(l.tag){case 5:var d=l.stateNode;l.flags&32&&(So(d,""),l.flags&=-33);var p=Em(e);Eu(e,p,d);break;case 3:case 4:var w=l.stateNode.containerInfo,_=Em(e);ku(e,_,w);break;default:throw Error(s(161))}}catch(P){Ye(e,e.return,P)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function eb(e,r,o){se=e,Tm(e)}function Tm(e,r,o){for(var l=(e.mode&1)!==0;se!==null;){var d=se,p=d.child;if(d.tag===22&&l){var w=d.memoizedState!==null||Da;if(!w){var _=d.alternate,P=_!==null&&_.memoizedState!==null||xt;_=Da;var z=xt;if(Da=w,(xt=P)&&!z)for(se=d;se!==null;)w=se,P=w.child,w.tag===22&&w.memoizedState!==null?Am(d):P!==null?(P.return=w,se=P):Am(d);for(;p!==null;)se=p,Tm(p),p=p.sibling;se=d,Da=_,xt=z}Pm(e)}else(d.subtreeFlags&8772)!==0&&p!==null?(p.return=d,se=p):Pm(e)}}function Pm(e){for(;se!==null;){var r=se;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:xt||La(5,r);break;case 1:var l=r.stateNode;if(r.flags&4&&!xt)if(o===null)l.componentDidMount();else{var d=r.elementType===r.type?o.memoizedProps:nr(r.type,o.memoizedProps);l.componentDidUpdate(d,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var p=r.updateQueue;p!==null&&Rp(r,p,l);break;case 3:var w=r.updateQueue;if(w!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}Rp(r,w,o)}break;case 5:var _=r.stateNode;if(o===null&&r.flags&4){o=_;var P=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&o.focus();break;case"img":P.src&&(o.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var z=r.alternate;if(z!==null){var G=z.memoizedState;if(G!==null){var X=G.dehydrated;X!==null&&Io(X)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}xt||r.flags&512&&Su(r)}catch(q){Ye(r,r.return,q)}}if(r===e){se=null;break}if(o=r.sibling,o!==null){o.return=r.return,se=o;break}se=r.return}}function Rm(e){for(;se!==null;){var r=se;if(r===e){se=null;break}var o=r.sibling;if(o!==null){o.return=r.return,se=o;break}se=r.return}}function Am(e){for(;se!==null;){var r=se;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{La(4,r)}catch(P){Ye(r,o,P)}break;case 1:var l=r.stateNode;if(typeof l.componentDidMount=="function"){var d=r.return;try{l.componentDidMount()}catch(P){Ye(r,d,P)}}var p=r.return;try{Su(r)}catch(P){Ye(r,p,P)}break;case 5:var w=r.return;try{Su(r)}catch(P){Ye(r,w,P)}}}catch(P){Ye(r,r.return,P)}if(r===e){se=null;break}var _=r.sibling;if(_!==null){_.return=r.return,se=_;break}se=r.return}}var tb=Math.ceil,Fa=A.ReactCurrentDispatcher,_u=A.ReactCurrentOwner,Gt=A.ReactCurrentBatchConfig,Ie=0,ct=null,et=null,ht=0,Ut=0,Ds=tn(0),st=0,ni=null,$n=0,za=0,Cu=0,si=null,Rt=null,Nu=0,Ls=1/0,Dr=null,Ua=!1,Tu=null,ln=null,Va=!1,cn=null,$a=0,oi=0,Pu=null,Ha=-1,Ba=0;function kt(){return(Ie&6)!==0?Je():Ha!==-1?Ha:Ha=Je()}function un(e){return(e.mode&1)===0?1:(Ie&2)!==0&&ht!==0?ht&-ht:F1.transition!==null?(Ba===0&&(Ba=Eh()),Ba):(e=Ue,e!==0||(e=window.event,e=e===void 0?16:Ih(e.type)),e)}function ir(e,r,o,l){if(50<oi)throw oi=0,Pu=null,Error(s(185));To(e,o,l),((Ie&2)===0||e!==ct)&&(e===ct&&((Ie&2)===0&&(za|=o),st===4&&dn(e,ht)),At(e,l),o===1&&Ie===0&&(r.mode&1)===0&&(Ls=Je()+500,ya&&nn()))}function At(e,r){var o=e.callbackNode;Fw(e,r);var l=Zi(e,e===ct?ht:0);if(l===0)o!==null&&jh(o),e.callbackNode=null,e.callbackPriority=0;else if(r=l&-l,e.callbackPriority!==r){if(o!=null&&jh(o),r===1)e.tag===0?L1(Im.bind(null,e)):xp(Im.bind(null,e)),O1(function(){(Ie&6)===0&&nn()}),o=null;else{switch(_h(l)){case 1:o=cc;break;case 4:o=Sh;break;case 16:o=Qi;break;case 536870912:o=kh;break;default:o=Qi}o=$m(o,Om.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}}function Om(e,r){if(Ha=-1,Ba=0,(Ie&6)!==0)throw Error(s(327));var o=e.callbackNode;if(Fs()&&e.callbackNode!==o)return null;var l=Zi(e,e===ct?ht:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||r)r=Wa(e,l);else{r=l;var d=Ie;Ie|=2;var p=Dm();(ct!==e||ht!==r)&&(Dr=null,Ls=Je()+500,Bn(e,r));do try{sb();break}catch(_){Mm(e,_)}while(!0);Gc(),Fa.current=p,Ie=d,et!==null?r=0:(ct=null,ht=0,r=st)}if(r!==0){if(r===2&&(d=uc(e),d!==0&&(l=d,r=Ru(e,d))),r===1)throw o=ni,Bn(e,0),dn(e,l),At(e,Je()),o;if(r===6)dn(e,l);else{if(d=e.current.alternate,(l&30)===0&&!rb(d)&&(r=Wa(e,l),r===2&&(p=uc(e),p!==0&&(l=p,r=Ru(e,p))),r===1))throw o=ni,Bn(e,0),dn(e,l),At(e,Je()),o;switch(e.finishedWork=d,e.finishedLanes=l,r){case 0:case 1:throw Error(s(345));case 2:Wn(e,Rt,Dr);break;case 3:if(dn(e,l),(l&130023424)===l&&(r=Nu+500-Je(),10<r)){if(Zi(e,0)!==0)break;if(d=e.suspendedLanes,(d&l)!==l){kt(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=Lc(Wn.bind(null,e,Rt,Dr),r);break}Wn(e,Rt,Dr);break;case 4:if(dn(e,l),(l&4194240)===l)break;for(r=e.eventTimes,d=-1;0<l;){var w=31-er(l);p=1<<w,w=r[w],w>d&&(d=w),l&=~p}if(l=d,l=Je()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*tb(l/1960))-l,10<l){e.timeoutHandle=Lc(Wn.bind(null,e,Rt,Dr),l);break}Wn(e,Rt,Dr);break;case 5:Wn(e,Rt,Dr);break;default:throw Error(s(329))}}}return At(e,Je()),e.callbackNode===o?Om.bind(null,e):null}function Ru(e,r){var o=si;return e.current.memoizedState.isDehydrated&&(Bn(e,r).flags|=256),e=Wa(e,r),e!==2&&(r=Rt,Rt=o,r!==null&&Au(r)),e}function Au(e){Rt===null?Rt=e:Rt.push.apply(Rt,e)}function rb(e){for(var r=e;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var d=o[l],p=d.getSnapshot;d=d.value;try{if(!tr(p(),d))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function dn(e,r){for(r&=~Cu,r&=~za,e.suspendedLanes|=r,e.pingedLanes&=~r,e=e.expirationTimes;0<r;){var o=31-er(r),l=1<<o;e[o]=-1,r&=~l}}function Im(e){if((Ie&6)!==0)throw Error(s(327));Fs();var r=Zi(e,0);if((r&1)===0)return At(e,Je()),null;var o=Wa(e,r);if(e.tag!==0&&o===2){var l=uc(e);l!==0&&(r=l,o=Ru(e,l))}if(o===1)throw o=ni,Bn(e,0),dn(e,r),At(e,Je()),o;if(o===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=r,Wn(e,Rt,Dr),At(e,Je()),null}function Ou(e,r){var o=Ie;Ie|=1;try{return e(r)}finally{Ie=o,Ie===0&&(Ls=Je()+500,ya&&nn())}}function Hn(e){cn!==null&&cn.tag===0&&(Ie&6)===0&&Fs();var r=Ie;Ie|=1;var o=Gt.transition,l=Ue;try{if(Gt.transition=null,Ue=1,e)return e()}finally{Ue=l,Gt.transition=o,Ie=r,(Ie&6)===0&&nn()}}function Iu(){Ut=Ds.current,Be(Ds)}function Bn(e,r){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,A1(o)),et!==null)for(o=et.return;o!==null;){var l=o;switch(Hc(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&ga();break;case 3:Os(),Be(Nt),Be(gt),ru();break;case 5:eu(l);break;case 4:Os();break;case 13:Be(qe);break;case 19:Be(qe);break;
vendor: 9,223 bytes, line 41
41case 10:Qc(l.type._context);break;case 22:case 23:Iu()}o=o.return}if(ct=e,et=e=fn(e.current,null),ht=Ut=r,st=0,ni=null,Cu=za=$n=0,Rt=si=null,zn!==null){for(r=0;r<zn.length;r++)if(o=zn[r],l=o.interleaved,l!==null){o.interleaved=null;var d=l.next,p=o.pending;if(p!==null){var w=p.next;p.next=d,l.next=w}o.pending=l}zn=null}return e}function Mm(e,r){do{var o=et;try{if(Gc(),Na.current=Aa,Ta){for(var l=Ge.memoizedState;l!==null;){var d=l.queue;d!==null&&(d.pending=null),l=l.next}Ta=!1}if(Vn=0,lt=nt=Ge=null,Xo=!1,Jo=0,_u.current=null,o===null||o.return===null){st=1,ni=r,et=null;break}e:{var p=e,w=o.return,_=o,P=r;if(r=ht,_.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var z=P,G=_,X=G.tag;if((G.mode&1)===0&&(X===0||X===11||X===15)){var q=G.alternate;q?(G.updateQueue=q.updateQueue,G.memoizedState=q.memoizedState,G.lanes=q.lanes):(G.updateQueue=null,G.memoizedState=null)}var ne=im(w);if(ne!==null){ne.flags&=-257,am(ne,w,_,p,r),ne.mode&1&&om(p,z,r),r=ne,P=z;var ie=r.updateQueue;if(ie===null){var ae=new Set;ae.add(P),r.updateQueue=ae}else ie.add(P);break e}else{if((r&1)===0){om(p,z,r),Mu();break e}P=Error(s(426))}}else if(Ke&&_.mode&1){var Ze=im(w);if(Ze!==null){(Ze.flags&65536)===0&&(Ze.flags|=256),am(Ze,w,_,p,r),Kc(Is(P,_));break e}}p=P=Is(P,_),st!==4&&(st=2),si===null?si=[p]:si.push(p),p=w;do{switch(p.tag){case 3:p.flags|=65536,r&=-r,p.lanes|=r;var L=nm(p,P,r);Pp(p,L);break e;case 1:_=P;var O=p.type,F=p.stateNode;if((p.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(ln===null||!ln.has(F)))){p.flags|=65536,r&=-r,p.lanes|=r;var J=sm(p,_,r);Pp(p,J);break e}}p=p.return}while(p!==null)}Fm(o)}catch(ce){r=ce,et===o&&o!==null&&(et=o=o.return);continue}break}while(!0)}function Dm(){var e=Fa.current;return Fa.current=Aa,e===null?Aa:e}function Mu(){(st===0||st===3||st===2)&&(st=4),ct===null||($n&268435455)===0&&(za&268435455)===0||dn(ct,ht)}function Wa(e,r){var o=Ie;Ie|=2;var l=Dm();(ct!==e||ht!==r)&&(Dr=null,Bn(e,r));do try{nb();break}catch(d){Mm(e,d)}while(!0);if(Gc(),Ie=o,Fa.current=l,et!==null)throw Error(s(261));return ct=null,ht=0,st}function nb(){for(;et!==null;)Lm(et)}function sb(){for(;et!==null&&!Tw();)Lm(et)}function Lm(e){var r=Vm(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,r===null?Fm(e):et=r,_u.current=null}function Fm(e){var r=e;do{var o=r.alternate;if(e=r.return,(r.flags&32768)===0){if(o=Y1(o,r,Ut),o!==null){et=o;return}}else{if(o=X1(o,r),o!==null){o.flags&=32767,et=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{st=6,et=null;return}}if(r=r.sibling,r!==null){et=r;return}et=r=e}while(r!==null);st===0&&(st=5)}function Wn(e,r,o){var l=Ue,d=Gt.transition;try{Gt.transition=null,Ue=1,ob(e,r,o,l)}finally{Gt.transition=d,Ue=l}return null}function ob(e,r,o,l){do Fs();while(cn!==null);if((Ie&6)!==0)throw Error(s(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var p=o.lanes|o.childLanes;if(zw(e,p),e===ct&&(et=ct=null,ht=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Va||(Va=!0,$m(Qi,function(){return Fs(),null})),p=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||p){p=Gt.transition,Gt.transition=null;var w=Ue;Ue=1;var _=Ie;Ie|=4,_u.current=null,Z1(e,o),Nm(o,e),E1(Mc),ra=!!Ic,Mc=Ic=null,e.current=o,eb(o),Pw(),Ie=_,Ue=w,Gt.transition=p}else e.current=o;if(Va&&(Va=!1,cn=e,$a=d),p=e.pendingLanes,p===0&&(ln=null),Ow(o.stateNode),At(e,Je()),r!==null)for(l=e.onRecoverableError,o=0;o<r.length;o++)d=r[o],l(d.value,{componentStack:d.stack,digest:d.digest});if(Ua)throw Ua=!1,e=Tu,Tu=null,e;return($a&1)!==0&&e.tag!==0&&Fs(),p=e.pendingLanes,(p&1)!==0?e===Pu?oi++:(oi=0,Pu=e):oi=0,nn(),null}function Fs(){if(cn!==null){var e=_h($a),r=Gt.transition,o=Ue;try{if(Gt.transition=null,Ue=16>e?16:e,cn===null)var l=!1;else{if(e=cn,cn=null,$a=0,(Ie&6)!==0)throw Error(s(331));var d=Ie;for(Ie|=4,se=e.current;se!==null;){var p=se,w=p.child;if((se.flags&16)!==0){var _=p.deletions;if(_!==null){for(var P=0;P<_.length;P++){var z=_[P];for(se=z;se!==null;){var G=se;switch(G.tag){case 0:case 11:case 15:ri(8,G,p)}var X=G.child;if(X!==null)X.return=G,se=X;else for(;se!==null;){G=se;var q=G.sibling,ne=G.return;if(Sm(G),G===z){se=null;break}if(q!==null){q.return=ne,se=q;break}se=ne}}}var ie=p.alternate;if(ie!==null){var ae=ie.child;if(ae!==null){ie.child=null;do{var Ze=ae.sibling;ae.sibling=null,ae=Ze}while(ae!==null)}}se=p}}if((p.subtreeFlags&2064)!==0&&w!==null)w.return=p,se=w;else e:for(;se!==null;){if(p=se,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:ri(9,p,p.return)}var L=p.sibling;if(L!==null){L.return=p.return,se=L;break e}se=p.return}}var O=e.current;for(se=O;se!==null;){w=se;var F=w.child;if((w.subtreeFlags&2064)!==0&&F!==null)F.return=w,se=F;else e:for(w=O;se!==null;){if(_=se,(_.flags&2048)!==0)try{switch(_.tag){case 0:case 11:case 15:La(9,_)}}catch(ce){Ye(_,_.return,ce)}if(_===w){se=null;break e}var J=_.sibling;if(J!==null){J.return=_.return,se=J;break e}se=_.return}}if(Ie=d,nn(),gr&&typeof gr.onPostCommitFiberRoot=="function")try{gr.onPostCommitFiberRoot(Yi,e)}catch{}l=!0}return l}finally{Ue=o,Gt.transition=r}}return!1}function zm(e,r,o){r=Is(o,r),r=nm(e,r,1),e=on(e,r,1),r=kt(),e!==null&&(To(e,1,r),At(e,r))}function Ye(e,r,o){if(e.tag===3)zm(e,e,o);else for(;r!==null;){if(r.tag===3){zm(r,e,o);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ln===null||!ln.has(l))){e=Is(o,e),e=sm(r,e,1),r=on(r,e,1),e=kt(),r!==null&&(To(r,1,e),At(r,e));break}}r=r.return}}function ib(e,r,o){var l=e.pingCache;l!==null&&l.delete(r),r=kt(),e.pingedLanes|=e.suspendedLanes&o,ct===e&&(ht&o)===o&&(st===4||st===3&&(ht&130023424)===ht&&500>Je()-Nu?Bn(e,0):Cu|=o),At(e,r)}function Um(e,r){r===0&&((e.mode&1)===0?r=1:(r=Ji,Ji<<=1,(Ji&130023424)===0&&(Ji=4194304)));var o=kt();e=Or(e,r),e!==null&&(To(e,r,o),At(e,o))}function ab(e){var r=e.memoizedState,o=0;r!==null&&(o=r.retryLane),Um(e,o)}function lb(e,r){var o=0;switch(e.tag){case 13:var l=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(s(314))}l!==null&&l.delete(r),Um(e,o)}var Vm;Vm=function(e,r,o){if(e!==null)if(e.memoizedProps!==r.pendingProps||Nt.current)Pt=!0;else{if((e.lanes&o)===0&&(r.flags&128)===0)return Pt=!1,Q1(e,r,o);Pt=(e.flags&131072)!==0}else Pt=!1,Ke&&(r.flags&1048576)!==0&&wp(r,wa,r.index);switch(r.lanes=0,r.tag){case 2:var l=r.type;Ma(e,r),e=r.pendingProps;var d=_s(r,gt.current);As(r,o),d=ou(null,r,l,e,d,o);var p=iu();return r.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Tt(l)?(p=!0,va(r)):p=!1,r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,Jc(r),d.updater=Oa,r.stateNode=d,d._reactInternals=r,fu(r,l,e,o),r=gu(null,r,l,!0,p,o)):(r.tag=0,Ke&&p&&$c(r),St(null,r,d,o),r=r.child),r;case 16:l=r.elementType;e:{switch(Ma(e,r),e=r.pendingProps,d=l._init,l=d(l._payload),r.type=l,d=r.tag=ub(l),e=nr(l,e),d){case 0:r=mu(null,r,l,e,o);break e;case 1:r=hm(null,r,l,e,o);break e;case 11:r=lm(null,r,l,e,o);break e;case 14:r=cm(null,r,l,nr(l.type,e),o);break e}throw Error(s(306,l,""))}return r;case 0:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:nr(l,d),mu(e,r,l,d,o);case 1:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:nr(l,d),hm(e,r,l,d,o);case 3:e:{if(pm(r),e===null)throw Error(s(387));l=r.pendingProps,p=r.memoizedState,d=p.element,Tp(e,r),_a(r,l,null,o);var w=r.memoizedState;if(l=w.element,p.isDehydrated)if(p={element:l,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){d=Is(Error(s(423)),r),r=mm(e,r,l,o,d);break e}else if(l!==d){d=Is(Error(s(424)),r),r=mm(e,r,l,o,d);break e}else for(zt=en(r.stateNode.containerInfo.firstChild),Ft=r,Ke=!0,rr=null,o=Cp(r,null,l,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ts(),l===d){r=Mr(e,r,o);break e}St(e,r,l,o)}r=r.child}return r;case 5:return Ap(r),e===null&&Wc(r),l=r.type,d=r.pendingProps,p=e!==null?e.memoizedProps:null,w=d.children,Dc(l,d)?w=null:p!==null&&Dc(l,p)&&(r.flags|=32),fm(e,r),St(e,r,w,o),r.child;case 6:return e===null&&Wc(r),null;case 13:return gm(e,r,o);case 4:return Zc(r,r.stateNode.containerInfo),l=r.pendingProps,e===null?r.child=Ps(r,null,l,o):St(e,r,l,o),r.child;case 11:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:nr(l,d),lm(e,r,l,d,o);case 7:return St(e,r,r.pendingProps,o),r.child;case 8:return St(e,r,r.pendingProps.children,o),r.child;case 12:return St(e,r,r.pendingProps.children,o),r.child;case 10:e:{if(l=r.type._context,d=r.pendingProps,p=r.memoizedProps,w=d.value,$e(Sa,l._currentValue),l._currentValue=w,p!==null)if(tr(p.value,w)){if(p.children===d.children&&!Nt.current){r=Mr(e,r,o);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var _=p.dependencies;if(_!==null){w=p.child;for(var P=_.firstContext;P!==null;){if(P.context===l){if(p.tag===1){P=Ir(-1,o&-o),P.tag=2;var z=p.updateQueue;if(z!==null){z=z.shared;var G=z.pending;
vendor: 11,649 bytes, line 41
41G===null?P.next=P:(P.next=G.next,G.next=P),z.pending=P}}p.lanes|=o,P=p.alternate,P!==null&&(P.lanes|=o),Yc(p.return,o,r),_.lanes|=o;break}P=P.next}}else if(p.tag===10)w=p.type===r.type?null:p.child;else if(p.tag===18){if(w=p.return,w===null)throw Error(s(341));w.lanes|=o,_=w.alternate,_!==null&&(_.lanes|=o),Yc(w,o,r),w=p.sibling}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===r){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}St(e,r,d.children,o),r=r.child}return r;case 9:return d=r.type,l=r.pendingProps.children,As(r,o),d=Kt(d),l=l(d),r.flags|=1,St(e,r,l,o),r.child;case 14:return l=r.type,d=nr(l,r.pendingProps),d=nr(l.type,d),cm(e,r,l,d,o);case 15:return um(e,r,r.type,r.pendingProps,o);case 17:return l=r.type,d=r.pendingProps,d=r.elementType===l?d:nr(l,d),Ma(e,r),r.tag=1,Tt(l)?(e=!0,va(r)):e=!1,As(r,o),tm(r,l,d),fu(r,l,d,o),gu(null,r,l,!0,e,o);case 19:return ym(e,r,o);case 22:return dm(e,r,o)}throw Error(s(156,r.tag))};function $m(e,r){return bh(e,r)}function cb(e,r,o,l){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,r,o,l){return new cb(e,r,o,l)}function Du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ub(e){if(typeof e=="function")return Du(e)?1:0;if(e!=null){if(e=e.$$typeof,e===te)return 11;if(e===fe)return 14}return 2}function fn(e,r){var o=e.alternate;return o===null?(o=Qt(e.tag,r,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=r,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,r=e.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ka(e,r,o,l,d,p){var w=2;if(l=e,typeof e=="function")Du(e)&&(w=1);else if(typeof e=="string")w=5;else e:switch(e){case I:return Kn(o.children,d,p,r);case V:w=8,d|=8;break;case Q:return e=Qt(12,o,r,d|2),e.elementType=Q,e.lanes=p,e;case de:return e=Qt(13,o,r,d),e.elementType=de,e.lanes=p,e;case ee:return e=Qt(19,o,r,d),e.elementType=ee,e.lanes=p,e;case ue:return qa(o,d,p,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:w=10;break e;case le:w=9;break e;case te:w=11;break e;case fe:w=14;break e;case oe:w=16,l=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return r=Qt(w,o,r,d),r.elementType=e,r.type=l,r.lanes=p,r}function Kn(e,r,o,l){return e=Qt(7,e,l,r),e.lanes=o,e}function qa(e,r,o,l){return e=Qt(22,e,l,r),e.elementType=ue,e.lanes=o,e.stateNode={isHidden:!1},e}function Lu(e,r,o){return e=Qt(6,e,null,r),e.lanes=o,e}function Fu(e,r,o){return r=Qt(4,e.children!==null?e.children:[],e.key,r),r.lanes=o,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function db(e,r,o,l,d){this.tag=r,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dc(0),this.expirationTimes=dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.identifierPrefix=l,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function zu(e,r,o,l,d,p,w,_,P){return e=new db(e,r,o,_,P),r===1?(r=1,p===!0&&(r|=8)):r=0,p=Qt(3,null,null,r),e.current=p,p.stateNode=e,p.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jc(p),e}function fb(e,r,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:l==null?null:""+l,children:e,containerInfo:r,implementation:o}}function Hm(e){if(!e)return rn;e=e._reactInternals;e:{if(In(e)!==e||e.tag!==1)throw Error(s(170));var r=e;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(Tt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(s(171))}if(e.tag===1){var o=e.type;if(Tt(o))return vp(e,o,r)}return r}function Bm(e,r,o,l,d,p,w,_,P){return e=zu(o,l,!0,e,d,p,w,_,P),e.context=Hm(null),o=e.current,l=kt(),d=un(o),p=Ir(l,d),p.callback=r??null,on(o,p,d),e.current.lanes=d,To(e,d,l),At(e,l),e}function Ga(e,r,o,l){var d=r.current,p=kt(),w=un(d);return o=Hm(o),r.context===null?r.context=o:r.pendingContext=o,r=Ir(p,w),r.payload={element:e},l=l===void 0?null:l,l!==null&&(r.callback=l),e=on(d,r,w),e!==null&&(ir(e,d,w,p),Ea(e,d,w)),w}function Qa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Wm(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<r?o:r}}function Uu(e,r){Wm(e,r),(e=e.alternate)&&Wm(e,r)}function hb(){return null}var Km=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}Ya.prototype.render=Vu.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(s(409));Ga(e,r,null,null)},Ya.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;Hn(function(){Ga(null,e,null,null)}),r[Tr]=null}};function Ya(e){this._internalRoot=e}Ya.prototype.unstable_scheduleHydration=function(e){if(e){var r=Th();e={blockedOn:null,target:e,priority:r};for(var o=0;o<Xr.length&&r!==0&&r<Xr[o].priority;o++);Xr.splice(o,0,e),o===0&&Ah(e)}};function $u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qm(){}function pb(e,r,o,l,d){if(d){if(typeof l=="function"){var p=l;l=function(){var z=Qa(w);p.call(z)}}var w=Bm(r,l,e,0,null,!1,!1,"",qm);return e._reactRootContainer=w,e[Tr]=w.current,Ho(e.nodeType===8?e.parentNode:e),Hn(),w}for(;d=e.lastChild;)e.removeChild(d);if(typeof l=="function"){var _=l;l=function(){var z=Qa(P);_.call(z)}}var P=zu(e,0,!1,null,null,!1,!1,"",qm);return e._reactRootContainer=P,e[Tr]=P.current,Ho(e.nodeType===8?e.parentNode:e),Hn(function(){Ga(r,P,o,l)}),P}function Ja(e,r,o,l,d){var p=o._reactRootContainer;if(p){var w=p;if(typeof d=="function"){var _=d;d=function(){var P=Qa(w);_.call(P)}}Ga(r,w,e,d)}else w=pb(o,r,e,d,l);return Qa(w)}Ch=function(e){switch(e.tag){case 3:var r=e.stateNode;if(r.current.memoizedState.isDehydrated){var o=No(r.pendingLanes);o!==0&&(fc(r,o|1),At(r,Je()),(Ie&6)===0&&(Ls=Je()+500,nn()))}break;case 13:Hn(function(){var l=Or(e,1);if(l!==null){var d=kt();ir(l,e,1,d)}}),Uu(e,1)}},hc=function(e){if(e.tag===13){var r=Or(e,134217728);if(r!==null){var o=kt();ir(r,e,134217728,o)}Uu(e,134217728)}},Nh=function(e){if(e.tag===13){var r=un(e),o=Or(e,r);if(o!==null){var l=kt();ir(o,e,r,l)}Uu(e,r)}},Th=function(){return Ue},Ph=function(e,r){var o=Ue;try{return Ue=e,r()}finally{Ue=o}},oc=function(e,r,o){switch(r){case"input":if(bo(e,o),r=o.name,o.type==="radio"&&r!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var l=o[r];if(l!==e&&l.form===e.form){var d=ma(l);if(!d)throw Error(s(90));wo(l),bo(l,d)}}}break;case"textarea":oh(e,o);break;case"select":r=o.value,r!=null&&ps(e,!!o.multiple,r,!1)}},ph=Ou,mh=Hn;var mb={usingClientEntryPoint:!1,Events:[Ko,ks,ma,fh,hh,Ou]},ii={findFiberByHostInstance:Mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gb={bundleType:ii.bundleType,version:ii.version,rendererPackageName:ii.rendererPackageName,rendererConfig:ii.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xh(e),e===null?null:e.stateNode},findFiberByHostInstance:ii.findFiberByHostInstance||hb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Za=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Za.isDisabled&&Za.supportsFiber)try{Yi=Za.inject(gb),gr=Za}catch{}}return Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mb,Ot.createPortal=function(e,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$u(r))throw Error(s(200));return fb(e,r,null,o)},Ot.createRoot=function(e,r){if(!$u(e))throw Error(s(299));var o=!1,l="",d=Km;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onRecoverableError!==void 0&&(d=r.onRecoverableError)),r=zu(e,1,!1,null,null,o,!1,l,d),e[Tr]=r.current,Ho(e.nodeType===8?e.parentNode:e),new Vu(r)},Ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=xh(r),e=e===null?null:e.stateNode,e},Ot.flushSync=function(e){return Hn(e)},Ot.hydrate=function(e,r,o){if(!Xa(r))throw Error(s(200));return Ja(null,e,r,!0,o)},Ot.hydrateRoot=function(e,r,o){if(!$u(e))throw Error(s(405));var l=o!=null&&o.hydratedSources||null,d=!1,p="",w=Km;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onRecoverableError!==void 0&&(w=o.onRecoverableError)),r=Bm(r,null,e,1,o??null,d,!1,p,w),e[Tr]=r.current,Ho(e),l)for(e=0;e<l.length;e++)o=l[e],d=o._getVersion,d=d(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,d]:r.mutableSourceEagerHydrationData.push(o,d);return new Ya(r)},Ot.render=function(e,r,o){if(!Xa(r))throw Error(s(200));return Ja(null,e,r,!1,o)},Ot.unmountComponentAtNode=function(e){if(!Xa(e))throw Error(s(40));return e._reactRootContainer?(Hn(function(){Ja(null,null,e,!1,function(){e._reactRootContainer=null,e[Tr]=null})}),!0):!1},Ot.unstable_batchedUpdates=Ou,Ot.unstable_renderSubtreeIntoContainer=function(e,r,o,l){if(!Xa(o))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Ja(e,r,o,!1,l)},Ot.version="18.3.1-next-f1338f8080-20240426",Ot}var rg;function Nv(){if(rg)return Ku.exports;rg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Ku.exports=_b(),Ku.exports}var ng;function Cb(){if(ng)return tl;ng=1;var t=Nv();return tl.createRoot=t.createRoot,tl.hydrateRoot=t.hydrateRoot,tl}var Nb=Cb();const Tb="modulepreload",Pb=function(t){return"/"+t},sg={},K=function(n,s,a){let c=Promise.resolve();if(s&&s.length>0){let f=function(v){return Promise.all(v.map(x=>Promise.resolve(x).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));
41c=f(s.map(v=>{if(v=Pb(v),v in sg)return;sg[v]=!0;const x=v.endsWith(".css"),y=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${y}`))return;const b=document.createElement("link");if(b.rel=x?"stylesheet":Tb,x||(b.as="script"),b.crossOrigin="",b.href=v,g&&b.setAttribute("nonce",g),document.head.appendChild(b),x)return new Promise((k,E)=>{b.addEventListener("load",k),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${v}`)))})}))}function u(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return c.then(f=>{for(const h of f||[])h.status==="rejected"&&u(h.reason);return n().catch(u)})};var m=Dl();const bt=Ai(m),Tv=wb({__proto__:null,default:bt},[m]);function Rb(t,n){if(t instanceof RegExp)return{keys:!1,pattern:t};var s,a,c,u,f=[],h="",g=t.split("/");for(g[0]||g.shift();c=g.shift();)s=c[0],s==="*"?(f.push(s),h+=c[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(a=c.indexOf("?",1),u=c.indexOf(".",1),f.push(c.substring(1,~a?a:~u?u:c.length)),h+=~a&&!~u?"(?:/([^/]+?))?":"/([^/]+?)",~u&&(h+=(~a?"?":"")+"\\"+c.substring(u))):h+="/"+c;return{keys:f,pattern:new RegExp("^"+h+(n?"(?=$|/)":"/?$"),"i")}}var Qu={exports:{}},Yu={};/** 42 * @license React 43 * use-sync-external-store-shim.production.js 44 * 45 * Copyright (c) Meta Platforms, Inc. and affiliates. 46 * 47 * This source code is licensed under the MIT license found in the 48 * LICENSE file in the root directory of this source tree. 49 */var og;function Ab(){if(og)return Yu;og=1;var t=Dl();function n(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var s=typeof Object.is=="function"?Object.is:n,a=t.useState,c=t.useEffect,u=t.useLayoutEffect,f=t.useDebugValue;function h(y,b){var k=b(),E=a({inst:{value:k,getSnapshot:b}}),j=E[0].inst,S=E[1];return u(function(){j.value=k,j.getSnapshot=b,g(j)&&S({inst:j})},[y,k,b]),c(function(){return g(j)&&S({inst:j}),y(function(){g(j)&&S({inst:j})})},[y]),f(k),k}function g(y){var b=y.getSnapshot;y=y.value;try{var k=b();return!s(y,k)}catch{return!0}}function v(y,b){return b()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:h;return Yu.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:x,Yu}var ig;function Ob(){return ig||(ig=1,Qu.exports=Ab()),Qu.exports}var Ib=Ob();const Mb=Tv.useInsertionEffect,Db=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pv=Db?m.useLayoutEffect:m.useEffect,Lb=Mb||Pv,af=t=>{const n=m.useRef([t,(...s)=>n[0](...s)]).current;return Lb(()=>{n[0]=t}),n[1]},Fb="popstate",lf="pushState",cf="replaceState",zb="hashchange",ag=[Fb,lf,cf,zb],Ub=t=>{for(const n of ag)addEventListener(n,t);return()=>{for(const n of ag)removeEventListener(n,t)}},Rv=(t,n)=>Ib.useSyncExternalStore(Ub,t,n),Vb=()=>location.search,$b=({ssrSearch:t=""}={})=>Rv(Vb,()=>t),lg=()=>location.pathname,Hb=({ssrPath:t}={})=>Rv(lg,t?()=>t:lg),Bb=(t,{replace:n=!1,state:s=null}={})=>history[n?cf:lf](s,"",t),Wb=(t={})=>[Hb(t),Bb],cg=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[cg]>"u"){for(const t of[lf,cf]){const n=history[t];history[t]=function(){const s=n.apply(this,arguments),a=new Event(t);return a.arguments=arguments,dispatchEvent(a),s}}Object.defineProperty(window,cg,{value:!0})}const Kb=(t,n)=>n.toLowerCase().indexOf(t.toLowerCase())?"~"+n:n.slice(t.length)||"/",Av=(t="")=>t==="/"?"":t,qb=(t,n)=>t[0]==="~"?t.slice(1):Av(n)+t,Gb=(t="",n)=>Kb(Ed(Av(t)),Ed(n)),Qb=t=>t[0]==="?"?t.slice(1):t,Ed=t=>{try{return decodeURI(t)}catch{return t}},Yb=t=>Ed(Qb(t)),Ov={hook:Wb,searchHook:$b,parser:Rb,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:t=>t},Iv=m.createContext(Ov),Rn=()=>m.useContext(Iv),Mv={},Dv=m.createContext(Mv),Xb=()=>m.useContext(Dv),Oi=t=>{const[n,s]=t.hook(t);return[Gb(t.base,n),af((a,c)=>s(qb(a,t.base),c))]},mt=()=>Oi(Rn()),SR=()=>{const t=Rn();return Yb(t.searchHook(t))},uf=(t,n,s,a)=>{const{pattern:c,keys:u}=n instanceof RegExp?{keys:!1,pattern:n}:t(n||"*",a),f=c.exec(s)||[],[h,...g]=f;return h!==void 0?[!0,(()=>{const v=u!==!1?Object.fromEntries(u.map((y,b)=>[y,g[b]])):f.groups;let x={...g};return v&&Object.assign(x,v),x})(),...a?[h]:[]]:[!1,null]},kR=t=>uf(Rn().parser,t,mt()[0]),Jb=({children:t,...n})=>{var x,y;const s=Rn(),a=n.hook?Ov:s;let c=a;const[u,f]=((x=n.ssrPath)==null?void 0:x.split("?"))??[];f&&(n.ssrSearch=f,n.ssrPath=u),n.hrefs=n.hrefs??((y=n.hook)==null?void 0:y.hrefs);let h=m.useRef({}),g=h.current,v=g;for(let b in a){const k=b==="base"?a[b]+(n[b]||""):n[b]||a[b];g===v&&k!==v[b]&&(h.current=v={...v}),v[b]=k,k!==a[b]&&(c=v)}return m.createElement(Iv.Provider,{value:c,children:t})},ug=({children:t,component:n},s)=>n?m.createElement(n,{params:s}):typeof t=="function"?t(s):t,Zb=t=>{let n=m.useRef(Mv);const s=n.current;return n.current=Object.keys(t).length!==Object.keys(s).length||Object.entries(t).some(([a,
49c])=>c!==s[a])?t:s},$=({path:t,nest:n,match:s,...a})=>{const c=Rn(),[u]=Oi(c),[f,h,g]=s??uf(c.parser,t,u,n),v=Zb({...Xb(),...h});if(!f)return null;const x=g?m.createElement(Jb,{base:g},ug(a,v)):ug(a,v);return m.createElement(Dv.Provider,{value:v,children:x})},ke=m.forwardRef((t,n)=>{const s=Rn(),[a,c]=Oi(s),{to:u="",href:f=u,onClick:h,asChild:g,children:v,className:x,replace:y,state:b,...k}=t,E=af(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(h==null||h(S),S.defaultPrevented||(S.preventDefault(),c(f,t)))}),j=s.hrefs(f[0]==="~"?f.slice(1):s.base+f,s);return g&&m.isValidElement(v)?m.cloneElement(v,{onClick:E,href:j}):m.createElement("a",{...k,onClick:E,href:j,className:x!=null&&x.call?x(a===f):x,children:v,ref:n})}),Lv=t=>Array.isArray(t)?t.flatMap(n=>Lv(n&&n.type===m.Fragment?n.props.children:n)):[t],ej=({children:t,location:n})=>{const s=Rn(),[a]=Oi(s);for(const c of Lv(t)){let u=0;if(m.isValidElement(c)&&(u=uf(s.parser,c.props.path,n||a,c.props.nest))[0])return m.cloneElement(c,{match:u})}return null},li=t=>{const{to:n,href:s=n}=t,a=Rn(),[,c]=Oi(a),u=af(()=>c(n||s,t)),{ssrContext:f}=a;return Pv(()=>{u()},[]),f&&(f.redirectTo=n),null};var po=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},os=typeof window>"u"||"Deno"in globalThis;function Jt(){}function tj(t,n){return typeof t=="function"?t(n):t}function _d(t){return typeof t=="number"&&t>=0&&t!==1/0}function Fv(t,n){return Math.max(t+(n||0)-Date.now(),0)}function Hs(t,n){return typeof t=="function"?t(n):t}function cr(t,n){return typeof t=="function"?t(n):t}function dg(t,n){const{type:s="all",exact:a,fetchStatus:c,predicate:u,queryKey:f,stale:h}=t;if(f){if(a){if(n.queryHash!==df(f,n.options))return!1}else if(!ji(n.queryKey,f))return!1}if(s!=="all"){const g=n.isActive();if(s==="active"&&!g||s==="inactive"&&g)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||c&&c!==n.state.fetchStatus||u&&!u(n))}function fg(t,n){const{exact:s,status:a,predicate:c,mutationKey:u}=t;if(u){if(!n.options.mutationKey)return!1;if(s){if(is(n.options.mutationKey)!==is(u))return!1}else if(!ji(n.options.mutationKey,u))return!1}return!(a&&n.state.status!==a||c&&!c(n))}function df(t,n){return((n==null?void 0:n.queryKeyHashFn)||is)(t)}function is(t){return JSON.stringify(t,(n,s)=>Cd(s)?Object.keys(s).sort().reduce((a,c)=>(a[c]=s[c],a),{}):s)}function ji(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?Object.keys(n).every(s=>ji(t[s],n[s])):!1}function zv(t,n){if(t===n)return t;const s=hg(t)&&hg(n);if(s||Cd(t)&&Cd(n)){const a=s?t:Object.keys(t),c=a.length,u=s?n:Object.keys(n),f=u.length,h=s?[]:{};let g=0;for(let v=0;v<f;v++){const x=s?v:u[v];(!s&&a.includes(x)||s)&&t[x]===void 0&&n[x]===void 0?(h[x]=void 0,g++):(h[x]=zv(t[x],n[x]),h[x]===t[x]&&t[x]!==void 0&&g++)}return c===f&&g===c?t:h}return n}function kl(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const s in t)if(t[s]!==n[s])return!1;return!0}function hg(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Cd(t){if(!pg(t))return!1;const n=t.constructor;if(n===void 0)return!0;const s=n.prototype;return!(!pg(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function pg(t){return Object.prototype.toString.call(t)==="[object Object]"}function rj(t){return new Promise(n=>{setTimeout(n,t)})}function Nd(t,n,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,n):s.structuralSharing!==!1?zv(t,n):n}function nj(t,n,s=0){const a=[...t,n];return s&&a.length>s?a.slice(1):a}function sj(t,n,s=0){const a=[n,...t];return s&&a.length>s?a.slice(0,-1):a}var ff=Symbol();function Uv(t,n){return!t.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!t.queryFn||t.queryFn===ff?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Qn,yn,Ys,yv,oj=(yv=class extends po{constructor(){super();me(this,Qn);me(this,yn);me(this,Ys);re(this,Ys,n=>{if(!os&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){T(this,yn)||this.setEventListener(T(this,Ys))}onUnsubscribe(){var n;this.hasListeners()||((n=T(this,yn))==null||n.call(this),re(this,yn,void 0))}setEventListener(n){var s;re(this,Ys,n),(s=T(this,yn))==null||s.call(this),re(this,yn,n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(n){T(this,Qn)!==n&&(re(this,Qn,n),this.onFocus())}onFocus(){const n=this.isFocused();
vendor: 36,447 bytes, line 49
49this.listeners.forEach(s=>{s(n)})}isFocused(){var n;return typeof T(this,Qn)=="boolean"?T(this,Qn):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Qn=new WeakMap,yn=new WeakMap,Ys=new WeakMap,yv),hf=new oj,Xs,xn,Js,xv,ij=(xv=class extends po{constructor(){super();me(this,Xs,!0);me(this,xn);me(this,Js);re(this,Js,n=>{if(!os&&window.addEventListener){const s=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",a)}}})}onSubscribe(){T(this,xn)||this.setEventListener(T(this,Js))}onUnsubscribe(){var n;this.hasListeners()||((n=T(this,xn))==null||n.call(this),re(this,xn,void 0))}setEventListener(n){var s;re(this,Js,n),(s=T(this,xn))==null||s.call(this),re(this,xn,n(this.setOnline.bind(this)))}setOnline(n){T(this,Xs)!==n&&(re(this,Xs,n),this.listeners.forEach(a=>{a(n)}))}isOnline(){return T(this,Xs)}},Xs=new WeakMap,xn=new WeakMap,Js=new WeakMap,xv),El=new ij;function Td(){let t,n;const s=new Promise((c,u)=>{t=c,n=u});s.status="pending",s.catch(()=>{});function a(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{a({status:"fulfilled",value:c}),t(c)},s.reject=c=>{a({status:"rejected",reason:c}),n(c)},s}function aj(t){return Math.min(1e3*2**t,3e4)}function Vv(t){return(t??"online")==="online"?El.isOnline():!0}var $v=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Xu(t){return t instanceof $v}function Hv(t){let n=!1,s=0,a=!1,c;const u=Td(),f=j=>{var S;a||(b(new $v(j)),(S=t.abort)==null||S.call(t))},h=()=>{n=!0},g=()=>{n=!1},v=()=>hf.isFocused()&&(t.networkMode==="always"||El.isOnline())&&t.canRun(),x=()=>Vv(t.networkMode)&&t.canRun(),y=j=>{var S;a||(a=!0,(S=t.onSuccess)==null||S.call(t,j),c==null||c(),u.resolve(j))},b=j=>{var S;a||(a=!0,(S=t.onError)==null||S.call(t,j),c==null||c(),u.reject(j))},k=()=>new Promise(j=>{var S;c=C=>{(a||v())&&j(C)},(S=t.onPause)==null||S.call(t)}).then(()=>{var j;c=void 0,a||(j=t.onContinue)==null||j.call(t)}),E=()=>{if(a)return;let j;const S=s===0?t.initialPromise:void 0;try{j=S??t.fn()}catch(C){j=Promise.reject(C)}Promise.resolve(j).then(y).catch(C=>{var U;if(a)return;const M=t.retry??(os?0:3),N=t.retryDelay??aj,A=typeof N=="function"?N(s,C):N,D=M===!0||typeof M=="number"&&s<M||typeof M=="function"&&M(s,C);if(n||!D){b(C);return}s++,(U=t.onFail)==null||U.call(t,s,C),rj(A).then(()=>v()?void 0:k()).then(()=>{n?b(C):E()})})};return{promise:u,cancel:f,continue:()=>(c==null||c(),u),cancelRetry:h,continueRetry:g,canStart:x,start:()=>(x()?E():k().then(E),u)}}var lj=t=>setTimeout(t,0);function cj(){let t=[],n=0,s=h=>{h()},a=h=>{h()},c=lj;const u=h=>{n?t.push(h):c(()=>{s(h)})},f=()=>{const h=t;t=[],h.length&&c(()=>{a(()=>{h.forEach(g=>{s(g)})})})};return{batch:h=>{let g;n++;try{g=h()}finally{n--,n||f()}return g},batchCalls:h=>(...g)=>{u(()=>{h(...g)})},schedule:u,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{c=h}}}var ot=cj(),Yn,wv,Bv=(wv=class{constructor(){me(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_d(this.gcTime)&&re(this,Yn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(os?1/0:300*1e3))}clearGcTimeout(){T(this,Yn)&&(clearTimeout(T(this,Yn)),re(this,Yn,void 0))}},Yn=new WeakMap,wv),Zs,eo,Xt,Xn,wt,Ni,Jn,ar,zr,bv,uj=(bv=class extends Bv{constructor(n){super();me(this,ar);me(this,Zs);me(this,eo);me(this,Xt);me(this,Xn);me(this,wt);me(this,Ni);me(this,Jn);re(this,Jn,!1),re(this,Ni,n.defaultOptions),this.setOptions(n.options),this.observers=[],re(this,Xn,n.client),re(this,Xt,T(this,Xn).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,re(this,Zs,dj(this.options)),this.state=n.state??T(this,Zs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=T(this,wt))==null?void 0:n.promise}setOptions(n){this.options={...T(this,Ni),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Xt).remove(this)}setData(n,s){const a=Nd(this.state.data,n,this.options);return _e(this,ar,zr).call(this,{data:a,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),a}setState(n,s){_e(this,ar,zr).call(this,{type:"setState",state:n,setStateOptions:s})}cancel(n){var a,c;const s=(a=T(this,wt))==null?void 0:a.promise;return(c=T(this,wt))==null||c.cancel(n),s?s.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Zs))}isActive(){return this.observers.some(n=>cr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ff||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!Fv(this.state.dataUpdatedAt,n)}onFocus(){var s;const n=this.observers.find(a=>a.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(s=T(this,wt))==null||s.continue()}onOnline(){var s;const n=this.observers.find(a=>a.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(s=T(this,wt))==null||s.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),T(this,Xt).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(s=>s!==n),this.observers.length||(T(this,wt)&&(T(this,Jn)?T(this,wt).cancel({revert:!0}):T(this,wt).cancelRetry()),this.scheduleGc()),T(this,Xt).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_e(this,ar,zr).call(this,{type:"invalidate"})}fetch(n,s){var g,v,x;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(T(this,wt))return T(this,wt).continueRetry(),T(this,wt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const a=new AbortController,c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(re(this,Jn,!0),a.signal)})},u=()=>{const y=Uv(this.options,s),b={client:T(this,Xn),queryKey:this.queryKey,meta:this.meta};return c(b),re(this,Jn,!1),this.options.persister?this.options.persister(y,b,this):y(b)},f={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:T(this,Xn),state:this.state,fetchFn:u};c(f),(g=this.options.behavior)==null||g.onFetch(f,this),re(this,eo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=f.fetchOptions)==null?void 0:v.meta))&&_e(this,ar,zr).call(this,{type:"fetch",meta:(x=f.fetchOptions)==null?void 0:x.meta});const h=y=>{var b,k,E,j;Xu(y)&&y.silent||_e(this,ar,zr).call(this,{type:"error",error:y}),Xu(y)||((k=(b=T(this,Xt).config).onError)==null||k.call(b,y,this),(j=(E=T(this,Xt).config).onSettled)==null||j.call(E,this.state.data,y,this)),this.scheduleGc()};return re(this,wt,Hv({initialPromise:s==null?void 0:s.initialPromise,fn:f.fetchFn,abort:a.abort.bind(a),onSuccess:y=>{var b,k,E,j;if(y===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(S){h(S);return}(k=(b=T(this,Xt).config).onSuccess)==null||k.call(b,y,this),(j=(E=T(this,Xt).config).onSettled)==null||j.call(E,y,this.state.error,this),this.scheduleGc()},onError:h,onFail:(y,b)=>{_e(this,ar,zr).call(this,{type:"failed",failureCount:y,error:b})},onPause:()=>{_e(this,ar,zr).call(this,{type:"pause"})},onContinue:()=>{_e(this,ar,zr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),T(this,wt).start()}},Zs=new WeakMap,eo=new WeakMap,Xt=new WeakMap,Xn=new WeakMap,wt=new WeakMap,Ni=new WeakMap,Jn=new WeakMap,ar=new WeakSet,zr=function(n){const s=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Wv(a.data,this.options),fetchMeta:n.meta??null};case"success":return{...a,data:n.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=n.error;return Xu(c)&&c.revert&&T(this,eo)?{...T(this,eo),fetchStatus:"idle"}:{...a,error:c,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=s(this.state),ot.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),T(this,Xt).notify({query:this,type:"updated",action:n})})},bv);function Wv(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vv(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function dj(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,s=n!==void 0,a=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:s?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var br,jv,fj=(jv=class extends po{constructor(n={}){super();me(this,br);this.config=n,re(this,br,new Map)}build(n,s,a){const c=s.queryKey,u=s.queryHash??df(c,s);let f=this.get(u);return f||(f=new uj({client:n,queryKey:c,queryHash:u,options:n.defaultQueryOptions(s),state:a,defaultOptions:n.getQueryDefaults(c)}),this.add(f)),f}add(n){T(this,br).has(n.queryHash)||(T(this,br).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=T(this,br).get(n.queryHash);s&&(n.destroy(),s===n&&T(this,br).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ot.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return T(this,br).get(n)}getAll(){return[...T(this,br).values()]}find(n){const s={exact:!0,...n};return this.getAll().find(a=>dg(s,a))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(a=>dg(n,a)):s}notify(n){ot.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){ot.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ot.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},br=new WeakMap,jv),jr,Et,Zn,Sr,gn,Sv,hj=(Sv=class extends Bv{constructor(n){super();me(this,Sr);me(this,jr);me(this,Et);me(this,Zn);this.mutationId=n.mutationId,re(this,Et,n.mutationCache),re(this,jr,[]),this.state=n.state||Kv(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){T(this,jr).includes(n)||(T(this,jr).push(n),this.clearGcTimeout(),T(this,Et).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){re(this,jr,T(this,jr).filter(s=>s!==n)),this.scheduleGc(),T(this,Et).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){T(this,jr).length||(this.state.status==="pending"?this.scheduleGc():T(this,Et).remove(this))}continue(){var n;return((n=T(this,Zn))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var c,u,f,h,g,v,x,y,b,k,E,j,S,C,M,N,A,D,U,I;re(this,Zn,Hv({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(V,Q)=>{_e(this,Sr,gn).call(this,{type:"failed",failureCount:V,error:Q})},onPause:()=>{_e(this,Sr,gn).call(this,{type:"pause"})},onContinue:()=>{_e(this,Sr,gn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Et).canRun(this)}));const s=this.state.status==="pending",a=!T(this,Zn).canStart();try{if(!s){_e(this,Sr,gn).call(this,{type:"pending",variables:n,isPaused:a}),await((u=(c=T(this,Et).config).onMutate)==null?void 0:u.call(c,n,this));const Q=await((h=(f=this.options).onMutate)==null?void 0:h.call(f,n));Q!==this.state.context&&_e(this,Sr,gn).call(this,{type:"pending",context:Q,variables:n,isPaused:a})}const V=await T(this,Zn).start();return await((v=(g=T(this,Et).config).onSuccess)==null?void 0:v.call(g,V,n,this.state.context,this)),await((y=(x=this.options).onSuccess)==null?void 0:y.call(x,V,n,this.state.context)),await((k=(b=T(this,Et).config).onSettled)==null?void 0:k.call(b,V,null,this.state.variables,this.state.context,this)),await((j=(E=this.options).onSettled)==null?void 0:j.call(E,V,null,n,this.state.context)),_e(this,Sr,gn).call(this,{type:"success",data:V}),V}catch(V){try{throw await((C=(S=T(this,Et).config).onError)==null?void 0:C.call(S,V,n,this.state.context,this)),await((N=(M=this.options).onError)==null?void 0:N.call(M,V,n,this.state.context)),await((D=(A=T(this,Et).config).onSettled)==null?void 0:D.call(A,void 0,V,this.state.variables,this.state.context,this)),await((I=(U=this.options).onSettled)==null?void 0:I.call(U,void 0,V,n,this.state.context)),V}finally{_e(this,Sr,gn).call(this,{type:"error",error:V})}}finally{T(this,Et).runNext(this)}}},jr=new WeakMap,Et=new WeakMap,Zn=new WeakMap,Sr=new WeakSet,gn=function(n){const s=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ot.batch(()=>{T(this,jr).forEach(a=>{a.onMutationUpdate(n)}),T(this,Et).notify({mutation:this,type:"updated",action:n})})},Sv);function Kv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ur,lr,Ti,kv,pj=(kv=class extends po{constructor(n={}){super();me(this,Ur);me(this,lr);me(this,Ti);this.config=n,re(this,Ur,new Set),re(this,lr,new Map),re(this,Ti,0)}build(n,s,a){const c=new hj({mutationCache:this,mutationId:++el(this,Ti)._,options:n.defaultMutationOptions(s),state:a});return this.add(c),c}add(n){T(this,Ur).add(n);const s=rl(n);if(typeof s=="string"){const a=T(this,lr).get(s);a?a.push(n):T(this,lr).set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(T(this,Ur).delete(n)){const s=rl(n);if(typeof s=="string"){const a=T(this,lr).get(s);if(a)if(a.length>1){const c=a.indexOf(n);c!==-1&&a.splice(c,1)}else a[0]===n&&T(this,lr).delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=rl(n);if(typeof s=="string"){const a=T(this,lr).get(s),c=a==null?void 0:a.find(u=>u.state.status==="pending");return!c||c===n}else return!0}runNext(n){var a;const s=rl(n);if(typeof s=="string"){const c=(a=T(this,lr).get(s))==null?void 0:a.find(u=>u!==n&&u.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ot.batch(()=>{T(this,Ur).forEach(n=>{this.notify({type:"removed",mutation:n})}),T(this,Ur).clear(),T(this,lr).clear()})}getAll(){return Array.from(T(this,Ur))}find(n){const s={exact:!0,...n};return this.getAll().find(a=>fg(s,a))}findAll(n={}){return this.getAll().filter(s=>fg(n,s))}notify(n){ot.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return ot.batch(()=>Promise.all(n.map(s=>s.continue().catch(Jt))))}},Ur=new WeakMap,lr=new WeakMap,Ti=new WeakMap,kv);function rl(t){var n;return(n=t.options.scope)==null?void 0:n.id}function mg(t){return{onFetch:(n,s)=>{var x,y,b,k,E;const a=n.options,c=(b=(y=(x=n.fetchOptions)==null?void 0:x.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,u=((k=n.state.data)==null?void 0:k.pages)||[],f=((E=n.state.data)==null?void 0:E.pageParams)||[];let h={pages:[],pageParams:[]},g=0;const v=async()=>{let j=!1;const S=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(n.signal.aborted?j=!0:n.signal.addEventListener("abort",()=>{j=!0}),n.signal)})},C=Uv(n.options,n.fetchOptions),M=async(N,A,D)=>{if(j)return Promise.reject();if(A==null&&N.pages.length)return Promise.resolve(N);const U={client:n.client,queryKey:n.queryKey,pageParam:A,direction:D?"backward":"forward",meta:n.options.meta};S(U);const I=await C(U),{maxPages:V}=n.options,Q=D?sj:nj;return{pages:Q(N.pages,I,V),pageParams:Q(N.pageParams,A,V)}};if(c&&u.length){const N=c==="backward",A=N?mj:gg,D={pages:u,pageParams:f},U=A(a,D);h=await M(D,U,N)}else{const N=t??u.length;do{const A=g===0?f[0]??a.initialPageParam:gg(a,h);if(g>0&&A==null)break;h=await M(h,A),g++}while(g<N)}return h};n.options.persister?n.fetchFn=()=>{var j,S;return(S=(j=n.options).persister)==null?void 0:S.call(j,v,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},s)}:n.fetchFn=v}}}function gg(t,{pages:n,pageParams:s}){const a=n.length-1;return n.length>0?t.getNextPageParam(n[a],n,s[a],s):void 0}function mj(t,{pages:n,pageParams:s}){var a;return n.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,n[0],n,s[0],s):void 0}var Xe,wn,bn,to,ro,jn,no,so,Ev,gj=(Ev=class{constructor(t={}){me(this,Xe);me(this,wn);me(this,bn);me(this,to);me(this,ro);me(this,jn);me(this,no);me(this,so);re(this,Xe,t.queryCache||new fj),re(this,wn,t.mutationCache||new pj),re(this,bn,t.defaultOptions||{}),re(this,to,new Map),re(this,ro,new Map),re(this,jn,0)}mount(){el(this,jn)._++,T(this,jn)===1&&(re(this,no,hf.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,Xe).onFocus())})),re(this,so,El.subscribe(async t=>{t&&(await this.resumePausedMutations(),T(this,Xe).onOnline())})))}unmount(){var t,n;el(this,jn)._--,T(this,jn)===0&&((t=T(this,no))==null||t.call(this),re(this,no,void 0),(n=T(this,so))==null||n.call(this),re(this,so,void 0))}isFetching(t){return T(this,Xe).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return T(this,wn).findAll({...t,status:"pending"}).length}getQueryData(t){var s;const n=this.defaultQueryOptions({queryKey:t});return(s=T(this,Xe).get(n.queryHash))==null?void 0:s.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),s=T(this,Xe).build(this,n),a=s.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Hs(n.staleTime,s))&&this.prefetchQuery(n),Promise.resolve(a))}getQueriesData(t){return T(this,Xe).findAll(t).map(({queryKey:n,state:s})=>{const a=s.data;return[n,a]})}setQueryData(t,n,s){const a=this.defaultQueryOptions({queryKey:t}),c=T(this,Xe).get(a.queryHash),u=c==null?void 0:c.state.data,f=tj(n,u);if(f!==void 0)return T(this,Xe).build(this,a).setData(f,{...s,manual:!0})}setQueriesData(t,n,s){return ot.batch(()=>T(this,Xe).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,n,s)]))}getQueryState(t){var s;const n=this.defaultQueryOptions({queryKey:t});return(s=T(this,Xe).get(n.queryHash))==null?void 0:s.state}removeQueries(t){const n=T(this,Xe);ot.batch(()=>{n.findAll(t).forEach(s=>{n.remove(s)})})}resetQueries(t,n){const s=T(this,Xe);return ot.batch(()=>(s.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const s={revert:!0,...n},a=ot.batch(()=>T(this,Xe).findAll(t).map(c=>c.cancel(s)));return Promise.all(a).then(Jt).catch(Jt)}invalidateQueries(t,n={}){return ot.batch(()=>(T(this,Xe).findAll(t).forEach(s=>{s.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},n)))}refetchQueries(t,n={}){const s={...n,cancelRefetch:n.cancelRefetch??!0},a=ot.batch(()=>T(this,Xe).findAll(t).filter(c=>!c.isDisabled()).map(c=>{let u=c.fetch(void 0,s);return s.throwOnError||(u=u.catch(Jt)),c.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(a).then(Jt)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const s=T(this,Xe).build(this,n);return s.isStaleByTime(Hs(n.staleTime,s))?s.fetch(n):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Jt).catch(Jt)}fetchInfiniteQuery(t){return t.behavior=mg(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Jt).catch(Jt)}ensureInfiniteQueryData(t){return t.behavior=mg(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return El.isOnline()?T(this,wn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Xe)}getMutationCache(){return T(this,wn)}getDefaultOptions(){return T(this,bn)}setDefaultOptions(t){re(this,bn,t)}setQueryDefaults(t,n){T(this,to).set(is(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...T(this,to).values()],s={};return n.forEach(a=>{ji(t,a.queryKey)&&Object.assign(s,a.defaultOptions)}),s}setMutationDefaults(t,n){T(this,ro).set(is(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...T(this,ro).values()],s={};return n.forEach(a=>{ji(t,a.mutationKey)&&Object.assign(s,a.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const n={...T(this,bn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=df(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ff&&(n.enabled=!1),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...T(this,bn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){T(this,Xe).clear(),T(this,wn).clear()}},Xe=new WeakMap,wn=new WeakMap,bn=new WeakMap,to=new WeakMap,ro=new WeakMap,jn=new WeakMap,no=new WeakMap,so=new WeakMap,Ev),It,Oe,Pi,_t,es,oo,Sn,kr,Ri,io,ao,ts,rs,kn,lo,ze,vi,Pd,Rd,Ad,Od,Id,Md,Dd,qv,_v,vj=(_v=class extends po{constructor(n,s){super();me(this,ze);me(this,It);me(this,Oe);me(this,Pi);me(this,_t);me(this,es);me(this,oo);me(this,Sn);me(this,kr);me(this,Ri);me(this,io);me(this,ao);me(this,ts);me(this,rs);me(this,kn);me(this,lo,new Set);this.options=s,re(this,It,n),re(this,kr,null),re(this,Sn,Td()),this.options.experimental_prefetchInRender||T(this,Sn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Oe).addObserver(this),vg(T(this,Oe),this.options)?_e(this,ze,vi).call(this):this.updateResult(),_e(this,ze,Od).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ld(T(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ld(T(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_e(this,ze,Id).call(this),_e(this,ze,Md).call(this),T(this,Oe).removeObserver(this)}setOptions(n){const s=this.options,a=T(this,Oe);if(this.options=T(this,It).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cr(this.options.enabled,T(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_e(this,ze,Dd).call(this),T(this,Oe).setOptions(this.options),s._defaulted&&!kl(this.options,s)&&T(this,It).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Oe),observer:this});const c=this.hasListeners();c&&yg(T(this,Oe),a,this.options,s)&&_e(this,ze,vi).call(this),this.updateResult(),c&&(T(this,Oe)!==a||cr(this.options.enabled,T(this,Oe))!==cr(s.enabled,T(this,Oe))||Hs(this.options.staleTime,T(this,Oe))!==Hs(s.staleTime,T(this,Oe)))&&_e(this,ze,Pd).call(this);const u=_e(this,ze,Rd).call(this);c&&(T(this,Oe)!==a||cr(this.options.enabled,T(this,Oe))!==cr(s.enabled,T(this,Oe))||u!==T(this,kn))&&_e(this,ze,Ad).call(this,u)}getOptimisticResult(n){const s=T(this,It).getQueryCache().build(T(this,It),n),a=this.createResult(s,n);return xj(this,a)&&(re(this,_t,a),re(this,oo,this.options),re(this,es,T(this,Oe).state)),a}getCurrentResult(){return T(this,_t)}trackResult(n,s){const a={};return Object.keys(n).forEach(c=>{Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),s==null||s(c),n[c])})}),a}trackProp(n){T(this,lo).add(n)}getCurrentQuery(){return T(this,Oe)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=T(this,It).defaultQueryOptions(n),a=T(this,It).getQueryCache().build(T(this,It),s);return a.fetch().then(()=>this.createResult(a,s))}fetch(n){return _e(this,ze,vi).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,_t)))}createResult(n,s){var V;const a=T(this,Oe),c=this.options,u=T(this,_t),f=T(this,es),h=T(this,oo),v=n!==a?n.state:T(this,Pi),{state:x}=n;let y={...x},b=!1,k;if(s._optimisticResults){const Q=this.hasListeners(),Z=!Q&&vg(n,s),le=Q&&yg(n,a,s,c);(Z||le)&&(y={...y,...Wv(x.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:j,status:S}=y;if(s.select&&y.data!==void 0)if(u&&y.data===(f==null?void 0:f.data)&&s.select===T(this,Ri))k=T(this,io);else try{re(this,Ri,s.select),k=s.select(y.data),k=Nd(u==null?void 0:u.data,k,s),re(this,io,k),re(this,kr,null)}catch(Q){re(this,kr,Q)}else k=y.data;if(s.placeholderData!==void 0&&k===void 0&&S==="pending"){let Q;if(u!=null&&u.isPlaceholderData&&s.placeholderData===(h==null?void 0:h.placeholderData))Q=u.data;else if(Q=typeof s.placeholderData=="function"?s.placeholderData((V=T(this,ao))==null?void 0:V.state.data,T(this,ao)):s.placeholderData,s.select&&Q!==void 0)try{Q=s.select(Q),re(this,kr,null)}catch(Z){re(this,kr,Z)}Q!==void 0&&(S="success",k=Nd(u==null?void 0:u.data,Q,s),b=!0)}T(this,kr)&&(E=T(this,kr),k=T(this,io),j=Date.now(),S="error");const C=y.fetchStatus==="fetching",M=S==="pending",N=S==="error",A=M&&C,D=k!==void 0,I={status:S,fetchStatus:y.fetchStatus,isPending:M,isSuccess:S==="success",isError:N,isInitialLoading:A,isLoading:A,data:k,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>v.dataUpdateCount||y.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!M,isLoadingError:N&&!D,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:N&&D,isStale:pf(n,s),refetch:this.refetch,promise:T(this,Sn)};if(this.options.experimental_prefetchInRender){const Q=te=>{I.status==="error"?te.reject(I.error):I.data!==void 0&&te.resolve(I.data)},Z=()=>{const te=re(this,Sn,I.promise=Td());Q(te)},le=T(this,Sn);switch(le.status){case"pending":n.queryHash===a.queryHash&&Q(le);break;case"fulfilled":(I.status==="error"||I.data!==le.value)&&Z();break;case"rejected":(I.status!=="error"||I.error!==le.reason)&&Z();break}}return I}updateResult(){const n=T(this,_t),s=this.createResult(T(this,Oe),this.options);if(re(this,es,T(this,Oe).state),re(this,oo,this.options),T(this,es).data!==void 0&&re(this,ao,T(this,Oe)),kl(s,n))return;re(this,_t,s);const a=()=>{if(!n)return!0;const{notifyOnChangeProps:c}=this.options,u=typeof c=="function"?c():c;if(u==="all"||!u&&!T(this,lo).size)return!0;const f=new Set(u??T(this,lo));return this.options.throwOnError&&f.add("error"),Object.keys(T(this,_t)).some(h=>{const g=h;return T(this,_t)[g]!==n[g]&&f.has(g)})};_e(this,ze,qv).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_e(this,ze,Od).call(this)}},It=new WeakMap,Oe=new WeakMap,Pi=new WeakMap,_t=new WeakMap,es=new WeakMap,oo=new WeakMap,Sn=new WeakMap,kr=new WeakMap,Ri=new WeakMap,io=new WeakMap,ao=new WeakMap,ts=new WeakMap,rs=new WeakMap,kn=new WeakMap,lo=new WeakMap,ze=new WeakSet,vi=function(n){_e(this,ze,Dd).call(this);let s=T(this,Oe).fetch(this.options,n);return n!=null&&n.throwOnError||(s=s.catch(Jt)),s},Pd=function(){_e(this,ze,Id).call(this);const n=Hs(this.options.staleTime,T(this,Oe));if(os||T(this,_t).isStale||!_d(n))return;const a=Fv(T(this,_t).dataUpdatedAt,n)+1;re(this,ts,setTimeout(()=>{T(this,_t).isStale||this.updateResult()},a))},Rd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Oe)):this.options.refetchInterval)??!1},Ad=function(n){_e(this,ze,Md).call(this),re(this,kn,n),!(os||cr(this.options.enabled,T(this,Oe))===!1||!_d(T(this,kn))||T(this,kn)===0)&&re(this,rs,setInterval(()=>{(this.options.refetchIntervalInBackground||hf.isFocused())&&_e(this,ze,vi).call(this)},T(this,kn)))},Od=function(){_e(this,ze,Pd).call(this),_e(this,ze,Ad).call(this,_e(this,ze,Rd).call(this))},Id=function(){T(this,ts)&&(clearTimeout(T(this,ts)),re(this,ts,void 0))},Md=function(){T(this,rs)&&(clearInterval(T(this,rs)),re(this,rs,void 0))},Dd=function(){const n=T(this,It).getQueryCache().build(T(this,It),this.options);if(n===T(this,Oe))return;const s=T(this,Oe);re(this,Oe,n),re(this,Pi,n.state),this.hasListeners()&&(s==null||s.removeObserver(this),n.addObserver(this))},qv=function(n){ot.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(T(this,_t))}),T(this,It).getQueryCache().notify({query:T(this,Oe),type:"observerResultsUpdated"})})},_v);function yj(t,n){return cr(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function vg(t,n){return yj(t,n)||t.state.data!==void 0&&Ld(t,n,n.refetchOnMount)}function Ld(t,n,s){if(cr(n.enabled,t)!==!1){const a=typeof s=="function"?s(t):s;return a==="always"||a!==!1&&pf(t,n)}return!1}function yg(t,n,s,a){return(t!==n||cr(a.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&pf(t,s)}function pf(t,n){return cr(n.enabled,t)!==!1&&t.isStaleByTime(Hs(n.staleTime,t))}function xj(t,n){return!kl(t.getCurrentResult(),n)}var En,_n,Mt,Vr,Hr,gl,Fd,Cv,wj=(Cv=class extends po{constructor(s,a){super();me(this,Hr);me(this,En);me(this,_n);me(this,Mt);me(this,Vr);re(this,En,s),this.setOptions(a),this.bindMethods(),_e(this,Hr,gl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var c;const a=this.options;this.options=T(this,En).defaultMutationOptions(s),kl(this.options,a)||T(this,En).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,Mt),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&is(a.mutationKey)!==is(this.options.mutationKey)?this.reset():((c=T(this,Mt))==null?void 0:c.state.status)==="pending"&&T(this,Mt).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=T(this,Mt))==null||s.removeObserver(this)}onMutationUpdate(s){_e(this,Hr,gl).call(this),_e(this,Hr,Fd).call(this,s)}getCurrentResult(){return T(this,_n)}reset(){var s;(s=T(this,Mt))==null||s.removeObserver(this),re(this,Mt,void 0),_e(this,Hr,gl).call(this),_e(this,Hr,Fd).call(this)}mutate(s,a){var c;return re(this,Vr,a),(c=T(this,Mt))==null||c.removeObserver(this),re(this,Mt,T(this,En).getMutationCache().build(T(this,En),this.options)),T(this,Mt).addObserver(this),T(this,Mt).execute(s)}},En=new WeakMap,_n=new WeakMap,Mt=new WeakMap,Vr=new WeakMap,Hr=new WeakSet,gl=function(){var a;const s=((a=T(this,Mt))==null?void 0:a.state)??Kv();re(this,_n,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},Fd=function(s){ot.batch(()=>{var a,c,u,f,h,g,v,x;if(T(this,Vr)&&this.hasListeners()){const y=T(this,_n).variables,b=T(this,_n).context;(s==null?void 0:s.type)==="success"?((c=(a=T(this,Vr)).onSuccess)==null||c.call(a,s.data,y,b),(f=(u=T(this,Vr)).onSettled)==null||f.call(u,s.data,null,y,b)):(s==null?void 0:s.type)==="error"&&((g=(h=T(this,Vr)).onError)==null||g.call(h,s.error,y,b),(x=(v=T(this,Vr)).onSettled)==null||x.call(v,void 0,s.error,y,b))}this.listeners.forEach(y=>{y(T(this,_n))})})},Cv),Gv=m.createContext(void 0),Ii=t=>{const n=m.useContext(Gv);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},bj=({client:t,children:n})=>(m.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),i.jsx(Gv.Provider,{value:t,children:n})),Qv=m.createContext(!1),jj=()=>m.useContext(Qv);Qv.Provider;function Sj(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var kj=m.createContext(Sj()),Ej=()=>m.useContext(kj);function Yv(t,n){return typeof t=="function"?t(...n):!!t}function zd(){}var _j=(t,n)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(n.isReset()||(t.retryOnMount=!1))},Cj=t=>{m.useEffect(()=>{t.clearReset()},[t])},Nj=({result:t,errorResetBoundary:n,throwOnError:s,query:a,suspense:c})=>t.isError&&!n.isReset()&&!t.isFetching&&a&&(c&&t.data===void 0||Yv(s,[t.error,a])),Tj=t=>{const n=t.staleTime;t.suspense&&(t.staleTime=typeof n=="function"?(...s)=>Math.max(n(...s),1e3):Math.max(n??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Pj=(t,n)=>t.isLoading&&t.isFetching&&!n,Rj=(t,n)=>(t==null?void 0:t.suspense)&&n.isPending,xg=(t,n,s)=>n.fetchOptimistic(t).catch(()=>{s.clearReset()});function Aj(t,n,s){var y,b,k,E,j;const a=Ii(),c=jj(),u=Ej(),f=a.defaultQueryOptions(t);(b=(y=a.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||b.call(y,f),f._optimisticResults=c?"isRestoring":"optimistic",Tj(f),_j(f,u),Cj(u);const h=!a.getQueryCache().get(f.queryHash),[g]=m.useState(()=>new n(a,f)),v=g.getOptimisticResult(f),x=!c&&t.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(S=>{const C=x?g.subscribe(ot.batchCalls(S)):zd;return g.updateResult(),C},[g,x]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),m.useEffect(()=>{g.setOptions(f)},[f,g]),Rj(f,v))throw xg(f,g,u);if(Nj({result:v,errorResetBoundary:u,throwOnError:f.throwOnError,query:a.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw v.error;if((E=(k=a.getDefaultOptions().queries)==null?void 0:k._experimental_afterQuery)==null||E.call(k,f,v),f.experimental_prefetchInRender&&!os&&Pj(v,c)){const S=h?xg(f,g,u):(j=a.getQueryCache().get(f.queryHash))==null?void 0:j.promise;S==null||S.catch(zd).finally(()=>{g.updateResult()})}return f.notifyOnChangeProps?v:g.trackResult(v)}function $r(t,n){return Aj(t,vj)}function Dt(t,n){const s=Ii(),[a]=m.useState(()=>new wj(s,t));m.useEffect(()=>{a.setOptions(t)},[a,t]);const c=m.useSyncExternalStore(m.useCallback(f=>a.subscribe(ot.batchCalls(f)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),u=m.useCallback((f,h)=>{a.mutate(f,h).catch(zd)},[a]);if(c.error&&Yv(a.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:u,mutateAsync:c.mutate}}async function Xv(t){if(!t.ok){let n=t.statusText,s={};try{const u=await t.clone().text();try{const f=JSON.parse(u);f.message&&(n=f.message),s=f}catch{u&&u.length>0&&u!==t.statusText&&(n=u.trimStart().startsWith("<")?`Server error (${t.status}) â the app may be restarting. Please try again in a moment.`:u)}}catch{n=t.statusText}throw t.status===401&&(Ve.invalidateQueries({queryKey:["/api/user"]}),n="Session expired â please refresh the page"),Object.assign(new Error(n),s,{statusCode:t.status})}}const _R=18e4,CR=6e5;async function it(t,n,s,a={}){const c=s instanceof FormData,u=a.timeoutMs?AbortSignal.timeout(a.timeoutMs):void 0;try{const f=await fetch(n,{method:t,headers:c?{}:s?{"Content-Type":"application/json"}:{},body:c?s:s?JSON.stringify(s):void 0,credentials:"include",signal:u});return await Xv(f),f}catch(f){if(u!=null&&u.aborted&&a.timeoutMs){const h=a.timeoutMs%6e4===0?`${a.timeoutMs/6e4} minutes`:`${Math.ceil(a.timeoutMs/1e3)} seconds`;throw new Error(`Request timed out after ${h}. The server may still finish; check the result before retrying.`)}throw f}}
49const Oj=({on401:t})=>async({queryKey:n})=>{const s=await fetch(n[0],{credentials:"include"});return await Xv(s),await s.json()},Ve=new gj({defaultOptions:{queries:{queryFn:Oj({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}}),Ij=1,Mj=1e6;let Ju=0;function Dj(){return Ju=(Ju+1)%Number.MAX_SAFE_INTEGER,Ju.toString()}const Zu=new Map,wg=t=>{if(Zu.has(t))return;const n=setTimeout(()=>{Zu.delete(t),wi({type:"REMOVE_TOAST",toastId:t})},Mj);Zu.set(t,n)},Lj=(t,n)=>{switch(n.type){case"ADD_TOAST":return{...t,toasts:[n.toast,...t.toasts].slice(0,Ij)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===n.toast.id?{...s,...n.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=n;return s?wg(s):t.toasts.forEach(a=>{wg(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===s||s===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return n.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==n.toastId)}}},vl=[];let yl={toasts:[]};function wi(t){yl=Lj(yl,t),vl.forEach(n=>{n(yl)})}function dt({...t}){const n=Dj(),s=c=>wi({type:"UPDATE_TOAST",toast:{...c,id:n}}),a=()=>wi({type:"DISMISS_TOAST",toastId:n});return wi({type:"ADD_TOAST",toast:{...t,id:n,open:!0,onOpenChange:c=>{c||a()}}}),{id:n,dismiss:a,update:s}}function Mi(){const[t,n]=m.useState(yl);return m.useEffect(()=>(vl.push(n),()=>{const s=vl.indexOf(n);s>-1&&vl.splice(s,1)}),[t]),{...t,toast:dt,dismiss:s=>wi({type:"DISMISS_TOAST",toastId:s})}}var Ll=Nv();const Fj=Ai(Ll);function we(t,n,{checkForDefaultPrevented:s=!0}={}){return function(c){if(t==null||t(c),s===!1||!c.defaultPrevented)return n==null?void 0:n(c)}}function bg(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function Fl(...t){return n=>{let s=!1;const a=t.map(c=>{const u=bg(c,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let c=0;c<a.length;c++){const u=a[c];typeof u=="function"?u():bg(t[c],null)}}}}function at(...t){return m.useCallback(Fl(...t),t)}function zj(t,n){const s=m.createContext(n),a=u=>{const{children:f,...h}=u,g=m.useMemo(()=>h,Object.values(h));return i.jsx(s.Provider,{value:g,children:f})};a.displayName=t+"Provider";function c(u){const f=m.useContext(s);if(f)return f;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[a,c]}function An(t,n=[]){let s=[];function a(u,f){const h=m.createContext(f),g=s.length;s=[...s,f];const v=y=>{var C;const{scope:b,children:k,...E}=y,j=((C=b==null?void 0:b[t])==null?void 0:C[g])||h,S=m.useMemo(()=>E,Object.values(E));return i.jsx(j.Provider,{value:S,children:k})};v.displayName=u+"Provider";function x(y,b){var j;const k=((j=b==null?void 0:b[t])==null?void 0:j[g])||h,E=m.useContext(k);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[v,x]}const c=()=>{const u=s.map(f=>m.createContext(f));return function(h){const g=(h==null?void 0:h[t])||u;return m.useMemo(()=>({[`__scope${t}`]:{...h,[t]:g}}),[h,g])}};return c.scopeName=t,[a,Uj(c,...n)]}function Uj(...t){const n=t[0];if(t.length===1)return n;const s=()=>{const a=t.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const f=a.reduce((h,{useScope:g,scopeName:v})=>{const y=g(u)[`__scope${v}`];return{...h,...y}},{});return m.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return s.scopeName=n.scopeName,s}function co(t){const n=$j(t),s=m.forwardRef((a,c)=>{const{children:u,...f}=a,h=m.Children.toArray(u),g=h.find(Hj);if(g){const v=g.props.children,x=h.map(y=>y===g?m.Children.count(v)>1?m.Children.only(null):m.isValidElement(v)?v.props.children:null:y);return i.jsx(n,{...f,ref:c,children:m.isValidElement(v)?m.cloneElement(v,void 0,x):null})}return i.jsx(n,{...f,ref:c,children:u})});return s.displayName=`${t}.Slot`,s}var Vj=co("Slot");function $j(t){const n=m.forwardRef((s,a)=>{const{children:c,...u}=s;if(m.isValidElement(c)){const f=Wj(c),h=Bj(u,c.props);return c.type!==m.Fragment&&(h.ref=a?Fl(a,f):f),m.cloneElement(c,h)}return m.Children.count(c)>1?m.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Jv=Symbol("radix.slottable");function NR(t){const n=({children:s})=>i.jsx(i.Fragment,{children:s});return n.displayName=`${t}.Slottable`,n.__radixId=Jv,n}function Hj(t){return m.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Jv}function Bj(t,n){const s={...n};for(const a in n){const c=t[a],u=n[a];/^on[A-Z]/.test(a)?c&&u?s[a]=(...h)=>{u(...h),c(...h)}:c&&(s[a]=c):a==="style"?s[a]={...c,...u}
vendor: 8,524 bytes, line 49
49:a==="className"&&(s[a]=[c,u].filter(Boolean).join(" "))}return{...t,...s}}function Wj(t){var a,c;let n=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}function mf(t){const n=t+"CollectionProvider",[s,a]=An(n),[c,u]=s(n,{collectionRef:{current:null},itemMap:new Map}),f=j=>{const{scope:S,children:C}=j,M=bt.useRef(null),N=bt.useRef(new Map).current;return i.jsx(c,{scope:S,itemMap:N,collectionRef:M,children:C})};f.displayName=n;const h=t+"CollectionSlot",g=co(h),v=bt.forwardRef((j,S)=>{const{scope:C,children:M}=j,N=u(h,C),A=at(S,N.collectionRef);return i.jsx(g,{ref:A,children:M})});v.displayName=h;const x=t+"CollectionItemSlot",y="data-radix-collection-item",b=co(x),k=bt.forwardRef((j,S)=>{const{scope:C,children:M,...N}=j,A=bt.useRef(null),D=at(S,A),U=u(x,C);return bt.useEffect(()=>(U.itemMap.set(A,{ref:A,...N}),()=>void U.itemMap.delete(A))),i.jsx(b,{[y]:"",ref:D,children:M})});k.displayName=x;function E(j){const S=u(t+"CollectionConsumer",j);return bt.useCallback(()=>{const M=S.collectionRef.current;if(!M)return[];const N=Array.from(M.querySelectorAll(`[${y}]`));return Array.from(S.itemMap.values()).sort((U,I)=>N.indexOf(U.ref.current)-N.indexOf(I.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:f,Slot:v,ItemSlot:k},E,a]}var Kj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Le=Kj.reduce((t,n)=>{const s=co(`Primitive.${n}`),a=m.forwardRef((c,u)=>{const{asChild:f,...h}=c,g=f?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(g,{...h,ref:u})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{});function gf(t,n){t&&Ll.flushSync(()=>t.dispatchEvent(n))}function jt(t){const n=m.useRef(t);return m.useEffect(()=>{n.current=t}),m.useMemo(()=>(...s)=>{var a;return(a=n.current)==null?void 0:a.call(n,...s)},[])}function qj(t,n=globalThis==null?void 0:globalThis.document){const s=jt(t);m.useEffect(()=>{const a=c=>{c.key==="Escape"&&s(c)};return n.addEventListener("keydown",a,{capture:!0}),()=>n.removeEventListener("keydown",a,{capture:!0})},[s,n])}var Gj="DismissableLayer",Ud="dismissableLayer.update",Qj="dismissableLayer.pointerDownOutside",Yj="dismissableLayer.focusOutside",jg,Zv=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zl=m.forwardRef((t,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...g}=t,v=m.useContext(Zv),[x,y]=m.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=m.useState({}),E=at(n,I=>y(I)),j=Array.from(v.layers),[S]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),C=j.indexOf(S),M=x?j.indexOf(x):-1,N=v.layersWithOutsidePointerEventsDisabled.size>0,A=M>=C,D=Jj(I=>{const V=I.target,Q=[...v.branches].some(Z=>Z.contains(V));!A||Q||(c==null||c(I),f==null||f(I),I.defaultPrevented||h==null||h())},b),U=Zj(I=>{const V=I.target;[...v.branches].some(Z=>Z.contains(V))||(u==null||u(I),f==null||f(I),I.defaultPrevented||h==null||h())},b);return qj(I=>{M===v.layers.size-1&&(a==null||a(I),!I.defaultPrevented&&h&&(I.preventDefault(),h()))},b),m.useEffect(()=>{if(x)return s&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(jg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(x)),v.layers.add(x),Sg(),()=>{s&&v.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=jg)}},[x,b,s,v]),m.useEffect(()=>()=>{x&&(v.layers.delete(x),v.layersWithOutsidePointerEventsDisabled.delete(x),Sg())},[x,v]),m.useEffect(()=>{const I=()=>k({});return document.addEventListener(Ud,I),()=>document.removeEventListener(Ud,I)},[]),i.jsx(Le.div,{...g,ref:E,style:{pointerEvents:N?A?"auto":"none":void 0,...t.style},onFocusCapture:we(t.onFocusCapture,U.onFocusCapture),onBlurCapture:we(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:we(t.onPointerDownCapture,D.onPointerDownCapture)})});zl.displayName=Gj;var Xj="DismissableLayerBranch",ey=m.forwardRef((t,n)=>{const s=m.useContext(Zv),a=m.useRef(null),c=at(n,a);return m.useEffect(()=>{const u=a.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),i.jsx(Le.div,{...t,ref:c})});ey.displayName=Xj;function Jj(t,n=globalThis==null?void 0:globalThis.document){const s=jt(t),a=m.useRef(!1),c=m.useRef(()=>{});return m.useEffect(()=>{const u=h=>{if(h.target&&!a.current){let g=function(){ty(Qj,s,v,{discrete:!0})};const v={originalEvent:h};h.pointerType==="touch"?(n.removeEventListener("click",c.current),c.current=g,n.addEventListener("click",c.current,{once:!0})):g()}else n.removeEventListener("click",c.current);a.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",u),n.removeEventListener("click",c.current)}},[n,s]),{onPointerDownCapture:()=>a.current=!0}}function Zj(t,n=globalThis==null?void 0:globalThis.document){const s=jt(t),a=m.useRef(!1);return m.useEffect(()=>{const c=u=>{u.target&&!a.current&&ty(Yj,s,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",c),()=>n.removeEventListener("focusin",c)},[n,s]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Sg(){const t=new CustomEvent(Ud);document.dispatchEvent(t)}function ty(t,n,s,{discrete:a}){const c=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});n&&c.addEventListener(t,n,{once:!0}),a?gf(c,u):c.dispatchEvent(u)}var eS=zl,tS=ey,dr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},rS="Portal",Ul=m.forwardRef((t,n)=>{var h;const{container:s,...a}=t,[c,u]=m.useState(!1);dr(()=>u(!0),[]);const f=s||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?Fj.createPortal(i.jsx(Le.div,{...a,ref:n}),f):null});Ul.displayName=rS;function nS(t,n){return m.useReducer((s,a)=>n[s][a]??s,t)}var Kr=t=>{const{present:n,children:s}=t,a=sS(n),c=typeof s=="function"?s({present:a.isPresent}):m.Children.only(s),u=at(a.ref,oS(c));return typeof s=="function"||a.isPresent?m.cloneElement(c,{ref:u}):null};Kr.displayName="Presence";function sS(t){const[n,s]=m.useState(),a=m.useRef({}),c=m.useRef(t),u=m.useRef("none"),f=t?"mounted":"unmounted",[h,g]=nS(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const v=nl(a.current);u.current=h==="mounted"?v:"none"},[h]),dr(()=>{const v=a.current,x=c.current;if(x!==t){const b=u.current,k=nl(v);t?g("MOUNT"):k==="none"||(v==null?void 0:v.display)==="none"?g("UNMOUNT"):g(x&&b!==k?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,g]),dr(()=>{if(n){let v;const x=n.ownerDocument.defaultView??window,y=k=>{const j=nl(a.current).includes(k.animationName);if(k.target===n&&j&&(g("ANIMATION_END"),!c.current)){const S=n.style.animationFillMode;n.style.animationFillMode="forwards",v=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=S)})}},b=k=>{k.target===n&&(u.current=nl(a.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{x.clearTimeout(v),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[n,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(v=>{v&&(a.current=getComputedStyle(v)),s(v)},[])}}function nl(t){return(t==null?void 0:t.animationName)||"none"}function oS(t){var a,c;let n=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}function Vl({prop:t,defaultProp:n,onChange:s=()=>{}}){const[a,c]=iS({defaultProp:n,onChange:s}),u=t!==void 0,f=u?t:a,h=jt(s),g=m.useCallback(v=>{if(u){const y=typeof v=="function"?v(t):v;y!==t&&h(y)}else c(v)},[u,t,c,h]);return[f,g]}function iS({defaultProp:t,onChange:n}){const s=m.useState(t),[a]=s,c=m.useRef(a),u=jt(n);return m.useEffect(()=>{c.current!==a&&(u(a),c.current=a)},[a,c,u]),s}
49var aS="VisuallyHidden",$l=m.forwardRef((t,n)=>i.jsx(Le.span,{...t,ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));$l.displayName=aS;var TR=$l,vf="ToastProvider",[yf,lS,cS]=mf("Toast"),[ry]=An("Toast",[cS]),[uS,Hl]=ry(vf),ny=t=>{const{__scopeToast:n,label:s="Notification",duration:a=5e3,swipeDirection:c="right",swipeThreshold:u=50,children:f}=t,[h,g]=m.useState(null),[v,x]=m.useState(0),y=m.useRef(!1),b=m.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${vf}\`. Expected non-empty \`string\`.`),i.jsx(yf.Provider,{scope:n,children:i.jsx(uS,{scope:n,label:s,duration:a,swipeDirection:c,swipeThreshold:u,toastCount:v,viewport:h,onViewportChange:g,onToastAdd:m.useCallback(()=>x(k=>k+1),[]),onToastRemove:m.useCallback(()=>x(k=>k-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:f})})};ny.displayName=vf;var sy="ToastViewport",dS=["F8"],Vd="toast.viewportPause",$d="toast.viewportResume",oy=m.forwardRef((t,n)=>{const{__scopeToast:s,hotkey:a=dS,label:c="Notifications ({hotkey})",...u}=t,f=Hl(sy,s),h=lS(s),g=m.useRef(null),v=m.useRef(null),x=m.useRef(null),y=m.useRef(null),b=at(n,y,f.onViewportChange),k=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=f.toastCount>0;m.useEffect(()=>{const S=C=>{var N;a.length!==0&&a.every(A=>C[A]||C.code===A)&&((N=y.current)==null||N.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[a]),m.useEffect(()=>{const S=g.current,C=y.current;if(E&&S&&C){const M=()=>{if(!f.isClosePausedRef.current){const U=new CustomEvent(Vd);C.dispatchEvent(U),f.isClosePausedRef.current=!0}},N=()=>{if(f.isClosePausedRef.current){const U=new CustomEvent($d);C.dispatchEvent(U),f.isClosePausedRef.current=!1}},A=U=>{!S.contains(U.relatedTarget)&&N()},D=()=>{S.contains(document.activeElement)||N()};return S.addEventListener("focusin",M),S.addEventListener("focusout",A),S.addEventListener("pointermove",M),S.addEventListener("pointerleave",D),window.addEventListener("blur",M),window.addEventListener("focus",N),()=>{S.removeEventListener("focusin",M),S.removeEventListener("focusout",A),S.removeEventListener("pointermove",M),S.removeEventListener("pointerleave",D),window.removeEventListener("blur",M),window.removeEventListener("focus",N)}}},[E,f.isClosePausedRef]);const j=m.useCallback(({tabbingDirection:S})=>{const M=h().map(N=>{const A=N.ref.current,D=[A,...kS(A)];return S==="forwards"?D:D.reverse()});return(S==="forwards"?M.reverse():M).flat()},[h]);return m.useEffect(()=>{const S=y.current;if(S){const C=M=>{var D,U,I;const N=M.altKey||M.ctrlKey||M.metaKey;if(M.key==="Tab"&&!N){const V=document.activeElement,Q=M.shiftKey;if(M.target===S&&Q){(D=v.current)==null||D.focus();return}const te=j({tabbingDirection:Q?"backwards":"forwards"}),de=te.findIndex(ee=>ee===V);ed(te.slice(de+1))?M.preventDefault():Q?(U=v.current)==null||U.focus():(I=x.current)==null||I.focus()}};return S.addEventListener("keydown",C),()=>S.removeEventListener("keydown",C)}},[h,j]),i.jsxs(tS,{ref:g,role:"region","aria-label":c.replace("{hotkey}",k),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&i.jsx(Hd,{ref:v,onFocusFromOutsideViewport:()=>{const S=j({tabbingDirection:"forwards"});ed(S)}}),i.jsx(yf.Slot,{scope:s,children:i.jsx(Le.ol,{tabIndex:-1,...u,ref:b})}),E&&i.jsx(Hd,{ref:x,onFocusFromOutsideViewport:()=>{const S=j({tabbingDirection:"backwards"});ed(S)}})]})});oy.displayName=sy;var iy="ToastFocusProxy",Hd=m.forwardRef((t,n)=>{const{__scopeToast:s,onFocusFromOutsideViewport:a,...c}=t,u=Hl(iy,s);return i.jsx($l,{"aria-hidden":!0,tabIndex:0,...c,ref:n,style:{position:"fixed"},onFocus:f=>{var v;const h=f.relatedTarget;!((v=u.viewport)!=null&&v.contains(h))&&a()}})});Hd.displayName=iy;var Bl="Toast",fS="toast.swipeStart",hS="toast.swipeMove",pS="toast.swipeCancel",mS="toast.swipeEnd",ay=m.forwardRef((t,n)=>{const{forceMount:s,open:a,defaultOpen:c,onOpenChange:u,...f}=t,[h=!0,g]=Vl({prop:a,defaultProp:c,onChange:u});return i.jsx(Kr,{present:s||h,children:i.jsx(yS,{open:h,...f,ref:n,onClose:()=>g(!1),onPause:jt(t.onPause),onResume:jt(t.onResume),onSwipeStart:we(t.onSwipeStart,v=>{v.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:we(t.onSwipeMove,v=>{const{x,y}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","move"),v.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}
49),onSwipeCancel:we(t.onSwipeCancel,v=>{v.currentTarget.setAttribute("data-swipe","cancel"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:we(t.onSwipeEnd,v=>{const{x,y}=v.detail.delta;v.currentTarget.setAttribute("data-swipe","end"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),v.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),v.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),v.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),g(!1)})})})});ay.displayName=Bl;var[gS,vS]=ry(Bl,{onClose(){}}),yS=m.forwardRef((t,n)=>{const{__scopeToast:s,type:a="foreground",duration:c,open:u,onClose:f,onEscapeKeyDown:h,onPause:g,onResume:v,onSwipeStart:x,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:k,...E}=t,j=Hl(Bl,s),[S,C]=m.useState(null),M=at(n,ee=>C(ee)),N=m.useRef(null),A=m.useRef(null),D=c||j.duration,U=m.useRef(0),I=m.useRef(D),V=m.useRef(0),{onToastAdd:Q,onToastRemove:Z}=j,le=jt(()=>{var fe;(S==null?void 0:S.contains(document.activeElement))&&((fe=j.viewport)==null||fe.focus()),f()}),te=m.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(V.current),U.current=new Date().getTime(),V.current=window.setTimeout(le,ee))},[le]);m.useEffect(()=>{const ee=j.viewport;if(ee){const fe=()=>{te(I.current),v==null||v()},oe=()=>{const ue=new Date().getTime()-U.current;I.current=I.current-ue,window.clearTimeout(V.current),g==null||g()};return ee.addEventListener(Vd,oe),ee.addEventListener($d,fe),()=>{ee.removeEventListener(Vd,oe),ee.removeEventListener($d,fe)}}},[j.viewport,D,g,v,te]),m.useEffect(()=>{u&&!j.isClosePausedRef.current&&te(D)},[u,D,j.isClosePausedRef,te]),m.useEffect(()=>(Q(),()=>Z()),[Q,Z]);const de=m.useMemo(()=>S?py(S):null,[S]);return j.viewport?i.jsxs(i.Fragment,{children:[de&&i.jsx(xS,{__scopeToast:s,role:"status","aria-live":a==="foreground"?"assertive":"polite","aria-atomic":!0,children:de}),i.jsx(gS,{scope:s,onClose:le,children:Ll.createPortal(i.jsx(yf.ItemSlot,{scope:s,children:i.jsx(eS,{asChild:!0,onEscapeKeyDown:we(h,()=>{j.isFocusedToastEscapeKeyDownRef.current||le(),j.isFocusedToastEscapeKeyDownRef.current=!1}),children:i.jsx(Le.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":j.swipeDirection,...E,ref:M,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:we(t.onKeyDown,ee=>{ee.key==="Escape"&&(h==null||h(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(j.isFocusedToastEscapeKeyDownRef.current=!0,le()))}),onPointerDown:we(t.onPointerDown,ee=>{ee.button===0&&(N.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:we(t.onPointerMove,ee=>{if(!N.current)return;const fe=ee.clientX-N.current.x,oe=ee.clientY-N.current.y,ue=!!A.current,H=["left","right"].includes(j.swipeDirection),B=["left","up"].includes(j.swipeDirection)?Math.min:Math.max,Y=H?B(0,fe):0,R=H?0:B(0,oe),W=ee.pointerType==="touch"?10:2,ge={x:Y,y:R},xe={originalEvent:ee,delta:ge};ue?(A.current=ge,sl(hS,y,xe,{discrete:!1})):kg(ge,j.swipeDirection,W)?(A.current=ge,sl(fS,x,xe,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(fe)>W||Math.abs(oe)>W)&&(N.current=null)}),onPointerUp:we(t.onPointerUp,ee=>{const fe=A.current,oe=ee.target;if(oe.hasPointerCapture(ee.pointerId)&&oe.releasePointerCapture(ee.pointerId),A.current=null,N.current=null,fe){const ue=ee.currentTarget,H={originalEvent:ee,delta:fe};kg(fe,j.swipeDirection,j.swipeThreshold)?sl(mS,k,H,{discrete:!0}):sl(pS,b,H,{discrete:!0}),ue.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),j.viewport)})]}):null}),xS=t=>{const{__scopeToast:n,children:s,...a}=t,c=Hl(Bl,n),[u,f]=m.useState(!1),[h,g]=m.useState(!1);return jS(()=>f(!0)),m.useEffect(()=>{const v=window.setTimeout(()=>g(!0),1e3);return()=>window.clearTimeout(v)},[]),h?null:i.jsx(Ul,{asChild:!0,children:i.jsx($l,{...a,children:u&&i.jsxs(i.Fragment,{children:[c.label," ",s]})})})}
vendor: 8,912 bytes, lines 49-119
49,wS="ToastTitle",ly=m.forwardRef((t,n)=>{const{__scopeToast:s,...a}=t;return i.jsx(Le.div,{...a,ref:n})});ly.displayName=wS;var bS="ToastDescription",cy=m.forwardRef((t,n)=>{const{__scopeToast:s,...a}=t;return i.jsx(Le.div,{...a,ref:n})});cy.displayName=bS;var uy="ToastAction",dy=m.forwardRef((t,n)=>{const{altText:s,...a}=t;return s.trim()?i.jsx(hy,{altText:s,asChild:!0,children:i.jsx(xf,{...a,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${uy}\`. Expected non-empty \`string\`.`),null)});dy.displayName=uy;var fy="ToastClose",xf=m.forwardRef((t,n)=>{const{__scopeToast:s,...a}=t,c=vS(fy,s);return i.jsx(hy,{asChild:!0,children:i.jsx(Le.button,{type:"button",...a,ref:n,onClick:we(t.onClick,c.onClose)})})});xf.displayName=fy;var hy=m.forwardRef((t,n)=>{const{__scopeToast:s,altText:a,...c}=t;return i.jsx(Le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...c,ref:n})});function py(t){const n=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&n.push(a.textContent),SS(a)){const c=a.ariaHidden||a.hidden||a.style.display==="none",u=a.dataset.radixToastAnnounceExclude==="";if(!c)if(u){const f=a.dataset.radixToastAnnounceAlt;f&&n.push(f)}else n.push(...py(a))}}),n}function sl(t,n,s,{discrete:a}){const c=s.originalEvent.currentTarget,u=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:s});n&&c.addEventListener(t,n,{once:!0}),a?gf(c,u):c.dispatchEvent(u)}var kg=(t,n,s=0)=>{const a=Math.abs(t.x),c=Math.abs(t.y),u=a>c;return n==="left"||n==="right"?u&&a>s:!u&&c>s};function jS(t=()=>{}){const n=jt(t);dr(()=>{let s=0,a=0;return s=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(a)}},[n])}function SS(t){return t.nodeType===t.ELEMENT_NODE}function kS(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const c=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||c?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function ed(t){const n=document.activeElement;return t.some(s=>s===n?!0:(s.focus(),document.activeElement!==n))}var ES=ny,my=oy,gy=ay,vy=ly,yy=cy,xy=dy,wy=xf;function by(t){var n,s,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var c=t.length;for(n=0;n<c;n++)t[n]&&(s=by(t[n]))&&(a&&(a+=" "),a+=s)}else for(s in t)t[s]&&(a&&(a+=" "),a+=s);return a}function jy(){for(var t,n,s=0,a="",c=arguments.length;s<c;s++)(t=arguments[s])&&(n=by(t))&&(a&&(a+=" "),a+=n);return a}const Eg=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,_g=jy,wf=(t,n)=>s=>{var a;if((n==null?void 0:n.variants)==null)return _g(t,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:u}=n,f=Object.keys(c).map(v=>{const x=s==null?void 0:s[v],y=u==null?void 0:u[v];if(x===null)return null;const b=Eg(x)||Eg(y);return c[v][b]}),h=s&&Object.entries(s).reduce((v,x)=>{let[y,b]=x;return b===void 0||(v[y]=b),v},{}),g=n==null||(a=n.compoundVariants)===null||a===void 0?void 0:a.reduce((v,x)=>{let{class:y,className:b,...k}=x;return Object.entries(k).every(E=>{let[j,S]=E;return Array.isArray(S)?S.includes({...u,...h}[j]):{...u,...h}[j]===S})?[...v,y,b]:v},[]);return _g(t,f,g,s==null?void 0:s.class,s==null?void 0:s.className)};/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const _S=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sy=(...t)=>t.filter((n,s,a)=>!!n&&a.indexOf(n)===s).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var CS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const NS=m.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:c="",children:u,iconNode:f,...h},g)=>m.createElement("svg",{ref:g,...CS,width:n,height:n,stroke:t,strokeWidth:a?Number(s)*24/Number(n):s,className:Sy("lucide",c),...h},[...f.map(([v,x])=>m.createElement(v,x)),...Array.isArray(u)?u:[u]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const pe=(t,n)=>{const s=m.forwardRef(({className:a,...c},u)=>m.createElement(NS,{ref:u,iconNode:n,className:Sy(`lucide-${_S(t)}`,a),...c}));return s.displayName=`${t}`,s};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const bf=pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const ol=pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const uo=pe("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const bi=pe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const Cg=pe("BookType",[["path",{d:"M10 13h4",key:"ytezjc"}],["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8V6H8v2",key:"x8j6u4"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const TS=pe("BookmarkX",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m14.5 7.5-5 5",key:"3lb6iw"}],["path",{d:"m9.5 7.5 5 5",key:"ko136h"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const ky=pe("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const _l=pe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const Cl=pe("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const Ey=pe("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
119],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const PS=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const il=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const Nl=pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const _y=pe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const Ng=pe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const RS=pe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const AS=pe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const OS=pe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const Cy=pe("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const IS=pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const MS=pe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const DS=pe("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const LS=pe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const FS=pe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const Ny=pe("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const qn=pe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const zS=pe("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const US=pe("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const Ty=pe("Ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const VS=pe("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const Py=pe("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const $S=pe("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const HS=pe("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const Bd=pe("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const as=pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 245 * @license lucide-react v0.453.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree.
249 */const jf=pe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 250 * @license lucide-react v0.453.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree. 254 */const Wd=pe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 255 * @license lucide-react v0.453.0 - ISC 256 * 257 * This source code is licensed under the ISC license. 258 * See the LICENSE file in the root directory of this source tree. 259 */const Ry=pe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 260 * @license lucide-react v0.453.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree. 264 */const Gn=pe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 265 * @license lucide-react v0.453.0 - ISC 266 * 267 * This source code is licensed under the ISC license. 268 * See the LICENSE file in the root directory of this source tree. 269 */const Ay=pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 270 * @license lucide-react v0.453.0 - ISC 271 * 272 * This source code is licensed under the ISC license. 273 * See the LICENSE file in the root directory of this source tree. 274 */const BS=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 275 * @license lucide-react v0.453.0 - ISC 276 * 277 * This source code is licensed under the ISC license. 278 * See the LICENSE file in the root directory of this source tree. 279 */const WS=pe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 280 * @license lucide-react v0.453.0 - ISC 281 * 282 * This source code is licensed under the ISC license. 283 * See the LICENSE file in the root directory of this source tree. 284 */const Kd=pe("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 285 * @license lucide-react v0.453.0 - ISC 286 * 287 * This source code is licensed under the ISC license. 288 * See the LICENSE file in the root directory of this source tree. 289 */const KS=pe("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 290 * @license lucide-react v0.453.0 - ISC 291 * 292 * This source code is licensed under the ISC license. 293 * See the LICENSE file in the root directory of this source tree. 294 */const ss=pe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 295 * @license lucide-react v0.453.0 - ISC 296 * 297 * This source code is licensed under the ISC license. 298 * See the LICENSE file in the root directory of this source tree. 299 */const Si=pe("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 300 * @license lucide-react v0.453.0 - ISC 301 * 302 * This source code is licensed under the ISC license. 303 * See the LICENSE file in the root directory of this source tree. 304 */const Oy=pe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 305 * @license lucide-react v0.453.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const td=pe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 310 * @license lucide-react v0.453.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */const Iy=pe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 315 * @license lucide-react v0.453.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const qS=pe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 320 * @license lucide-react v0.453.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const Cn=pe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 325 * @license lucide-react v0.453.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const fo=pe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 330 * @license lucide-react v0.453.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const ls=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,649 bytes, lines 334-339
334],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 335 * @license lucide-react v0.453.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const My=pe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Sf="-",GS=t=>{const n=YS(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:f=>{const h=f.split(Sf);return h[0]===""&&h.length!==1&&h.shift(),Dy(h,n)||QS(f)},getConflictingClassGroupIds:(f,h)=>{const g=s[f]||[];return h&&a[f]?[...g,...a[f]]:g}}},Dy=(t,n)=>{var f;if(t.length===0)return n.classGroupId;const s=t[0],a=n.nextPart.get(s),c=a?Dy(t.slice(1),a):void 0;if(c)return c;if(n.validators.length===0)return;const u=t.join(Sf);return(f=n.validators.find(({validator:h})=>h(u)))==null?void 0:f.classGroupId},Tg=/^\[(.+)\]$/,QS=t=>{if(Tg.test(t)){const n=Tg.exec(t)[1],s=n==null?void 0:n.substring(0,n.indexOf(":"));if(s)return"arbitrary.."+s}},YS=t=>{const{theme:n,prefix:s}=t,a={nextPart:new Map,validators:[]};return JS(Object.entries(t.classGroups),s).forEach(([u,f])=>{qd(f,a,u,n)}),a},qd=(t,n,s,a)=>{t.forEach(c=>{if(typeof c=="string"){const u=c===""?n:Pg(n,c);u.classGroupId=s;return}if(typeof c=="function"){if(XS(c)){qd(c(a),n,s,a);return}n.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([u,f])=>{qd(f,Pg(n,u),s,a)})})},Pg=(t,n)=>{let s=t;return n.split(Sf).forEach(a=>{s.nextPart.has(a)||s.nextPart.set(a,{nextPart:new Map,validators:[]}),s=s.nextPart.get(a)}),s},XS=t=>t.isThemeGetter,JS=(t,n)=>n?t.map(([s,a])=>{const c=a.map(u=>typeof u=="string"?n+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([f,h])=>[n+f,h])):u);return[s,c]}):t,ZS=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,s=new Map,a=new Map;const c=(u,f)=>{s.set(u,f),n++,n>t&&(n=0,a=s,s=new Map)};return{get(u){let f=s.get(u);if(f!==void 0)return f;if((f=a.get(u))!==void 0)return c(u,f),f},set(u,f){s.has(u)?s.set(u,f):c(u,f)}}},Ly="!",ek=t=>{const{separator:n,experimentalParseClassName:s}=t,a=n.length===1,c=n[0],u=n.length,f=h=>{const g=[];let v=0,x=0,y;for(let S=0;S<h.length;S++){let C=h[S];if(v===0){if(C===c&&(a||h.slice(S,S+u)===n)){g.push(h.slice(x,S)),x=S+u;continue}if(C==="/"){y=S;continue}}C==="["?v++:C==="]"&&v--}const b=g.length===0?h:h.substring(x),k=b.startsWith(Ly),E=k?b.substring(1):b,j=y&&y>x?y-x:void 0;return{modifiers:g,hasImportantModifier:k,baseClassName:E,maybePostfixModifierPosition:j}};return s?h=>s({className:h,parseClassName:f}):f},tk=t=>{if(t.length<=1)return t;const n=[];let s=[];return t.forEach(a=>{a[0]==="["?(n.push(...s.sort(),a),s=[]):s.push(a)}),n.push(...s.sort()),n},rk=t=>({cache:ZS(t.cacheSize),parseClassName:ek(t),...GS(t)}),nk=/\s+/,sk=(t,n)=>{const{parseClassName:s,getClassGroupId:a,getConflictingClassGroupIds:c}=n,u=[],f=t.trim().split(nk);let h="";for(let g=f.length-1;g>=0;g-=1){const v=f[g],{modifiers:x,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:k}=s(v);let E=!!k,j=a(E?b.substring(0,k):b);if(!j){if(!E){h=v+(h.length>0?" "+h:h);continue}if(j=a(b),!j){h=v+(h.length>0?" "+h:h);continue}E=!1}const S=tk(x).join(":"),C=y?S+Ly:S,M=C+j;if(u.includes(M))continue;u.push(M);const N=c(j,E);for(let A=0;A<N.length;++A){const D=N[A];u.push(C+D)}h=v+(h.length>0?" "+h:h)}return h};function ok(){let t=0,n,s,a="";for(;t<arguments.length;)(n=arguments[t++])&&(s=Fy(n))&&(a&&(a+=" "),a+=s);return a}const Fy=t=>{if(typeof t=="string")return t;let n,s="";for(let a=0;a<t.length;a++)t[a]&&(n=Fy(t[a]))&&(s&&(s+=" "),s+=n);return s};function ik(t,...n){let s,a,c,u=f;function f(g){const v=n.reduce((x,y)=>y(x),t());return s=rk(v),a=s.cache.get,c=s.cache.set,u=h,h(g)}function h(g){const v=a(g);if(v)return v;const x=sk(g,s);return c(g,x),x}return function(){return u(ok.apply(null,arguments))}}const We=t=>{const n=s=>s[t]||[];return n.isThemeGetter=!0,n},zy=/^\[(?:([a-z-]+):)?(.+)\]$/i,ak=/^\d+\/\d+$/,lk=new Set(["px","full","screen"]),ck=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fr=t=>Bs(t)||lk.has(t)||ak.test(t),pn=t=>mo(t,"length",bk),Bs=t=>!!t&&!Number.isNaN(Number(t)),rd=t=>mo(t,"number",Bs),ci=t=>!!t&&Number.isInteger(Number(t)),pk=t=>t.endsWith("%")&&Bs(t.slice(0,-1)),Ee=t=>zy.test(t),mn=t=>ck.test(t),mk=new Set(["length","size","percentage"]),gk=t=>mo(t,mk,Uy),vk=t=>mo(t,"position",Uy),yk=new Set(["image","url"]),xk=t=>mo(t,yk,Sk),wk=t=>mo(t,"",jk),ui=()=>!0,mo=(t,n,s)=>{const a=zy.exec(t);return a?a[1]?typeof n=="string"?a[1]===n:n.has(a[1]):s(a[2]):!1},bk=t=>uk.test(t)&&!dk.test(t),Uy=()=>!1,jk=t=>fk.test(t),Sk=t=>hk.test(t),kk=()=>{const t=We("colors"),n=We("spacing"),s=We("blur"),a=We("brightness"),c=We("borderColor"),u=We("borderRadius"),f=We("borderSpacing"),h=We("borderWidth"),g=We("contrast"),v=We("grayscale"),x=We("hueRotate"),y=We("invert"),b=We("gap"),k=We("gradientColorStops"),E=We("gradientColorStopPositions"),j=We("inset"),S=We("margin"),C=We("opacity"),M=We("padding"),N=We("saturate"),A=We("scale"),D=We("sepia"),U=We("skew"),I=We("space"),V=We("translate"),Q=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",Ee,n],te=()=>[Ee,n],de=()=>["",Fr,pn],ee=()=>["auto",Bs,Ee],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Ee],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[Bs,Ee];return{cacheSize:500,separator:":",theme:{colors:[ui],spacing:[Fr,pn],blur:["none","",mn,Ee],brightness:R(),borderColor:[t],borderRadius:["none","","full",mn,Ee],borderSpacing:te(),borderWidth:de(),contrast:R(),grayscale:B(),hueRotate:R(),invert:B(),gap:te(),gradientColorStops:[t],gradientColorStopPositions:[pk,pn],inset:le(),margin:le(),opacity:R(),padding:te(),saturate:R(),scale:R(),sepia:B(),skew:R(),space:te(),translate:te()},classGroups:{aspect:[{aspect:["auto","square","video",Ee]}
vendor: 10,881 bytes, line 339
339],container:["container"],columns:[{columns:[mn]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fe(),Ee]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ci,Ee]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ee]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ci,Ee]}],"grid-cols":[{"grid-cols":[ui]}],"col-start-end":[{col:["auto",{span:["full",ci,Ee]},Ee]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[ui]}],"row-start-end":[{row:["auto",{span:[ci,Ee]},Ee]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ee]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ee,n]}],"min-w":[{"min-w":[Ee,n,"min","max","fit"]}],"max-w":[{"max-w":[Ee,n,"none","full","min","max","fit","prose",{screen:[mn]},mn]}],h:[{h:[Ee,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ee,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ee,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ee,n,"auto","min","max","fit"]}],"font-size":[{text:["base",mn,pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rd]}],"font-family":[{font:[ui]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ee]}],"line-clamp":[{"line-clamp":["none",Bs,rd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fr,Ee]}],"list-image":[{"list-image":["none",Ee]}],"list-style-type":[{list:["none","disc","decimal",Ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fr,pn]}],"underline-offset":[{"underline-offset":["auto",Fr,Ee]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:te()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),vk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xk]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:oe()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[Fr,Ee]}],"outline-w":[{outline:[Fr,pn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[Fr,pn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",mn,wk]}],"shadow-color":[{shadow:[ui]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[a]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",mn,Ee]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[y]}],saturate:[{saturate:[N]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ee]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",Ee]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[ci,Ee]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ee]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":te()}],"scroll-mx":[{"scroll-mx":te()}],"scroll-my":[{"scroll-my":te()}],"scroll-ms":[{"scroll-ms":te()}],"scroll-me":[{"scroll-me":te()}],"scroll-mt":[{"scroll-mt":te()}],"scroll-mr":[{"scroll-mr":te()}],"scroll-mb":[{"scroll-mb":te()}],"scroll-ml":[{"scroll-ml":te()}],"scroll-p":[{"scroll-p":te()}],"scroll-px":[{"scroll-px":te()}],"scroll-py":[{"scroll-py":te()}],"scroll-ps":[{"scroll-ps":te()}],"scroll-pe":[{"scroll-pe":te()}
vendor: 4,305 bytes, line 339
339],"scroll-pt":[{"scroll-pt":te()}],"scroll-pr":[{"scroll-pr":te()}],"scroll-pb":[{"scroll-pb":te()}],"scroll-pl":[{"scroll-pl":te()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Fr,pn,rd]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ek=ik(kk);function Me(...t){return Ek(jy(t))}const _k=ES,Vy=m.forwardRef(({className:t,...n},s)=>i.jsx(my,{ref:s,className:Me("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-2 sm:p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...n}));Vy.displayName=my.displayName;const Ck=wf("group pointer-events-auto relative flex w-full items-start sm:items-center justify-between gap-3 sm:gap-4 overflow-visible rounded-md border p-3 sm:p-6 pr-3 sm:pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),$y=m.forwardRef(({className:t,variant:n,...s},a)=>i.jsx(gy,{ref:a,className:Me(Ck({variant:n}),t),...s}));$y.displayName=gy.displayName;const Nk=m.forwardRef(({className:t,...n},s)=>
339i.jsx(xy,{ref:s,className:Me("inline-flex min-h-[2rem] h-auto shrink-0 items-center justify-center rounded-md border bg-transparent px-2 sm:px-3 py-1 text-xs sm:text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive whitespace-nowrap max-w-[8rem] sm:max-w-none overflow-hidden text-ellipsis",t),...n}));Nk.displayName=xy.displayName;const Hy=m.forwardRef(({className:t,...n},s)=>i.jsx(wy,{ref:s,className:Me("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...n,children:i.jsx(ls,{className:"h-4 w-4"})}));Hy.displayName=wy.displayName;const By=m.forwardRef(({className:t,...n},s)=>i.jsx(vy,{ref:s,className:Me("text-sm font-semibold",t),...n}));By.displayName=vy.displayName;const Wy=m.forwardRef(({className:t,...n},s)=>i.jsx(yy,{ref:s,className:Me("text-sm opacity-90",t),...n}));Wy.displayName=yy.displayName;function Tk(){const{toasts:t}=Mi();return i.jsxs(_k,{children:[t.map(function({id:n,title:s,description:a,action:c,...u}){return i.jsxs($y,{...u,children:[i.jsxs("div",{className:"grid gap-1",children:[s&&i.jsx(By,{children:s}),a&&i.jsx(Wy,{children:a})]}),c,i.jsx(Hy,{})]},n)}),i.jsx(Vy,{})]})}var nd,Rg;function Pk(){if(Rg)return nd;Rg=1;var t=typeof Element<"u",n=typeof Map=="function",s=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function c(u,f){if(u===f)return!0;if(u&&f&&typeof u=="object"&&typeof f=="object"){if(u.constructor!==f.constructor)return!1;var h,g,v;if(Array.isArray(u)){if(h=u.length,h!=f.length)return!1;for(g=h;g--!==0;)if(!c(u[g],f[g]))return!1;return!0}var x;if(n&&u instanceof Map&&f instanceof Map){if(u.size!==f.size)return!1;for(x=u.entries();!(g=x.next()).done;)if(!f.has(g.value[0]))return!1;for(x=u.entries();!(g=x.next()).done;)if(!c(g.value[1],f.get(g.value[0])))return!1;return!0}if(s&&u instanceof Set&&f instanceof Set){if(u.size!==f.size)return!1;for(x=u.entries();!(g=x.next()).done;)if(!f.has(g.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(f)){if(h=u.length,h!=f.length)return!1;for(g=h;g--!==0;)if(u[g]!==f[g])return!1;return!0}if(u.constructor===RegExp)return u.source===f.source&&u.flags===f.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof f.valueOf=="function")return u.valueOf()===f.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof f.toString=="function")return u.toString()===f.toString();if(v=Object.keys(u),h=v.length,h!==Object.keys(f).length)return!1;for(g=h;g--!==0;)if(!Object.prototype.hasOwnProperty.call(f,v[g]))return!1;if(t&&u instanceof Element)return!1;for(g=h;g--!==0;)if(!((v[g]==="_owner"||v[g]==="__v"||v[g]==="__o")&&u.$$typeof)&&!c(u[v[g]],f[v[g]]))return!1;return!0}return u!==u&&f!==f}return nd=function(f,h){try{return c(f,h)}catch(g){if((g.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw g}},nd}var Rk=Pk();const Ak=Ai(Rk);var sd,Ag;function Ok(){if(Ag)return sd;Ag=1;var t=function(n,s,a,c,u,f,h,g){if(!n){var v;if(s===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[a,c,u,f,h,g],y=0;v=new Error(s.replace(/%s/g,function(){return x[y++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};return sd=t,sd}var Ik=Ok();const Og=Ai(Ik);var od,Ig;function Mk(){return Ig||(Ig=1,od=function(n,s,a,c){var u=a?a.call(c,n,s):void 0;if(u!==void 0)return!!u;if(n===s)return!0;
339if(typeof n!="object"||!n||typeof s!="object"||!s)return!1;var f=Object.keys(n),h=Object.keys(s);if(f.length!==h.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(s),v=0;v<f.length;v++){var x=f[v];if(!g(x))return!1;var y=n[x],b=s[x];if(u=a?a.call(c,y,b,x):void 0,u===!1||u===void 0&&y!==b)return!1}return!0}),od}var Dk=Mk();const Lk=Ai(Dk);var Ky=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(Ky||{}),id={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Mg=Object.values(Ky),kf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Fk=Object.entries(kf).reduce((t,[n,s])=>(t[s]=n,t),{}),ur="data-rh",Ws={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ks=(t,n)=>{for(let s=t.length-1;s>=0;s-=1){const a=t[s];if(Object.prototype.hasOwnProperty.call(a,n))return a[n]}return null},zk=t=>{let n=Ks(t,"title");const s=Ks(t,Ws.TITLE_TEMPLATE);if(Array.isArray(n)&&(n=n.join("")),s&&n)return s.replace(/%s/g,()=>n);const a=Ks(t,Ws.DEFAULT_TITLE);return n||a||void 0},Uk=t=>Ks(t,Ws.ON_CHANGE_CLIENT_STATE)||(()=>{}),ad=(t,n)=>n.filter(s=>typeof s[t]<"u").map(s=>s[t]).reduce((s,a)=>({...s,...a}),{}),Vk=(t,n)=>n.filter(s=>typeof s.base<"u").map(s=>s.base).reverse().reduce((s,a)=>{if(!s.length){const c=Object.keys(a);for(let u=0;u<c.length;u+=1){const h=c[u].toLowerCase();if(t.indexOf(h)!==-1&&a[h])return s.concat(a)}}return s},[]),$k=t=>console&&typeof console.warn=="function"&&console.warn(t),di=(t,n,s)=>{const a={};return s.filter(c=>Array.isArray(c[t])?!0:(typeof c[t]<"u"&&$k(`Helmet: ${t} should be of type "Array". Instead found type "${typeof c[t]}"`),!1)).map(c=>c[t]).reverse().reduce((c,u)=>{const f={};u.filter(g=>{let v;const x=Object.keys(g);for(let b=0;b<x.length;b+=1){const k=x[b],E=k.toLowerCase();n.indexOf(E)!==-1&&!(v==="rel"&&g[v].toLowerCase()==="canonical")&&!(E==="rel"&&g[E].toLowerCase()==="stylesheet")&&(v=E),n.indexOf(k)!==-1&&(k==="innerHTML"||k==="cssText"||k==="itemprop")&&(v=k)}if(!v||!g[v])return!1;const y=g[v].toLowerCase();return a[v]||(a[v]={}),f[v]||(f[v]={}),a[v][y]?!1:(f[v][y]=!0,!0)}).reverse().forEach(g=>c.push(g));const h=Object.keys(f);for(let g=0;g<h.length;g+=1){const v=h[g],x={...a[v],...f[v]};a[v]=x}return c},[]).reverse()},Hk=(t,n)=>{if(Array.isArray(t)&&t.length){for(let s=0;s<t.length;s+=1)if(t[s][n])return!0}return!1},Bk=t=>({baseTag:Vk(["href"],t),bodyAttributes:ad("bodyAttributes",t),defer:Ks(t,Ws.DEFER),encode:Ks(t,Ws.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ad("htmlAttributes",t),linkTags:di("link",["rel","href"],t),metaTags:di("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:di("noscript",["innerHTML"],t),onChangeClientState:Uk(t),scriptTags:di("script",["src","innerHTML"],t),styleTags:di("style",["cssText"],t),title:zk(t),titleAttributes:ad("titleAttributes",t),prioritizeSeoTags:Hk(t,Ws.PRIORITIZE_SEO_TAGS)}),qy=t=>Array.isArray(t)?t.join(""):t,Wk=(t,n)=>{const s=Object.keys(t);for(let a=0;a<s.length;a+=1)if(n[s[a]]&&n[s[a]].includes(t[s[a]]))return!0;return!1},ld=(t,n)=>Array.isArray(t)?t.reduce((s,a)=>(Wk(a,n)?s.priority.push(a):s.default.push(a),s),{priority:[],default:[]}):{default:t,priority:[]},Dg=(t,n)=>({...t,[n]:void 0}),Kk=["noscript","script","style"],Gd=(t,n=!0)=>n===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Gy=t=>Object.keys(t).reduce((n,s)=>{const a=typeof t[s]<"u"?`${s}="${t[s]}"`:`${s}`;return n?`${n} ${a}`:a},""),qk=(t,n,s,a)=>{const c=Gy(s),u=qy(n);return c?`<${t} ${ur}="true" ${c}>${Gd(u,a)}</${t}>`:`<${t} ${ur}="true">${Gd(u,a)}</${t}>`},Gk=(t,n,s=!0)=>n.reduce((a,c)=>{const u=c,f=Object.keys(u).filter(v=>!(v==="innerHTML"||v==="cssText")).reduce((v,x)=>{const y=typeof u[x]>"u"?x:`${x}="${Gd(u[x],s)}"`;return v?`${v} ${y}`:y},""),h=u.innerHTML||u.cssText||"",g=Kk.indexOf(t)===-1;return`${a}<${t} ${ur}="true" ${f}${g?"/>":`>${h}</${t}>`}`},""),Qy=(t,n={})=>Object.keys(t).reduce((s,a)=>{const c=kf[a];return s[c||a]=t[a],s},n),Qk=(t,n,s)=>{const a={key:n,[ur]:!0},c=Qy(s,a);return[bt.createElement("title",c,n)]},xl=(t,n)=>n.map((s,a)=>{const c={key:a,[ur]:!0};
339return Object.keys(s).forEach(u=>{const h=kf[u]||u;if(h==="innerHTML"||h==="cssText"){const g=s.innerHTML||s.cssText;c.dangerouslySetInnerHTML={__html:g}}else c[h]=s[u]}),bt.createElement(t,c)}),Yt=(t,n,s=!0)=>{switch(t){case"title":return{toComponent:()=>Qk(t,n.title,n.titleAttributes),toString:()=>qk(t,n.title,n.titleAttributes,s)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Qy(n),toString:()=>Gy(n)};default:return{toComponent:()=>xl(t,n),toString:()=>Gk(t,n,s)}}},Yk=({metaTags:t,linkTags:n,scriptTags:s,encode:a})=>{const c=ld(t,id.meta),u=ld(n,id.link),f=ld(s,id.script);return{priorityMethods:{toComponent:()=>[...xl("meta",c.priority),...xl("link",u.priority),...xl("script",f.priority)],toString:()=>`${Yt("meta",c.priority,a)} ${Yt("link",u.priority,a)} ${Yt("script",f.priority,a)}`},metaTags:c.default,linkTags:u.default,scriptTags:f.default}},Xk=t=>{const{baseTag:n,bodyAttributes:s,encode:a=!0,htmlAttributes:c,noscriptTags:u,styleTags:f,title:h="",titleAttributes:g,prioritizeSeoTags:v}=t;let{linkTags:x,metaTags:y,scriptTags:b}=t,k={toComponent:()=>{},toString:()=>""};return v&&({priorityMethods:k,linkTags:x,metaTags:y,scriptTags:b}=Yk(t)),{priority:k,base:Yt("base",n,a),bodyAttributes:Yt("bodyAttributes",s,a),htmlAttributes:Yt("htmlAttributes",c,a),link:Yt("link",x,a),meta:Yt("meta",y,a),noscript:Yt("noscript",u,a),script:Yt("script",b,a),style:Yt("style",f,a),title:Yt("title",{title:h,titleAttributes:g},a)}},Qd=Xk,al=[],Yy=!!(typeof window<"u"&&window.document&&window.document.createElement),Yd=class{constructor(t,n){Lr(this,"instances",[]);Lr(this,"canUseDOM",Yy);Lr(this,"context");Lr(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?al:this.instances,add:t=>{(this.canUseDOM?al:this.instances).push(t)},remove:t=>{const n=(this.canUseDOM?al:this.instances).indexOf(t);(this.canUseDOM?al:this.instances).splice(n,1)}}});this.context=t,this.canUseDOM=n||!1,n||(t.helmet=Qd({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Jk={},Xy=bt.createContext(Jk),ns,Jy=(ns=class extends m.Component{constructor(s){super(s);Lr(this,"helmetData");this.helmetData=new Yd(this.props.context||{},ns.canUseDOM)}render(){return bt.createElement(Xy.Provider,{value:this.helmetData.value},this.props.children)}},Lr(ns,"canUseDOM",Yy),ns),zs=(t,n)=>{const s=document.head||document.querySelector("head"),a=s.querySelectorAll(`${t}[${ur}]`),c=[].slice.call(a),u=[];let f;return n&&n.length&&n.forEach(h=>{const g=document.createElement(t);for(const v in h)if(Object.prototype.hasOwnProperty.call(h,v))if(v==="innerHTML")g.innerHTML=h.innerHTML;else if(v==="cssText")g.styleSheet?g.styleSheet.cssText=h.cssText:g.appendChild(document.createTextNode(h.cssText));else{const x=v,y=typeof h[x]>"u"?"":h[x];g.setAttribute(v,y)}g.setAttribute(ur,"true"),c.some((v,x)=>(f=x,g.isEqualNode(v)))?c.splice(f,1):u.push(g)}),c.forEach(h=>{var g;return(g=h.parentNode)==null?void 0:g.removeChild(h)}),u.forEach(h=>s.appendChild(h)),{oldTags:c,newTags:u}},Xd=(t,n)=>{const s=document.getElementsByTagName(t)[0];if(!s)return;const a=s.getAttribute(ur),c=a?a.split(","):[],u=[...c],f=Object.keys(n);for(const h of f){const g=n[h]||"";s.getAttribute(h)!==g&&s.setAttribute(h,g),c.indexOf(h)===-1&&c.push(h);const v=u.indexOf(h);v!==-1&&u.splice(v,1)}for(let h=u.length-1;h>=0;h-=1)s.removeAttribute(u[h]);c.length===u.length?s.removeAttribute(ur):s.getAttribute(ur)!==f.join(",")&&s.setAttribute(ur,f.join(","))},Zk=(t,n)=>{typeof t<"u"&&document.title!==t&&(document.title=qy(t)),Xd("title",n)},Lg=(t,n)=>{const{baseTag:s,bodyAttributes:a,htmlAttributes:c,linkTags:u,metaTags:f,noscriptTags:h,onChangeClientState:g,scriptTags:v,styleTags:x,title:y,titleAttributes:b}=t;Xd("body",a),Xd("html",c),Zk(y,b);const k={baseTag:zs("base",s),linkTags:zs("link",u),metaTags:zs("meta",f),noscriptTags:zs("noscript",h),scriptTags:zs("script",v),styleTags:zs("style",x)},E={},j={};Object.keys(k).forEach(S=>{const{newTags:C,oldTags:M}=k[S];C.length&&(E[S]=C),M.length&&(j[S]=k[S].oldTags)}),n&&n(),g(t,E,j)},fi=null,e2=t=>{fi&&cancelAnimationFrame(fi),t.defer?fi=requestAnimationFrame(()=>{Lg(t,()=>{fi=null})}):(Lg(t),fi=null)},t2=e2,Fg=class extends m.Component{constructor(){super(...arguments);Lr(this,"rendered",!1)}shouldComponentUpdate(n){return!Lk(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:s}=this.props.context;let a=null;const c=Bk(n.get().map(u=>{const f={...u.props};return delete f.context,f}));Jy.canUseDOM?t2(c):Qd&&(a=Qd(c)),s(a)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},kd,r2=(kd=class extends m.Component{shouldComponentUpdate(t){return!Ak(Dg(this.props,"helmetData"),Dg(t,"helmetData"))}mapNestedChildrenToProps(t,n){if(!n)return null;switch(t.type){case"script":case"noscript":return{innerHTML:n};case"style":return{cssText:n};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,n,s,a){return{...n,[t.type]:[...n[t.type]||[],{...s,...this.mapNestedChildrenToProps(t,a)}]}}mapObjectTypeChildren(t,n,s,a){switch(t.type){case"title":return{...n,[t.type]:a,titleAttributes:{...s}};case"body":return{...n,bodyAttributes:{...s}};case"html":return{...n,htmlAttributes:{...s}};default:return{...n,[t.type]:{...s}}}}mapArrayTypeChildrenToProps(t,n){let s={...n};return Object.keys(t).forEach(a=>{s={...s,[a]:t[a]}}),s}
339warnOnInvalidChildren(t,n){return Og(Mg.some(s=>t.type===s),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Mg.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),Og(!n||typeof n=="string"||Array.isArray(n)&&!n.some(s=>typeof s!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,n){let s={};return bt.Children.forEach(t,a=>{if(!a||!a.props)return;const{children:c,...u}=a.props,f=Object.keys(u).reduce((g,v)=>(g[Fk[v]||v]=u[v],g),{});let{type:h}=a;switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(a,c),h){case"Symbol(react.fragment)":n=this.mapChildrenToProps(c,n);break;case"link":case"meta":case"noscript":case"script":case"style":s=this.flattenArrayTypeChildren(a,s,f,c);break;default:n=this.mapObjectTypeChildren(a,n,f,c);break}}),this.mapArrayTypeChildrenToProps(s,n)}render(){const{children:t,...n}=this.props;let s={...n},{helmetData:a}=n;if(t&&(s=this.mapChildrenToProps(t,s)),a&&!(a instanceof Yd)){const c=a;a=new Yd(c.context,!0),delete s.helmetData}return a?bt.createElement(Fg,{...s,context:a.value}):bt.createElement(Xy.Consumer,null,c=>bt.createElement(Fg,{...s,context:c}))}},Lr(kd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),kd);const Zy=m.createContext(null);function n2({children:t}){const[,n]=mt(),[s,a]=m.useState(!1);m.useEffect(()=>{localStorage.getItem("isGuestMode")==="true"&&a(!0)},[]);const c=async()=>{try{console.log("Manual session recovery initiated...");const N=Ve.getQueryData(["/api/user"]);if(N!=null&&N.id){console.log("Attempting direct session restoration for user ID:",N.id);const D=await fetch("/api/auth/restore-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:N.id}),credentials:"include"});if(D.ok){const U=await D.json();return console.log("Direct session restoration successful:",U),Ve.setQueryData(["/api/user"],U.user),Ve.invalidateQueries({queryKey:["/api/user"]}),Ve.invalidateQueries({queryKey:["/api/careers/saved"]}),Ve.invalidateQueries({queryKey:["/api/jobs/saved"]}),dt({title:"Session Restored",description:"Authentication restored successfully!"}),!0}}const A=await fetch("/api/auth/recover-session",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"});if(A.ok){const D=await A.json();return console.log("Session recovery successful:",D),Ve.setQueryData(["/api/user"],D.user),Ve.invalidateQueries({queryKey:["/api/user"]}),Ve.invalidateQueries({queryKey:["/api/careers/saved"]}),Ve.invalidateQueries({queryKey:["/api/jobs/saved"]}),localStorage.setItem("recoveredUser",JSON.stringify(D.user)),localStorage.setItem("lastRecovery",new Date().toISOString()),dt({title:"Session Recovered",description:"Authentication restored successfully!"}),!0}else{console.log("Session recovery failed");const D=localStorage.getItem("recoveredUser"),U=localStorage.getItem("lastRecovery");if(D&&U){const I=new Date(U);if(new Date().getTime()-I.getTime()<1800*1e3){console.log("Using localStorage backup user data");const Z=JSON.parse(D);return Ve.setQueryData(["/api/user"],Z),dt({title:"Session Restored",description:"Using cached authentication data"}),!0}}return!1}}catch(N){console.error("Session recovery error:",N);const A=localStorage.getItem("recoveredUser");if(A)try{const D=JSON.parse(A);return Ve.setQueryData(["/api/user"],D),console.log("Used localStorage fallback for session recovery"),dt({title:"Session Restored",description:"Using cached authentication data"}),!0}catch(D){console.error("Failed to parse backup user data:",D)}return dt({title:"Recovery Failed",description:"Please try logging in again",variant:"destructive"}),!1}},{data:u,error:f,isLoading:h}=$r({queryKey:["/api/user"],queryFn:async({queryKey:N})=>{console.log("Frontend user query - fetching authentication status...");const A=await fetch(N[0],{credentials:"include",method:"GET",headers:{Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache"},cache:"no-store"});if(A.status===401)return console.log("Frontend user query - no authenticated session"),null;if(!A.ok)throw new Error(await A.text());const D=await A.json();return console.log("Frontend user query - authenticated as:",D.username),localStorage.removeItem("recoveredUser"),localStorage.removeItem("lastRecovery"),D},staleTime:0,gcTime:300*1e3,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:2,enabled:!s}
339),g=()=>{a(!0),localStorage.setItem("isGuestMode","true"),dt({title:"Guest Mode Enabled",description:"You're browsing as a guest. Sign in to save your results."})},v=Dt({mutationFn:async N=>await(await it("POST","/api/auth/login",N)).json(),onSuccess:N=>{if(!N||!N.username){console.error("Login mutation onSuccess called with invalid user:",N),dt({title:"Login Failed",description:"Incorrect username or password. Try using 'Forgot username?' or 'Forgot password?' links if you need help.",variant:"destructive"});return}console.log("Frontend login successful for:",N.username),a(!1),localStorage.removeItem("isGuestMode");const A=localStorage.getItem("pendingCareerSave");if(A)try{const I=JSON.parse(A);localStorage.removeItem("pendingCareerSave"),localStorage.setItem("autoSaveCareer",JSON.stringify(I)),console.log("Prepared pending career for auto-save after login")}catch(I){console.error("Error processing pending career save:",I),localStorage.removeItem("pendingCareerSave")}const D=localStorage.getItem("preservedSearchResults");if(D)try{const I=JSON.parse(D);localStorage.setItem("careerSearchResults",JSON.stringify(I)),localStorage.removeItem("preservedSearchResults"),console.log("Restored preserved search results after login")}catch(I){console.error("Error restoring preserved search results:",I),localStorage.removeItem("preservedSearchResults")}if(localStorage.getItem("guestSavedCareers"))try{localStorage.setItem("migrateGuestCareers","true"),console.log("Flagged guest saved careers for migration to user account")}catch(I){console.error("Error setting guest career migration flag:",I)}Ve.setQueryData(["/api/user"],N),Ve.invalidateQueries({queryKey:["/api/careers/search"]}),Ve.invalidateQueries({queryKey:["/api/careers/saved"]}),dt({title:"Login successful",description:`Welcome back, ${N.username}!`})},onError:N=>{const A=N.message||"Invalid username or password",D=A.toLowerCase().includes("suspended")||A.toLowerCase().includes("deleted");dt({title:D?"Account Access Restricted":"Login Failed",description:D?A:"Incorrect username or password. Try using 'Forgot username?' or 'Forgot password?' links if you need help.",variant:"destructive"})}}),x=Dt({mutationFn:async N=>await(await it("POST","/api/auth/register",N)).json(),onSuccess:N=>{if(a(!1),localStorage.removeItem("isGuestMode"),localStorage.getItem("guestSavedCareers"))try{localStorage.setItem("migrateGuestCareers","true"),console.log("Flagged guest saved careers for migration to user account")}catch(D){console.error("Error setting guest career migration flag:",D)}Ve.setQueryData(["/api/user"],N),Ve.invalidateQueries({queryKey:["/api/careers/search"]}),Ve.invalidateQueries({queryKey:["/api/careers/saved"]}),dt({title:"Registration successful",description:`Welcome to KARRI.AI, ${N.username}!`}),setTimeout(()=>{n("/resume-assessment")},1e3)},onError:N=>{dt({title:"Registration failed",description:N.message||"Unable to create account",variant:"destructive"})}}),y=Dt({mutationFn:async()=>{try{await it("POST","/api/auth/logout")}catch{console.log("Logout API call failed, continuing with frontend cleanup")}},onSuccess:()=>{const N=u==null?void 0:u.id,A=N?`exitFeedback_session_${N}`:null;if(!(A?sessionStorage.getItem(A):null)&&N){let U;const I=()=>{window.removeEventListener("exit-feedback-complete",I),clearTimeout(U),b()};window.addEventListener("exit-feedback-complete",I),window.dispatchEvent(new CustomEvent("trigger-exit-feedback",{detail:{type:"logout",context:{action:"user_initiated_logout"}}})),U=setTimeout(()=>{window.removeEventListener("exit-feedback-complete",I),b()},5e3)}else b()},onError:N=>{b()}}),b=()=>{console.log("ðª LOGOUT CLEANUP: Starting cleanup process..."),a(!1),localStorage.removeItem("isGuestMode"),localStorage.removeItem("editingDocument"),localStorage.removeItem("guestSavedCareers"),localStorage.removeItem("recoveredUser"),localStorage.removeItem("lastRecovery"),localStorage.removeItem("lastSessionRecovery"),localStorage.removeItem("migrateGuestCareers"),console.log("ðª LOGOUT CLEANUP: Setting user to null in cache..."),Ve.setQueryData(["/api/user"],null),
339console.log("ðª LOGOUT CLEANUP: Removing ALL queries from cache..."),Ve.removeQueries(),console.log("ðª LOGOUT CLEANUP: Forcing immediate refetch of user query..."),Ve.invalidateQueries({queryKey:["/api/user"],refetchType:"active"}),console.log("ðª LOGOUT CLEANUP: Cleanup complete, reloading page..."),window.location.href="/"},k=!!(u!=null&&u.challengeBonusInterviewAccessExpiresAt&&new Date(u.challengeBonusInterviewAccessExpiresAt)>new Date),E=!!(u!=null&&u.wpProductTiers&&Array.isArray(u.wpProductTiers)&&u.wpProductTiers.length>0),j=!!(u!=null&&u.isReviewer),S=!!(u&&(u.subscriptionTier==="premium"||u.subscriptionTier==="karri_premium"||u.isPremium===!0||u.isAdmin===!0||j||E)),C=!!(S||k);u&&console.log("Premium status check:",{username:u.username,subscriptionTier:u.subscriptionTier,isPremium:u.isPremium,isAdmin:u.isAdmin,isReviewer:u.isReviewer,wpProductTiers:u.wpProductTiers,challengeBonusInterviewAccessExpiresAt:u.challengeBonusInterviewAccessExpiresAt,hasChallengeInterviewAccess:k,hasWpProductAccess:E,hasFullPremiumAccess:S,isPremiumUser:C});const M=!u&&!h;return i.jsx(Zy.Provider,{value:{user:u||null,isGuest:M,isLoading:h,error:f,isPremiumUser:C,hasChallengeInterviewAccess:k,hasFullPremiumAccess:S,continueAsGuest:g,recoverSession:c,loginMutation:v,logoutMutation:y,registerMutation:x},children:t})}function Ht(){const t=m.useContext(Zy);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t}function s2(){const t=Ii(),{toast:n}=Mi(),s=g=>$r({queryKey:g?["/api/admin/content",{category:g}]:["/api/admin/content"],queryFn:async()=>{const x=g?`/api/admin/content?category=${encodeURIComponent(g)}`:"/api/admin/content";return await(await it("GET",x)).json()}}),a=g=>$r({queryKey:["/api/admin/content",g],queryFn:async()=>await(await it("GET",`/api/admin/content/${g}`)).json(),enabled:!!g}),c=Dt({mutationFn:async g=>await(await it("POST","/api/admin/content",g)).json(),onSuccess:()=>{t.invalidateQueries({queryKey:["/api/admin/content"]}),n({title:"Content created",description:"Website content has been created successfully."})},onError:g=>{n({title:"Error creating content",description:g.message,variant:"destructive"})}}),u=Dt({mutationFn:async({id:g,content:v})=>await(await it("PUT",`/api/admin/content/${g}`,v)).json(),onSuccess:(g,{id:v})=>{t.invalidateQueries({queryKey:["/api/admin/content"]}),t.invalidateQueries({queryKey:["/api/admin/content",v]}),t.invalidateQueries({queryKey:["/api/content"]}),n({title:"Content updated",description:"Website content has been updated successfully."})},onError:g=>{n({title:"Error updating content",description:g.message,variant:"destructive"})}}),f=Dt({mutationFn:async g=>{await it("DELETE",`/api/admin/content/${g}`)},onSuccess:()=>{t.invalidateQueries({queryKey:["/api/admin/content"]}),t.invalidateQueries({queryKey:["/api/content"]}),n({title:"Content deleted",description:"Website content has been deleted successfully."})},onError:g=>{n({title:"Error deleting content",description:g.message,variant:"destructive"})}});return{getContent:s,getContentById:a,createContentMutation:c,updateContentMutation:u,deleteContentMutation:f,getFrontendContent:(g,v)=>$r({queryKey:g?["/api/content",{key:g}]:v?["/api/content",{category:v}]:["/api/content"],queryFn:async()=>{let y="/api/content";return g?y+=`?key=${encodeURIComponent(g)}`:v&&(y+=`?category=${encodeURIComponent(v)}`),await(await it("GET",y)).json()}})}}const ex=m.createContext(null);function o2({children:t}){const[n,s]=m.useState({}),[a,c]=m.useState(!0),[u,f]=m.useState(null),{getFrontendContent:h}=s2(),{data:g,isLoading:v,error:x,refetch:y}=h();m.useEffect(()=>{if(g&&Array.isArray(g)){const S={};g.forEach(C=>{S[C.key]={content:C.content,type:C.type||"text"}}),s(S),c(!1)}else g&&!Array.isArray(g)&&(s(S=>({...S,[g.key]:{content:g.content,type:g.type||"text"}})),c(!1))},[g]),m.useEffect(()=>{f(x?x instanceof Error?x:new Error("Failed to load content"):null)},[x]);const b=(S,C="")=>n[S]!==void 0?n[S].content:C,k=S=>n[S]!==void 0?n[S].type:null,E=(S,C="")=>n[S]!==void 0?{content:n[S].content,type:n[S].type}:{content:C,type:null},j=()=>{c(!0),y()};return i.jsx(ex.Provider,{value:{getContent:b,getContentType:k,getContentWithType:E,isLoading:a||v,error:u,refresh:j},children:t})}function i2(){const t=m.useContext(ex);if(!t)throw new Error("useContent must be used within a ContentProvider");return t}const tx=m.createContext(null);function hi(t){t=t.replace("#","");const n=parseInt(t.slice(0,2),16)/255,s=parseInt(t.slice(2,4),16)/255,a=parseInt(t.slice(4,6),16)/255,c=Math.max(n,s,a),u=Math.min(n,s,a);let f=0,h=0;const g=(c+u)/2;if(c!==u){const v=c-u;switch(h=g>.5?v/(2-c-u):v/(c+u),c){case n:f=(s-a)/v+(s<a?6:0);break;case s:f=(a-n)/v+2;break;case a:f=(n-s)/v+4;break}f/=6}return`${Math.round(f*360)} ${Math.round(h*100)}% ${Math.round(g*100)}%`}function a2({children:t}){const{getContent:n,isLoading:s}=i2(),a=()=>{try{return localStorage.getItem("karri-theme")==="dark"}catch{return!1}},[c,u]=m.useState(a);m.useEffect(()=>{c?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");try{localStorage.setItem("karri-theme",c?"dark":"light")}catch{}},[c]);const f=()=>u(g=>!g),h=()=>
vendor: 5,718 bytes, line 339
339{if(s)return;const g=document.documentElement,v=n("site_primary_color","#3730A3"),x=n("site_secondary_color","#3730A3"),y=n("site_background_color","#ffffff"),b=n("site_text_color","#1F2937");g.style.setProperty("--primary",hi(v)),g.style.setProperty("--secondary",hi(x)),g.style.setProperty("--background",hi(y)),g.style.setProperty("--foreground",hi(b)),document.body.style.backgroundColor=y,g.style.setProperty("--sidebar-primary",hi(v))};return m.useEffect(()=>{s||h()},[s,n("site_primary_color"),n("site_background_color"),c]),i.jsx(tx.Provider,{value:{isDark:c,toggleTheme:f,applyDynamicTheme:h},children:t})}function Ef(){const t=m.useContext(tx);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t}var l2=Tv[" useId ".trim().toString()]||(()=>{}),c2=0;function qs(t){const[n,s]=m.useState(l2());return dr(()=>{s(a=>a??String(c2++))},[t]),n?`radix-${n}`:""}var cd="focusScope.autoFocusOnMount",ud="focusScope.autoFocusOnUnmount",zg={bubbles:!1,cancelable:!0},u2="FocusScope",_f=m.forwardRef((t,n)=>{const{loop:s=!1,trapped:a=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...f}=t,[h,g]=m.useState(null),v=jt(c),x=jt(u),y=m.useRef(null),b=at(n,j=>g(j)),k=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(a){let j=function(N){if(k.paused||!h)return;const A=N.target;h.contains(A)?y.current=A:vn(y.current,{select:!0})},S=function(N){if(k.paused||!h)return;const A=N.relatedTarget;A!==null&&(h.contains(A)||vn(y.current,{select:!0}))},C=function(N){if(document.activeElement===document.body)for(const D of N)D.removedNodes.length>0&&vn(h)};document.addEventListener("focusin",j),document.addEventListener("focusout",S);const M=new MutationObserver(C);return h&&M.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",S),M.disconnect()}}},[a,h,k.paused]),m.useEffect(()=>{if(h){Vg.add(k);const j=document.activeElement;if(!h.contains(j)){const C=new CustomEvent(cd,zg);h.addEventListener(cd,v),h.dispatchEvent(C),C.defaultPrevented||(d2(g2(rx(h)),{select:!0}),document.activeElement===j&&vn(h))}return()=>{h.removeEventListener(cd,v),setTimeout(()=>{const C=new CustomEvent(ud,zg);h.addEventListener(ud,x),h.dispatchEvent(C),C.defaultPrevented||vn(j??document.body,{select:!0}),h.removeEventListener(ud,x),Vg.remove(k)},0)}}},[h,v,x,k]);const E=m.useCallback(j=>{if(!s&&!a||k.paused)return;const S=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,C=document.activeElement;if(S&&C){const M=j.currentTarget,[N,A]=f2(M);N&&A?!j.shiftKey&&C===A?(j.preventDefault(),s&&vn(N,{select:!0})):j.shiftKey&&C===N&&(j.preventDefault(),s&&vn(A,{select:!0})):C===M&&j.preventDefault()}},[s,a,k.paused]);return i.jsx(Le.div,{tabIndex:-1,...f,ref:b,onKeyDown:E})});_f.displayName=u2;function d2(t,{select:n=!1}={}){const s=document.activeElement;for(const a of t)if(vn(a,{select:n}),document.activeElement!==s)return}function f2(t){const n=rx(t),s=Ug(n,t),a=Ug(n.reverse(),t);return[s,a]}function rx(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const c=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||c?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function Ug(t,n){for(const s of t)if(!h2(s,{upTo:n}))return s}function h2(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function p2(t){return t instanceof HTMLInputElement&&"select"in t}function vn(t,{select:n=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&p2(t)&&n&&t.select()}}var Vg=m2();function m2(){let t=[];return{add(n){const s=t[0];n!==s&&(s==null||s.pause()),t=$g(t,n),t.unshift(n)},remove(n){var s;t=$g(t,n),(s=t[0])==null||s.resume()}}}function $g(t,n){const s=[...t],a=s.indexOf(n);return a!==-1&&s.splice(a,1),s}function g2(t){return t.filter(n=>n.tagName!=="A")}var dd=0;function nx(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Hg()),document.body.insertAdjacentElement("beforeend",t[1]??Hg()),dd++,()=>{dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),dd--}},[])}function Hg(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Er=function(){return Er=Object.assign||function(n){for(var s,a=1,c=arguments.length;a<c;a++){s=arguments[a];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])}return n},Er.apply(this,arguments)};function sx(t,n){var s={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&n.indexOf(a)<0&&(s[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(t);c<a.length;c++)n.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(t,a[c])&&(s[a[c]]=t[a[c]]);return s}function v2(t,n,s){if(s||arguments.length===2)for(var a=0,c=n.length,u;a<c;a++)(u||!(a in n))&&(u||(u=Array.prototype.slice.call(n,0,a)),u[a]=n[a]);return t.concat(u||Array.prototype.slice.call(n))}var wl="right-scroll-bar-position",bl="width-before-scroll-bar",y2="with-scroll-bars-hidden",x2="--removed-body-scroll-bar-size";function fd(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function w2(t,n){var s=m.useState(function(){return{value:t,callback:n,facade:{get current(){return s.value},set current(a){var c=s.value;
vendor: 4,473 bytes, lines 339-354
339c!==a&&(s.value=a,s.callback(a,c))}}}})[0];return s.callback=n,s.facade}var b2=typeof window<"u"?m.useLayoutEffect:m.useEffect,Bg=new WeakMap;function j2(t,n){var s=w2(null,function(a){return t.forEach(function(c){return fd(c,a)})});return b2(function(){var a=Bg.get(s);if(a){var c=new Set(a),u=new Set(t),f=s.current;c.forEach(function(h){u.has(h)||fd(h,null)}),u.forEach(function(h){c.has(h)||fd(h,f)})}Bg.set(s,t)},[t]),s}function S2(t){return t}function k2(t,n){n===void 0&&(n=S2);var s=[],a=!1,c={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:t},useMedium:function(u){var f=n(u,a);return s.push(f),function(){s=s.filter(function(h){return h!==f})}},assignSyncMedium:function(u){for(a=!0;s.length;){var f=s;s=[],f.forEach(u)}s={push:function(h){return u(h)},filter:function(){return s}}},assignMedium:function(u){a=!0;var f=[];if(s.length){var h=s;s=[],h.forEach(u),f=s}var g=function(){var x=f;f=[],x.forEach(u)},v=function(){return Promise.resolve().then(g)};v(),s={push:function(x){f.push(x),v()},filter:function(x){return f=f.filter(x),s}}}};return c}function E2(t){t===void 0&&(t={});var n=k2(null);return n.options=Er({async:!0,ssr:!1},t),n}var ox=function(t){var n=t.sideCar,s=sx(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=n.read();if(!a)throw new Error("Sidecar medium not found");return m.createElement(a,Er({},s))};ox.isSideCarExport=!0;function _2(t,n){return t.useMedium(n),ox}var ix=E2(),hd=function(){},Wl=m.forwardRef(function(t,n){var s=m.useRef(null),a=m.useState({onScrollCapture:hd,onWheelCapture:hd,onTouchMoveCapture:hd}),c=a[0],u=a[1],f=t.forwardProps,h=t.children,g=t.className,v=t.removeScrollBar,x=t.enabled,y=t.shards,b=t.sideCar,k=t.noIsolation,E=t.inert,j=t.allowPinchZoom,S=t.as,C=S===void 0?"div":S,M=t.gapMode,N=sx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=b,D=j2([s,n]),U=Er(Er({},N),c);return m.createElement(m.Fragment,null,x&&m.createElement(A,{sideCar:ix,removeScrollBar:v,shards:y,noIsolation:k,inert:E,setCallbacks:u,allowPinchZoom:!!j,lockRef:s,gapMode:M}),f?m.cloneElement(m.Children.only(h),Er(Er({},U),{ref:D})):m.createElement(C,Er({},U,{className:g,ref:D}),h))});Wl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wl.classNames={fullWidth:bl,zeroRight:wl};var C2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function N2(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=C2();return n&&t.setAttribute("nonce",n),t}function T2(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function P2(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var R2=function(){var t=0,n=null;return{add:function(s){t==0&&(n=N2())&&(T2(n,s),P2(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},A2=function(){var t=R2();return function(n,s){m.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&s])}},ax=function(){var t=A2(),n=function(s){var a=s.styles,c=s.dynamic;return t(a,c),null};return n},O2={left:0,top:0,right:0,gap:0},pd=function(t){return parseInt(t||"",10)||0},I2=function(t){var n=window.getComputedStyle(document.body),s=n[t==="padding"?"paddingLeft":"marginLeft"],a=n[t==="padding"?"paddingTop":"marginTop"],c=n[t==="padding"?"paddingRight":"marginRight"];return[pd(s),pd(a),pd(c)]},M2=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return O2;var n=I2(t),s=document.documentElement.clientWidth,a=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,a-s+n[2]-n[0])}},D2=ax(),Gs="data-scroll-locked",L2=function(t,n,s,a){var c=t.left,u=t.top,f=t.right,h=t.gap;return s===void 0&&(s="margin"),` 340 .`.concat(y2,` { 341 overflow: hidden `).concat(a,`; 342 padding-right: `).concat(h,"px ").concat(a,`; 343 } 344 body[`).concat(Gs,`] { 345 overflow: hidden `).concat(a,`; 346 overscroll-behavior: contain; 347 `).concat([n&&"position: relative ".concat(a,";"),s==="margin"&&` 348 padding-left: `.concat(c,`px; 349 padding-top: `).concat(u,`px; 350 padding-right: `).concat(f,`px; 351 margin-left:0; 352 margin-top:0; 353 margin-right: `).concat(h,"px ").concat(a,`; 354 `),s==="padding"&&"padding-right: ".concat(h,"px ").concat(a,";
354")].filter(Boolean).join(""),` 355 } 356 357 .`).concat(wl,` { 358 right: `).concat(h,"px ").concat(a,`; 359 } 360 361 .`).concat(bl,` { 362 margin-right: `).concat(h,"px ").concat(a,`; 363 } 364 365 .`).concat(wl," .").concat(wl,` { 366 right: 0 `).concat(a,`; 367 } 368 369 .`).concat(bl," .").concat(bl,` { 370 margin-right: 0 `).concat(a,`; 371 } 372 373 body[`).concat(Gs,`] { 374 `).concat(x2,": ").concat(h,`px; 375 } 376`)},Wg=function(){var t=parseInt(document.body.getAttribute(Gs)||"0",10);return isFinite(t)?t:0},F2=function(){m.useEffect(function(){return document.body.setAttribute(Gs,(Wg()+1).toString()),function(){var t=Wg()-1;t<=0?document.body.removeAttribute(Gs):document.body.setAttribute(Gs,t.toString())}},[])},z2=function(t){var n=t.noRelative,s=t.noImportant,a=t.gapMode,c=a===void 0?"margin":a;F2();var u=m.useMemo(function(){return M2(c)},[c]);return m.createElement(D2,{styles:L2(u,!n,c,s?"":"!important")})},Jd=!1;if(typeof window<"u")try{var ll=Object.defineProperty({},"passive",{get:function(){return Jd=!0,!0}});window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{Jd=!1}var Us=Jd?{passive:!1}:!1,U2=function(t){return t.tagName==="TEXTAREA"},lx=function(t,n){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[n]!=="hidden"&&!(s.overflowY===s.overflowX&&!U2(t)&&s[n]==="visible")},V2=function(t){return lx(t,"overflowY")},$2=function(t){return lx(t,"overflowX")},Kg=function(t,n){var s=n.ownerDocument,a=n;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var c=cx(t,a);if(c){var u=ux(t,a),f=u[1],h=u[2];if(f>h)return!0}a=a.parentNode}while(a&&a!==s.body);return!1},H2=function(t){var n=t.scrollTop,s=t.scrollHeight,a=t.clientHeight;return[n,s,a]},B2=function(t){var n=t.scrollLeft,s=t.scrollWidth,a=t.clientWidth;return[n,s,a]},cx=function(t,n){return t==="v"?V2(n):$2(n)},ux=function(t,n){return t==="v"?H2(n):B2(n)},W2=function(t,n){return t==="h"&&n==="rtl"?-1:1},K2=function(t,n,s,a,c){var u=W2(t,window.getComputedStyle(n).direction),f=u*a,h=s.target,g=n.contains(h),v=!1,x=f>0,y=0,b=0;do{var k=ux(t,h),E=k[0],j=k[1],S=k[2],C=j-S-u*E;(E||C)&&cx(t,h)&&(y+=C,b+=E),h instanceof ShadowRoot?h=h.host:h=h.parentNode}while(!g&&h!==document.body||g&&(n.contains(h)||n===h));return(x&&Math.abs(y)<1||!x&&Math.abs(b)<1)&&(v=!0),v},cl=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},qg=function(t){return[t.deltaX,t.deltaY]},Gg=function(t){return t&&"current"in t?t.current:t},q2=function(t,n){return t[0]===n[0]&&t[1]===n[1]},G2=function(t){return` 377 .block-interactivity-`.concat(t,` {pointer-events: none;} 378 .allow-interactivity-`).concat(t,` {pointer-events: all;} 379`)},Q2=0,Vs=[];function Y2(t){var n=m.useRef([]),s=m.useRef([0,0]),a=m.useRef(),c=m.useState(Q2++)[0],u=m.useState(ax)[0],f=m.useRef(t);m.useEffect(function(){f.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var j=v2([t.lockRef.current],(t.shards||[]).map(Gg),!0).filter(Boolean);return j.forEach(function(S){return S.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),j.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=m.useCallback(function(j,S){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!f.current.allowPinchZoom;var C=cl(j),M=s.current,N="deltaX"in j?j.deltaX:M[0]-C[0],A="deltaY"in j?j.deltaY:M[1]-C[1],D,U=j.target,I=Math.abs(N)>Math.abs(A)?"h":"v";if("touches"in j&&I==="h"&&U.type==="range")return!1;var V=Kg(I,U);if(!V)return!0;if(V?D=I:(D=I==="v"?"h":"v",V=Kg(I,U)),!V)return!1;if(!a.current&&"changedTouches"in j&&(N||A)&&(a.current=D),!D)return!0;var Q=a.current||D;return K2(Q,S,j,Q==="h"?N:A)},[]),g=m.useCallback(function(j){var S=j;if(!(!Vs.length||Vs[Vs.length-1]!==u)){var C="deltaY"in S?qg(S):cl(S),M=n.current.filter(function(D){return D.name===S.type&&(D.target===S.target||S.target===D.shadowParent)&&q2(D.delta,C)})[0];if(M&&M.should){S.cancelable&&S.preventDefault();return}
vendor: 8,945 bytes, lines 379-383
379if(!M){var N=(f.current.shards||[]).map(Gg).filter(Boolean).filter(function(D){return D.contains(S.target)}),A=N.length>0?h(S,N[0]):!f.current.noIsolation;A&&S.cancelable&&S.preventDefault()}}},[]),v=m.useCallback(function(j,S,C,M){var N={name:j,delta:S,target:C,should:M,shadowParent:X2(C)};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(A){return A!==N})},1)},[]),x=m.useCallback(function(j){s.current=cl(j),a.current=void 0},[]),y=m.useCallback(function(j){v(j.type,qg(j),j.target,h(j,t.lockRef.current))},[]),b=m.useCallback(function(j){v(j.type,cl(j),j.target,h(j,t.lockRef.current))},[]);m.useEffect(function(){return Vs.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",g,Us),document.addEventListener("touchmove",g,Us),document.addEventListener("touchstart",x,Us),function(){Vs=Vs.filter(function(j){return j!==u}),document.removeEventListener("wheel",g,Us),document.removeEventListener("touchmove",g,Us),document.removeEventListener("touchstart",x,Us)}},[]);var k=t.removeScrollBar,E=t.inert;return m.createElement(m.Fragment,null,E?m.createElement(u,{styles:G2(c)}):null,k?m.createElement(z2,{gapMode:t.gapMode}):null)}function X2(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const J2=_2(ix,Y2);var Cf=m.forwardRef(function(t,n){return m.createElement(Wl,Er({},t,{ref:n,sideCar:J2}))});Cf.classNames=Wl.classNames;var Z2=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},$s=new WeakMap,ul=new WeakMap,dl={},md=0,dx=function(t){return t&&(t.host||dx(t.parentNode))},eE=function(t,n){return n.map(function(s){if(t.contains(s))return s;var a=dx(s);return a&&t.contains(a)?a:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},tE=function(t,n,s,a){var c=eE(n,Array.isArray(t)?t:[t]);dl[s]||(dl[s]=new WeakMap);var u=dl[s],f=[],h=new Set,g=new Set(c),v=function(y){!y||h.has(y)||(h.add(y),v(y.parentNode))};c.forEach(v);var x=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(b){if(h.has(b))x(b);else try{var k=b.getAttribute(a),E=k!==null&&k!=="false",j=($s.get(b)||0)+1,S=(u.get(b)||0)+1;$s.set(b,j),u.set(b,S),f.push(b),j===1&&E&&ul.set(b,!0),S===1&&b.setAttribute(s,"true"),E||b.setAttribute(a,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})};return x(n),h.clear(),md++,function(){f.forEach(function(y){var b=$s.get(y)-1,k=u.get(y)-1;$s.set(y,b),u.set(y,k),b||(ul.has(y)||y.removeAttribute(a),ul.delete(y)),k||y.removeAttribute(s)}),md--,md||($s=new WeakMap,$s=new WeakMap,ul=new WeakMap,dl={})}},fx=function(t,n,s){s===void 0&&(s="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),c=Z2(t);return c?(a.push.apply(a,Array.from(c.querySelectorAll("[aria-live]"))),tE(a,c,s,"aria-hidden")):function(){return null}},Nf="Dialog",[hx,PR]=An(Nf),[rE,pr]=hx(Nf),px=t=>{const{__scopeDialog:n,children:s,open:a,defaultOpen:c,onOpenChange:u,modal:f=!0}=t,h=m.useRef(null),g=m.useRef(null),[v=!1,x]=Vl({prop:a,defaultProp:c,onChange:u});return i.jsx(rE,{scope:n,triggerRef:h,contentRef:g,contentId:qs(),titleId:qs(),descriptionId:qs(),open:v,onOpenChange:x,onOpenToggle:m.useCallback(()=>x(y=>!y),[x]),modal:f,children:s})};px.displayName=Nf;var mx="DialogTrigger",gx=m.forwardRef((t,n)=>{const{__scopeDialog:s,...a}=t,c=pr(mx,s),u=at(n,c.triggerRef);return i.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Rf(c.open),...a,ref:u,onClick:we(t.onClick,c.onOpenToggle)})});gx.displayName=mx;var Tf="DialogPortal",[nE,vx]=hx(Tf,{forceMount:void 0}),yx=t=>{const{__scopeDialog:n,forceMount:s,children:a,container:c}=t,u=pr(Tf,n);return i.jsx(nE,{scope:n,forceMount:s,children:m.Children.map(a,f=>i.jsx(Kr,{present:s||u.open,children:i.jsx(Ul,{asChild:!0,container:c,children:f})}))})};yx.displayName=Tf;var Tl="DialogOverlay",xx=m.forwardRef((t,n)=>{const s=vx(Tl,t.__scopeDialog),{forceMount:a=s.forceMount,...c}=t,u=pr(Tl,t.__scopeDialog);return u.modal?i.jsx(Kr,{present:a||u.open,children:i.jsx(oE,{...c,ref:n})}):null});xx.displayName=Tl;var sE=co("DialogOverlay.RemoveScroll"),oE=m.forwardRef((t,n)=>{const{__scopeDialog:s,...a}=t,c=pr(Tl,s);return i.jsx(Cf,{as:sE,allowPinchZoom:!0,shards:[c.contentRef],children:i.jsx(Le.div,{"data-state":Rf(c.open),...a,ref:n,style:{pointerEvents:"auto",...a.style}})})}),cs="DialogContent",wx=m.forwardRef((t,n)=>{const s=vx(cs,t.__scopeDialog),{forceMount:a=s.forceMount,...c}=t,u=pr(cs,t.__scopeDialog);return i.jsx(Kr,{present:a||u.open,children:u.modal?i.jsx(iE,{...c,ref:n}):i.jsx(aE,{...c,ref:n})})});wx.displayName=cs;var iE=m.forwardRef((t,n)=>{const s=pr(cs,t.__scopeDialog),a=m.useRef(null),c=at(n,s.contentRef,a);return m.useEffect(()=>{const u=a.current;if(u)return fx(u)},[]),i.jsx(bx,{...t,ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(t.onCloseAutoFocus,u=>{var f;u.preventDefault(),(f=s.triggerRef.current)==null||f.focus()}),onPointerDownOutside:we(t.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:we(t.onFocusOutside,u=>u.preventDefault())})}),aE=m.forwardRef((t,n)=>{const s=pr(cs,t.__scopeDialog),a=m.useRef(!1),c=m.useRef(!1);return i.jsx(bx,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var f,h;(f=t.onCloseAutoFocus)==null||f.call(t,u),u.defaultPrevented||(a.current||(h=s.triggerRef.current)==null||h.focus(),u.preventDefault()),a.current=!1,c.current=!1},onInteractOutside:u=>{var g,v;(g=t.onInteractOutside)==null||g.call(t,u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const f=u.target;((v=s.triggerRef.current)==null?void 0:v.contains(f))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),bx=m.forwardRef((t,n)=>{const{__scopeDialog:s,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:u,...f}=t,h=pr(cs,s),g=m.useRef(null),v=at(n,g);return nx(),i.jsxs(i.Fragment,{children:[i.jsx(_f,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:c,onUnmountAutoFocus:u,children:i.jsx(zl,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Rf(h.open),...f,ref:v,onDismiss:()=>h.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(lE,{titleId:h.titleId}),i.jsx(uE,{contentRef:g,descriptionId:h.descriptionId})]})]})}),Pf="DialogTitle",jx=m.forwardRef((t,n)=>{const{__scopeDialog:s,...a}=t,c=pr(Pf,s);return i.jsx(Le.h2,{id:c.titleId,...a,ref:n})});jx.displayName=Pf;var Sx="DialogDescription",kx=m.forwardRef((t,n)=>{const{__scopeDialog:s,...a}=t,c=pr(Sx,s);return i.jsx(Le.p,{id:c.descriptionId,...a,ref:n})});kx.displayName=Sx;var Ex="DialogClose",_x=m.forwardRef((t,n)=>{const{__scopeDialog:s,...a}=t,c=pr(Ex,s);return i.jsx(Le.button,{type:"button",...a,ref:n,onClick:we(t.onClick,()=>c.onOpenChange(!1))})});_x.displayName=Ex;function Rf(t){return t?"open":"closed"}var Cx="DialogTitleWarning",[RR,Nx]=zj(Cx,{contentName:cs,titleName:Pf,docsSlug:"dialog"}),lE=({titleId:t})=>{const n=Nx(Cx),s=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users. 380 381If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component. 382 383For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},cE="DialogDescriptionWarning",uE=({contentRef:t,descriptionId:n})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Nx(cE).contentName}}.`;return m.useEffect(()=>{var u;const c=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");n&&c&&(document.getElementById(n)||console.warn(a))},[a,t,n]),null},dE=px,fE=gx,hE=yx,Tx=xx,Px=wx,Rx=jx,Ax=kx,Ox=_x;const Ix=dE,AR=fE,pE=hE,OR=Ox,Mx=m.forwardRef(({className:t,...n},s)=>i.jsx(Tx,{ref:s,className:Me("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...n}));Mx.displayName=Tx.displayName;const Af=m.forwardRef(({className:t,children:n,...s},a)=>i.jsxs(pE,{children:[i.jsx(Mx,{}),i.jsxs(Px,{ref:a,className:Me("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
383nded-lg",t),...s,children:[n,i.jsxs(Ox,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[i.jsx(ls,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Af.displayName=Px.displayName;const Of=({className:t,...n})=>i.jsx("div",{className:Me("flex flex-col space-y-1.5 text-center sm:text-left",t),...n});Of.displayName="DialogHeader";const If=({className:t,...n})=>i.jsx("div",{className:Me("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...n});If.displayName="DialogFooter";const Mf=m.forwardRef(({className:t,...n},s)=>i.jsx(Rx,{ref:s,className:Me("text-lg font-semibold leading-none tracking-tight",t),...n}));Mf.displayName=Rx.displayName;const Df=m.forwardRef(({className:t,...n},s)=>i.jsx(Ax,{ref:s,className:Me("text-sm text-muted-foreground",t),...n}));Df.displayName=Ax.displayName;const mE=wf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:bg-gray-700",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Fe=m.forwardRef(({className:t,variant:n,size:s,asChild:a=!1,...c},u)=>{const f=a?Vj:"button";return i.jsx(f,{className:Me(mE({variant:n,size:s,className:t})),ref:u,...c})});Fe.displayName="Button";const Lf=m.forwardRef(({className:t,...n},s)=>i.jsx("textarea",{className:Me("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
383ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...n}));Lf.displayName="Textarea";const gE=[{type:"loving_karri",emoji:"ð",label:"Loving KARRI so far!"},{type:"helpful",emoji:"ð",label:"Helpful"},{type:"getting_better",emoji:"ð",label:"Getting Better"},{type:"needs_work",emoji:"ð¤",label:"Needs Work"},{type:"suggestion",emoji:"ð¡",label:"Have a Suggestion"}];function vE({isOpen:t,onClose:n,loginCount:s}){const[a,c]=m.useState(null),[u,f]=m.useState(""),[h,g]=m.useState(!1);Ii();const v=Dt({mutationFn:async S=>it("POST","/api/feedback/login",S),onSuccess:()=>{dt({title:"Thank you!",description:"Your feedback helps us make KARRI even better for your career journey!"}),n(),x()},onError:S=>{console.error("Failed to submit login feedback:",S),dt({title:"Oops!",description:"We couldn't record your feedback right now. Please try again.",variant:"destructive"})}}),x=()=>{c(null),f(""),g(!1)},y=S=>{c(S),(S==="suggestion"||S==="needs_work")&&g(!0)},b=()=>{if(!a){dt({title:"Please select your feedback",description:"Choose one of the options to continue.",variant:"destructive"});return}const S={feedbackType:a,feedbackText:u};v.mutate(S)},k=()=>{const S={feedbackType:"skipped",feedbackText:""};v.mutate(S)},E=()=>s===5?"Welcome back! How's your KARRI experience?":s===10?"You're getting the hang of it! Quick feedback?":s===15?"You're a regular now! How are we doing?":s===20?"KARRI Power User! Share your thoughts?":s>=25?"KARRI Champion! Your feedback matters!":"Quick check-in! How's KARRI working for you?",j=()=>s===5?"You've logged in 5 times! We'd love to hear how KARRI is helping your career journey.":`After ${s} logins, your insights help us make KARRI even better for ambitious professionals like you!`;return i.jsx(Ix,{open:t,onOpenChange:n,children:i.jsxs(Af,{className:"sm:max-w-[500px] bg-gradient-to-br from-blue-50 to-purple-50 dark:from-gray-900 dark:to-gray-800 border-2 border-gradient-to-r from-blue-200 to-purple-200",children:[i.jsxs(Of,{className:"text-center space-y-3",children:[i.jsx(Mf,{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:E()}),i.jsx(Df,{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:j()})]}),i.jsxs("div",{className:"space-y-6 py-4",children:[i.jsx("div",{className:"grid grid-cols-1 gap-3",children:gE.map(S=>i.jsxs("button",{onClick:()=>y(S.type),className:`p-4 rounded-lg border-2 transition-all duration-200 text-left flex items-center space-x-3 hover:scale-105 ${a===S.type?"border-blue-500 bg-blue-50 dark:bg-blue-900/20 shadow-lg":"border-gray-200 dark:border-gray-700 hover:border-blue-300 dark:hover:border-blue-600"}`,children:[i.jsx("span",{className:"text-2xl",children:S.emoji}),i.jsx("span",{className:"font-medium text-gray-700 dark:text-gray-200",children:S.label})]},S.type))}),h&&i.jsxs("div",{className:"space-y-2 animate-in slide-in-from-top-2 duration-300",children:[i.jsx("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:a==="suggestion"?"What would you like to see improved?":"Tell us more:"}),i.jsx(Lf,{value:u,onChange:S=>f(S.target.value),placeholder:a==="suggestion"?"Share your ideas for making KARRI even better...":"We'd love to hear more about your experience...",className:"min-h-[100px] border-2 focus:border-blue-500 dark:focus:border-blue-400"})]})]}),i.jsxs(If,{className:"flex justify-between items-center pt-4",children:[i.jsx(Fe,{variant:"ghost",onClick:k,className:"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",disabled:v.isPending,children:"Skip for now"}),i.jsx(Fe,{onClick:b,disabled:!a||v.isPending,className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-medium px-6",children:v.isPending?"Submitting...":"Submit Feedback"})]})]})})}const yE=m.createContext(void 0);function xE({children:t}){const[n,s]=m.useState(!1),[a,c]=m.useState(0),{data:u}=$r({queryKey:["/api/user"],enabled:!0,retry:!1,staleTime:1e3*60*5});m.useEffect(()=>{u!=null&&u.loginCount&&u.loginCount>0&&c(u.loginCount)},[u==null?void 0:u.loginCount]);const f={showFeedbackModal:n,setShowFeedbackModal:s,userLoginCount:a};return i.jsxs(yE.Provider,{value:f,children:[t,i.jsx(vE,{isOpen:n,onClose:()=>s(!1),loginCount:a})]})}const wE={threshold:50,delay:1e4,aggressive:!1,enabled:!0},bE=(t={})=>{const n={...wE,...t},[s,a]=m.useState({isExiting:!1,canShow:!1,timeOnPage:0,mousePosition:{x:0,y:0},exitAttempts:0}),c=m.useRef(Date.now()),u=m.useRef({x:0,y:0}),f=m.useRef(0),h=m.useRef(!1),g=m.useRef([]),v=m.useCallback(()=>{const S=Date.now()-c.current>=n.delay,C=f.current>20,N=window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100>10;return S&&C&&N},[n.delay]),x=m.useCallback(j=>{if(!n.enabled||h.current)return;const S=Date.now(),C=j.clientY,M=j.clientX;u.current={x:M,y:C},f.current+=1,g.current.push({time:S,y:C}),g.current.length>5&&g.current.shift();const N=C<=n.threshold;let A=!1;if(g.current.length>=3){const I=g.current.slice(-3),V=I[I.length-1].time-I[0].time,Q=I[0].y-I[I.length-1].y;A=Q/V>1&&Q>50}const D=C<=0||M<=0||M>=window.innerWidth||C>=window.innerHeight;(n.aggressive?N||A||D:N&&A)&&v()&&(h.current=!0,a(I=>({...I,isExiting:!0,canShow:!0,timeOnPage:Date.now()-c.current,mousePosition:{x:M,y:C},exitAttempts:I.exitAttempts+1})))},[n,v]),y=m.useCallback(()=>{document.hidden&&!h.current&&v()&&(h.current=!0,a(j=>({...j,isExiting:!0,canShow:!0,timeOnPage:Date.now()-c.current,exitAttempts:j.exitAttempts+1})))},[v]),b=m.useCallback(j=>{!h.current&&v()&&(h.current=!0,a(S=>({...S,isExiting:!0,canShow:!0,timeOnPage:Date.now()-c.current,exitAttempts:S.exitAttempts+1})))},[v]);m.useEffect(()=>{const j=setInterval(()=>{a(S=>({...S,timeOnPage:Date.now()-c.current,mousePosition:u.current}))},1e3);return()=>clearInterval(j)},[]),m.useEffect(()=>{if(n.enabled)return document.addEventListener("mousemove",x,{passive:!0}),document.addEventListener("visibilitychange",y),window.addEventListener("beforeunload",b),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("visibilitychange",y),window.removeEventListener("beforeunload",b)}},[x,y,b,n.enabled]);const k=m.useCallback(()=>{a(j=>({...j,isExiting:!1,canShow:!1}))},[]),E=m.useCallback(()=>{h.current=!0,a(j=>({...j,isExiting:!1,canShow:!1}))},[]);return{exitIntentData:s,resetExitIntent:k,disableDetection:E,isEngaged:v()}},jE={minTimeOnSite:3e4,minPageViews:2,minScrollDepth:25,cooldownPeriod:1440*60*1e3,maxShowsPerUser:3,engagementScore:50},SE=()=>{const{user:t,isPremiumUser:n}=Ht(),[s]=mt(),[a,c]=m.useState({timeOnSite:0,pageViews:1,maxScrollDepth:0,clicksCount:0,interactionsCount:0,currentPage:s,previousPages:[],sessionId:y(),firstVisit:!0}),[u,f]=m.useState(!1),[h,g]=m.useState(!1),[v,x]=m.useState(null);function y(){return`session_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}const b=m.useCallback(()=>{try{const I=localStorage.getItem("exitIntentHistory");if(I)return JSON.parse(I)}catch(I){console.error("Error loading exit intent history:",I)}return{lastShown:0,totalShows:0,conversions:0,dismissals:0,shownOffers:[]}},[]),k=m.useCallback(I=>{try{localStorage.setItem("exitIntentHistory",JSON.stringify(I)),x(I)}catch(V){console.error("Error saving exit intent history:",V)}},[]),E=m.useCallback(I=>{let V=0;const Q=Math.min(30,I.timeOnSite/6e4*10);V+=Q;const Z=Math.min(20,I.pageViews*5);V+=Z;const le=Math.min(25,I.maxScrollDepth/100*25);V+=le;const te=Math.min(15,I.interactionsCount*2);V+=te;const de=Math.min(10,I.clicksCount*1);return V+=de,Math.round(V)},[]),j=m.useCallback((I,V,Q=jE)=>!(n||Date.now()-V.lastShown<Q.cooldownPeriod||V.totalShows>=Q.maxShowsPerUser||V.lastConversion&&Date.now()-V.lastConversion<10080*60*1e3||V.lastDismissal&&Date.now()-V.lastDismissal<1440*60*1e3||I.timeOnSite<Q.minTimeOnSite||I.pageViews<Q.minPageViews||I.maxScrollDepth<Q.minScrollDepth||E(I)<Q.engagementScore),[n,E]),S=m.useCallback((I,V)=>{const{currentPage:Q,timeOnSite:Z,pageViews:le,previousPages:te}=I,{shownOffers:de}=V,fe=["limited_time_50_off","extended_trial","career_breakthrough","instant_value"].filter(oe=>!de.includes(oe));return fe.length===0?"limited_time_50_off":Q.includes("pricing")||Q.includes("premium")?fe.includes("instant_value")?"instant_value":fe[0]:Z>12e4?fe.includes("career_breakthrough")?"career_breakthrough":fe[0]:Z<3e4||le===1?fe.includes("extended_trial")?"extended_trial":fe[0]:fe.includes("limited_time_50_off")?"limited_time_50_off":fe[0]},[]),C=m.useCallback(I=>{c(V=>({...V,...I==="click"&&{clicksCount:V.clicksCount+1},...I==="interaction"&&{interactionsCount:V.interactionsCount+1}}))},[]),M=m.useCallback(I=>{c(V=>({...V,currentPage:I,previousPages:[...V.previousPages,V.currentPage].slice(-5),pageViews:V.pageViews+1}))},[]),N=m.useCallback(I=>{if(!v)return;const V={...v,lastShown:Date.now(),totalShows:v.totalShows+1,shownOffers:[...v.shownOffers,I]};k(V)},[v,k]),A=m.useCallback(I=>{if(!v)return;const V={...v,conversions:v.conversions+1,lastConversion:Date.now()};k(V)},[v,k]),D=m.useCallback(I=>{if(!v)return;const V={...v,dismissals:v.dismissals+1,lastDismissal:Date.now()};k(V)},[v,k]);m.useEffect(()=>{const I=b();x(I)},[b]),m.useEffect(()=>{const I=setInterval(()=>{c(V=>({...V,timeOnSite:V.timeOnSite+1e3}))},1e3);return()=>clearInterval(I)},[]),m.useEffect(()=>{const I=()=>{const V=window.scrollY,Q=document.documentElement.scrollHeight-window.innerHeight,Z=Math.round(V/Q*100);c(le=>({...le,maxScrollDepth:Math.max(le.maxScrollDepth,Z||0)}))};return window.addEventListener("scroll",I,{passive:!0}),()=>window.removeEventListener("scroll",I)},[]),m.useEffect(()=>{const I=()=>C("click"),V=()=>C("interaction"),Q=()=>C("interaction");document.addEventListener("click",I),document.addEventListener("keypress",V);let Z;const le=()=>{clearTimeout(Z),Z=setTimeout(()=>Q(),2e3)};return document.addEventListener("mousemove",le,{passive:!0}),()=>{document.removeEventListener("click",I),document.removeEventListener("keypress",V),document.removeEventListener("mousemove",le),
383clearTimeout(Z)}},[C]),m.useEffect(()=>{M(s)},[s,M]),m.useEffect(()=>{if(!v)return;const I=j(a,v);f(I),g(I&&!h)},[a,v,j,h]);const U=m.useCallback(()=>v?S(a,v):"limited_time_50_off",[a,v,S]);return{isEligible:u,shouldShow:h,userBehavior:a,targetingData:v,engagementScore:E(a),recommendedOffer:U(),trackInteraction:C,trackPageView:M,recordShown:N,recordConversion:A,recordDismissal:D,resetShouldShow:()=>g(!1)}},kE=wf("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function go({className:t,variant:n,...s}){return i.jsx("div",{className:Me(kE({variant:n}),t),...s})}const pi=[{id:"limited_time_50_off",title:"Wait! Don't Leave Empty-Handed",subtitle:"This exclusive offer expires in minutes",discount:"50% OFF",originalPrice:"$25",salePrice:"$12.50",urgencyText:"This offer expires when you close this tab",ctaText:"Claim My 50% Discount",badge:"LIMITED TIME",icon:i.jsx(My,{className:"h-6 w-6"}),gradient:"from-orange-500 to-red-600",features:["20 AI coaching sessions monthly","Unlimited resume optimization","Interview coaching & prep","Career transition planning","Priority support"],testimonial:{text:"I got 3 interviews in my first week using KARRI Premium. Best investment ever!",author:"Sarah M.",role:"Software Engineer"}},{id:"extended_trial",title:"Before You Go...",subtitle:"Experience the full power of KARRI Premium",discount:"FREE",originalPrice:"$25",salePrice:"7 Days",urgencyText:"Extended trial only available for the next 60 seconds",ctaText:"Start My 7-Day Free Trial",badge:"EXCLUSIVE",icon:i.jsx(VS,{className:"h-6 w-6"}),gradient:"from-purple-500 to-pink-600",features:["Full premium access for 7 days","20 AI coaching sessions","Resume roaster unlimited","Interview ghosting diagnosis","No credit card required"],testimonial:{text:"The extended trial let me land my dream job before it even ended!",author:"Mike T.",role:"Product Manager"}},{id:"career_breakthrough",title:"Your Career Breakthrough Awaits",subtitle:"Join 10,000+ professionals who transformed their careers",discount:"67% MORE",originalPrice:"Average",salePrice:"Interviews",urgencyText:"Last chance to unlock your career potential",ctaText:"Unlock My Career Breakthrough",badge:"PROVEN RESULTS",icon:i.jsx(Iy,{className:"h-6 w-6"}),gradient:"from-emerald-500 to-blue-600",features:["AI-powered career optimization","Personalized interview prep","Resume that beats ATS systems","Salary negotiation guidance","90-day success guarantee"],testimonial:{text:"I went from 2 interviews in 6 months to 8 interviews in 3 weeks!",author:"Jennifer L.",role:"Data Scientist"}},{id:"instant_value",title:"Don't Miss This Opportunity",subtitle:"Everything you need to accelerate your career",discount:"INSTANT",originalPrice:"Access",salePrice:"$19/mo",urgencyText:"Special pricing available only in this session",ctaText:"Get Instant Access Now",badge:"BEST VALUE",icon:i.jsx(DS,{className:"h-6 w-6"}),gradient:"from-amber-500 to-orange-600",features:["Complete career toolkit","AI resume optimization","Mock interview sessions","Salary insights database","24/7 career guidance"],testimonial:{text:"The ROI was immediate - got a 40% salary increase within 30 days!",author:"David R.",role:"Marketing Director"}}];function EE({isOpen:t,onClose:n,onConvert:s,userContext:a}){const{user:c,isPremiumUser:u}=Ht(),[,f]=mt(),{toast:h}=Mi(),[g,v]=m.useState(null),[x,y]=m.useState(300),[b,k]=m.useState(!1);if(m.useEffect(()=>{if(!t||g)return;let C=pi[0];if(a){const{timeOnPage:M,currentPage:N,previouslyShown:A}=a;if(M>12e4)C=pi[2];else if(M<3e4)C=pi[1];else if(N.includes("pricing")||N.includes("premium"))C=pi[3];else{const D=pi.filter(U=>!A.includes(U.id));D.length>0&&(C=D[Math.floor(Math.random()*D.length)])}}v(C),k(!0)},[t,a,g]),m.useEffect(()=>{if(!t||x<=0)return;const C=setInterval(()=>{y(M=>Math.max(0,M-1))},1e3);return()=>clearInterval(C)},[t,x]),u||!g)return null;const E=C=>{const M=Math.floor(C/60),N=C%60;return`${M}:${N.toString().padStart(2,"0")}`},j=()=>{s(g.id),localStorage.setItem("exitIntentConversion",JSON.stringify({offerId:g.id,timestamp:Date.now()})),f(`/pricing?offer=${g.id}&exitIntent=true`),h({title:"Exclusive Offer Activated!",description:"Your special discount is waiting at checkout."})},S=()=>
383{localStorage.setItem("exitIntentDismissed",JSON.stringify({offerId:g.id,timestamp:Date.now()})),n()};return t?i.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",children:[i.jsx("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm",onClick:S}),i.jsx("div",{className:`relative w-full max-w-2xl mx-4 transform transition-all duration-500 ${b?"scale-100 opacity-100":"scale-95 opacity-0"}`,children:i.jsxs("div",{className:"relative bg-white dark:bg-gray-900 rounded-2xl shadow-2xl overflow-hidden border border-gray-200 dark:border-gray-700",children:[i.jsx("button",{onClick:S,className:"absolute top-4 right-4 z-10 p-2 rounded-full bg-white/10 hover:bg-white/20 transition-colors",children:i.jsx(ls,{className:"h-5 w-5 text-white"})}),i.jsxs("div",{className:`relative px-8 py-8 bg-gradient-to-r ${g.gradient} text-white overflow-hidden`,children:[i.jsx("div",{className:"absolute inset-0 opacity-10",children:i.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}})}),i.jsxs("div",{className:"relative",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[g.icon,g.badge&&i.jsx(go,{className:"bg-white/20 text-white border-white/30 hover:bg-white/30",children:g.badge})]}),i.jsx("h2",{className:"text-3xl font-bold mb-2",children:g.title}),i.jsx("p",{className:"text-white/90 text-lg",children:g.subtitle}),i.jsxs("div",{className:"flex items-center gap-2 mt-4 p-3 bg-white/20 rounded-lg backdrop-blur-sm",children:[i.jsx(IS,{className:"h-5 w-5"}),i.jsx("span",{className:"font-mono text-xl font-bold",children:E(x)}),i.jsx("span",{className:"text-white/90",children:g.urgencyText})]})]})]}),i.jsxs("div",{className:"p-8",children:[i.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"text-center mb-6",children:[i.jsx("div",{className:"text-5xl font-bold text-gray-900 dark:text-white mb-2",children:g.discount}),i.jsxs("div",{className:"flex items-center justify-center gap-2",children:[i.jsx("span",{className:"text-2xl text-gray-500 line-through",children:g.originalPrice}),i.jsx("span",{className:"text-3xl font-bold text-emerald-600",children:g.salePrice}),g.id!=="extended_trial"&&i.jsx("span",{className:"text-gray-600",children:"/month"})]})]}),i.jsxs(Fe,{onClick:j,className:`w-full py-4 text-lg font-semibold bg-gradient-to-r ${g.gradient} hover:opacity-90 transition-all transform hover:scale-105 shadow-lg`,children:[i.jsx(ss,{className:"h-5 w-5 mr-2"}),g.ctaText]}),i.jsx("p",{className:"text-center text-sm text-gray-500 mt-3",children:"No commitment ⢠Cancel anytime ⢠30-day money-back guarantee"})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"font-bold text-lg mb-4 flex items-center gap-2",children:[i.jsx(Si,{className:"h-5 w-5 text-yellow-500"}),"Everything You Get:"]}),i.jsx("ul",{className:"space-y-3",children:g.features.map((C,M)=>i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"h-5 w-5 rounded-full bg-emerald-100 dark:bg-emerald-900 flex items-center justify-center mt-0.5",children:i.jsx("div",{className:"h-2 w-2 rounded-full bg-emerald-600"})}),i.jsx("span",{className:"text-gray-700 dark:text-gray-300",children:C})]},M))}),g.testimonial&&i.jsxs("div",{className:"mt-6 p-4 bg-gray-50 dark:bg-gray-800 rounded-lg",children:[i.jsxs("p",{className:"text-sm italic text-gray-600 dark:text-gray-400 mb-2",children:['"',g.testimonial.text,'"']}),i.jsxs("div",{className:"text-sm font-medium",children:[i.jsx("span",{className:"text-gray-900 dark:text-white",children:g.testimonial.author}),i.jsxs("span",{className:"text-gray-500 ml-1",children:["⢠",g.testimonial.role]})]})]})]})]}),i.jsxs("div",{className:"mt-8 pt-6 border-t border-gray-200 dark:border-gray-700 text-center",children:[i.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-4",children:"Join 10,000+ professionals who've accelerated their careers with K.A.R.R.I."}),i.jsxs("div",{className:"flex justify-center items-center gap-6 text-sm text-gray-500",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"h-2 w-2 rounded-full bg-emerald-500"}),i.jsx("span",{children:"4.9/5 Rating"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"h-2 w-2 rounded-full bg-emerald-500"}),i.jsx("span",{children:"67% More Interviews"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"h-2 w-2 rounded-full bg-emerald-500"}),i.jsx("span",{children:"30-Day Guarantee"})]})]})]})]})]})})]}):null}const _E=m.createContext(null);function CE({children:t,enabled:n=!0,config:s={}}){var A;const{user:a,isPremiumUser:c}=Ht(),[u]=mt(),[f,h]=m.useState(!1),[g,v]=m.useState(n),[x,y]=m.useState({impressions:0,conversions:0,dismissals:0,conversionRate:0}),b=bE({enabled:g&&!c,aggressive:s.aggressive??!1,threshold:s.threshold??50,delay:s.delay??1e4}),k=SE();m.useEffect(()=>{try{const D=localStorage.getItem("exitIntentAnalytics");if(D){const U=JSON.parse(D);y({...U,conversionRate:U.impressions>0?U.conversions/U.impressions*100:0})}}catch(D){console.error("Error loading exit intent analytics:",D)}},[]);const E=D=>{y(U=>{const I={...U,impressions:U.impressions+(D==="impression"?1:0),conversions:U.conversions+(D==="conversion"?1:0),dism
383issals:U.dismissals+(D==="dismissal"?1:0)};I.conversionRate=I.impressions>0?I.conversions/I.impressions*100:0;try{localStorage.setItem("exitIntentAnalytics",JSON.stringify(I))}catch(V){console.error("Error saving exit intent analytics:",V)}return I})};m.useEffect(()=>{b.exitIntentData.isExiting&&k.isEligible&&k.shouldShow&&!f&&!c&&g&&(h(!0),E("impression"),k.recordShown(k.recommendedOffer),k.resetShouldShow(),b.resetExitIntent(),console.log("Exit intent modal triggered:",{offerId:k.recommendedOffer,userBehavior:k.userBehavior,engagementScore:k.engagementScore}))},[b.exitIntentData.isExiting,k.isEligible,k.shouldShow,f,c,g]),m.useEffect(()=>{c&&(v(!1),h(!1),b.disableDetection())},[c]);const j=()=>{h(!1),E("dismissal"),k.recordDismissal(k.recommendedOffer),b.disableDetection(),console.log("Exit intent modal dismissed"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("trigger-exit-feedback",{detail:{type:"exit_intent",context:{page:u,exitIntentOffer:k.recommendedOffer,dismissed:!0}}}))},1e3)},S=D=>{h(!1),E("conversion"),k.recordConversion(D),b.disableDetection();try{window.gtag&&window.gtag("event","exit_intent_conversion",{event_category:"engagement",event_label:D,value:1});const U={type:"exit_intent_conversion",offerId:D,timestamp:Date.now(),userId:(a==null?void 0:a.id)||"anonymous",userBehavior:k.userBehavior,engagementScore:k.engagementScore},I=JSON.parse(localStorage.getItem("exitIntentConversions")||"[]");I.push(U),localStorage.setItem("exitIntentConversions",JSON.stringify(I.slice(-100)))}catch(U){console.error("Error tracking exit intent conversion:",U)}console.log("Exit intent conversion:",D)},C=()=>{!c&&g&&(h(!0),E("impression"),k.recordShown(k.recommendedOffer))},M=()=>{h(!1)};m.useEffect(()=>{},[g,c,f,b.exitIntentData,k,x]);const N={isModalOpen:f,showModal:C,hideModal:M,isEnabled:g,setEnabled:v,analytics:x};return i.jsxs(_E.Provider,{value:N,children:[t,i.jsx(EE,{isOpen:f,onClose:j,onConvert:S,userContext:{timeOnPage:k.userBehavior.timeOnSite,currentPage:u,previouslyShown:((A=k.targetingData)==null?void 0:A.shownOffers)||[]}})]})}const NE=[{type:"loved_it",emoji:"ð¥",label:"Loved it!"},{type:"helpful",emoji:"ð",label:"Helpful"},{type:"somewhat_helpful",emoji:"ð¤",label:"Somewhat Helpful"},{type:"not_helpful",emoji:"ð",label:"Not Helpful"},{type:"suggestion",emoji:"ð¡",label:"Have a Suggestion"}];function TE({isOpen:t,onClose:n,activityType:s="exit_intent",context:a={}}){const[c,u]=m.useState(null),[f,h]=m.useState(""),[g,v]=m.useState(0),[x,y]=m.useState(!1),b=Dt({mutationFn:async N=>it("POST","/api/feedback/exit",N),onSuccess:()=>{dt({title:"Thank you!",description:"Your feedback helps us improve your experience!"}),window.dispatchEvent(new CustomEvent("exit-feedback-complete")),n(),k()},onError:N=>{console.error("Failed to submit exit feedback:",N),dt({title:"Oops!",description:"We couldn't record your feedback right now. Please try again.",variant:"destructive"}),window.dispatchEvent(new CustomEvent("exit-feedback-complete"))}}),k=()=>{u(null),h(""),v(0),y(!1)},E=N=>{u(N),y(N==="suggestion"||N==="not_helpful")},j=()=>{if(!c){dt({title:"Please select your feedback",description:"Choose one of the options to continue.",variant:"destructive"});return}const N={feedbackType:c,feedbackText:f,rating:g>0?g:null,activityType:s,context:a};b.mutate(N)},S=()=>{const N={feedbackType:"skipped",feedbackText:"",rating:null,activityType:s,context:a};b.mutate(N)},C=()=>s==="logout"?"Before you go...":s==="feature_complete"?"How was your experience?":"Quick feedback?",M=()=>s==="logout"?"Help us improve! How was your session today?":a.feature?`How was your experience with ${a.feature}?`:"Your feedback helps us make KARRI better for you!";return i.jsx(Ix,{open:t,onOpenChange:n,children:i.jsxs(Af,{className:"sm:max-w-[500px] bg-gradient-to-br from-blue-50 to-purple-50 dark:from-gray-900 dark:to-gray-800",children:[i.jsxs(Of,{className:"text-center space-y-3",children:[i.jsx(Mf,{className:"text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent",children:C()}),i.jsx(Df,{className:"text-gray-600 dark:text-gray-300",children:M()})]}),i.jsxs("div",{className:"space-y-6 py-4",children:[i.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[i.jsx("p",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:"Rate your experience"}),i.jsx("div",{className:"flex gap-2",children:[1,2,3,4,5].map(N=>i.jsx("button",{onClick:()=>v(N),className:"transition-transform hover:scale-110",children:i.jsx(Si,{className:`h-8 w-8 ${N<=g?"fill-yellow-400 text-yellow-400":"text-gray-300 dark:text-gray-600"}`})},N))})]}),i.jsx("div",{className:"grid grid-cols-1 gap-3",children:NE.map(N=>i.jsxs("button",{onClick:()=>E(N.type),className:`p-4 rounded-lg border-2 transition-all duration-200 text-left flex items-center space-x-3 hover:scale-105 ${c===N.type?"border-blue-500 bg-blue-50 dark:bg-blue-900/20 shadow-lg":"border-gray-200 dark:border-gray-700 hover:border-blue-300 dark:hover:border-blue-600"}`,children:[i.jsx("span",{className:"text-2xl",children:N.emoji}),i.jsx("span",{className:"font-medium text-gray-700 dark:text-gray-200",children:N.label})]},N.type))}),x&&i.jsxs("div",{className:"space-y-2 animate-in slide-in-from-top-2 duration-300",children:[i.jsx("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-200",children:c==="suggestion"?"What would you like to see improved?":"Tell us more:"}),i.jsx(Lf,{value:f,onChange:N=>h(N.target.value),placeholder:c==="suggestion"?"Share your ideas for making KARR
383I even better...":"We'd love to hear more about your experience...",className:"min-h-[100px] border-2 focus:border-blue-500 dark:focus:border-blue-400"})]})]}),i.jsxs(If,{className:"flex justify-between items-center pt-4",children:[i.jsx(Fe,{variant:"ghost",onClick:S,className:"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",disabled:b.isPending,children:"Skip for now"}),i.jsx(Fe,{onClick:j,disabled:!c||b.isPending,className:"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-medium px-6",children:b.isPending?"Submitting...":"Submit Feedback"})]})]})})}const PE=m.createContext(void 0);function RE({children:t}){const{user:n}=Ht(),[s]=mt(),[a,c]=m.useState(!1),[u,f]=m.useState("exit_intent"),[h,g]=m.useState({}),[v]=m.useState(Date.now()),x=m.useCallback(()=>{if(!(n!=null&&n.id))return!1;const j=`exitFeedback_session_${n.id}`;return!sessionStorage.getItem(j)},[n==null?void 0:n.id]),y=m.useCallback(()=>{if(n!=null&&n.id){const j=`exitFeedback_session_${n.id}`;sessionStorage.setItem(j,Date.now().toString())}},[n==null?void 0:n.id]),b=m.useCallback((j,S={})=>{if(!x()){console.log("Exit feedback already shown this session");return}const C=Math.floor((Date.now()-v)/1e3);f(j),g({...S,page:s,timeOnPage:C}),c(!0),y(),console.log("Exit feedback triggered:",{type:j,context:S})},[x,s,v,y]),k=m.useCallback(()=>{c(!1)},[]);m.useEffect(()=>{const j=S=>{const{type:C,context:M}=S.detail||{};b(C||"exit_intent",M)};return window.addEventListener("trigger-exit-feedback",j),()=>{window.removeEventListener("trigger-exit-feedback",j)}},[b]);const E={showFeedback:b,hideFeedback:k,isShowing:a};return i.jsxs(PE.Provider,{value:E,children:[t,i.jsx(TE,{isOpen:a,onClose:k,activityType:u,context:h})]})}const Te={MAIN:"main",OTO1:"oto1",DS1:"ds1",OTO2:"oto2",DS2:"ds2",OTO3:"oto3",DS3:"ds3",OTO4:"oto4",DS4:"ds4",OTO5:"oto5",DS5:"ds5"},Pe={MAIN:"wp_resume_pack",OTO1:"wp_linkedin_pack",DS1:"wp_brand_generator_only",OTO2:"wp_interview_pack",DS2:"wp_interview_prep_only",OTO3:"wp_karri_chat",DS3:"wp_karri_chat_lite",OTO4:"wp_agency",DS4:"wp_agency_lite",OTO5:"wp_job_search_toolkit",DS5:"wp_performance_reviews"};function Kl(){const{user:t,isPremiumUser:n,hasFullPremiumAccess:s}=Ht(),a=!!t,c=!!(t!=null&&t.isAdmin),u=!!(t!=null&&t.isReviewer),f=!!(t!=null&&t.isSuperUser),h=((t==null?void 0:t.registrationSource)||"").toLowerCase(),g=(t==null?void 0:t.subscriptionTier)||null,x=["warriorplus","admin","wp_migrated","warriorplus_migrated"].includes(h),y=t==null?void 0:t.wpProductTiers,b=(()=>{if(Array.isArray(y))return y;if(typeof y=="string"&&y.startsWith("["))try{const he=JSON.parse(y);return Array.isArray(he)?he:[]}catch{return[]}return[]})(),k=t?x?y==null?!1:(Array.isArray(y)||typeof y=="string"&&y.startsWith("["),!0):(b.length>0,!0):!0;t&&console.log("[WP Debug] User access detection:",{userId:t.id,username:t.username,registrationSource:h,hasWPRegistrationSource:x,rawWpTiers:y,wpProductTiers:b,wpProductTiersLength:b.length,isWPProfileReady:k,computedIsWPUser:b.length>0||x});const E=(he,je)=>b.includes(he)||b.includes(je),j=E(Te.OTO4,Pe.OTO4)||E(Te.DS4,Pe.DS4),S=E(Te.MAIN,Pe.MAIN)||E(Te.OTO1,Pe.OTO1)||E(Te.DS1,Pe.DS1)||E(Te.OTO2,Pe.OTO2)||E(Te.DS2,Pe.DS2)||E(Te.OTO3,Pe.OTO3)||E(Te.DS3,Pe.DS3)||j,C=t==null?void 0:t.appsumoTier,M=C==="tier2"||C==="tier3",N=C==="tier3",A=j||N||E(Te.OTO1,Pe.OTO1)||E(Te.DS1,Pe.DS1),D=j||M||E(Te.OTO2,Pe.OTO2)||E(Te.DS2,Pe.DS2),U=j||E(Te.OTO3,Pe.OTO3)||E(Te.DS3,Pe.DS3),I=E(Te.OTO5,Pe.OTO5),V=E(Te.DS5,Pe.DS5)||j,Q=b.length>0||x,Z=!c&&!u&&!Q&&((t==null?void 0:t.subscriptionTier)==="premium"||(t==null?void 0:t.subscriptionTier)==="karri_premium"||(t==null?void 0:t.subscriptionTier)==="premium_lifetime"||(t==null?void 0:t.isPremium)===!0),le=(t==null?void 0:t.chatCreditsLimit)||null,te=(t==null?void 0:t.chatCreditsUsed)||0,de=le!==null?Math.max(0,le-te):null,ee=(t==null?void 0:t.clientLimit)||null,fe=(t==null?void 0:t.clientsServedThisMonth)||0,oe=ee!==null?Math.max(0,ee-fe):null,ue=!Q&&(g==="karri_premium"||g==="premium"||g==="premium_lifetime"||(t==null?void 0:t.isPremium)===!0),H=!Q&&(g==="karri_premium"||g==="premium"||g==="premium_lifetime"||(t==null?void 0:t.isPremium)===!0),B={isAuthenticated:a,isAdmin:c,isReviewer:u,isSuperUser:f,isPremiumSubscriber:Z,hasResumePackAccess:S,hasLinkedInPackAccess:A,hasInterviewPackAccess:D,hasKarriChatAcce
383ss:U,hasAgencyAccess:j,hasJobSearchToolkitAccess:I,hasPerformanceReviewsAccess:V,wpProductTiers:b,subscriptionTier:g,chatCreditsRemaining:de,clientsRemainingThisMonth:oe},Y=he=>{if(c)return{hasAccess:!0,reason:"Admin access",upgradeAction:"none"};if(u&&!Q)return{hasAccess:!0,reason:"Reviewer access",upgradeAction:"none"};switch(he){case"resume_templates":case"resume_optimizer":case"resume_workspace":case"resume_library":return S||Z||ue?{hasAccess:!0,reason:"Resume Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"Resume Pack required",upgradeAction:"buy_pack",requiredTier:"Resume Pack"};case"resume_roaster":return S||Z||ue?{hasAccess:!0,reason:"Resume Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"Resume Pack required",upgradeAction:"buy_pack",requiredTier:"Resume Pack"};case"cover_letter":return S||Z||ue?{hasAccess:!0,reason:"Resume Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"Resume Pack required",upgradeAction:"buy_pack",requiredTier:"Resume Pack"};case"linkedin_roaster":return A||Z||H?{hasAccess:!0,reason:"LinkedIn Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"LinkedIn Pack required",upgradeAction:"buy_pack",requiredTier:"LinkedIn Pack"};case"brand_generator":return A||Z||H?{hasAccess:!0,reason:"Brand Generator access",upgradeAction:"none"}:E(Te.DS1,Pe.DS1)?{hasAccess:!0,reason:"Brand Generator (standalone) access",upgradeAction:"none"}:{hasAccess:!1,reason:"Brand Generator or LinkedIn Pack required",upgradeAction:"buy_pack",requiredTier:"Brand Generator"};case"interview_prep":case"company_research":return D||Z||H||E(Te.DS2,Pe.DS2)?{hasAccess:!0,reason:"Interview Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"Interview Pack required",upgradeAction:"buy_pack",requiredTier:"Interview Pack"};case"interview_ghost":return E(Te.OTO2,Pe.OTO2)||E(Te.OTO4,Pe.OTO4)||E(Te.DS4,Pe.DS4)||Z||H?{hasAccess:!0,reason:"Interview Mastery Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"Interview Mastery Pack required",upgradeAction:"buy_pack",requiredTier:"Interview Mastery Pack"};case"career_assessment":return D||Z||H||E(Te.DS2,Pe.DS2)?{hasAccess:!0,reason:"Interview Pack access",upgradeAction:"none"}:{hasAccess:!1,reason:"Interview Pack required",upgradeAction:"buy_pack",requiredTier:"Interview Pack"};case"karri_chat":return U||Z||H?de!==null&&de<=0?{hasAccess:!1,reason:"Chat credits depleted for this month",upgradeAction:"none"}:{hasAccess:!0,reason:"KARRI Chat access",upgradeAction:"none"}:{hasAccess:!1,reason:"KARRI Chat subscription required",upgradeAction:"subscribe",requiredTier:"KARRI Chat"};case"job_search_toolkit":return I||Z||H?{hasAccess:!0,reason:"Job Search Toolkit access",upgradeAction:"none"}:{hasAccess:!1,reason:"Job Search Toolkit required",upgradeAction:"buy_pack",requiredTier:"Job Search Toolkit"};case"performance_reviews":return V||Z||H?{hasAccess:!0,reason:"Performance Reviews access",upgradeAction:"none"}:{hasAccess:!1,reason:"Performance Reviews required",upgradeAction:"buy_pack",requiredTier:"Performance Reviews"};case"agency_mode":return j?oe!==null&&oe<=0?{hasAccess:!1,reason:"Client limit reached for this month",upgradeAction:"none"}:{hasAccess:!0,reason:"Agency access",upgradeAction:"none"}:{hasAccess:!1,reason:"Agency subscription required",upgradeAction:"buy_pack",requiredTier:"Agency"};case"saved_documents":return j?{hasAccess:!1,reason:"Agency accounts use print-on-demand only",upgradeAction:"none"}:{hasAccess:!0,reason:"Document saving enabled",upgradeAction:"none"};case"print_on_demand":return{hasAccess:!0,reason:"Print-on-demand available",upgradeAction:"none"};default:return{hasAccess:!1,reason:"Unknown feature",upgradeAction:"none"}}},R=he=>Y(he).hasAccess,W=()=>["resume_templates","resume_optimizer","resume_roaster","linkedin_roaster","brand_generator","interview_prep","interview_ghost","company_research","career_assessment","karri_chat","job_search_toolkit","performance_reviews","agency_mode"].filter(je=>!R(je)),ge=()=>["resume_templates","resume_optimizer","resume_roaster","linkedin_roaster","brand_generator","interview_prep","interview_ghost","company_research","career_assessment","karri_chat","job_search_toolkit","performance_reviews","agency_mode"].filter(je=>R(je)),xe=he=>{if(c||u&&!Q)return"full";switch(he){case"resume":return S||Z||ue?"full":"none";case"linkedin":return E(Te.OTO1,Pe.OTO1)||Z||H||E(Te.OTO4,Pe.OTO4)||E(Te.DS4,Pe.DS4)||N?"full":E(Te.DS1,Pe.DS1)?"downsell":"none";case"interview":return E(Te.OTO2,Pe.OTO2)||Z||H||E(Te.OTO4,Pe.OTO4)||E(Te.DS4,Pe.DS4)||M?"full":E(Te.DS2,Pe.DS2)?"downsell":"none";case"coaching":return E(Te.OTO3,Pe.OTO3)||Z||H||E(Te.OTO4,Pe.OTO4)||E(Te.DS4,Pe.DS4)?"full":E(Te.DS3,Pe.DS3)?"downsell":"none";case"agency":return E(Te.OTO4,Pe.OTO4)?"full":E(Te.DS4,Pe.DS4)?"downsell":"none";case"application_cycle":const je=t==null?void 0:t.appsumoTier;return je&&["tier1","tier2","tier3"].includes(je)?"full":"none";
383case"profile":case"support":return"full";default:return"none"}};return{accessProfile:B,checkFeatureAccess:Y,hasFeature:R,getBlockedFeatures:W,getAvailableFeatures:ge,checkPackAccess:xe,hasPackAccess:he=>xe(he)!=="none",isAdmin:c,isReviewer:u,isSuperUser:f,isWPUser:Q,isWPProfileReady:k,isPremiumSubscriber:Z,hasResumePackAccess:S,hasLinkedInPackAccess:A,hasInterviewPackAccess:D,hasKarriChatAccess:U,hasAgencyAccess:j,hasJobSearchToolkitAccess:I,hasPerformanceReviewsAccess:V,chatCreditsRemaining:de,clientsRemainingThisMonth:oe,WP_TIERS:Pe,WP_TIERS_SHORT:Te}}const IR={resume_tools:{label:"Resume Tools",description:"Build and optimize your resume"},linkedin_tools:{label:"LinkedIn Tools",description:"Enhance your LinkedIn presence"},interview_tools:{label:"Interview Prep",description:"Prepare for your interviews"},career_tools:{label:"Career Planning",description:"Plan your career path"},ai_coaching:{label:"AI Coaching",description:"Get personalized guidance"},agency:{label:"Agency",description:"Manage your coaching clients"}},Dx=[{id:"resume_templates",name:"Resume Builder",description:"Build your professional resume from scratch with AI assistance",icon:qn,route:"/resume-builder",category:"resume_tools",tierRequirements:["main","premium"]},{id:"resume_roaster",name:"Resume Roaster",description:"Get brutally honest AI feedback on your resume",icon:zS,route:"/resume-roaster",category:"resume_tools",tierRequirements:["main","premium"]},{id:"resume_optimizer",name:"AI Resume Optimizer",description:"Optimize your resume for ATS and specific job listings",icon:ss,route:"/resume-optimizer",category:"resume_tools",tierRequirements:["main","premium"]},{id:"cover_letter",name:"Cover Letter Generator",description:"Create tailored cover letters for job applications",icon:Ny,route:"/cover-letter-generator",category:"resume_tools",tierRequirements:["main","premium"]},{id:"linkedin_roaster",name:"LinkedIn Roaster",description:"Get AI feedback on your LinkedIn profile",icon:Bd,route:"/profile-roaster",category:"linkedin_tools",tierRequirements:["oto1","premium"]},{id:"brand_generator",name:"Brand Generator",description:"Create your personal professional brand",icon:Cn,route:"/brand-generator",category:"linkedin_tools",tierRequirements:["oto1","ds1","premium"]},{id:"interview_prep",name:"Interview Prep",description:"Practice interview questions with AI feedback",icon:Gn,route:"/interview-coach",category:"interview_tools",tierRequirements:["oto2","ds2","premium"]},{id:"company_research",name:"Company Research",description:"Get insights on companies before interviews",icon:Ey,route:"/interview-coach?tab=company",category:"interview_tools",tierRequirements:["oto2","ds2","premium"]},{id:"interview_ghost",name:"Ghost Analyzer",description:"Understand why you might be getting ghosted",icon:Ty,route:"/interview-ghosting-diagnosis",category:"interview_tools",tierRequirements:["oto2","premium"]},{id:"career_assessment",name:"Career Assessment",description:"Take the RIASEC personality assessment",icon:Cy,route:"/career-assessment",category:"interview_tools",tierRequirements:["oto2","ds2","premium"]},{id:"job_search_toolkit",name:"Job Search",description:"Search and track job opportunities",icon:BS,route:"/job-search-toolkit",category:"career_tools",tierRequirements:["oto5","premium"]},{id:"job_tracker",name:"Application Tracker",description:"Track your job applications",icon:Cl,route:"/job-tracker",category:"career_tools",tierRequirements:["oto5","premium"]},{id:"salary_lookup",name:"Salary Lookup",description:"Research salary data for positions",icon:Iy,route:"/salary-lookup",category:"career_tools",tierRequirements:["oto5","premium"]},{id:"performance_reviews",name:"Performance Review Writer",description:"Generate professional performance reviews",icon:Si,route:"/performance-review",category:"career_tools",tierRequirements:["ds5","premium"]},{id:"karri_chat",name:"KARRI AI Coach",description:"Chat with your AI career coach",icon:Gn,route:"/karri-guide",category:"ai_coaching",tierRequirements:["oto3","ds3","premium"]},{id:"agency_mode",name:"Agency Dashboard",description:"Manage clients, branding, and email templates",icon:fo,route:"/agency-clients",category:"agency",tierRequirements:["oto4","ds4"]},{id:"agency_training",name:"Agency Training",description:"Learn how to build your coaching business",icon:Py,route:"/agency-training",category:"agency",tierRequirements:["oto4","ds4"]},{id:"resource_guide",name:"Resource Guide",description:"Career resources and guides",icon:bi,route:"/resource-guide",category:"career_tools",tierRequirements:["free"]}];function AE(t){return Dx.find(n=>n.id===t)}function OE(t){return Dx.find(n=>n.route===t||t.startsWith(n.route))}function IE(t,n,s,a,c){return a?!0:["performance_reviews","job_search_toolkit","job_tracker","salary_lookup"].includes(t.id)&&c!==1?!1:t.tierRequirements.includes("free")||s&&t.tierRequirements.includes("premium")?!0:t.tierRequirements.some(f=>n.includes(f))}const vo=m.forwardRef(({className:t,...n},s)=>i.jsx("div",{ref:s,className:Me("rounded-lg border bg-card text-card-foreground shadow-sm",t),...n}));
383vo.displayName="Card";const Di=m.forwardRef(({className:t,...n},s)=>i.jsx("div",{ref:s,className:Me("flex flex-col space-y-1.5 p-6",t),...n}));Di.displayName="CardHeader";const Li=m.forwardRef(({className:t,...n},s)=>i.jsx("h3",{ref:s,className:Me("text-2xl font-semibold leading-none tracking-tight",t),...n}));Li.displayName="CardTitle";const Fi=m.forwardRef(({className:t,...n},s)=>i.jsx("p",{ref:s,className:Me("text-sm text-muted-foreground",t),...n}));Fi.displayName="CardDescription";const zi=m.forwardRef(({className:t,...n},s)=>i.jsx("div",{ref:s,className:Me("p-6 pt-0",t),...n}));zi.displayName="CardContent";const ME=m.forwardRef(({className:t,...n},s)=>i.jsx("div",{ref:s,className:Me("flex items-center p-6 pt-0",t),...n}));ME.displayName="CardFooter";function Lx(t){switch(t.tierRequirements[0]){case"main":return{tierName:"Resume Pack",price:"$17",description:"Resume Builder, Roaster, Optimizer, Cover Letter & Job Match"};case"oto1":return{tierName:"LinkedIn Pack",price:"$9.99",description:"LinkedIn Roaster & Brand Generator"};case"ds1":return{tierName:"Brand Generator",price:"$6.95",description:"Personal branding tools"};case"oto2":return{tierName:"Interview Mastery",price:"$37",description:"Full interview prep suite with Ghost Analyzer & O*NET"};case"ds2":return{tierName:"Interview Prep",price:"$27",description:"Interview prep, Company Research & Career Assessment"};case"oto3":return{tierName:"Chat Pro",price:"$19.99/mo",description:"400 monthly AI coaching credits"};case"ds3":return{tierName:"Chat Basic",price:"$8.95/mo",description:"100 monthly AI coaching credits"};case"oto4":return{tierName:"Agency Pro",price:"$247",description:"Coach up to 50 clients per month"};case"ds4":return{tierName:"Agency Lite",price:"$197",description:"Coach up to 20 clients per month"};case"oto5":return{tierName:"Job Search Toolkit",price:"Included",description:"Job search, tracking & salary tools"};case"ds5":return{tierName:"Performance Reviews",price:"$27",description:"AI-powered performance review generator"};default:return{tierName:"Premium Access",price:"",description:"Full platform access"}}}function DE({children:t,featureId:n,customRoute:s}){const[a,c]=mt(),{accessProfile:u}=Kl(),f=s||a;let h;if(n&&(h=AE(n)),h||(h=OE(f)),!h)return i.jsx(i.Fragment,{children:t});if(IE(h,u.wpProductTiers,u.isPremiumSubscriber,u.isAdmin||u.isReviewer,u.userId))return i.jsx(i.Fragment,{children:t});const v=Lx(h),x=h.icon;return i.jsx("div",{className:"min-h-screen bg-gradient-to-b from-gray-50 to-white flex items-center justify-center p-4",children:i.jsxs(vo,{className:"max-w-md w-full border-2 border-gray-200 shadow-lg",children:[i.jsxs(Di,{className:"text-center pb-2",children:[i.jsx("div",{className:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4",children:i.jsx(jf,{className:"h-8 w-8 text-gray-400"})}),i.jsx(Li,{className:"text-xl",children:h.name}),i.jsx(Fi,{className:"text-base",children:"This feature requires an upgrade"})]}),i.jsxs(zi,{className:"space-y-6",children:[i.jsx("div",{className:"bg-purple-50 rounded-lg p-4 border border-purple-100",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center flex-shrink-0",children:i.jsx(x,{className:"h-5 w-5 text-purple-600"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-purple-900",children:v.tierName}),v.price&&i.jsx("p",{className:"text-lg font-bold text-purple-600",children:v.price}),i.jsx("p",{className:"text-sm text-purple-700 mt-1",children:v.description})]})]})}),i.jsx("p",{className:"text-sm text-gray-600 text-center",children:h.description}),i.jsxs("div",{className:"flex flex-col gap-3",children:[i.jsxs(Fe,{onClick:()=>c("/karri-subscription"),className:"w-full bg-purple-600 hover:bg-purple-700",children:[i.jsx(KS,{className:"h-4 w-4 mr-2"}),"View Upgrade Options"]}),i.jsxs(Fe,{variant:"outline",onClick:()=>c("/dashboard"),className:"w-full",children:[i.jsx(bf,{className:"h-4 w-4 mr-2"}),"Back to Dashboard"]})]})]})]})})}function MR({feature:t}){const[,n]=mt(),s=Lx(t),a=t.icon;return i.jsxs(vo,{className:"relative overflow-hidden border-gray-200 bg-gray-50 cursor-pointer hover:border-purple-300 transition-colors",onClick:()=>n("/karri-subscription"),children:[i.jsx("div",{className:"absolute top-2 right-2",children:i.jsxs("div",{className:"bg-gray-200 text-gray-600 text-xs px-2 py-1 rounded-full flex items-center gap-1",children:[i.jsx(jf,{className:"h-3 w-3"}),"Upgrade"]})}),i.jsxs(Di,{className:"pb-2",children:[i.jsx("div",{className:"w-10 h-10 bg-gray-200 rounded-lg flex items-center justify-center mb-2",children:i.jsx(a,{className:"h-5 w-5 text-gray-400"})}),i.jsx(Li,{className:"text-lg text-gray-500",children:t.name}),i.jsx(Fi,{className:"text-gray-400",children:t.description})]}),i.jsx(zi,{children:i.jsxs("p",{className:"text-xs text-purple-600 font-medium",children:[s.tierName," ",s.price&&`⢠${s.price}`]})})]})}function DR({feature:t,onClick:n}){const[,s]=mt(),a=t.icon,c=()=>{n?n():s(t.route)};return i.jsxs(vo,{className:"relative overflow-hidden border-gray-200 bg-white cursor-pointer hover:border-blue-300 hover:shadow-md transition-all",onClick:c,children:[t.isNew&&i.jsx("div",{className:"absolute top-2 right-2",children:i.jsx("div",{className:"bg-green-100 text-green-700 text-xs px-2 py-1 rounded-full",children:"New"})}),i.jsxs(Di,{className:"pb-2",children:[i.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center mb-2",children:i.jsx(a,{className:"h-5 w-5 text-blue-600"})}),i.jsx(Li,{className:"text-lg text-gray-900",children:t.name}),i.jsx(Fi,{children:t.description})]})]})}function Se({children:t,premiumRequired:n=!1}){const{user:s,isLoading:a,isPremiumUser:c}=Ht(),[,u]=mt(),f=n?c:!!s;return m.useEffect(()=>{if(!a&&!f){const g=new URLSearchParams(window.location.search).get("feedback");let v=n?"/premium-features":"/auth";const x=window.location.pathname,y=new URLSearchParams;g&&y.set("feedback",g),!n&&x&&x!=="/"&&x!=="/auth"&&y.set("redirect",x);const b=y.toString();b&&(v+=`?${b}`),u(v)}},[s,a,c,n,f,u]),a||!f?i.jsx("div",{className:"flex items-center justify-center min-h-screen",children:i.jsx(as,{className:"h-8 w-8 animate-spin text-primary"})}):i.jsx(i.Fragment,{children:t})}function tt({children:t,featureKey:n}){const{user:s,isLoading:a}=Ht(),{checkFeatureAccess:c}=Kl(),[,u]=mt();return m.useEffect(()=>{!a&&!s&&u("/auth")},[s,a,u]),a?i.jsx("div",{className:"flex items-center justify-center min-h-screen",children:i.jsx(as,{className:"h-8 w-8 animate-spin text-primary"})}):s?c(n).hasAccess?i.jsx(i.Fragment,{children:t}):i.jsx(DE,{featureId:n,children:null}):i.jsx("div",{className:"flex items-center justify-center min-h-screen",children:i.jsx(as,{className:"h-8 w-8 animate-spin text-primary"})})}function Qe({children:t}){const{user:n,isLoading:s}=Ht(),[,a]=mt(),c=(n==null?void 0:n.isAdmin)??!1;return m.useEffect(()=>{!s&&!c&&a("/")},[n,s,c,a]),s||!c?i.jsx("div",{className:"flex items-center justify-center min-h-screen",children:i.jsx(as,{className:"h-8 w-8 animate-spin text-primary"})}):i.jsx(i.Fragment,{children:t})}function LE(){const[t]=mt();return m.useEffect(()=>{if(!t.startsWith("/admin")&&typeof window<"u"&&window.gtag&&(window.gtag("config","AW-17485420946",{page_path:t}),t==="/registration-confirmation"&&window.gtag("event","conversion",{send_to:"AW-17485420946/signup_conversion",value:1,currency:"USD"}),t==="/partnership-confirmation"&&window.gtag("event","conversion",{send_to:"AW-17485420946/partnership_conversion",value:100,currency:"USD"}),t==="/subscription-success"&&window.gtag("event","conversion",{send_to:"AW-17485420946/premium_conversion",value:25,currency:"USD"}),(t==="/resume-roaster"||t==="/resume_roaster")&&window.gtag("event","page_view",{send_to:"AW-17485420946",custom_parameter:"resume_roaster_landing"}),t==="/resume-assessment"&&document.referrer.includes("resume-roaster")&&(window.gtag("event","conversion",{send_to:"AW-17485420946/roaster_conversion",value:5,currency:"USD"}),sessionStorage.setItem("roaster_referral","true"),sessionStorage.setItem("roaster_referral_time",Date.now().toString())),t==="/registration-confirmation")){const n=sessionStorage.getItem("roaster_referral"),s=sessionStorage.getItem("roaster_referral_time");if(n&&s){const c=(Date.now()-parseInt(s))/(1e3*60*60);c<=24&&(window.gtag("event","conversion",{send_to:"AW-17485420946/roaster_signup_conversion",value:15,currency:"USD",custom_parameter:`hours_to_convert_${Math.floor(c)}`}),sessionStorage.removeItem("roaster_referral"),sessionStorage.removeItem("roaster_referral_time"))}}},[t]),null}function FE(){return m.useEffect(()=>{const t=()=>{const s=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${s}px`)};t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",()=>{setTimeout(t,100)});const n=s=>{const a=s.target;(a.tagName==="BUTTON"||a.closest("button"))&&(a.style.touchAction="manipulation")};return document.addEventListener("touchstart",n,{passive:!0}),document.body.style.overscrollBehavior="contain",()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),document.removeEventListener("touchstart",n)}},[]),m.useEffect(()=>{const t=()=>{const s={timestamp:new Date().toISOString(),userAgent:navigator.userAgent,sessionActive:!0};try{localStorage.setItem("sessionPersistence",JSON.stringify(s)),sessionStorage.setItem("sessionPersistence",JSON.stringify(s))}catch(a){console.warn("Session persistence storage failed:",a)}},n=()=>
383{if(document.visibilityState==="visible"){t();const s=new CustomEvent("authCheck");document.dispatchEvent(s)}};return document.addEventListener("visibilitychange",n),t(),()=>{document.removeEventListener("visibilitychange",n)}},[]),null}const Fx=m.createContext(void 0);function zE({children:t}){const{user:n}=Ht(),s=Ii(),[,a]=mt(),[c,u]=m.useState(()=>{if(typeof window>"u")return null;const A=sessionStorage.getItem("activeClientContext");if(A)try{return JSON.parse(A)}catch{}const D=sessionStorage.getItem("agencyClientContext");if(D)try{const U=JSON.parse(D);if(U.clientId&&U.clientName){const I={id:U.clientId,clientName:U.clientName,isSelfClient:!1,isActive:!0,clientEmail:U.clientEmail||null,currentJobTitle:U.currentJobTitle||null,targetJobTitle:U.targetJobTitle||null};return sessionStorage.setItem("activeClientContext",JSON.stringify(I)),I}}catch{return null}return null}),{data:f,isLoading:h,error:g,refetch:v}=$r({queryKey:["/api/workspace"],enabled:!!n,staleTime:3e4,retry:2}),x=(f==null?void 0:f.clients)??[];m.useEffect(()=>{const A=sessionStorage.getItem("agencyClientContext");if(A&&f&&x.length>0)try{const D=JSON.parse(A);if(D.clientId&&(!c||c.id!==D.clientId)){const U=x.find(I=>I.id===D.clientId);U&&(u(U),sessionStorage.setItem("activeClientContext",JSON.stringify(U)),console.log("[Workspace] Synced activeClient from agencyClientContext:",U.clientName))}}catch{}if(f&&x.length>0&&!c){const D=x.find(U=>U.isSelfClient);D&&(u(D),sessionStorage.setItem("activeClientContext",JSON.stringify(D)))}},[f,x,c]);const y=m.useCallback(A=>{A?sessionStorage.setItem("activeClientContext",JSON.stringify(A)):sessionStorage.removeItem("activeClientContext"),u(A)},[]),b=x.find(A=>A.isSelfClient)||null,k=(f==null?void 0:f.tier)==="agency_30"||(f==null?void 0:f.tier)==="agency_50",E=x.filter(A=>!A.isSelfClient&&A.isActive).length,j=f!=null&&f.clientLimit?f.clientLimit-1:0,S=k&&E<j,C=m.useCallback(()=>{s.invalidateQueries({queryKey:["/api/workspace"]}),v()},[s,v]),M=m.useCallback(A=>{const D=x.find(U=>U.id===A);D&&(y(D),a(`/workspace/documents/${A}`))},[x,y,a]),N={workspace:f||null,isLoading:h,error:g,activeClient:c,setActiveClient:y,selfClient:b,canAddClients:S,clientCount:E,clientLimit:j,isAgencyTier:k,refreshWorkspace:C,navigateToClientDocuments:M};return i.jsx(Fx.Provider,{value:N,children:t})}function zx(){const t=m.useContext(Fx);if(t===void 0)throw new Error("useWorkspace must be used within a WorkspaceProvider");return t}function UE(){const{activeClient:t,selfClient:n}=zx();return t||n}function VE(){const{isAgencyTier:t}=zx(),n=UE(),s=n&&!n.isSelfClient;return!t||!s||!n?null:i.jsxs("div",{className:"bg-gradient-to-r from-amber-500 to-orange-500 text-white px-4 py-2 flex items-center justify-between gap-4 shadow-sm",children:[i.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[i.jsxs(go,{variant:"secondary",className:"bg-white/20 text-white border-0 shrink-0",children:[i.jsx(Cn,{className:"h-3 w-3 mr-1"}),"Client Mode"]}),i.jsxs("span",{className:"text-sm font-medium truncate",children:["Creating for: ",i.jsx("span",{className:"font-semibold",children:n.clientName}),n.targetJobTitle&&i.jsxs("span",{className:"opacity-80 hidden sm:inline",children:[" ⢠",n.targetJobTitle]})]})]}),i.jsx("div",{className:"flex items-center gap-2 shrink-0",children:i.jsx(Fe,{variant:"secondary",size:"sm",className:"bg-white/20 hover:bg-white/30 text-white border-0 h-8",asChild:!0,children:i.jsxs(ke,{href:"/workspace",children:[i.jsx(bf,{className:"h-4 w-4 mr-1"}),i.jsx("span",{className:"hidden sm:inline",children:"Back to Workspace"}),i.jsx("span",{className:"sm:hidden",children:"Workspace"})]})})})]})}function $E(){return i.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50 p-4",children:i.jsx(vo,{className:"w-full max-w-md mx-auto",children:i.jsxs(zi,{className:"pt-6 text-center",children:[i.jsxs("div",{className:"flex flex-col items-center mb-6 gap-4",children:[i.jsx(_y,{className:"h-16 w-16 text-red-500"}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Page Not Found"}),i.jsx("p",{className:"text-gray-600",children:"The page you're looking for doesn't exist or has been moved."})]})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx(ke,{href:"/toolkit/resume",children:i.jsxs(Fe,{className:"w-full",size:"lg",children:[i.jsx($S,{className:"h-4 w-4 mr-2"}),"Go to Toolkit"]})}),i.jsxs(Fe,{variant:"outline",className:"w-full",onClick:()=>window.history.back(),children:[i.jsx(bf,{className:"h-4 w-4 mr-2"}),"Go Back"]})]}),i.jsxs("div",{className:"mt-6 text-xs text-gray-500",children:["Current URL: ",window.location.pathname]})]})})})}var HE=m.createContext(void 0);function Ux(t){const n=m.useContext(HE);return t||n||"ltr"}const BE=["top","right","bottom","left"],Nn=Math.min,Vt=Math.max,Pl=Math.round,fl=Math.floor,_r=t=>({x:t,y:t}
vendor: 5,697 bytes, line 383
383),WE={left:"right",right:"left",bottom:"top",top:"bottom"},KE={start:"end",end:"start"};function Zd(t,n,s){return Vt(t,Nn(n,s))}function Br(t,n){return typeof t=="function"?t(n):t}function Wr(t){return t.split("-")[0]}function yo(t){return t.split("-")[1]}function Ff(t){return t==="x"?"y":"x"}function zf(t){return t==="y"?"height":"width"}function Tn(t){return["top","bottom"].includes(Wr(t))?"y":"x"}function Uf(t){return Ff(Tn(t))}function qE(t,n,s){s===void 0&&(s=!1);const a=yo(t),c=Uf(t),u=zf(c);let f=c==="x"?a===(s?"end":"start")?"right":"left":a==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(f=Rl(f)),[f,Rl(f)]}function GE(t){const n=Rl(t);return[ef(t),n,ef(n)]}function ef(t){return t.replace(/start|end/g,n=>KE[n])}function QE(t,n,s){const a=["left","right"],c=["right","left"],u=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return s?n?c:a:n?a:c;case"left":case"right":return n?u:f;default:return[]}}function YE(t,n,s,a){const c=yo(t);let u=QE(Wr(t),s==="start",a);return c&&(u=u.map(f=>f+"-"+c),n&&(u=u.concat(u.map(ef)))),u}function Rl(t){return t.replace(/left|right|bottom|top/g,n=>WE[n])}function XE(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vx(t){return typeof t!="number"?XE(t):{top:t,right:t,bottom:t,left:t}}function Al(t){const{x:n,y:s,width:a,height:c}=t;return{width:a,height:c,top:s,left:n,right:n+a,bottom:s+c,x:n,y:s}}function Qg(t,n,s){let{reference:a,floating:c}=t;const u=Tn(n),f=Uf(n),h=zf(f),g=Wr(n),v=u==="y",x=a.x+a.width/2-c.width/2,y=a.y+a.height/2-c.height/2,b=a[h]/2-c[h]/2;let k;switch(g){case"top":k={x,y:a.y-c.height};break;case"bottom":k={x,y:a.y+a.height};break;case"right":k={x:a.x+a.width,y};break;case"left":k={x:a.x-c.width,y};break;default:k={x:a.x,y:a.y}}switch(yo(n)){case"start":k[f]-=b*(s&&v?-1:1);break;case"end":k[f]+=b*(s&&v?-1:1);break}return k}const JE=async(t,n,s)=>{const{placement:a="bottom",strategy:c="absolute",middleware:u=[],platform:f}=s,h=u.filter(Boolean),g=await(f.isRTL==null?void 0:f.isRTL(n));let v=await f.getElementRects({reference:t,floating:n,strategy:c}),{x,y}=Qg(v,a,g),b=a,k={},E=0;for(let j=0;j<h.length;j++){const{name:S,fn:C}=h[j],{x:M,y:N,data:A,reset:D}=await C({x,y,initialPlacement:a,placement:b,strategy:c,middlewareData:k,rects:v,platform:f,elements:{reference:t,floating:n}});x=M??x,y=N??y,k={...k,[S]:{...k[S],...A}},D&&E<=50&&(E++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(v=D.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:c}):D.rects),{x,y}=Qg(v,b,g)),j=-1)}return{x,y,placement:b,strategy:c,middlewareData:k}};async function ki(t,n){var s;n===void 0&&(n={});const{x:a,y:c,platform:u,rects:f,elements:h,strategy:g}=t,{boundary:v="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:b=!1,padding:k=0}=Br(n,t),E=Vx(k),S=h[b?y==="floating"?"reference":"floating":y],C=Al(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(S)))==null||s?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:v,rootBoundary:x,strategy:g})),M=y==="floating"?{x:a,y:c,width:f.floating.width,height:f.floating.height}:f.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),A=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},D=Al(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:M,offsetParent:N,strategy:g}):M);return{top:(C.top-D.top+E.top)/A.y,bottom:(D.bottom-C.bottom+E.bottom)/A.y,left:(C.left-D.left+E.left)/A.x,right:(D.right-C.right+E.right)/A.x}}const ZE=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:a,placement:c,rects:u,platform:f,elements:h,middlewareData:g}=n,{element:v,padding:x=0}=Br(t,n)||{};if(v==null)return{};const y=Vx(x),b={x:s,y:a},k=Uf(c),E=zf(k),j=await f.getDimensions(v),S=k==="y",C=S?"top":"left",M=S?"bottom":"right",N=S?"clientHeight":"clientWidth",A=u.reference[E]+u.reference[k]-b[k]-u.floating[E],D=b[k]-u.reference[k],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let I=U?U[N]:0;(!I||!await(f.isElement==null?void 0:f.isElement(U)))&&(I=h.floating[N]||u.floating[E]);const V=A/2-D/2,Q=I/2-j[E]/2-1,Z=Nn(y[C],Q),le=Nn(y[M],Q),te=Z,de=I-j[E]-le,ee=I/2-j[E]/2+V,fe=Zd(te,ee,de),oe=!g.arrow&&yo(c)!=null&&ee!==fe&&u.reference[E]/2-(ee<te?Z:le)-j[E]/2<0,ue=oe?ee<te?ee-te:ee-de:0;return{[k]:b[k]+ue,data:{[k]:fe,centerOffset:ee-fe-ue,...oe&&{alignmentOffset:ue}},reset:oe}}}),e_=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,a;const{placement:c,middlewareData:u,rects:f,initialPlacement:h,platform:g,elements:v}=n,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:j=!0,...S}=Br(t,n);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const C=Wr(c),M=Tn(h),N=Wr(h)===h,A=await(g.isRTL==null?void 0:g.isRTL(v.floating)),D=b||(N||!j?[Rl(h)]:GE(h)),U=E!=="none";!b&&U&&D.push(...YE(h,j,E,A));const I=[h,...D],V=await ki(n,S),Q=[];let Z=((a=u.flip)==null?void 0:a.overflows)||[];if(x&&Q.push(V[C]),y){const ee=qE(c,f,A);Q.push(V[ee[0]],V[ee[1]])}if(Z=[...Z,{placement:c,overflows:Q}],!Q.every(ee=>ee<=0)){var le,te;const ee=(((le=u.flip)==null?void 0:le.index)||0)+1,fe=I[ee];if(fe)return{data:{index:ee,overflows:Z},reset:{placement:fe}};let oe=(te=Z.filter(ue=>ue.overflows[0]<=0).sort((ue,H)=>ue.overflows[1]-H.overflows[1])[0])==null?void 0:te.placement;if(!oe)switch(k){case"bestFit":{var de;const ue=(de=Z.filter(H=>{if(U){const B=Tn(H.placement);return B===M||B==="y"}return!0}).map(H=>
vendor: 6,079 bytes, line 383
383[H.placement,H.overflows.filter(B=>B>0).reduce((B,Y)=>B+Y,0)]).sort((H,B)=>H[1]-B[1])[0])==null?void 0:de[0];ue&&(oe=ue);break}case"initialPlacement":oe=h;break}if(c!==oe)return{reset:{placement:oe}}}return{}}}};function Yg(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function Xg(t){return BE.some(n=>t[n]>=0)}const t_=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:s}=n,{strategy:a="referenceHidden",...c}=Br(t,n);switch(a){case"referenceHidden":{const u=await ki(n,{...c,elementContext:"reference"}),f=Yg(u,s.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Xg(f)}}}case"escaped":{const u=await ki(n,{...c,altBoundary:!0}),f=Yg(u,s.floating);return{data:{escapedOffsets:f,escaped:Xg(f)}}}default:return{}}}}};async function r_(t,n){const{placement:s,platform:a,elements:c}=t,u=await(a.isRTL==null?void 0:a.isRTL(c.floating)),f=Wr(s),h=yo(s),g=Tn(s)==="y",v=["left","top"].includes(f)?-1:1,x=u&&g?-1:1,y=Br(n,t);let{mainAxis:b,crossAxis:k,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof E=="number"&&(k=h==="end"?E*-1:E),g?{x:k*x,y:b*v}:{x:b*v,y:k*x}}const n_=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var s,a;const{x:c,y:u,placement:f,middlewareData:h}=n,g=await r_(n,t);return f===((s=h.offset)==null?void 0:s.placement)&&(a=h.arrow)!=null&&a.alignmentOffset?{}:{x:c+g.x,y:u+g.y,data:{...g,placement:f}}}}},s_=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:a,placement:c}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:S=>{let{x:C,y:M}=S;return{x:C,y:M}}},...g}=Br(t,n),v={x:s,y:a},x=await ki(n,g),y=Tn(Wr(c)),b=Ff(y);let k=v[b],E=v[y];if(u){const S=b==="y"?"top":"left",C=b==="y"?"bottom":"right",M=k+x[S],N=k-x[C];k=Zd(M,k,N)}if(f){const S=y==="y"?"top":"left",C=y==="y"?"bottom":"right",M=E+x[S],N=E-x[C];E=Zd(M,E,N)}const j=h.fn({...n,[b]:k,[y]:E});return{...j,data:{x:j.x-s,y:j.y-a,enabled:{[b]:u,[y]:f}}}}}},o_=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:a,placement:c,rects:u,middlewareData:f}=n,{offset:h=0,mainAxis:g=!0,crossAxis:v=!0}=Br(t,n),x={x:s,y:a},y=Tn(c),b=Ff(y);let k=x[b],E=x[y];const j=Br(h,n),S=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(g){const N=b==="y"?"height":"width",A=u.reference[b]-u.floating[N]+S.mainAxis,D=u.reference[b]+u.reference[N]-S.mainAxis;k<A?k=A:k>D&&(k=D)}if(v){var C,M;const N=b==="y"?"width":"height",A=["top","left"].includes(Wr(c)),D=u.reference[y]-u.floating[N]+(A&&((C=f.offset)==null?void 0:C[y])||0)+(A?0:S.crossAxis),U=u.reference[y]+u.reference[N]+(A?0:((M=f.offset)==null?void 0:M[y])||0)-(A?S.crossAxis:0);E<D?E=D:E>U&&(E=U)}return{[b]:k,[y]:E}}}},i_=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var s,a;const{placement:c,rects:u,platform:f,elements:h}=n,{apply:g=()=>{},...v}=Br(t,n),x=await ki(n,v),y=Wr(c),b=yo(c),k=Tn(c)==="y",{width:E,height:j}=u.floating;let S,C;y==="top"||y==="bottom"?(S=y,C=b===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(C=y,S=b==="end"?"top":"bottom");const M=j-x.top-x.bottom,N=E-x.left-x.right,A=Nn(j-x[S],M),D=Nn(E-x[C],N),U=!n.middlewareData.shift;let I=A,V=D;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&(V=N),(a=n.middlewareData.shift)!=null&&a.enabled.y&&(I=M),U&&!b){const Z=Vt(x.left,0),le=Vt(x.right,0),te=Vt(x.top,0),de=Vt(x.bottom,0);k?V=E-2*(Z!==0||le!==0?Z+le:Vt(x.left,x.right)):I=j-2*(te!==0||de!==0?te+de:Vt(x.top,x.bottom))}await g({...n,availableWidth:V,availableHeight:I});const Q=await f.getDimensions(h.floating);return E!==Q.width||j!==Q.height?{reset:{rects:!0}}:{}}}};function ql(){return typeof window<"u"}function xo(t){return $x(t)?(t.nodeName||"").toLowerCase():"#document"}function $t(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Nr(t){var n;return(n=($x(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function $x(t){return ql()?t instanceof Node||t instanceof $t(t).Node:!1}function fr(t){return ql()?t instanceof Element||t instanceof $t(t).Element:!1}function Cr(t){return ql()?t instanceof HTMLElement||t instanceof $t(t).HTMLElement:!1}function Jg(t){return!ql()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $t(t).ShadowRoot}function Ui(t){const{overflow:n,overflowX:s,overflowY:a,display:c}=hr(t);return/auto|scroll|overlay|hidden|clip/.test(n+a+s)&&!["inline","contents"].includes(c)}function a_(t){return["table","td","th"].includes(xo(t))}function Gl(t){return[":popover-open",":modal"].some(n=>{try{return t.matches(n)}catch{return!1}})}function Vf(t){const n=$f(),s=fr(t)?hr(t):t;return["transform","translate","scale","rotate","perspective"].some(a=>s[a]?s[a]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!n&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!n&&(s.filter?s.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(a=>(s.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(s.contain||"").includes(a))}function l_(t){let n=Pn(t);for(;Cr(n)&&!ho(n);){if(Vf(n))return n;if(Gl(n))return null;n=Pn(n)}return null}function $f(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ho(t){return["html","body","#document"].includes(xo(t))}function hr(t){return $t(t).getComputedStyle(t)}function Ql(t){return fr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pn(t){if(xo(t)==="html")return t;const n=t.assignedSlot||t.parentNode||Jg(t)&&t.host||Nr(t);return Jg(n)?n.host:n}function Hx(t){const n=Pn(t);return ho(n)?t.ownerDocument?t.ownerDocument.body:t.body:Cr(n)&&Ui(n)?n:Hx(n)}function Ei(t,n,s){var a;n===void 0&&(n=[]),s===void 0&&(s=!0);const c=Hx(t),u=c===((a=t.ownerDocument)==null?void 0:a.body),f=$t(c);if(u){const h=tf(f);
vendor: 4,111 bytes, line 383
383return n.concat(f,f.visualViewport||[],Ui(c)?c:[],h&&s?Ei(h):[])}return n.concat(c,Ei(c,[],s))}function tf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Bx(t){const n=hr(t);let s=parseFloat(n.width)||0,a=parseFloat(n.height)||0;const c=Cr(t),u=c?t.offsetWidth:s,f=c?t.offsetHeight:a,h=Pl(s)!==u||Pl(a)!==f;return h&&(s=u,a=f),{width:s,height:a,$:h}}function Hf(t){return fr(t)?t:t.contextElement}function Qs(t){const n=Hf(t);if(!Cr(n))return _r(1);const s=n.getBoundingClientRect(),{width:a,height:c,$:u}=Bx(n);let f=(u?Pl(s.width):s.width)/a,h=(u?Pl(s.height):s.height)/c;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const c_=_r(0);function Wx(t){const n=$t(t);return!$f()||!n.visualViewport?c_:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function u_(t,n,s){return n===void 0&&(n=!1),!s||n&&s!==$t(t)?!1:n}function us(t,n,s,a){n===void 0&&(n=!1),s===void 0&&(s=!1);const c=t.getBoundingClientRect(),u=Hf(t);let f=_r(1);n&&(a?fr(a)&&(f=Qs(a)):f=Qs(t));const h=u_(u,s,a)?Wx(u):_r(0);let g=(c.left+h.x)/f.x,v=(c.top+h.y)/f.y,x=c.width/f.x,y=c.height/f.y;if(u){const b=$t(u),k=a&&fr(a)?$t(a):a;let E=b,j=tf(E);for(;j&&a&&k!==E;){const S=Qs(j),C=j.getBoundingClientRect(),M=hr(j),N=C.left+(j.clientLeft+parseFloat(M.paddingLeft))*S.x,A=C.top+(j.clientTop+parseFloat(M.paddingTop))*S.y;g*=S.x,v*=S.y,x*=S.x,y*=S.y,g+=N,v+=A,E=$t(j),j=tf(E)}}return Al({width:x,height:y,x:g,y:v})}function Bf(t,n){const s=Ql(t).scrollLeft;return n?n.left+s:us(Nr(t)).left+s}function Kx(t,n,s){s===void 0&&(s=!1);const a=t.getBoundingClientRect(),c=a.left+n.scrollLeft-(s?0:Bf(t,a)),u=a.top+n.scrollTop;return{x:c,y:u}}function d_(t){let{elements:n,rect:s,offsetParent:a,strategy:c}=t;const u=c==="fixed",f=Nr(a),h=n?Gl(n.floating):!1;if(a===f||h&&u)return s;let g={scrollLeft:0,scrollTop:0},v=_r(1);const x=_r(0),y=Cr(a);if((y||!y&&!u)&&((xo(a)!=="body"||Ui(f))&&(g=Ql(a)),Cr(a))){const k=us(a);v=Qs(a),x.x=k.x+a.clientLeft,x.y=k.y+a.clientTop}const b=f&&!y&&!u?Kx(f,g,!0):_r(0);return{width:s.width*v.x,height:s.height*v.y,x:s.x*v.x-g.scrollLeft*v.x+x.x+b.x,y:s.y*v.y-g.scrollTop*v.y+x.y+b.y}}function f_(t){return Array.from(t.getClientRects())}function h_(t){const n=Nr(t),s=Ql(t),a=t.ownerDocument.body,c=Vt(n.scrollWidth,n.clientWidth,a.scrollWidth,a.clientWidth),u=Vt(n.scrollHeight,n.clientHeight,a.scrollHeight,a.clientHeight);let f=-s.scrollLeft+Bf(t);const h=-s.scrollTop;return hr(a).direction==="rtl"&&(f+=Vt(n.clientWidth,a.clientWidth)-c),{width:c,height:u,x:f,y:h}}function p_(t,n){const s=$t(t),a=Nr(t),c=s.visualViewport;let u=a.clientWidth,f=a.clientHeight,h=0,g=0;if(c){u=c.width,f=c.height;const v=$f();(!v||v&&n==="fixed")&&(h=c.offsetLeft,g=c.offsetTop)}return{width:u,height:f,x:h,y:g}}function m_(t,n){const s=us(t,!0,n==="fixed"),a=s.top+t.clientTop,c=s.left+t.clientLeft,u=Cr(t)?Qs(t):_r(1),f=t.clientWidth*u.x,h=t.clientHeight*u.y,g=c*u.x,v=a*u.y;return{width:f,height:h,x:g,y:v}}function Zg(t,n,s){let a;if(n==="viewport")a=p_(t,s);else if(n==="document")a=h_(Nr(t));else if(fr(n))a=m_(n,s);else{const c=Wx(t);a={x:n.x-c.x,y:n.y-c.y,width:n.width,height:n.height}}return Al(a)}function qx(t,n){const s=Pn(t);return s===n||!fr(s)||ho(s)?!1:hr(s).position==="fixed"||qx(s,n)}function g_(t,n){const s=n.get(t);if(s)return s;let a=Ei(t,[],!1).filter(h=>fr(h)&&xo(h)!=="body"),c=null;const u=hr(t).position==="fixed";let f=u?Pn(t):t;for(;fr(f)&&!ho(f);){const h=hr(f),g=Vf(f);!g&&h.position==="fixed"&&(c=null),(u?!g&&!c:!g&&h.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Ui(f)&&!g&&qx(t,f))?a=a.filter(x=>x!==f):c=h,f=Pn(f)}return n.set(t,a),a}function v_(t){let{element:n,boundary:s,rootBoundary:a,strategy:c}=t;const f=[...s==="clippingAncestors"?Gl(n)?[]:g_(n,this._c):[].concat(s),a],h=f[0],g=f.reduce((v,x)=>{const y=Zg(n,x,c);return v.top=Vt(y.top,v.top),v.right=Nn(y.right,v.right),v.bottom=Nn(y.bottom,v.bottom),v.left=Vt(y.left,v.left),v},Zg(n,h,c));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function y_(t){const{width:n,height:s}=Bx(t);return{width:n,height:s}}
vendor: 9,797 bytes, line 383
383function x_(t,n,s){const a=Cr(n),c=Nr(n),u=s==="fixed",f=us(t,!0,u,n);let h={scrollLeft:0,scrollTop:0};const g=_r(0);if(a||!a&&!u)if((xo(n)!=="body"||Ui(c))&&(h=Ql(n)),a){const b=us(n,!0,u,n);g.x=b.x+n.clientLeft,g.y=b.y+n.clientTop}else c&&(g.x=Bf(c));const v=c&&!a&&!u?Kx(c,h):_r(0),x=f.left+h.scrollLeft-g.x-v.x,y=f.top+h.scrollTop-g.y-v.y;return{x,y,width:f.width,height:f.height}}function gd(t){return hr(t).position==="static"}function ev(t,n){if(!Cr(t)||hr(t).position==="fixed")return null;if(n)return n(t);let s=t.offsetParent;return Nr(t)===s&&(s=s.ownerDocument.body),s}function Gx(t,n){const s=$t(t);if(Gl(t))return s;if(!Cr(t)){let c=Pn(t);for(;c&&!ho(c);){if(fr(c)&&!gd(c))return c;c=Pn(c)}return s}let a=ev(t,n);for(;a&&a_(a)&&gd(a);)a=ev(a,n);return a&&ho(a)&&gd(a)&&!Vf(a)?s:a||l_(t)||s}const w_=async function(t){const n=this.getOffsetParent||Gx,s=this.getDimensions,a=await s(t.floating);return{reference:x_(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function b_(t){return hr(t).direction==="rtl"}const j_={convertOffsetParentRelativeRectToViewportRelativeRect:d_,getDocumentElement:Nr,getClippingRect:v_,getOffsetParent:Gx,getElementRects:w_,getClientRects:f_,getDimensions:y_,getScale:Qs,isElement:fr,isRTL:b_};function Qx(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function S_(t,n){let s=null,a;const c=Nr(t);function u(){var h;clearTimeout(a),(h=s)==null||h.disconnect(),s=null}function f(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),u();const v=t.getBoundingClientRect(),{left:x,top:y,width:b,height:k}=v;if(h||n(),!b||!k)return;const E=fl(y),j=fl(c.clientWidth-(x+b)),S=fl(c.clientHeight-(y+k)),C=fl(x),N={rootMargin:-E+"px "+-j+"px "+-S+"px "+-C+"px",threshold:Vt(0,Nn(1,g))||1};let A=!0;function D(U){const I=U[0].intersectionRatio;if(I!==g){if(!A)return f();I?f(!1,I):a=setTimeout(()=>{f(!1,1e-7)},1e3)}I===1&&!Qx(v,t.getBoundingClientRect())&&f(),A=!1}try{s=new IntersectionObserver(D,{...N,root:c.ownerDocument})}catch{s=new IntersectionObserver(D,N)}s.observe(t)}return f(!0),u}function k_(t,n,s,a){a===void 0&&(a={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=a,v=Hf(t),x=c||u?[...v?Ei(v):[],...Ei(n)]:[];x.forEach(C=>{c&&C.addEventListener("scroll",s,{passive:!0}),u&&C.addEventListener("resize",s)});const y=v&&h?S_(v,s):null;let b=-1,k=null;f&&(k=new ResizeObserver(C=>{let[M]=C;M&&M.target===v&&k&&(k.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=k)==null||N.observe(n)})),s()}),v&&!g&&k.observe(v),k.observe(n));let E,j=g?us(t):null;g&&S();function S(){const C=us(t);j&&!Qx(j,C)&&s(),j=C,E=requestAnimationFrame(S)}return s(),()=>{var C;x.forEach(M=>{c&&M.removeEventListener("scroll",s),u&&M.removeEventListener("resize",s)}),y==null||y(),(C=k)==null||C.disconnect(),k=null,g&&cancelAnimationFrame(E)}}const E_=n_,__=s_,C_=e_,N_=i_,T_=t_,tv=ZE,P_=o_,R_=(t,n,s)=>{const a=new Map,c={platform:j_,...s},u={...c.platform,_c:a};return JE(t,n,{...c,platform:u})};var jl=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Ol(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let s,a,c;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==n.length)return!1;for(a=s;a--!==0;)if(!Ol(t[a],n[a]))return!1;return!0}if(c=Object.keys(t),s=c.length,s!==Object.keys(n).length)return!1;for(a=s;a--!==0;)if(!{}.hasOwnProperty.call(n,c[a]))return!1;for(a=s;a--!==0;){const u=c[a];if(!(u==="_owner"&&t.$$typeof)&&!Ol(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}function Yx(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rv(t,n){const s=Yx(t);return Math.round(n*s)/s}function vd(t){const n=m.useRef(t);return jl(()=>{n.current=t}),n}function A_(t){t===void 0&&(t={});const{placement:n="bottom",strategy:s="absolute",middleware:a=[],platform:c,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:g,open:v}=t,[x,y]=m.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,k]=m.useState(a);Ol(b,a)||k(a);const[E,j]=m.useState(null),[S,C]=m.useState(null),M=m.useCallback(H=>{H!==U.current&&(U.current=H,j(H))},[]),N=m.useCallback(H=>{H!==I.current&&(I.current=H,C(H))},[]),A=u||E,D=f||S,U=m.useRef(null),I=m.useRef(null),V=m.useRef(x),Q=g!=null,Z=vd(g),le=vd(c),te=vd(v),de=m.useCallback(()=>{if(!U.current||!I.current)return;const H={placement:n,strategy:s,middleware:b};le.current&&(H.platform=le.current),R_(U.current,I.current,H).then(B=>{const Y={...B,isPositioned:te.current!==!1};ee.current&&!Ol(V.current,Y)&&(V.current=Y,Ll.flushSync(()=>{y(Y)}))})},[b,n,s,le,te]);jl(()=>{v===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,y(H=>({...H,isPositioned:!1})))},[v]);const ee=m.useRef(!1);jl(()=>(ee.current=!0,()=>{ee.current=!1}),[]),jl(()=>{if(A&&(U.current=A),D&&(I.current=D),A&&D){if(Z.current)return Z.current(A,D,de);de()}},[A,D,de,Z,Q]);const fe=m.useMemo(()=>({reference:U,floating:I,setReference:M,setFloating:N}),[M,N]),oe=m.useMemo(()=>({reference:A,floating:D}),[A,D]),ue=m.useMemo(()=>{const H={position:s,left:0,top:0};if(!oe.floating)return H;const B=rv(oe.floating,x.x),Y=rv(oe.floating,x.y);return h?{...H,transform:"translate("+B+"px, "+Y+"px)",...Yx(oe.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:B,top:Y}},[s,h,oe.floating,x.x,x.y]);return m.useMemo(()=>({...x,update:de,refs:fe,elements:oe,floatingStyles:ue}),[x,de,fe,oe,ue])}const O_=t=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:a,padding:c}=typeof t=="function"?t(s):t;return a&&n(a)?a.current!=null?tv({element:a.current,padding:c}).fn(s):{}:a?tv({element:a,padding:c}).fn(s):{}}}},I_=(t,n)=>({...E_(t),options:[t,n]}),M_=(t,n)=>({...__(t),options:[t,n]}),D_=(t,n)=>({...P_(t),options:[t,n]}),L_=(t,n)=>({...C_(t),options:[t,n]}),F_=(t,n)=>({...N_(t),options:[t,n]}),z_=(t,n)=>({...T_(t),options:[t,n]}),U_=(t,n)=>({...O_(t),options:[t,n]});var V_="Arrow",Xx=m.forwardRef((t,n)=>{const{children:s,width:a=10,height:c=5,...u}=t;return i.jsx(Le.svg,{...u,ref:n,width:a,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});Xx.displayName=V_;var $_=Xx;function H_(t){const[n,s]=m.useState(void 0);return dr(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const u=c[0];let f,h;if("borderBoxSize"in u){const g=u.borderBoxSize,v=Array.isArray(g)?g[0]:g;f=v.inlineSize,h=v.blockSize}else f=t.offsetWidth,h=t.offsetHeight;s({width:f,height:h})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else s(void 0)},[t]),n}var Wf="Popper",[Jx,Zx]=An(Wf),[B_,e0]=Jx(Wf),t0=t=>{const{__scopePopper:n,children:s}=t,[a,c]=m.useState(null);return i.jsx(B_,{scope:n,anchor:a,onAnchorChange:c,children:s})};t0.displayName=Wf;var r0="PopperAnchor",n0=m.forwardRef((t,n)=>{const{__scopePopper:s,virtualRef:a,...c}=t,u=e0(r0,s),f=m.useRef(null),h=at(n,f);return m.useEffect(()=>{u.onAnchorChange((a==null?void 0:a.current)||f.current)}),a?null:i.jsx(Le.div,{...c,ref:h})});n0.displayName=r0;var Kf="PopperContent",[W_,K_]=Jx(Kf),s0=m.forwardRef((t,n)=>{var je,Ae,Re,rt,On,wo;const{__scopePopper:s,side:a="bottom",sideOffset:c=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:k="optimized",onPlaced:E,...j}=t,S=e0(Kf,s),[C,M]=m.useState(null),N=at(n,mr=>M(mr)),[A,D]=m.useState(null),U=H_(A),I=(U==null?void 0:U.width)??0,V=(U==null?void 0:U.height)??0,Q=a+(u!=="center"?"-"+u:""),Z=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},le=Array.isArray(v)?v:[v],te=le.length>0,de={padding:Z,boundary:le.filter(G_),altBoundary:te},{refs:ee,floatingStyles:fe,placement:oe,isPositioned:ue,middlewareData:H}=A_({strategy:"fixed",placement:Q,whileElementsMounted:(...mr)=>k_(...mr,{animationFrame:k==="always"}),elements:{reference:S.anchor},middleware:[I_({mainAxis:c+V,alignmentAxis:f}),g&&M_({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?D_():void 0,...de}),g&&L_({...de}),F_({...de,apply:({elements:mr,rects:hs,availableWidth:Hi,availableHeight:Bi})=>{const{width:bo,height:Wi}=hs.reference,qr=mr.floating.style;qr.setProperty("--radix-popper-available-width",`${Hi}px`),qr.setProperty("--radix-popper-available-height",`${Bi}px`),qr.setProperty("--radix-popper-anchor-width",`${bo}px`),qr.setProperty("--radix-popper-anchor-height",`${Wi}px`)}}),A&&U_({element:A,padding:h}),Q_({arrowWidth:I,arrowHeight:V}),b&&z_({strategy:"referenceHidden",...de})]}),[B,Y]=a0(oe),R=jt(E);dr(()=>{ue&&(R==null||R())},[ue,R]);const W=(je=H.arrow)==null?void 0:je.x,ge=(Ae=H.arrow)==null?void 0:Ae.y,xe=((Re=H.arrow)==null?void 0:Re.centerOffset)!==0,[Ce,he]=m.useState();return dr(()=>{C&&he(window.getComputedStyle(C).zIndex)},[C]),i.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:ue?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(rt=H.transformOrigin)==null?void 0:rt.x,(On=H.transformOrigin)==null?void 0:On.y].join(" "),...((wo=H.hide)==null?void 0:wo.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i.jsx(W_,{scope:s,placedSide:B,onArrowChange:D,arrowX:W,arrowY:ge,shouldHideArrow:xe,children:i.jsx(Le.div,{"data-side":B,"data-align":Y,...j,ref:N,style:{...j.style,animation:ue?void 0:"none"}})})})});s0.displayName=Kf;var o0="PopperArrow",q_={top:"bottom",right:"left",bottom:"top",left:"r
383ight"},i0=m.forwardRef(function(n,s){const{__scopePopper:a,...c}=n,u=K_(o0,a),f=q_[u.placedSide];return i.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:i.jsx($_,{...c,ref:s,style:{...c.style,display:"block"}})})});i0.displayName=o0;function G_(t){return t!==null}var Q_=t=>({name:"transformOrigin",options:t,fn(n){var S,C,M;const{placement:s,rects:a,middlewareData:c}=n,f=((S=c.arrow)==null?void 0:S.centerOffset)!==0,h=f?0:t.arrowWidth,g=f?0:t.arrowHeight,[v,x]=a0(s),y={start:"0%",center:"50%",end:"100%"}[x],b=(((C=c.arrow)==null?void 0:C.x)??0)+h/2,k=(((M=c.arrow)==null?void 0:M.y)??0)+g/2;let E="",j="";return v==="bottom"?(E=f?y:`${b}px`,j=`${-g}px`):v==="top"?(E=f?y:`${b}px`,j=`${a.floating.height+g}px`):v==="right"?(E=`${-g}px`,j=f?y:`${k}px`):v==="left"&&(E=`${a.floating.width+g}px`,j=f?y:`${k}px`),{data:{x:E,y:j}}}});function a0(t){const[n,s="center"]=t.split("-");return[n,s]}var Y_=t0,X_=n0,J_=s0,Z_=i0,yd="rovingFocusGroup.onEntryFocus",eC={bubbles:!1,cancelable:!0},Yl="RovingFocusGroup",[rf,l0,tC]=mf(Yl),[rC,c0]=An(Yl,[tC]),[nC,sC]=rC(Yl),u0=m.forwardRef((t,n)=>i.jsx(rf.Provider,{scope:t.__scopeRovingFocusGroup,children:i.jsx(rf.Slot,{scope:t.__scopeRovingFocusGroup,children:i.jsx(oC,{...t,ref:n})})}));u0.displayName=Yl;var oC=m.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,orientation:a,loop:c=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...y}=t,b=m.useRef(null),k=at(n,b),E=Ux(u),[j=null,S]=Vl({prop:f,defaultProp:h,onChange:g}),[C,M]=m.useState(!1),N=jt(v),A=l0(s),D=m.useRef(!1),[U,I]=m.useState(0);return m.useEffect(()=>{const V=b.current;if(V)return V.addEventListener(yd,N),()=>V.removeEventListener(yd,N)},[N]),i.jsx(nC,{scope:s,orientation:a,dir:E,loop:c,currentTabStopId:j,onItemFocus:m.useCallback(V=>S(V),[S]),onItemShiftTab:m.useCallback(()=>M(!0),[]),onFocusableItemAdd:m.useCallback(()=>I(V=>V+1),[]),onFocusableItemRemove:m.useCallback(()=>I(V=>V-1),[]),children:i.jsx(Le.div,{tabIndex:C||U===0?-1:0,"data-orientation":a,...y,ref:k,style:{outline:"none",...t.style},onMouseDown:we(t.onMouseDown,()=>{D.current=!0}),onFocus:we(t.onFocus,V=>{const Q=!D.current;if(V.target===V.currentTarget&&Q&&!C){const Z=new CustomEvent(yd,eC);if(V.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const le=A().filter(oe=>oe.focusable),te=le.find(oe=>oe.active),de=le.find(oe=>oe.id===j),fe=[te,de,...le].filter(Boolean).map(oe=>oe.ref.current);h0(fe,x)}}D.current=!1}),onBlur:we(t.onBlur,()=>M(!1))})})}),d0="RovingFocusGroupItem",f0=m.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,focusable:a=!0,active:c=!1,tabStopId:u,...f}=t,h=qs(),g=u||h,v=sC(d0,s),x=v.currentTabStopId===g,y=l0(s),{onFocusableItemAdd:b,onFocusableItemRemove:k}=v;return m.useEffect(()=>{if(a)return b(),()=>k()},[a,b,k]),i.jsx(rf.ItemSlot,{scope:s,id:g,focusable:a,active:c,children:i.jsx(Le.span,{tabIndex:x?0:-1,"data-orientation":v.orientation,...f,ref:n,onMouseDown:we(t.onMouseDown,E=>{a?v.onItemFocus(g):E.preventDefault()}),onFocus:we(t.onFocus,()=>v.onItemFocus(g)),onKeyDown:we(t.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){v.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const j=lC(E,v.orientation,v.dir);if(j!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let C=y().filter(M=>M.focusable).map(M=>M.ref.current);if(j==="last")C.reverse();else if(j==="prev"||j==="next"){j==="prev"&&C.reverse();const M=C.indexOf(E.currentTarget);C=v.loop?cC(C,M+1):C.slice(M+1)}setTimeout(()=>h0(C))}})})})});f0.displayName=d0;var iC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function aC(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function lC(t,n,s){const a=aC(t.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return iC[a]}function h0(t,n=!1){const s=document.activeElement;for(const a of t)if(a===s||(a.focus({preventScroll:n}),document.activeElement!==s))return}function cC(t,n){return t.map((s,a)=>t[(n+a)%t.length])}var uC=u0,dC=f0,nf=["Enter"," "],fC=["ArrowDown","PageUp","Home"],p0=["ArrowUp","PageDown","End"],hC=[...fC,...p0],pC={ltr:[...nf,"ArrowRight"],rtl:[...nf,"ArrowLeft"]},mC={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Vi="Menu",[_i,gC,vC]=mf(Vi),[ds,m0]=An(Vi,[vC,Zx,c0]),Xl=Zx(),g0=c0(),[yC,fs]=ds(Vi),[xC,$i]=ds(Vi),v0=t=>{const{__scopeMenu:n,open:s=!1,children:a,dir:c,onOpenChange:u,modal:f=!0}=t,h=Xl(n),[g,v]=m.useState(null),x=m.useRef(!1),y=jt(u),b=Ux(c);return m.useEffect(()=>{const k=()=>{x.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>x.current=!1;return document.addEventListener("keydown",k,{capture:!0}),()=>{document.removeEventListener("keydown",k,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),i.jsx(Y_,{...h,children:i.jsx(yC,{scope:n,open:s,onOpenChange:y,content:g,onContentChange:v,children:i.jsx(xC,{scope:n,onClose:m.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:x,dir:b,modal:f,children:a})})})};v0.displayName=Vi;
vendor: 12,905 bytes, line 383
383var wC="MenuAnchor",qf=m.forwardRef((t,n)=>{const{__scopeMenu:s,...a}=t,c=Xl(s);return i.jsx(X_,{...c,...a,ref:n})});qf.displayName=wC;var Gf="MenuPortal",[bC,y0]=ds(Gf,{forceMount:void 0}),x0=t=>{const{__scopeMenu:n,forceMount:s,children:a,container:c}=t,u=fs(Gf,n);return i.jsx(bC,{scope:n,forceMount:s,children:i.jsx(Kr,{present:s||u.open,children:i.jsx(Ul,{asChild:!0,container:c,children:a})})})};x0.displayName=Gf;var Zt="MenuContent",[jC,Qf]=ds(Zt),w0=m.forwardRef((t,n)=>{const s=y0(Zt,t.__scopeMenu),{forceMount:a=s.forceMount,...c}=t,u=fs(Zt,t.__scopeMenu),f=$i(Zt,t.__scopeMenu);return i.jsx(_i.Provider,{scope:t.__scopeMenu,children:i.jsx(Kr,{present:a||u.open,children:i.jsx(_i.Slot,{scope:t.__scopeMenu,children:f.modal?i.jsx(SC,{...c,ref:n}):i.jsx(kC,{...c,ref:n})})})})}),SC=m.forwardRef((t,n)=>{const s=fs(Zt,t.__scopeMenu),a=m.useRef(null),c=at(n,a);return m.useEffect(()=>{const u=a.current;if(u)return fx(u)},[]),i.jsx(Yf,{...t,ref:c,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:we(t.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),kC=m.forwardRef((t,n)=>{const s=fs(Zt,t.__scopeMenu);return i.jsx(Yf,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>s.onOpenChange(!1)})}),EC=co("MenuContent.ScrollLock"),Yf=m.forwardRef((t,n)=>{const{__scopeMenu:s,loop:a=!1,trapFocus:c,onOpenAutoFocus:u,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEntryFocus:g,onEscapeKeyDown:v,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:b,onDismiss:k,disableOutsideScroll:E,...j}=t,S=fs(Zt,s),C=$i(Zt,s),M=Xl(s),N=g0(s),A=gC(s),[D,U]=m.useState(null),I=m.useRef(null),V=at(n,I,S.onContentChange),Q=m.useRef(0),Z=m.useRef(""),le=m.useRef(0),te=m.useRef(null),de=m.useRef("right"),ee=m.useRef(0),fe=E?Cf:m.Fragment,oe=E?{as:EC,allowPinchZoom:!0}:void 0,ue=B=>{var je,Ae;const Y=Z.current+B,R=A().filter(Re=>!Re.disabled),W=document.activeElement,ge=(je=R.find(Re=>Re.ref.current===W))==null?void 0:je.textValue,xe=R.map(Re=>Re.textValue),Ce=LC(xe,Y,ge),he=(Ae=R.find(Re=>Re.textValue===Ce))==null?void 0:Ae.ref.current;(function Re(rt){Z.current=rt,window.clearTimeout(Q.current),rt!==""&&(Q.current=window.setTimeout(()=>Re(""),1e3))})(Y),he&&setTimeout(()=>he.focus())};m.useEffect(()=>()=>window.clearTimeout(Q.current),[]),nx();const H=m.useCallback(B=>{var R,W;return de.current===((R=te.current)==null?void 0:R.side)&&zC(B,(W=te.current)==null?void 0:W.area)},[]);return i.jsx(jC,{scope:s,searchRef:Z,onItemEnter:m.useCallback(B=>{H(B)&&B.preventDefault()},[H]),onItemLeave:m.useCallback(B=>{var Y;H(B)||((Y=I.current)==null||Y.focus(),U(null))},[H]),onTriggerLeave:m.useCallback(B=>{H(B)&&B.preventDefault()},[H]),pointerGraceTimerRef:le,onPointerGraceIntentChange:m.useCallback(B=>{te.current=B},[]),children:i.jsx(fe,{...oe,children:i.jsx(_f,{asChild:!0,trapped:c,onMountAutoFocus:we(u,B=>{var Y;B.preventDefault(),(Y=I.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:i.jsx(zl,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:v,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:b,onDismiss:k,children:i.jsx(uC,{asChild:!0,...N,dir:C.dir,orientation:"vertical",loop:a,currentTabStopId:D,onCurrentTabStopIdChange:U,onEntryFocus:we(g,B=>{C.isUsingKeyboardRef.current||B.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(J_,{role:"menu","aria-orientation":"vertical","data-state":D0(S.open),"data-radix-menu-content":"",dir:C.dir,...M,...j,ref:V,style:{outline:"none",...j.style},onKeyDown:we(j.onKeyDown,B=>{const R=B.target.closest("[data-radix-menu-content]")===B.currentTarget,W=B.ctrlKey||B.altKey||B.metaKey,ge=B.key.length===1;R&&(B.key==="Tab"&&B.preventDefault(),!W&&ge&&ue(B.key));const xe=I.current;if(B.target!==xe||!hC.includes(B.key))return;B.preventDefault();const he=A().filter(je=>!je.disabled).map(je=>je.ref.current);p0.includes(B.key)&&he.reverse(),MC(he)}),onBlur:we(t.onBlur,B=>{B.currentTarget.contains(B.target)||(window.clearTimeout(Q.current),Z.current="")}),onPointerMove:we(t.onPointerMove,Ci(B=>{const Y=B.target,R=ee.current!==B.clientX;if(B.currentTarget.contains(Y)&&R){const W=B.clientX>ee.current?"right":"left";de.current=W,ee.current=B.clientX}}))})})})})})})});w0.displayName=Zt;var _C="MenuGroup",Xf=m.forwardRef((t,n)=>{const{__scopeMenu:s,...a}=t;return i.jsx(Le.div,{role:"group",...a,ref:n})});Xf.displayName=_C;var CC="MenuLabel",b0=m.forwardRef((t,n)=>{const{__scopeMenu:s,...a}=t;return i.jsx(Le.div,{...a,ref:n})});b0.displayName=CC;var Il="MenuItem",nv="menu.itemSelect",Jl=m.forwardRef((t,n)=>{const{disabled:s=!1,onSelect:a,...c}=t,u=m.useRef(null),f=$i(Il,t.__scopeMenu),h=Qf(Il,t.__scopeMenu),g=at(n,u),v=m.useRef(!1),x=()=>{const y=u.current;if(!s&&y){const b=new CustomEvent(nv,{bubbles:!0,cancelable:!0});y.addEventListener(nv,k=>a==null?void 0:a(k),{once:!0}),gf(y,b),b.defaultPrevented?v.current=!1:f.onClose()}};return i.jsx(j0,{...c,ref:g,disabled:s,onClick:we(t.onClick,x),onPointerDown:y=>{var b;(b=t.onPointerDown)==null||b.call(t,y),v.current=!0},onPointerUp:we(t.onPointerUp,y=>{var b;v.current||(b=y.currentTarget)==null||b.click()}),onKeyDown:we(t.onKeyDown,y=>{const b=h.searchRef.current!=="";s||b&&y.key===" "||nf.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Jl.displayName=Il;var j0=m.forwardRef((t,n)=>{const{__scopeMenu:s,disabled:a=!1,textValue:c,...u}=t,f=Qf(Il,s),h=g0(s),g=m.useRef(null),v=at(n,g),[x,y]=m.useState(!1),[b,k]=m.useState("");return m.useEffect(()=>{const E=g.current;E&&k((E.textContent??"").trim())},[u.children]),i.jsx(_i.ItemSlot,{scope:s,disabled:a,textValue:c??b,children:i.jsx(dC,{asChild:!0,...h,focusable:!a,children:i.jsx(Le.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...u,ref:v,onPointerMove:we(t.onPointerMove,Ci(E=>{a?f.onItemLeave(E):(f.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:we(t.onPointerLeave,Ci(E=>f.onItemLeave(E))),onFocus:we(t.onFocus,()=>y(!0)),onBlur:we(t.onBlur,()=>y(!1))})})})}),NC="MenuCheckboxItem",S0=m.forwardRef((t,n)=>{const{checked:s=!1,onCheckedChange:a,...c}=t;return i.jsx(N0,{scope:t.__scopeMenu,checked:s,children:i.jsx(Jl,{role:"menuitemcheckbox","aria-checked":Ml(s)?"mixed":s,...c,ref:n,"data-state":Zf(s),onSelect:we(c.onSelect,()=>a==null?void 0:a(Ml(s)?!0:!s),{checkForDefaultPrevented:!1})})})});S0.displayName=NC;var k0="MenuRadioGroup",[TC,PC]=ds(k0,{value:void 0,onValueChange:()=>{}}),E0=m.forwardRef((t,n)=>{const{value:s,onValueChange:a,...c}=t,u=jt(a);return i.jsx(TC,{scope:t.__scopeMenu,value:s,onValueChange:u,children:i.jsx(Xf,{...c,ref:n})})});E0.displayName=k0;var _0="MenuRadioItem",C0=m.forwardRef((t,n)=>{const{value:s,...a}=t,c=PC(_0,t.__scopeMenu),u=s===c.value;return i.jsx(N0,{scope:t.__scopeMenu,checked:u,children:i.jsx(Jl,{role:"menuitemradio","aria-checked":u,...a,ref:n,"data-state":Zf(u),onSelect:we(a.onSelect,()=>{var f;return(f=c.onValueChange)==null?void 0:f.call(c,s)},{checkForDefaultPrevented:!1})})})});C0.displayName=_0;var Jf="MenuItemIndicator",[N0,RC]=ds(Jf,{checked:!1}),T0=m.forwardRef((t,n)=>{const{__scopeMenu:s,forceMount:a,...c}=t,u=RC(Jf,s);return i.jsx(Kr,{present:a||Ml(u.checked)||u.checked===!0,children:i.jsx(Le.span,{...c,ref:n,"data-state":Zf(u.checked)})})});T0.displayName=Jf;var AC="MenuSeparator",P0=m.forwardRef((t,n)=>{const{__scopeMenu:s,...a}=t;return i.jsx(Le.div,{role:"separator","aria-orientation":"horizontal",...a,ref:n})});P0.displayName=AC;var OC="MenuArrow",R0=m.forwardRef((t,n)=>{const{__scopeMenu:s,...a}=t,c=Xl(s);return i.jsx(Z_,{...c,...a,ref:n})});R0.displayName=OC;var IC="MenuSub",[LR,A0]=ds(IC),yi="MenuSubTrigger",O0=m.forwardRef((t,n)=>{const s=fs(yi,t.__scopeMenu),a=$i(yi,t.__scopeMenu),c=A0(yi,t.__scopeMenu),u=Qf(yi,t.__scopeMenu),f=m.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:g}=u,v={__scopeMenu:t.__scopeMenu},x=m.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return m.useEffect(()=>x,[x]),m.useEffect(()=>{const y=h.current;return()=>{window.clearTimeout(y),g(null)}},[h,g]),i.jsx(qf,{asChild:!0,...v,children:i.jsx(j0,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":c.contentId,"data-state":D0(s.open),...t,ref:Fl(n,c.onTriggerChange),onClick:y=>{var b;(b=t.onClick)==null||b.call(t,y),!(t.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:we(t.onPointerMove,Ci(y=>{u.onItemEnter(y),!y.defaultPrevented&&!t.disabled&&!s.open&&!f.current&&(u.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{s.onOpenChange(!0),x()},100))})),onPointerLeave:we(t.onPointerLeave,Ci(y=>{var k,E;x();const b=(k=s.content)==null?void 0:k.getBoundingClientRect();if(b){const j=(E=s.content)==null?void 0:E.dataset.side,S=j==="right",C=S?-5:5,M=b[S?"left":"right"],N=b[S?"right":"left"];u.onPointerGraceIntentChange({area:[{x:y.clientX+C,y:y.clientY},{x:M,y:b.top},{x:N,y:b.top},{x:N,y:b.bottom},{x:M,y:b.bottom}],side:j}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(y),y.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:we(t.onKeyDown,y=>{var k;const b=u.searchRef.current!=="";t.disabled||b&&y.key===" "||pC[a.dir].includes(y.key)&&(s.onOpenChange(!0),(k=s.content)==null||k.focus(),y.preventDefault())})})})});O0.displayName=yi;var I0="MenuSubContent",M0=m.forwardRef((t,n)=>{const s=y0(Zt,t.__scopeMenu),{forceMount:a=s.forceMount,...c}=t,u=fs(Zt,t.__scopeMenu),f=$i(Zt,t.__scopeMenu),h=A0(I0,t.__scopeMenu),g=m.useRef(null),v=at(n,g);return i.jsx(_i.Provider,{scope:t.__scopeMenu,children:i.jsx(Kr,{present:a||u.open,children:i.jsx(_i.Slot,{scope:t.__scopeMenu,children:i.jsx(Yf,{id:h.contentId,"aria-labelledby":h.triggerId,...c,ref:v,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:x=>{var y;f.isUsingKeyboardRef.current&&((y=g.current)==null||y.focus()),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:we(t.onFocusOutside,x=>{x.target!==h.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:we(t.onEscapeKeyDown,x=>{f.onClose(),x.preventDefault()}),onKeyDown:we(t.onKeyDown,x=>{var k;const y=x.currentTarget.contains(x.target),b=mC[f.dir].includes(x.key);y&&b&&(u.onOpenChange(!1),(k=h.trigger)==null||k.focus(),x.preventDefault())})})})})})});M0.displayName=I0;function D0(t){return t?"open":"closed"}function Ml(t){return t==="indeterminate"}function Zf(t){return Ml(t)?"indeterminate":t?"checked":"unchecked"}function MC(t){const n=document.activeElement;for(const s of t)if(s===n||(s.focus(),document.activeElement!==n))return}function DC(t,n){return t.map((s,a)=>t[(n+a)%t.length])}function LC(t,n,s){const c=n.length>1&&Array.from(n).every(v=>v===n[0])?n[0]:n,u=s?t.indexOf(s):-1;let f=DC(t,Math.max(u,0));c.length===1&&(f=f.filter(v=>v!==s));const g=f.find(v=>v.toLowerCase().startsWith(c.toLowerCase()));return g!==s?g:void 0}function FC(t,n){const{x:s,y:a}=t;let c=!1;for(let u=0,f=n.length-1;u<n.length;f=u++){const h=n[u].x,g=n[u].y,v=n[f].x,x=n[f].y;g>a!=x>a&&s<(v-h)*(a-g)/(x-g)+h&&(c=!c)}return c}function zC(t,n){if(!n)return!1;const s={x:t.clientX,y:t.clientY};return FC(s,n)}function Ci(t){return n=>n.pointerType==="mouse"?t(n):void 0}var UC=v0,VC=qf,$C=x0,HC=w0,BC=Xf,WC=b0,KC=Jl,qC=S0,GC=E0,QC=C0,YC=T0,XC=P0,JC=R0,ZC=O0,eN=M0,eh="DropdownMenu",[tN]=An(eh,[m0]),Ct=m0(),[rN,L0]=tN(eh),F0=t=>{const{__scopeDropdownMenu:n,children:s,dir:a,open:c,defaultOpen:u,onOpenChange:f,modal:h=!0}=t,g=Ct(n),v=m.useRef(null),[x=!1,y]=Vl({prop:c,defaultProp:u,onChange:f});return i.jsx(rN,{scope:n,triggerId:qs(),triggerRef:v,contentId:qs(),open:x,onOpenChange:y,onOpenToggle:m.useCallback(()=>y(b=>!b),[y]),modal:h,children:i.jsx(UC,{...g,open:x,onOpenChange:y,dir:a,modal:h,children:s})})};F0.displayName=eh;var z0="DropdownMenuTrigger",U0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,disabled:a=!1,...c}=t,u=L0(z0,s),f=Ct(s);return i.jsx(VC,{asChild:!0,...f,children:i.jsx(Le.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...c,ref:Fl(n,u.triggerRef),onPointerDown:we(t.onPointerDown,h=>{!a&&h.button===0&&h.ctrlKey===!1&&(u.onOpenToggle(),u.open||h.preventDefault())}),onKeyDown:we(t.onKeyDown,h=>{a||(["Enter"," "].includes(h.key)&&u.onOpenToggle(),h.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});U0.displayName=z0;var nN="DropdownMenuPortal",V0=t=>{const{__scopeDropdownMenu:n,...s}=t,a=Ct(n);return i.jsx($C,{...a,...s})};V0.displayName=nN;
383var $0="DropdownMenuContent",H0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=L0($0,s),u=Ct(s),f=m.useRef(!1);return i.jsx(HC,{id:c.contentId,"aria-labelledby":c.triggerId,...u,...a,ref:n,onCloseAutoFocus:we(t.onCloseAutoFocus,h=>{var g;f.current||(g=c.triggerRef.current)==null||g.focus(),f.current=!1,h.preventDefault()}),onInteractOutside:we(t.onInteractOutside,h=>{const g=h.detail.originalEvent,v=g.button===0&&g.ctrlKey===!0,x=g.button===2||v;(!c.modal||x)&&(f.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});H0.displayName=$0;var sN="DropdownMenuGroup",oN=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(BC,{...c,...a,ref:n})});oN.displayName=sN;var iN="DropdownMenuLabel",B0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(WC,{...c,...a,ref:n})});B0.displayName=iN;var aN="DropdownMenuItem",W0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(KC,{...c,...a,ref:n})});W0.displayName=aN;var lN="DropdownMenuCheckboxItem",K0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(qC,{...c,...a,ref:n})});K0.displayName=lN;var cN="DropdownMenuRadioGroup",uN=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(GC,{...c,...a,ref:n})});uN.displayName=cN;var dN="DropdownMenuRadioItem",q0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(QC,{...c,...a,ref:n})});q0.displayName=dN;var fN="DropdownMenuItemIndicator",G0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(YC,{...c,...a,ref:n})});G0.displayName=fN;var hN="DropdownMenuSeparator",Q0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(XC,{...c,...a,ref:n})});Q0.displayName=hN;var pN="DropdownMenuArrow",mN=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(JC,{...c,...a,ref:n})});mN.displayName=pN;var gN="DropdownMenuSubTrigger",Y0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(ZC,{...c,...a,ref:n})});Y0.displayName=gN;var vN="DropdownMenuSubContent",X0=m.forwardRef((t,n)=>{const{__scopeDropdownMenu:s,...a}=t,c=Ct(s);return i.jsx(eN,{...c,...a,ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});X0.displayName=vN;var yN=F0,xN=U0,wN=V0,J0=H0,Z0=B0,ew=W0,tw=K0,rw=q0,nw=G0,sw=Q0,ow=Y0,iw=X0;const aw=yN,lw=xN,bN=m.forwardRef(({className:t,inset:n,children:s,...a},c)=>i.jsxs(ow,{ref:c,className:Me("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",t),...a,children:[s,i.jsx(Nl,{className:"ml-auto h-4 w-4"})]}));bN.displayName=ow.displayName;const jN=m.forwardRef(({className:t,...n},s)=>i.jsx(iw,{ref:s,className:Me("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));jN.displayName=iw.displayName;const th=m.forwardRef(({className:t,sideOffset:n=4,...s},a)=>i.jsx(wN,{children:i.jsx(J0,{ref:a,sideOffset:n,className:Me("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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
383de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...s})}));th.displayName=J0.displayName;const xi=m.forwardRef(({className:t,inset:n,...s},a)=>i.jsx(ew,{ref:a,className:Me("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",t),...s}));xi.displayName=ew.displayName;const SN=m.forwardRef(({className:t,children:n,checked:s,...a},c)=>i.jsxs(tw,{ref:c,className:Me("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:s,...a,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(nw,{children:i.jsx(PS,{className:"h-4 w-4"})})}),n]}));SN.displayName=tw.displayName;const kN=m.forwardRef(({className:t,children:n,...s},a)=>i.jsxs(rw,{ref:a,className:Me("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...s,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(nw,{children:i.jsx(OS,{className:"h-2 w-2 fill-current"})})}),n]}));kN.displayName=rw.displayName;const EN=m.forwardRef(({className:t,inset:n,...s},a)=>i.jsx(Z0,{ref:a,className:Me("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",t),...s}));EN.displayName=Z0.displayName;const _N=m.forwardRef(({className:t,...n},s)=>i.jsx(sw,{ref:s,className:Me("-mx-1 my-1 h-px bg-muted",t),...n}));_N.displayName=sw.displayName;var rh="Avatar",[CN]=An(rh),[NN,cw]=CN(rh),uw=m.forwardRef((t,n)=>{const{__scopeAvatar:s,...a}=t,[c,u]=m.useState("idle");return i.jsx(NN,{scope:s,imageLoadingStatus:c,onImageLoadingStatusChange:u,children:i.jsx(Le.span,{...a,ref:n})})});uw.displayName=rh;var dw="AvatarImage",fw=m.forwardRef((t,n)=>{const{__scopeAvatar:s,src:a,onLoadingStatusChange:c=()=>{},...u}=t,f=cw(dw,s),h=TN(a,u),g=jt(v=>{c(v),f.onImageLoadingStatusChange(v)});return dr(()=>{h!=="idle"&&g(h)},[h,g]),h==="loaded"?i.jsx(Le.img,{...u,ref:n,src:a}):null});fw.displayName=dw;var hw="AvatarFallback",pw=m.forwardRef((t,n)=>{const{__scopeAvatar:s,delayMs:a,...c}=t,u=cw(hw,s),[f,h]=m.useState(a===void 0);return m.useEffect(()=>{if(a!==void 0){const g=window.setTimeout(()=>h(!0),a);return()=>window.clearTimeout(g)}},[a]),f&&u.imageLoadingStatus!=="loaded"?i.jsx(Le.span,{...c,ref:n}):null});pw.displayName=hw;function sv(t,n){return t?n?(t.src!==n&&(t.src=n),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function TN(t,{referrerPolicy:n,crossOrigin:s}){const a=RN(),c=m.useRef(null),u=a?(c.current||(c.current=new window.Image),c.current):null,[f,h]=m.useState(()=>sv(u,t));return dr(()=>{h(sv(u,t))},[u,t]),dr(()=>{const g=y=>()=>{h(y)};if(!u)return;const v=g("loaded"),x=g("error");return u.addEventListener("load",v),u.addEventListener("error",x),n&&(u.referrerPolicy=n),typeof s=="string"&&(u.crossOrigin=s),()=>{u.removeEventListener("load",v),u.removeEventListener("error",x)}},[u,s,n]),f}function PN(){return()=>{}}function RN(){return m.useSyncExternalStore(PN,()=>!0,()=>!1)}var mw=uw,gw=fw,vw=pw;const yw=m.forwardRef(({className:t,...n},s)=>i.jsx(mw,{ref:s,className:Me("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...n}));yw.displayName=mw.displayName;const AN=m.forwardRef(({className:t,...n},s)=>i.jsx(gw,{ref:s,className:Me("aspect-square h-full w-full",t),...n}));AN.displayName=gw.displayName;const xw=m.forwardRef(({className:t,...n},s)=>i.jsx(vw,{ref:s,className:Me("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...n}));xw.displayName=vw.displayName;function nh(){const{user:t}=Ht(),{toast:n}=Mi(),{data:s=[],isLoading:a,error:c,refetch:u}=$r({queryKey:["/api/alerts"],queryFn:async()=>{const v=await it("GET","/api/alerts");if(!v.ok)throw new Error("Failed to fetch alerts");return v.json()},enabled:!!t}),f=Dt({mutationFn:async v=>{const x=await it("POST",`/api/alerts/${v}/read`);if(!x.ok){const y=await x.json();throw new Error(y.message||"Failed to mark alert as read")}return await x.json()},onSuccess:()=>{Ve.invalidateQueries({queryKey:["/api/alerts"]})},onError:v=>{n({title:"Error",description:`Failed to mark alert as read: ${v.message}`,variant:"destructive"})}}),h=Dt({mutationFn:async({alertId:v,isSaved:x})=>{const y=await it("POST",`/api/alerts/${v}/save`,{isSaved:x});if(!y.ok){const b=await y.json();throw new Error(b.message||"Failed to save alert")}return await y.json()},onSuccess:()=>{Ve.invalidateQueries({queryKey:["/api/alerts"]})},onError:v=>{n({title:"Error",description:`Failed to update alert: ${v.message}`,variant:"destructive"})}}),g=Dt({mutationFn:async v=>{const x=await it("POST",`/api/alerts/${v}/delete`);if(!x.ok){const y=await x.json();throw new Error(y.message||"Failed to delete alert")}return await x.json()},onSuccess:()=>{Ve.invalidateQueries({queryKey:["/api/alerts"]}),n({title:"Success",description:"Alert removed"})},onError:v=>{n({title:"Error",description:`Failed to delete alert: ${v.message}`,variant:"destructive"})}});return{alerts:s.filter(v=>!v.isDeleted),isLoading:a,error:c,refetch:u,markAsRead:f.mutate,saveAlert:h.mutate,deleteAlert:g.mutate,hasUnread:s.some(v=>!v.isRead&&!v.isDeleted)}}function FR(){const{toast:t}=Mi(),{data:n=[],isLoading:s,error:a,refetch:c}=$r({queryKey:["/api/admin/alerts"],queryFn:async()=>{const g=await it("GET","/api/admin/alerts");if(!g.ok)throw new Error("Failed to fetch admin alerts");return g.json()}}),u=Dt({mutationFn:async()=>{const g=await it("POST","/api/admin/alerts/process-scheduled");if(!g.ok){const v=await g.json();throw new Error(v.message||"Failed to process scheduled alerts")}return await g.json()},onSuccess:g=>{Ve.invalidateQueries({queryKey:["/api/admin/alerts"]}),Ve.invalidateQueries({queryKey:["/api/alerts"]}),t({title:"Scheduled Alerts Processed",description:g.message})},onError:g=>{t({title:"Error",description:`Failed to process scheduled alerts: ${g.message}`,variant:"destructive"})}}),f=Dt({mutationFn:async g=>{const v=await it("POST","/api/admin/alerts",g);if(!v.ok){const x=await v.json();throw new Error(x.message||"Failed to create alert")}return await v.json()},onSuccess:g=>{Ve.invalidateQueries({queryKey:["/api/admin/alerts"]}),t({title:"Success",description:g.scheduledFor?"Alert scheduled successfully":"Alert created and sent to users"})},onError:g=>{t({title:"Error",description:`Failed to create alert: ${g.message}`,variant:"destructive"})}}),h=Dt({mutationFn:async g=>{const v=await it("DELETE",`/api/admin/alerts/${g}`);if(!v.ok){const x=await v.json();throw new Error(x.message||"Failed to delete alert")}return await v.json()},onSuccess:()=>{Ve.invalidateQueries({queryKey:["/api/admin/alerts"]}),t({title:"Success",description:"Alert deleted"})},onError:g=>{t({title:"Error",description:`Failed to delete alert: ${g.message}`,variant:"destructive"})}});return{alerts:n,isLoading:s,error:a,refetch:c,createAlert:f.mutate,deleteAlert:h.mutate,processScheduledAlerts:u.mutate}}function pt(t){const n=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&n==="[object Date]"?new t.constructor(+t):typeof t=="number"||n==="[object Number]"||typeof t=="string"||n==="[object String]"?new Date(t):new Date(NaN)}function ON(t,n){return t instanceof Date?new t.constructor(n):new Date(n)}const zR=6048e5,UR=864e5,hl=43200,ov=1440;let IN={};function MN(){return IN}function iv(t){const n=pt(t),s=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return s.setUTCFullYear(n.getFullYear()),+t-+s}function Sl(t,n){const s=pt(t),a=pt(n),c=s.getTime()-a.getTime();return c<0?-1:c>0?1:c}function DN(t){return ON(t,Date.now())}function LN(t,n){const s=pt(t),a=pt(n),c=s.getFullYear()-a.getFullYear(),u=s.getMonth()-a.getMonth();return c*12+u}function FN(t){return n=>{const a=(t?Math[t]:Math.trunc)(n);return a===0?0:a}}function zN(t,n){return+pt(t)-+pt(n)}function UN(t){const n=pt(t);return n.setHours(23,59,59,999),n}function VN(t){const n=pt(t),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function $N(t){const n=pt(t);return+UN(n)==+VN(n)}function HN(t,n){const s=pt(t),a=pt(n),c=Sl(s,a),u=Math.abs(LN(s,a));let f;if(u<1)f=0;else{s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-c*u);let h=Sl(s,a)===-c;$N(pt(t))&&u===1&&Sl(t,a)===1&&(h=!1),f=c*(u-Number(h))}return f===0?0:f}function BN(t,n,s){const a=zN(t,n)/1e3;return FN(s==null?void 0:s.roundingMethod)(a)}const WN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KN=(t,n,s)=>{let a;const c=WN[t];return typeof c=="string"?a=c:n===1?a=c.one:a=c.other.replace("{{count}}
383",n.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+a:a+" ago":a};function xd(t){return(n={})=>{const s=n.width?String(n.width):t.defaultWidth;return t.formats[s]||t.formats[t.defaultWidth]}}const qN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},GN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YN={date:xd({formats:qN,defaultWidth:"full"}),time:xd({formats:GN,defaultWidth:"full"}),dateTime:xd({formats:QN,defaultWidth:"full"})},XN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JN=(t,n,s,a)=>XN[t];function mi(t){return(n,s)=>{const a=s!=null&&s.context?String(s.context):"standalone";let c;if(a==="formatting"&&t.formattingValues){const f=t.defaultFormattingWidth||t.defaultWidth,h=s!=null&&s.width?String(s.width):f;c=t.formattingValues[h]||t.formattingValues[f]}else{const f=t.defaultWidth,h=s!=null&&s.width?String(s.width):t.defaultWidth;c=t.values[h]||t.values[f]}const u=t.argumentCallback?t.argumentCallback(n):n;return c[u]}}const ZN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},eT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},sT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oT=(t,n)=>{const s=Number(t),a=s%100;if(a>20||a<10)switch(a%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},iT={ordinalNumber:oT,era:mi({values:ZN,defaultWidth:"wide"}),quarter:mi({values:eT,defaultWidth:"wide",argumentCallback:t=>t-1}),month:mi({values:tT,defaultWidth:"wide"}),day:mi({values:rT,defaultWidth:"wide"}),dayPeriod:mi({values:nT,defaultWidth:"wide",formattingValues:sT,defaultFormattingWidth:"wide"})};function gi(t){return(n,s={})=>{const a=s.width,c=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],u=n.match(c);if(!u)return null;const f=u[0],h=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],g=Array.isArray(h)?lT(h,y=>y.test(f)):aT(h,y=>y.test(f));let v;v=t.valueCallback?t.valueCallback(g):g,v=s.valueCallback?s.valueCallback(v):v;const x=n.slice(f.length);return{value:v,rest:x}}}function aT(t,n){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&n(t[s]))return s}function lT(t,n){for(let s=0;s<t.length;s++)if(n(t[s]))return s}function cT(t){return(n,s={})=>{const a=n.match(t.matchPattern);if(!a)return null;const c=a[0],u=n.match(t.parsePattern);if(!u)return null;let f=t.valueCallback?t.valueCallback(u[0]):u[0];f=s.valueCallback?s.valueCallback(f):f;const h=n.slice(c.length);return{value:f,rest:h}}}const uT=/^(\d+)(th|st|nd|rd)?/i,dT=/\d+/i,fT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},hT={any:[/^b/i,/^(a|c)/i]},pT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mT={any:[/1/i,/2/i,/3/i,/4/i]},gT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},jT={ordinalNumber:cT({matchPattern:uT,parsePattern:dT,valueCallback:t=>parseInt(t,10)}),era:gi({matchPatterns:fT,defaultMatchWidth:"wide",parsePatterns:hT,defaultParseWidth:"any"}),quarter:gi({matchPatterns:pT,defaultMatchWidth:"wide",parsePatterns:mT,defaultParseWidth:"any",valueCallback:t=>t+1}),month:gi({matchPatterns:gT,defaultMatchWidth:"wide",parsePatterns:vT,defaultParseWidth:"any"}),day:gi({matchPatterns:yT,defaultMatchWidth:"wide",parsePatterns:xT,defaultParseWidth:"any"}),dayPeriod:gi({matchPatterns:wT,defaultMatchWidth:"any",parsePatterns:bT,defaultParseWidth:"any"})},ST={code:"en-US",formatDistance:KN,formatLong:YN,formatRelative:JN,localize:iT,match:jT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kT(t,n,s){const a=MN(),c=(s==null?void 0:s.locale)??a.locale??ST,u=2520,f=Sl(t,n);if(isNaN(f))throw new RangeError("Invalid time value");const h=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:f});let g,v;f>0?(g=pt(n),v=pt(t)):(g=pt(t),v=pt(n));const x=BN(v,g),y=(iv(v)-iv(g))/1e3,b=Math.round((x-y)/60);let k;if(b<2)return s!=null&&s.includeSeconds?x<5?c.formatDistance("lessThanXSeconds",5,h):x<10?c.formatDistance("lessThanXSeconds",10,h):x<20?c.formatDistance("lessThanXSeconds",20,h):x<40?c.formatDistance("halfAMinute",0,h):x<60?c.formatDistance("lessThanXMinutes",1,h):c.formatDistance("xMinutes",1,h):b===0?c.formatDistance("lessThanXMinutes",1,h):c.formatDistance("xMinutes",b,h);if(b<45)return c.formatDistance("xMinutes",b,h);if(b<90)return c.formatDistance("aboutXHours",1,h);if(b<ov){const E=Math.round(b/60);return c.formatDistance("aboutXHours",E,h)}else{if(b<u)return c.formatDistance("xDays",1,h);if(b<hl){const E=Math.round(b/ov);return c.formatDistance("xDays",E,h)}else if(b<hl*2)return k=Math.round(b/hl),c.formatDistance("aboutXMonths",k,h)}if(k=HN(v,g),k<12){const E=Math.round(b/hl);return c.formatDistance("xMonths",E,h)}else{const E=k%12,j=Math.trunc(k/12);return E<3?c.formatDistance("aboutXYears",j,h):E<9?c.formatDistance("overXYears",j,h):c.formatDistance("almostXYears",j+1,h)}}function av(t,n){return kT(t,DN(t),n)}var ET="Separator",lv="horizontal",_T=["horizontal","vertical"],ww=m.forwardRef((t,
383n)=>{const{decorative:s,orientation:a=lv,...c}=t,u=CT(a)?a:lv,h=s?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return i.jsx(Le.div,{"data-orientation":u,...h,...c,ref:n})});ww.displayName=ET;function CT(t){return _T.includes(t)}var bw=ww;const sf=m.forwardRef(({className:t,orientation:n="horizontal",decorative:s=!0,...a},c)=>i.jsx(bw,{ref:c,decorative:s,orientation:n,className:Me("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...a}));sf.displayName=bw.displayName;function NT(){const{hasUnread:t}=nh(),[n,s]=m.useState(!1);return i.jsxs(aw,{open:n,onOpenChange:s,children:[i.jsx(lw,{asChild:!0,children:i.jsxs(Fe,{variant:"ghost",size:"icon",className:"relative",children:[i.jsx(uo,{className:"h-5 w-5"}),t&&i.jsx("span",{className:"absolute top-1 right-1 h-2 w-2 rounded-full bg-red-600"})]})}),i.jsxs(th,{align:"end",className:"w-[340px] p-0",children:[i.jsx("div",{className:"px-4 py-3 font-medium",children:"Notifications"}),i.jsx(sf,{}),i.jsx("div",{className:"max-h-[300px] overflow-y-auto",children:i.jsx(TT,{compact:!0})}),i.jsx(sf,{}),i.jsx("div",{className:"p-2 text-center",children:i.jsx(Fe,{variant:"ghost",size:"sm",asChild:!0,children:i.jsx("span",{onClick:()=>s(!1),children:"Close"})})})]})]})}function TT({compact:t=!1}){const{alerts:n,isLoading:s,markAsRead:a,saveAlert:c,deleteAlert:u}=nh();return s?i.jsx("div",{className:"flex items-center justify-center p-4",children:i.jsx(as,{className:"h-6 w-6 animate-spin"})}):n.length===0?i.jsxs("div",{className:"flex flex-col items-center justify-center p-6 text-center text-muted-foreground",children:[i.jsx(uo,{className:"h-8 w-8 mb-2 opacity-50"}),i.jsx("p",{children:"No notifications at this time"})]}):t?i.jsx("div",{className:"space-y-1 p-1",children:n.map(f=>i.jsxs("div",{className:`flex items-start p-3 hover:bg-muted/50 rounded-md ${f.isRead?"":"bg-muted/30"}`,children:[i.jsx("div",{className:"mr-2 mt-0.5",children:f.isRead?i.jsx(uo,{className:"h-5 w-5 text-muted-foreground"}):i.jsx(_y,{className:"h-5 w-5 text-primary"})}),i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsxs("div",{className:"flex justify-between",children:[i.jsx("p",{className:"text-sm font-medium",children:f.alert.title}),i.jsxs("div",{className:"flex space-x-1",children:[!f.isRead&&i.jsx(Fe,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:()=>a(f.alertId),children:i.jsx(Ng,{className:"h-4 w-4"})}),i.jsx(Fe,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:()=>u(f.alertId),children:i.jsx(ls,{className:"h-4 w-4"})})]})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:f.alert.content}),i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:av(new Date(f.alert.createdAt),{addSuffix:!0})})]})]},f.id))}):i.jsx("div",{className:"space-y-4",children:n.map(f=>i.jsxs(vo,{className:f.isRead?"":"border-primary/50",children:[i.jsxs(Di,{className:"pb-2",children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsx(Li,{className:"text-lg",children:f.alert.title}),i.jsxs("div",{className:"flex space-x-1",children:[i.jsx(Fe,{variant:"ghost",size:"icon",onClick:()=>c({alertId:f.alertId,isSaved:!f.isSaved}),children:f.isSaved?i.jsx(ky,{className:"h-4 w-4"}):i.jsx(TS,{className:"h-4 w-4"})}),!f.isRead&&i.jsx(Fe,{variant:"ghost",size:"icon",onClick:()=>a(f.alertId),children:i.jsx(Ng,{className:"h-4 w-4"})}),i.jsx(Fe,{variant:"ghost",size:"icon",onClick:()=>u(f.alertId),children:i.jsx(ls,{className:"h-4 w-4"})})]})]}),i.jsxs(Fi,{children:[av(new Date(f.alert.createdAt),{addSuffix:!0}),!f.isRead&&i.jsx(go,{variant:"outline",className:"ml-2 bg-primary/10",children:"New"})]})]}),i.jsx(zi,{children:i.jsx("p",{children:f.alert.content})})]},f.id))})}const of=[{id:"resume",name:"Resume Toolkit",description:"Build, optimize and perfect your resume",icon:qn,route:"/toolkit/resume",primaryTier:"main",downsellTier:null,features:[{id:"resume_workspace",n
383ame:"Resume Workspace",description:"Upload, analyze, optimize and download your resume",icon:ss,route:"/resume-workspace",availableIn:"both"},{id:"resume_library",name:"My Documents",description:"View and manage your saved resumes and cover letters",icon:US,route:"/documents",availableIn:"both"},{id:"cover_letter",name:"Cover Letter Generator",description:"Create tailored cover letters using job details",icon:Ny,route:"/cover-letter",availableIn:"both"},{id:"job_search_helper",name:"Job Search Helper",description:"Generate boolean search queries for Google, Bing & more",icon:ss,route:"/toolkit/job-search-helper",availableIn:"both"}]},{id:"linkedin",name:"LinkedIn Toolkit",description:"Enhance your LinkedIn presence and personal brand",icon:Bd,route:"/toolkit/linkedin",primaryTier:"oto1",downsellTier:"ds1",features:[{id:"linkedin_roaster",name:"LinkedIn Roaster",description:"Get AI feedback on your LinkedIn profile with KVI⢠score",icon:Bd,route:"/toolkit/linkedin-roaster",availableIn:"full"},{id:"brand_generator",name:"Brand Generator",description:"Create your personal professional brand",icon:Cn,route:"/brand-generator",availableIn:"both"}]},{id:"interview",name:"Interview Mastery",description:"Prepare and practice for interviews",icon:Gn,route:"/toolkit/interview",primaryTier:"oto2",downsellTier:"ds2",features:[{id:"interview_prep",name:"Interview Prep Coach",description:"Practice interview questions with AI feedback",icon:Gn,route:"/interview-coach",availableIn:"both"},{id:"company_research",name:"Company Research",description:"Get insights on companies before interviews",icon:Ey,route:"/company-research",availableIn:"both"},{id:"career_assessment",name:"Career Assessment (RIASEC)",description:"Take the personality assessment",icon:Cy,route:"/career-assessment",availableIn:"both"},{id:"interview_ghost",name:"Ghost Analyzer",description:"Understand why you might be getting ghosted",icon:Ty,route:"/interview-ghosting-diagnosis",availableIn:"full"}]},{id:"coaching",name:"AI Coaching",description:"Chat with KARRI, your AI career coach",icon:Gn,route:"/toolkit/coaching",primaryTier:"oto3",downsellTier:"ds3",features:[{id:"karri_chat",name:"KARRI AI Coach",description:"Get personalized career guidance and advice",icon:Gn,route:"/karri-chat",availableIn:"both"}]},{id:"agency",name:"Agency",description:"Manage your coaching clients",icon:fo,route:"/agency-clients",primaryTier:"oto4",downsellTier:"ds4",isHidden:!0,features:[{id:"agency_mode",name:"Agency Dashboard",description:"Manage your coaching clients",icon:fo,route:"/agency-clients",availableIn:"both"}]},{id:"application_cycle",name:"Application Pro",description:"Strategic job application management with Stop/Go recommendations",icon:td,route:"/application-cycle/dashboard",primaryTier:"appsumo",downsellTier:null,features:[{id:"application_cycle_dashboard",name:"Application Dashboard",description:"Track all your applications, see weekly status reports",icon:td,route:"/application-cycle/dashboard",availableIn:"full"},{id:"application_cycle",name:"New Application",description:"Start a new application with Stop/Go recommendation",icon:td,route:"/application-cycle/start",availableIn:"full"}]},{id:"profile",name:"My Profile",description:"Manage your account settings",icon:Cn,route:"/profile",primaryTier:"free",downsellTier:null,isHidden:!0,features:[]},{id:"support",name:"Support",description:"Get help and send feedback",icon:uo,route:"/support",primaryTier:"free",downsellTier:null,isHidden:!0,features:[]}];function VR(t){return of.find(n=>n.id===t)}function cv({pack:t,isEnabled:n,isDownsell:s,onClick:a}){const c=t.icon;return n?i.jsx(ke,{href:t.route,onClick:a,children:i.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-accent rounded-lg cursor-pointer transition-colors group",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0 group-hover:bg-primary/20 transition-colors",children:i.jsx(c,{className:"w-5 h-5 text-primary"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("p",{className:"font-medium text-foreground group-hover:text-primary transition-colors",children:t.name}),s&&i.jsx(go,{variant:"secondary",className:"text-xs px-1.5 py-0",children:"Basic"})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:t.description})]}),i.jsx(Nl,{className:"w-4 h-4 text-muted-foreground group-hover:text-primary transition-colors shrink-0"})]})}):i.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 opacity-50 cursor-not-allowed",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-muted flex items-center justify-center shrink-0",children:i.jsx(jf,{className:"w-5 h-5 text-muted-foreground"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-medium text-muted-foreground",children:t.name}
383),i.jsx("p",{className:"text-xs text-muted-foreground/70",children:"Not purchased"})]})]})}function PT(){const{user:t,isLoading:n,logoutMutation:s,isGuest:a,isPremiumUser:c}=Ht(),{checkPackAccess:u,isAdmin:f}=Kl(),{isDark:h,toggleTheme:g}=Ef(),[v,x]=m.useState(!1),[y]=mt();m.useEffect(()=>{x(!1)},[y]),m.useEffect(()=>(v?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[v]);const b=()=>{x(!1),s.mutate()},k=of.filter(j=>["resume","linkedin","interview","coaching","agency"].includes(j.id)),E=of.filter(j=>["profile","support"].includes(j.id));return n?i.jsx("header",{className:"bg-background border-b sticky top-0 z-50",children:i.jsx("div",{className:"max-w-7xl mx-auto px-4",children:i.jsx("div",{className:"flex justify-between items-center h-14",children:i.jsx(ke,{href:"/",children:i.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",children:[i.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:i.jsx(_l,{className:"h-5 w-5 text-primary-foreground"})}),i.jsxs("span",{className:"font-bold text-lg",children:["KARRI",i.jsx("span",{className:"text-primary",children:".AI"})]})]})})})})}):i.jsxs(i.Fragment,{children:[i.jsx("header",{className:"bg-background border-b sticky top-0 z-50",children:i.jsx("div",{className:"max-w-7xl mx-auto px-4",children:i.jsxs("div",{className:"flex justify-between items-center h-14",children:[i.jsx(ke,{href:t?"/toolkit/resume":"/",children:i.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",children:[i.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:i.jsx(_l,{className:"h-5 w-5 text-primary-foreground"})}),i.jsxs("span",{className:"font-bold text-lg",children:["KARRI",i.jsx("span",{className:"text-primary",children:".AI"})]})]})}),i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(Fe,{variant:"ghost",size:"icon",onClick:g,className:"h-9 w-9 rounded-full","aria-label":"Toggle dark mode",children:h?i.jsx(Oy,{className:"h-4 w-4"}):i.jsx(Ay,{className:"h-4 w-4"})}),a?i.jsx(ke,{href:"/auth",children:i.jsx(Fe,{size:"sm",children:"Sign In"})}):i.jsx(Fe,{variant:"ghost",size:"icon",onClick:()=>x(!v),className:"relative",children:v?i.jsx(ls,{className:"h-5 w-5"}):i.jsx(Ry,{className:"h-5 w-5"})})]})]})})}),v&&t&&i.jsx("div",{className:"fixed inset-0 z-40 bg-background/95 backdrop-blur-sm",children:i.jsx("div",{className:"fixed inset-x-0 top-14 bottom-0 overflow-y-auto",children:i.jsxs("div",{className:"max-w-lg mx-auto px-4 py-6 space-y-6",children:[i.jsxs("div",{className:"bg-gradient-to-r from-primary to-primary/80 rounded-xl p-4 text-primary-foreground",children:[i.jsx("p",{className:"text-sm opacity-80",children:"Welcome back"}),i.jsx("p",{className:"font-semibold text-lg",children:t.username||t.email})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider px-4 mb-2",children:"Your Toolkits"}),k.map(j=>{const S=u(j.id);return i.jsx(cv,{pack:j,isEnabled:S!=="none",isDownsell:S==="downsell",onClick:()=>x(!1)},j.id)})]}),i.jsxs("div",{className:"border-t pt-4 space-y-1",children:[i.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider px-4 mb-2",children:"Resources"}),i.jsx(ke,{href:"/career-hub",onClick:()=>x(!1),children:i.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-accent rounded-lg cursor-pointer transition-colors group",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-emerald-50 dark:bg-emerald-950 flex items-center justify-center shrink-0 group-hover:bg-emerald-100 dark:group-hover:bg-emerald-900 transition-colors",children:i.jsx(bi,{className:"w-5 h-5 text-emerald-600 dark:text-emerald-400"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-medium text-foreground group-hover:text-emerald-600 transition-colors",children:"Career Hub"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Expert career advice & guides"})]}),i.jsx(Nl,{className:"w-4 h-4 text-muted-foreground group-hover:text-emerald-600 transition-colors shrink-0"})]})})]}),(c||f)&&i.jsxs("div",{className:"border-t pt-4 space-y-1",children:[i.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider px-4 mb-2",children:"Hiring Tools"}),i.jsx(ke,{href:"/team-recruiter",onClick:()=>x(!1),children:i.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-accent rounded-lg cursor-pointer transition-colors group",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-teal-50 dark:bg-teal-950 flex items-center justify-center shrink-0 group-hover:bg-teal-100 dar
383k:group-hover:bg-teal-900 transition-colors",children:i.jsx(fo,{className:"w-5 h-5 text-teal-600 dark:text-teal-400"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-medium text-foreground group-hover:text-teal-600 transition-colors",children:"KARRI.AI Recruiter"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"AI screening co-pilot for hiring"})]}),i.jsx(Nl,{className:"w-4 h-4 text-muted-foreground group-hover:text-teal-600 transition-colors shrink-0"})]})})]}),i.jsxs("div",{className:"border-t pt-4 space-y-1",children:[i.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider px-4 mb-2",children:"Account"}),E.map(j=>i.jsx(cv,{pack:j,isEnabled:!0,isDownsell:!1,onClick:()=>x(!1)},j.id)),f&&i.jsx(ke,{href:"/admin",onClick:()=>x(!1),children:i.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-red-50 dark:hover:bg-red-950/30 rounded-lg cursor-pointer transition-colors group",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-red-100 dark:bg-red-950 flex items-center justify-center shrink-0",children:i.jsx(Kd,{className:"w-5 h-5 text-red-600"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"font-medium text-red-700 dark:text-red-400",children:"Admin Dashboard"}),i.jsx("p",{className:"text-xs text-red-600/70",children:"Manage the platform"})]}),i.jsx(go,{variant:"destructive",className:"text-xs",children:"Admin"})]})})]}),i.jsx("div",{className:"border-t pt-4",children:i.jsx(Fe,{variant:"ghost",className:"w-full justify-start text-destructive hover:text-destructive hover:bg-destructive/10",onClick:b,disabled:s.isPending,children:s.isPending?i.jsxs(i.Fragment,{children:[i.jsx(as,{className:"mr-2 h-4 w-4 animate-spin"}),"Signing out..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Wd,{className:"mr-2 h-4 w-4"}),"Sign Out"]})})})]})})})]})}function RT(){const{user:t,isGuest:n,isLoading:s,isPremiumUser:a,hasFullPremiumAccess:c,hasChallengeInterviewAccess:u,logoutMutation:f}=Ht(),h=t,{isWPUser:g,isWPProfileReady:v,checkPackAccess:x,isAdmin:y,hasJobSearchToolkitAccess:b,hasPerformanceReviewsAccess:k}=Kl(),{isDark:E,toggleTheme:j}=Ef(),S=x("resume")!=="none",[C,M]=m.useState(!1),[N,A]=m.useState(!1);m.useEffect(()=>{const V=()=>{const Q=window.innerWidth;A(Q<768)};return V(),window.addEventListener("resize",V),()=>window.removeEventListener("resize",V)},[]);const{hasUnread:D}=nh(),U=()=>{f.isPending||(M(!1),f.mutate())};return s||h&&!v?i.jsx("header",{className:"bg-white dark:bg-slate-900 border-b border-gray-200 dark:border-slate-700 sticky top-0 z-50",children:i.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i.jsxs("div",{className:"flex justify-between items-center h-16",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(ke,{href:"/",children:i.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:i.jsx(_l,{className:"h-5 w-5 text-white"})}),i.jsx("div",{className:"font-bold text-xl text-gray-900 dark:text-white",children:"KARRI AIâ¢"})]})})}),i.jsx("div",{className:"flex items-center space-x-4",children:i.jsx("div",{className:"w-8 h-8 bg-gray-200 dark:bg-slate-700 rounded-full animate-pulse"})})]})})}):h?i.jsx(PT,{}):i.jsx("header",{className:"bg-white dark:bg-slate-900 border-b border-gray-200 dark:border-slate-700 sticky top-0 z-50",children:i.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[i.jsxs("div",{className:"flex justify-between items-center h-16",children:[i.jsx("div",{className:"flex-shrink-0",children:i.jsx(ke,{href:h?"/dashboard":"/",children:i.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer",children:[i.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:i.jsx(_l,{className:"h-5 w-5 text-white"})}),i.jsx("div",{className:"font-bold text-xl text-gray-900 dark:text-white",children:"KARRI AIâ¢"})]})})}),i.jsxs("nav",{className:"hidden md:flex space-x-6 lg:space-x-8",children:[h&&i.jsx(ke,{href:"/dashboard",children:i.jsx("span",{className:"text-gray-700 hover:text-primary transition-colors cursor-pointer font-medium",children:"Dashboard"})}),i.jsxs("div",{className:"relative group",children:[i.jsxs("div",{className:"flex items-center text-gray-700 dark:text-gray-300 hover:text-primary dark:hover:text-primary transition-colors cursor-pointer font-medium",children:[i.jsx("span",{children:"Explore"}),i.jsx(il,{className:"ml-1 h-4 w-4 transition-transform group-hover:rotate-180"})]}),i.jsx("div",{className:"absolute top-full left-0 mt-2 w-48 bg-white dark:bg-slate-800 rounded-lg shadow-lg border border-gray-200 dark:border-slate-700 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 ease-in-out z-[100] pointer-events-none group-hover:pointer-events-auto transform translate-y-1 group-hover:translate-y-0",children:i.jsxs("div",{className:"py-2",children:[i.jsx(ke,{href:"/careers",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(Cl,{className:"mr-2 h-4 w-4"}),"Career Discovery"]})})}),i.jsx(ke,{href:"/saved-jobs",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(ky,{className:"mr-2 h-4 w-4"}),"Job Search & Tracking"]})})}),i.jsx(ke,{href:"/career-paths",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(Py,{className:"mr-2 h-4 w-4"}),"Career Paths"]})})}),i.jsx(ke,{href:"/horoscope",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(Si,{className:"mr-2 h-4 w-4"}),"Career Horoscope"]})})}),i.jsx(ke,{href:"/career-hub",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(bi,{className:"mr-2 h-4 w-4"}),"Career Hub"]})})})]})})]}),i.jsxs("div",{className:"relative group",children:[i.jsxs("div",{className:"flex items-center text-gray-700 dark:text-gray-300 hover:text-primary dark:hover:text-primary transition-colors cursor-pointer font-medium",children:[i.jsx("span",{children:"Tools"}),i.jsx(il,{className:"ml-1 h-4 w-4 transition-transform group-hover:rotate-180"})]}),i.jsx("div",{className:"absolute top-full left-0 mt-2 w-52 bg-white dark:bg-slate-800 rounded-lg shadow-lg border border-gray-200 dark:border-slate-700 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 ease-in-out z-[100] pointer-events-none group-hover:pointer-events-auto transform translate-y-1 group-hover:translate-y-0",children:i.jsxs("div",{className:"py-2",children:[S&&i.jsx(ke,{href:"/resume-builder
383-info",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(qn,{className:"mr-2 h-4 w-4"}),"Resume Toolkit"]})})}),i.jsx(ke,{href:"/career-toolkit",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx(qn,{className:"mr-2 h-4 w-4"}),"Career Toolkit"]}),!a&&i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-0.5 rounded-full",children:"Premium"})]})})}),(h==null?void 0:h.isAdmin)&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"border-t border-gray-200 my-2"}),i.jsx(ke,{href:"/admin",children:i.jsx("div",{className:"px-4 py-2 text-red-700 hover:bg-red-50 transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx(Kd,{className:"mr-2 h-4 w-4"}),"Admin Dashboard"]}),i.jsx("span",{className:"text-xs bg-red-100 text-red-700 px-2 py-0.5 rounded-full",children:"Admin"})]})})})]})]})})]}),i.jsxs("div",{className:"relative group",children:[i.jsxs("div",{className:"flex items-center text-gray-700 dark:text-gray-300 hover:text-primary dark:hover:text-primary transition-colors cursor-pointer font-medium",children:[i.jsx("span",{children:"Company"}),i.jsx(il,{className:"ml-1 h-4 w-4 transition-transform group-hover:rotate-180"})]}),i.jsx("div",{className:"absolute top-full left-0 mt-2 w-48 bg-white dark:bg-slate-800 rounded-lg shadow-lg border border-gray-200 dark:border-slate-700 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 ease-in-out z-[100] pointer-events-none group-hover:pointer-events-auto transform translate-y-1 group-hover:translate-y-0",children:i.jsxs("div",{className:"py-2",children:[i.jsx(ke,{href:"/about",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(bi,{className:"mr-2 h-4 w-4"}),"About"]})})}),i.jsx(ke,{href:"/upgrade",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(LS,{className:"mr-2 h-4 w-4"}),"Pricing"]})})}),i.jsx(ke,{href:"/support",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(Gn,{className:"mr-2 h-4 w-4"}),"Support"]})})}),i.jsx(ke,{href:"/user-guide",children:i.jsx("div",{className:"px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(bi,{className:"mr-2 h-4 w-4"}),"User Guide"]})})}),a&&!g&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"border-t border-gray-200 my-2"}),i.jsx(ke,{href:"/subscription-manage",children:i.jsx("div",{className:"px-4 py-2 text-amber-700 hover:bg-amber-50 transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx(MS,{className:"mr-2 h-4 w-4"}),"Manage Subscription"]}),i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-0.5 rounded-full",children:"Premium"})]})})}),i.jsx(ke,{href:"/notifications",children:i.jsx("div",{className:"px-4 py-2 text-amber-700 hover:bg-amber-50 transition-colors cursor-pointer",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx(uo,{className:"mr-2 h-4 w-4"}),"Notifications"]}),i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-2 py-0.5 rounded-full",children:"Premium"})]})})})]})]})})]})]}),i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(Fe,{variant:"ghost",size:"icon",onClick:j,className:"h-9 w-9 rounded-full text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white","aria-label":"Toggle dark mode",children:E?i.jsx(Oy,{className:"h-4 w-4"}):i.jsx(Ay,{className:"h-4 w-4"})}),n?i.jsx("div",{className:"flex items-center space-x-2",children:i.jsx(ke,{href:"/auth",children:i.jsx(Fe,{variant:"outline",size:"sm",children:"Sign In"})})}):i.jsxs("div",{className:"flex items-center space-x-2",children:[D&&i.jsx(NT,{}),N?i.jsx(Fe,{variant:"ghost",size:"sm",onClick:()=>M(!C),className:"ml-2 p-3 min-h-[44px] min-w-[44px]",children:C?i.jsx(ls,{className:"h-6 w-6"}):i.jsx(Ry,{className:"h-6 w-6"})}):i.jsxs(aw,{children:[i.jsx(lw,{asChild:!0,children:i.jsxs(Fe,{variant:"ghost",className:"flex items-center space-x-2 rounded-full hover:bg-gray-100 px-3 py-2",children:[i.jsx(yw,{className:"h-8 w-8",children:i.jsx(xw,{className:"bg-primary text-white text-xs",children:((h==null?void 0:h.username)||"U").substring(0,2).toUpperCase()})}),i.jsx("span",{className:"text-sm text-gray-700 font-medium",children:(h==null?void 0:h.username)||"User"}),i.jsx(il,{className:"h-4 w-4 text-gray-500"})]})}),i.jsxs(th,{align:"end",className:"w-56",children:[i.jsx(ke,{href:"/profile",children:i.jsxs(xi,{className:"cursor-pointer",children:[i.jsx(Cn,{className:"mr-2 h-4 w-4"}),i.jsx("span",{children:"My Profile"})]})}),i.jsxs(xi,{disabled:!0,className:"cursor-not-allowed opacity-50",children:[i.jsx(WS,{className:"mr-2 h-4 w-4"}),i.jsx("span",{children:"Settings"})]}),a&&i.jsx(ke,{href:"/notifications",children:i.jsxs(xi,{className:"cursor-pointer",children:[i.jsx(uo,{className:"mr-2 h-4 w-4"}),i.jsxs("div",{className:"flex items-center justify-between flex-1",children:[i.jsx("span",{children:"Notifications"}),D&&i.jsx(go,{variant:"destructive",className:"ml-2 h-5 px-1.5 text-xs",children:"New"})]})]})}),i.jsx(xi,{onClick:U,disabled:f.isPending,className:"cursor-pointer text-red-600 focus:text-red-600 focus:bg-red-50",children:f.isPending?i.jsxs(i.Fragment,{children:[i.jsx(as,{className:"mr-2 h-4 w-4 animate-spin"}),i.jsx("span",{children:"Signing Out..."})]}):i.jsxs(i.Fragment,{children:[i.jsx(Wd,{className:"mr-2 h-4 w-4"}),i.jsx("span",{children:"Sign Out"})]})})]})]})]})]})]}),N&&C&&i.jsx("div",{className:"md:hidden bg-gradient-to-br from-slate-50 via-blue-50 to-purple-50 border-t border-gray-200 shadow-2xl max-h-[80vh] overflow-y-auto",children:i.jsxs("div",{className:"px-6 py-6 space-y-6 safe-area-inset-bottom",children:[!n&&i.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 rounded-2xl p-5 text-white shadow-xl",children:i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx("div",{className:"w-14 h-14 bg-white/20 rounded-full flex items-center justify-center backdrop-blur-sm border border-white/20",children:i.jsx(Cn,{className:"w-7 h-7 text-white"})}),i.jsxs("div",{children:[i.jsx("p",{className:"font-semibold text-lg",children:"KARRI AIâ¢"}),i.jsxs("p",{className:"text-blue-100 text-sm",children:["Welcome, ",(h==null?void 0:h.username)||"User"]})]})]})}),i.jsxs("nav",{className:"space-y-4",children:[!n&&i.jsxs(i.Fragment,{children:[i.jsx(ke,{href:"/dashboard",onClick:()=>M(!1),children:i.jsx("div",{className:"px-4 py-4 text-white bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 border border-blue-300/30",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-white/20 rounded-full flex items-center justify-center mr-4 shadow-sm backdrop-blur-sm",children:i.jsx(Cl,{className:"h-6 w-6 text-white"})}),i.jsxs("div",{children:[i.jsx("span",{className:"font-semibold text-lg",children:"Dashboard"}),i.jsx("p",{className:"text-blue-100 text-sm",children:"All your tools in one place"})]})]})})}),i.jsxs("div",{className:"space-y-3",children:[i.jsx(ke,{href:"/profile",onClick:()=>M(!1),children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Cn,{className:"h-6 w-6 text-blue-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"My Profile"})]})})}),(h==null?void 0:h.isAdmin)&&i.jsx(ke,{href:"/admin",children:i.jsx("div",{className:"px-4 py-4 text-red-700 hover:bg-red-50 hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-red-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Kd,{className:"h-6 w-6 text-red-600"})}),i.jsx("span",{className:"font-medium",children:"Admin Dashboard"})]}),i.jsx("span",{className:"text-xs bg-red-100 text-red-700 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Admin"})]})})}),i.jsx(ke,{href:"/support",children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(HS,{className:"h-6 w-6 text-green-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"Support"})]})})})]}),(S||b||y)&&i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-center space-x-3 px-2",children:[i.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-blue-300 to-transparent flex-1"}),i.jsx("div",{className:"px-4 py-2 text-sm font-bold text-blue-700 uppercase tracking-wider bg-gradient-to-r from-blue-100 to-indigo-100 rounded-full shadow-lg border border-blue-200",children:"Your Tools"}),i.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-blue-300 to-transparent flex-1"})]}),S&&i.jsx(ke,{href:"/toolkit/resume",onClick:()=>M(!1),children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(qn,{
383className:"h-6 w-6 text-amber-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"Resume Toolkit"})]})})}),(k||y)&&i.jsx(ke,{href:"/performance-reviews",onClick:()=>M(!1),children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Si,{className:"h-6 w-6 text-purple-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"Performance Reviews"})]})})})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-center space-x-3 px-2",children:[i.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-amber-300 to-transparent flex-1"}),i.jsx("div",{className:"px-4 py-2 text-sm font-bold text-amber-700 uppercase tracking-wider bg-gradient-to-r from-amber-100 to-yellow-100 rounded-full shadow-lg border border-amber-200",children:"ð Premium"}),i.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-amber-300 to-transparent flex-1"})]}),i.jsx(ke,{href:"/career-toolkit",children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(qn,{className:"h-6 w-6 text-amber-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"Career Toolkit"})]}),!(h!=null&&h.isAdmin)&&i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Premium"})]})})}),a||h&&h.challengeBonusInterviewAccessExpiresAt&&new Date(h.challengeBonusInterviewAccessExpiresAt)>new Date?i.jsx(ke,{href:"/interview-coach",children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Cg,{className:"h-6 w-6 text-blue-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"Interview Prep"})]}),!a&&(h==null?void 0:h.challengeBonusInterviewAccessExpiresAt)&&i.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Challenge Bonus"}),a&&i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Premium"})]})})}):i.jsx(ke,{href:"/subscription",children:i.jsx("div",{className:"px-4 py-4 text-gray-400 hover:bg-gray-50 rounded-xl cursor-pointer transition-all duration-300 bg-gray-50/70 backdrop-blur-sm border border-gray-200",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Cg,{className:"h-6 w-6 text-gray-400"})}),i.jsx("span",{className:"font-medium",children:"Interview Prep"})]}),i.jsx("span",{className:"text-xs bg-gray-100 text-gray-500 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Premium"})]})})}),c?i.jsx(ke,{href:"/brand-generator",children:i.jsx("div",{className:"px-4 py-4 text-amber-700 hover:bg-amber-50 hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-amber-100",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(ss,{className:"h-6 w-6 text-amber-600"})}),i.jsx("span",{className:"font-medium",children:"Brand Generator"})]}),i.jsx("span",{className:"text-xs bg-amber-100 text-amber-700 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Premium"})]})})}):u?i.jsx("div",{className:"px-4 py-4 text-gray-400 cursor-not-allowed bg-gray-50/70 backdrop-blur-sm border border-gray-200 rounded-xl",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(ss,{className:"h-6 w-6 text-gray-400"})}),i.jsx("span",{className:"font-medium",children:"Brand Generator"})]}),i.jsx("span",{className:"text-xs bg-orange-100 text-orange-700 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Not Included"})]})}):i.jsx(ke,{href:"/subscription",children:i.jsx("div",{className:"px-4 py-4 text-gray-400 hover:bg-gray-50 rounded-xl cursor-pointer transition-all duration-300 bg-gray-50/70 backdrop-blur-sm border border-gray-200",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(ss,{className:"h-6 w-6 text-gray-400"})}),i.jsx("span",{className:"font-medium",children:"Brand Generator"})]}),i.jsx("span",{className:"text-xs bg-gray-100 text-gray-500 px-3 py-1 rounded-full font-semibold shadow-sm",children:"Premium"})]})})}),i.jsx(ke,{href:"/documents",children:i.jsx("div",{className:"px-4 py-4 text-gray-700 hover:bg-white hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-white/50",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(qn,{
383className:"h-6 w-6 text-gray-600"})}),i.jsx("span",{className:"font-medium text-gray-800",children:"My Documents"})]})})}),i.jsx("button",{onClick:U,className:"w-full px-4 py-4 text-left text-red-600 hover:bg-red-50 hover:shadow-lg rounded-xl cursor-pointer transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-red-100",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Wd,{className:"h-6 w-6 text-red-600"})}),i.jsx("span",{className:"font-medium",children:"Log out"})]})})]})]}),n&&i.jsx(ke,{href:"/auth",children:i.jsx("div",{className:"px-4 py-4 text-primary hover:bg-blue-50 hover:shadow-lg rounded-xl cursor-pointer font-medium transition-all duration-300 transform hover:scale-105 bg-white/70 backdrop-blur-sm border border-blue-100",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-4 shadow-sm",children:i.jsx(Cn,{className:"h-6 w-6 text-blue-600"})}),i.jsx("span",{className:"font-medium",children:"Sign In"})]})})})]})]})})]})})}function AT(){const[t]=mt(),n=t==="/";return i.jsx("footer",{className:"bg-gray-50 border-t",children:i.jsxs("div",{className:"max-w-7xl mx-auto py-6 sm:py-8 px-4 sm:px-6 lg:px-8",children:[i.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-2 md:grid-cols-4 gap-6 sm:gap-8",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm sm:text-base font-medium text-gray-900 mb-3 sm:mb-4",children:"About"}),i.jsxs("ul",{className:"space-y-2 sm:space-y-3 text-sm",children:[i.jsx("li",{children:i.jsx("a",{href:"/about",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"About Us"})}),i.jsx("li",{children:i.jsx("a",{href:"/interview-ghost-analyzer",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Interview Ghost Analyzer"})}),i.jsx("li",{children:i.jsx("a",{href:"#",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Career Data"})}),i.jsx("li",{children:i.jsx("a",{href:"/privacy-policy",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Privacy Policy"})}),i.jsx("li",{children:i.jsx("a",{href:"/privacy-policy#terms",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Terms of Service"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm sm:text-base font-medium text-gray-900 mb-3 sm:mb-4",children:"Resources"}),i.jsxs("ul",{className:"space-y-2 sm:space-y-3 text-sm",children:[i.jsx("li",{children:i.jsx("a",{href:"/resources",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"User Guide"})}),i.jsx("li",{children:i.jsx("a",{href:"#",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Industry Reports"})}),i.jsx("li",{children:i.jsx("a",{href:"#",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Salary Information"})}),i.jsx("li",{children:i.jsx("a",{href:"#",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Resume Builder"})})]})]}),i.jsxs("div",{className:"sm:col-span-2 md:col-span-1",children:[i.jsx("h3",{className:"text-sm sm:text-base font-medium text-gray-900 mb-3 sm:mb-4",children:"Support"}),i.jsxs("ul",{className:"space-y-2 sm:space-y-3 text-sm",children:[i.jsx("li",{children:i.jsx("a",{href:"/faq",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"FAQ"})}),i.jsx("li",{children:i.jsx("a",{href:"/contact",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Contact Us"})}),i.jsx("li",{children:i.jsx("a",{href:"/contact",className:"text-gray-600 hover:text-indigo-600 transition-colors",children:"Feedback"})})]})]}),i.jsxs("div",{className:"col-span-2 md:col-span-1",children:[i.jsx("h3",{className:"text-sm sm:text-base font-medium text-gray-900 mb-3 sm:mb-4",children:"Connect"}),i.jsxs("div",{className:"flex space-x-3 sm:space-x-4",children:[i.jsx("a",{href:"https://www.facebook.com/sharer/sharer.php?u=https://karri.ai"e=Stop getting ghosted by employers! KARRI AI roasts your resume and reveals exactly why companies aren't calling you back. Finally fix what's killing your job search - get brutally honest feedback that actually works!",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-indigo-600",title:"Share on Facebook",children:i.jsx("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987
383h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z",clipRule:"evenodd"})})}),i.jsx("a",{href:"https://x.com/karri_ai?t=1EeYIqP2B-xGDvVGdzem8g&s=09",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-indigo-600",title:"Follow us on X (Twitter)",children:i.jsx("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),i.jsx("a",{href:"https://www.linkedin.com/sharing/share-offsite/?url=https://karri.ai",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-indigo-600",title:"Share on LinkedIn",children:i.jsx("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{fillRule:"evenodd",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",clipRule:"evenodd"})})}),i.jsx("a",{href:"https://youtu.be/oV13qqGIuc0",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-indigo-600",title:"Watch our latest video",children:i.jsx("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})})]})]})]}),i.jsxs("div",{className:"mt-6 sm:mt-8 pt-6 sm:pt-8 border-t border-gray-200 text-center",children:[n&&i.jsx("div",{className:"mb-6",children:i.jsx("a",{href:"https://theresanaiforthat.com/ai/mycareerkarma/?ref=featured&v=5657686",target:"_blank",rel:"nofollow",className:"inline-block hover:opacity-80 transition-opacity",children:i.jsx("img",{width:"300",src:"https://media.theresanaiforthat.com/featured-on-taaft.png?width=600",alt:"Featured on There's An AI For That",className:"mx-auto"})})}),i.jsxs("p",{className:"text-xs sm:text-sm text-gray-600",children:["© ",new Date().getFullYear()," KARRI AI, LLC. All rights reserved."]}),i.jsxs("p",{className:"text-xs text-gray-500 mt-2 max-w-xl mx-auto",children:["This site incorporates information from ",i.jsx("a",{href:"https://services.onetcenter.org/",className:"text-indigo-600 hover:text-indigo-700 underline",target:"_blank",rel:"noopener noreferrer",children:"O*NET Web Services"})," by the U.S. Department of Labor, Employment and Training Administration (USDOL/ETA)."]}),i.jsx("p",{className:"text-xs text-gray-500 mt-2 max-w-xl mx-auto",children:"Earnings Disclaimer: We may earn commissions when you click or purchase through our partner websites."})]})]})})}function OT(){const[,t]=mt(),{user:n}=Ht(),{data:s=[]}=$r({queryKey:["/api/partner-links"]}),a=()=>{t("/stop-go")},c=()=>{t("/karri-recruiter")};return i.jsxs(i.Fragment,{children:[i.jsxs(r2,{children:[i.jsx("title",{children:"KARRI.AI â Career & Recruiting Tools"}),i.jsx("meta",{name:"description",content:"AI-powered career development and recruiter screening tools."})]}),i.jsx(RT,{}),i.jsxs("main",{children:[i.jsxs("div",{className:"min-h-screen flex",children:[i.jsx("div",{className:"w-full md:w-1/2 bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 flex flex-col justify-center px-8 py-16 md:py-0",children:i.jsxs("div",{className:"max-w-md",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx(Cl,{className:"w-6 h-6 text-teal-600 dar
383k:text-teal-400"}),i.jsx("span",{className:"text-sm font-semibold text-teal-600 dark:text-teal-400 uppercase",children:"For Jobseekers"})]}),i.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-6",children:"KARRI.AI"}),i.jsx("p",{className:"text-xl text-slate-600 dark:text-slate-300 mb-8",children:"AI-powered career coaching, résumé optimization, and job search tools to accelerate your career."}),i.jsxs("ul",{className:"space-y-3 mb-8",children:[i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-600 dark:text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-700 dark:text-slate-200",children:"Stop/Go â Know if your resume matches the job"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-600 dark:text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-700 dark:text-slate-200",children:"AI powered resume optimization to match your dream job"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-600 dark:text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-700 dark:text-slate-200",children:"Personalized interview prep questions and feedback"})]})]}),i.jsxs(Fe,{onClick:a,className:"bg-teal-600 hover:bg-teal-700 text-white px-8 py-3 rounded-lg flex items-center gap-2 w-full justify-center",children:["Get Started ",i.jsx(ol,{className:"w-4 h-4"})]})]})}),i.jsx("div",{className:"hidden md:flex w-1/2 bg-gradient-to-br from-slate-900 to-slate-800 flex-col justify-center px-8",children:i.jsxs("div",{className:"max-w-md",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx(fo,{className:"w-6 h-6 text-teal-400"}),i.jsx("span",{className:"text-sm font-semibold text-teal-400 uppercase",children:"For Recruiters"})]}),i.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-white mb-6",children:"KARRI.AI Recruiter"}),i.jsx("p",{className:"text-xl text-slate-300 mb-8",children:"The sourcing assistant recruiters actually need."}),i.jsxs("ul",{className:"space-y-3 mb-8",children:[i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Screen applicants in seconds, not hours â even on the go!"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Free Chrome extension â screens LinkedIn profiles and imports GO candidates to your talent pipeline"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Easy CSV export to any ATS or CRM â one click, ready to upload"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Then ask KARRI to review your shortlist â get top candidates ranked with a summary, suggested next steps and email templates"})]})]}),i.jsxs(Fe,{onClick:c,className:"bg-teal-600 hover:bg-teal-700 text-white px-8 py-3 rounded-lg flex items-center gap-2 w-full justify-center",children:["Try it free ",i.jsx(ol,{className:"w-4 h-4"})]})]})})]}),i.jsx("div",{className:"bg-gradient-to-r from-indigo-600 to-purple-600 py-14 px-8",children:i.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[i.jsxs("div",{className:"inline-flex items-center gap-2 bg-white/20 text-white text-sm px-3 py-1 rounded-full mb-4",children:[i.jsx(My,{className:"w-3 h-3"})," Free Tool â No Credit Card Required"]}),i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Should You Apply for That Job?"}),i.jsx("p",{className:"text-indigo-100 text-lg mb-8 max-w-2xl mx-auto",children:"Paste your resume and the job description. Our AI gives you an honest STOP, GO, or HOLD verdict in under a minute â with a breakdown of exactly what's matching and what's not."}),i.jsx("div",{className:"flex flex-wrap justify-center gap-6 mb-8",children:[{icon:i.jsx(RS,{className:"w-5 h-5 text-emerald-300"}),label:"GO â Strong match, apply now"},{icon:i.jsx(qS,{className:"w-5 h-5 text-amber-300"}),label:"HOLD â Fix these gaps first"},{icon:i.jsx(AS,{className:"w-5 h-5 text-red-300"}),label:"STOP â This role isn't right yet"}].map((u,f)=>i.jsxs("div",{className:"flex items-center gap-2 text-white text-sm",children:[u.icon," ",u.label]},f))}),i.jsxs(Fe,{onClick:()=>t("/stop-go"),className:"bg-white text-indigo-700 hover:bg-indigo-50 font-bold px-10 py-4 text-lg rounded-xl shadow-lg",size:"lg",children:["Check My Resume Match â Free ",i.jsx(ol,{className:"w-5 h-5 ml-2"})]}),i.jsx("p",{className:"text-indigo-200 text-sm mt-3",children:"5 free analyses · No payment required to view results"})]})}),i.jsx("div",{className:"md:hidden bg-gradient-to-br from-slate-900 to-slate-800 flex flex-col justify-center px-8 py-16",children:i.jsxs("div",{className:"max-w-md",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx(fo,{className:"w-6 h-6 text-teal-400"}),i.jsx("span",{className:"text-sm font-semibold text-teal-400 uppercase",children:"For Recruiters"})]}),i.jsx("h2",{className:"text-4xl font-bold text-white mb-6",children:"KARRI.AI Recruiter"}),i.jsx("p",{className:"text-xl text-slate-300 mb-8",children:"The sourcing assistant recruiters actually need."}),i.jsxs("ul",{className:"space-y-3 mb-8",children:[i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Screen applicants in seconds, not hours â even on the go!"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Free Chrome extension â screens LinkedIn profiles and imports GO candidates to your talent pipeline"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}),i.jsx("span",{className:"text-slate-200",children:"Easy CSV export to any ATS or CRM â one click, ready to upload"})]}),i.jsxs("li",{className:"flex items-start gap-3",children:[i.jsx("span",{className:"text-teal-400 mt-1",children:"â"}
383),i.jsx("span",{className:"text-slate-200",children:"Then ask KARRI to review your shortlist â get top candidates ranked with a summary, suggested next steps and email templates"})]})]}),i.jsxs(Fe,{onClick:c,className:"bg-teal-600 hover:bg-teal-700 text-white px-8 py-3 rounded-lg flex items-center gap-2 w-full justify-center",children:["Try it free ",i.jsx(ol,{className:"w-4 h-4"})]})]})}),s.length>0&&i.jsx("div",{className:"bg-white dark:bg-slate-900 py-16 px-8 border-t border-slate-100 dark:border-slate-800",children:i.jsxs("div",{className:"max-w-5xl mx-auto",children:[i.jsxs("div",{className:"text-center mb-10",children:[i.jsx("p",{className:"text-xs font-semibold text-slate-400 dark:text-slate-500 uppercase tracking-widest mb-2",children:"Recommended Resources"}),i.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-slate-800 dark:text-white",children:"Tools We Trust"}),i.jsx("p",{className:"text-slate-500 dark:text-slate-400 mt-2 max-w-xl mx-auto",children:"Carefully selected tools and services that can help accelerate your career journey."})]}),i.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:s.map(u=>i.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer nofollow",className:"group flex items-start gap-4 p-5 rounded-xl border border-slate-200 dark:border-slate-700 hover:border-teal-300 dark:hover:border-teal-600 hover:shadow-md transition-all duration-200 bg-white dark:bg-slate-800",children:[u.logoUrl?i.jsx("img",{src:u.logoUrl,alt:u.name,className:"w-12 h-12 rounded-lg object-contain border border-slate-100 dark:border-slate-600 flex-shrink-0 bg-white p-1",onError:f=>{f.target.style.display="none"}}):i.jsx("div",{className:"w-12 h-12 rounded-lg bg-gradient-to-br from-teal-50 to-teal-100 dark:from-teal-900 dark:to-teal-800 flex items-center justify-center flex-shrink-0 text-teal-700 dark:text-teal-300 font-bold text-lg border border-teal-100 dark:border-teal-700",children:u.name.charAt(0)}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"font-semibold text-slate-800 dark:text-slate-100 group-hover:text-teal-700 dark:group-hover:text-teal-400 transition-colors",children:u.name}),i.jsx(FS,{className:"w-3 h-3 text-slate-400 group-hover:text-teal-500 flex-shrink-0 transition-colors"})]}),u.tagline&&i.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400 mt-0.5 leading-snug",children:u.tagline})]})]},u.id))})]})})]}),i.jsx(AT,{})]})}const IT=m.lazy(()=>K(()=>import("./KarriChatWidget-DLMVuUNt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),uv=m.lazy(()=>K(()=>import("./auth-page-DAI5m3va.js"),__vite__mapDeps([11,12,13,1,14,15,16]))),dv=m.lazy(()=>K(()=>import("./home-B4lSDOZG.js"),__vite__mapDeps([17,18,19,20,21,22,23,1,13,14,15,16,24,25,3,5,26,27,28,29,30,31]))),MT=m.lazy(()=>K(()=>import("./search-card-demo-sSI1rbl2.js"),__vite__mapDeps([32,33]))),DT=m.lazy(()=>K(()=>import("./forgot-password-DgBpEiso.js"),__vite__mapDeps([34,12,13,1,35]))),LT=m.lazy(()=>K(()=>import("./forgot-username-CI-fOLpA.js"),__vite__mapDeps([36,12,13,1,35]))),FT=m.lazy(()=>K(()=>import("./reset-password-B0sMxYZm.js"),__vite__mapDeps([37,12,13,1,35]))),zT=m.lazy(()=>K(()=>import("./set-password-CAO-I0P7.js"),__vite__mapDeps([38,12,13,1,35,39]))),UT=m.lazy(()=>K(()=>import("./magic-login-B2V9JZHf.js"),[])),VT=m.lazy(()=>K(()=>import("./verify-email-DWD0-NOB.js"),[])),fv=m.lazy(()=>K(()=>import("./career-management-C3VDrwA8.js"),__vite__mapDeps([40,1,12,13,41,16,42]))),$T=m.lazy(()=>K(()=>import("./career-toolkit-bqpLAvAo.js"),__vite__mapDeps([43,14,41,27,28,16,12,13,1,44,45,25,46,29,47,48,49,23,50,51,52,42,53,7,3,54,55,56]))),HT=m.lazy(()=>K(()=>import("./job-search-toolkit-CItwtETr.js"),__vite__mapDeps([57,53,58,54,56]))),BT=m.lazy(()=>K(()=>import("./interview-coach--WK2PxRG.js"),__vite__mapDeps([59,41,44,45,25,46,1,14,60,58,5,23,61,54,18,50,52,28])));m.lazy(()=>K(()=>import("./salary-lookup-DsKpeS39.js"),__vite__mapDeps([62,1,3,53,58])));const hv=m.lazy(()=>K(()=>import("./premium-upgrade-W8coRCE1.js"),__vite__mapDeps([63,1,64,25,53]))),pl=m.lazy(()=>K(()=>import("./app-pro-81E-OWPR.js"),__vite__mapDeps([65,66,67,22,68,69,70]))),WT=m.lazy(()=>K(()=>
383import("./horoscope-C4UUuMOV.js"),__vite__mapDeps([71,72,44,45,25,46,48,51,47]))),KT=m.lazy(()=>K(()=>import("./admin-dashboard-D5DC8EiC.js"),__vite__mapDeps([73,12,13,44,45,25,46,1,74,75,26,24,5,6,42,14,76,77,33,48,56,16,52,78,31,64,79,28,70,39,80,22,81,82,83,84,55,85,86,35,87,10,88,72,89,60,90,9,91,61,8,92,58,93,51,15,94,20,95,23,96,97,98,99]))),qT=m.lazy(()=>K(()=>import("./promo-codes-DoS7UStT.js"),__vite__mapDeps([100,12,13,77,44,45,25,46,1,64,24,33,74,101,42]))),GT=m.lazy(()=>K(()=>import("./user-notifications-Dz9vG-2n.js"),__vite__mapDeps([102,12,13,77,44,45,25,46,48,81,74,16,6]))),QT=m.lazy(()=>K(()=>import("./subscription-management-OqBpWRW7.js"),__vite__mapDeps([103,14,48,5]))),YT=m.lazy(()=>K(()=>import("./karri-management-C7kBdw_r.js"),__vite__mapDeps([104,1,14,77,44,45,25,46,8,83,10,22,48,52,56]))),XT=m.lazy(()=>K(()=>import("./karri-analytics-ZwPw7u-e.js"),__vite__mapDeps([105,14,3,5]))),JT=m.lazy(()=>K(()=>import("./feedback-analytics-EuIKCDJI.js"),__vite__mapDeps([106,14,44,45,25,46,107,54]))),ZT=m.lazy(()=>K(()=>import("./legacy-migration-BAJdeIMD.js"),__vite__mapDeps([98,14,77,76,22]))),eP=m.lazy(()=>K(()=>import("./appsumo-codes-DWhtgee9.js"),__vite__mapDeps([96,1,13,44,45,25,46,77,14,48,28,74,97,33]))),tP=m.lazy(()=>K(()=>import("./recruiter-helper-BnD6aYBH.js"),__vite__mapDeps([108,1,13,14,64,25,44,45,46,109,67,87,55,29,48,52,58,70,82,42,28,90,56,50,110,97]))),rP=m.lazy(()=>K(()=>import("./recruiter-usage-BldfXeTf.js"),__vite__mapDeps([111,1,13,44,45,25,46,48,28,55,112,84]))),nP=m.lazy(()=>K(()=>import("./lead-magnet-stats-CKihnKn3.js"),__vite__mapDeps([113,1,13,91,46]))),sP=m.lazy(()=>K(()=>import("./partner-links-D8DJ3RU7.js"),__vite__mapDeps([114,1,13,44,45,25,46,33,115,16,15,101,42]))),oP=m.lazy(()=>K(()=>import("./career-hub-management-w25bZ7zl.js"),__vite__mapDeps([116,1,77,44,45,25,46,13,85,33,16,56,42,52]))),iP=m.lazy(()=>K(()=>import("./career-hub-DeB72T5F.js"),__vite__mapDeps([117,20]))),aP=m.lazy(()=>K(()=>import("./career-hub-article-B_Y1YPy7.js"),__vite__mapDeps([118,20,66,67]))),lP=m.lazy(()=>K(()=>import("./privacy-policy-CEVKirgR.js"),[])),cP=m.lazy(()=>K(()=>import("./user-guide-BkiUQdkQ.js"),__vite__mapDeps([119,14,53,47,50,49,52,28,48,69,56]))),uP=m.lazy(()=>K(()=>import("./resource-guide-CJuxcllM.js"),__vite__mapDeps([120,14,19,20,4,60,52]))),dP=m.lazy(()=>K(()=>import("./about-DjYKFnhI.js"),__vite__mapDeps([121,19,20,122]))),fP=m.lazy(()=>K(()=>import("./skill-development-ChLVMTa-.js"),__vite__mapDeps([123,14,12,13,1,44,45,25,46,41,33,49,77,23,42,3,66,67,35,124]))),wd=m.lazy(()=>K(()=>import("./user-profile-B3WpnmhJ.js"),__vite__mapDeps([125,14,12,13,1,64,25,126,54,97,4,70,95,74]))),hP=m.lazy(()=>K(()=>import("./subscription-cancel-DJxNsyqt.js"),__vite__mapDeps([127,64,25]))),pP=m.lazy(()=>K(()=>import("./subscription-manage-CzZ_OdeT.js"),__vite__mapDeps([128,35,5,1,13]))),mP=m.lazy(()=>K(()=>import("./notifications-CaJN2fpm.js"),[])),pv=m.lazy(()=>K(()=>import("./career-assessment-CEf_76jl.js"),__vite__mapDeps([129,3,130]))),gP=m.lazy(()=>K(()=>import("./assessment-results-P5SHPg-q.js"),__vite__mapDeps([131,3,130]))),vP=m.lazy(()=>K(()=>import("./contact-poexvjrr.js"),__vite__mapDeps([132,1,19,20,6,70]))),yP=m.lazy(()=>K(()=>import("./contact-admin-BSTVnH8E.js"),__vite__mapDeps([133,12,13,44,45,25,46,1,6,70,90]))),xP=m.lazy(()=>K(()=>import("./faq-Bgj44UNg.js"),[])),wP=m.lazy(()=>K(()=>import("./terms-of-service-YsGWm4n9.js"),[])),bd=m.lazy(()=>K(()=>import("./subscription-upgrade-CH2lCnds.js"),__vite__mapDeps([134,1,76,72]))),bP=m.lazy(()=>K(()=>import("./subscription-success-BfWrO1K2.js"),__vite__mapDeps([135,21,22,23,136]))),jP=m.lazy(()=>K(()=>import("./career-paths-DzgNDU-l.js"),__vite__mapDeps([137,13,1,18,23,5]))),SP=m.lazy(()=>K(()=>import("./career-detail-sXAl6RSC.js"),[])),kP=m.lazy(()=>K(()=>import("./hot-technologies-DdQMP0iV.js"),__vite__mapDeps([138,3,1,81]))),EP=m.lazy(()=>K(()=>import("./jobs-z12UgEUG.js"),__vite__mapDeps([139,1,44,45,25,46,20,58,60]))),_P=m.lazy(()=>K(()=>import("./documents-page-Dty2MJ-_.js"),__vite__mapDeps([140,141,69,14,12,13,1,44,45,25,46,50,33,70,48,5,74,56,28,42,16]))),CP=m.lazy(()=>K(()=>import("./admin-assistant-BFGCGzok.js"),__vite__mapDeps([142,1,14,44,45,25,46,48,55,86,6]))),NP=m.lazy(()=>K(()=>import("./support-Bl8_gpZV.js"),__vite__mapDeps([143,1,13,44,45,25,46,6,74]))),TP=m.lazy(()=>K(()=>import("./karri-subscription-CP0bIqk0.js"),__vite__mapDeps([144,35,1]))),PP=m.lazy(()=>K(()=>import("./karri-guide-CW0RMZ6P.js"),__vite__mapDeps([145,109,67]))),jd=m.lazy(()=>K(()=>import("./karri-chat-BLOj059U.js"),__vite__mapDeps([146,44,45,25,46,2,3,4,5,6,92,8,48,58,23,33,124,97]))),RP=m.lazy(()=>K(()=>import("./conversation-history-CnoDics-.js"),__vite__mapDeps([147,87,45,8,4,74]))
383),AP=m.lazy(()=>K(()=>import("./resume-builder-ushT5ssF.js"),__vite__mapDeps([148,41,1,13,14,44,45,25,46,35,7,3,18,149,16,28,27,141,69,33,42]))),OP=m.lazy(()=>K(()=>import("./resume-builder-info-BL6s-Iyg.js"),__vite__mapDeps([150,53,56,28,54,29]))),IP=m.lazy(()=>K(()=>import("./resume-roaster-landing-D_rzqRLP.js"),__vite__mapDeps([151,22]))),mv=m.lazy(()=>K(()=>import("./cover-letter-generator-BQelTc0p.js"),__vite__mapDeps([152,1,13,44,45,25,46,141,69,52,30,16,28]))),MP=m.lazy(()=>K(()=>import("./quick-search-Bhhj3JfI.js"),__vite__mapDeps([153,1,13,44,45,25,46,64,58,51]))),DP=m.lazy(()=>K(()=>import("./brand-generator-DLWJ9GtQ.js"),__vite__mapDeps([154,1,13,109,67,136,49,33,48,52,97,28,94,22]))),LP=m.lazy(()=>K(()=>import("./karriai-challenge-Bsoef1C4.js"),__vite__mapDeps([155,18,1,13,15,16]))),FP=m.lazy(()=>K(()=>import("./saved-jobs-CxLLSVg2.js"),__vite__mapDeps([156,1,13,35,44,45,25,46,87,48,33,58,5,16,97,56,50,42,85,52]))),zP=m.lazy(()=>K(()=>import("./create-job-Xc4Zi7WB.js"),__vite__mapDeps([157,12,13,1,44,45,25,46,33]))),UP=m.lazy(()=>K(()=>import("./registration-confirmation-B-j2TiPR.js"),__vite__mapDeps([158,4]))),VP=m.lazy(()=>K(()=>import("./demo-DasYUSlI.js"),__vite__mapDeps([159,1,3,22,70,90]))),ml=m.lazy(()=>K(()=>import("./partnerships-DBoe4Lr-.js"),__vite__mapDeps([160,1,55,23]))),$P=m.lazy(()=>K(()=>import("./partnership-confirmation-CplS_Ol1.js"),__vite__mapDeps([161,18,5,70,90,55,23]))),HP=m.lazy(()=>K(()=>import("./interview-ghost-analyzer-landing-xJ2dR8lu.js"),__vite__mapDeps([162,49]))),BP=m.lazy(()=>K(()=>import("./team-recruiter-landing-B-Zv71R5.js"),__vite__mapDeps([163,55,22,90,70,28,164]))),WP=m.lazy(()=>K(()=>import("./school-demo-EBJzYB7q.js"),__vite__mapDeps([165,3,22,60]))),KP=m.lazy(()=>K(()=>import("./career-transitions-direct-Cdu_Rzpx.js"),__vite__mapDeps([166,12,13,1,16,167,28]))),qP=m.lazy(()=>K(()=>import("./profile-roaster-CKw-Z_bW.js"),__vite__mapDeps([168,29]))),GP
383=m.lazy(()=>K(()=>import("./profile-assessment-BTuQpSAN.js"),__vite__mapDeps([169,14,170,1,13,44,45,25,46,35,3,23,49,28,53,85]))),QP=m.lazy(()=>K(()=>import("./interview-ghosting-diagnosis-DMB3j7FQ.js"),__vite__mapDeps([171,1,13,44,45,25,46,64,94,52]))),YP=m.lazy(()=>K(()=>import("./enhanced-email-demo-DwgiOzC3.js"),__vite__mapDeps([172,13,45,25]))),XP=m.lazy(()=>K(()=>import("./knowledge-base-cmh-Xvyq.js"),__vite__mapDeps([173,1,14,44,45,25,46,81,69,16,107,174,5]))),JP=m.lazy(()=>K(()=>import("./knowledge-base-article-XZVK7dT_.js"),__vite__mapDeps([175,3,69,5,16,95,51,28,107,174,4]))),ZP=m.lazy(()=>K(()=>import("./premium-features-landing-puO-E73w.js"),[])),gv=m.lazy(()=>K(()=>import("./recent-activity-zjpQN5CC.js"),__vite__mapDeps([176,14,1,83,81,4,55,74]))),eR=m.lazy(()=>K(()=>import("./user-activity-154-DlIuvI8A.js"),__vite__mapDeps([177,83,4,74]))),tR=m.lazy(()=>K(()=>import("./premium-career-tools-CF61HOtL.js"),__vite__mapDeps([178,122,23]))),rR=m.lazy(()=>K(()=>import("./agency-training-guide-C4oFiaus.js"),__vite__mapDeps([179,66,67,18,23,78,10,70,8]))),nR=m.lazy(()=>K(()=>import("./agency-clients-BCjV0F13.js"),__vite__mapDeps([180,1,13,3,14,70,5,97,76,35,18,33,16,181,56,42,90]))),sR=m.lazy(()=>K(()=>import("./agency-workspace-DP06mAkR.js"),__vite__mapDeps([182,1,13,87,45,115,18,70,33,16]))),oR=m.lazy(()=>K(()=>import("./workspace-hub-_TbWCZEC.js"),__vite__mapDeps([183,20,53,33]))),iR=m.lazy(()=>K(()=>import("./workspace-documents-3Zr2ECX6.js"),__vite__mapDeps([184,20,70,33,16,28]))),aR=m.lazy(()=>K(()=>import("./dashboard-DrU7Iutb.js"),__vite__mapDeps([185,109,67,83,80,136,5,70,6,50]))),lR=m.lazy(()=>K(()=>import("./hub-yQOirKfH.js"),__vite__mapDeps([186,70,69,54,4,22]))),cR=m.lazy(()=>K(()=>import("./toolkit-dashboard-BPOuPQKe.js"),__vite__mapDeps([187,79]))),uR=m.lazy(()=>K(()=>import("./resume-workspace-BOXQzE6l.js"),__vite__mapDeps([188,35,1,13,3,44,45,25,46,64,18,27,28,16,29,30,52,149,47,53,22]))),Sd=m.lazy(()=>K(()=>import("./linkedin-roaster-CkrprlU1.js"),__vite__mapDeps([189,170,1,13,44,45,25,46,35,3,23,49,28,53,85,16]))),dR=m.lazy(()=>K(()=>import("./job-search-helper-BZ5tPxL0.js"),__vite__mapDeps([190,1,13,44,45,25,46,18,85,97]))),fR=m.lazy(()=>K(()=>import("./application-cycle-start-eqHigMCC.js"),__vite__mapDeps([191,1,13,3,192,25,48,54,29]))),hR=m.lazy(()=>K(()=>import("./application-cycle-detail-DoYuvLyb.js"),__vite__mapDeps([193,3,64,25,35,192,1,13,48,6,54,68,5,74,22,10,70,97]))),pR=m.lazy(()=>K(()=>import("./application-cycle-dashboard-4bMNqnYK.js"),__vite__mapDeps([194,3,75,195,33,6,74,5]))),vv=m.lazy(()=>K(()=>import("./appsumo-redeem-DiwEAyoN.js"),__vite__mapDeps([196,1,13,28,22]))),mR=m.lazy(()=>K(()=>import("./team-recruiter-RdcCB0EA.js"),__vite__mapDeps([197,1,13,14,44,45,25,46,24,192,64,76,112,33,70,136,90,4,48,28,126,97,54,55,10,164,195,30,50,5,26,86,58,16,39,42,82,69,29,23,167,6,92,101,88,72,115,110,124,181,52,22]))),gR=m.lazy(()=>K(()=>import("./stop-go-DL9P6PcT.js"),__vite__mapDeps([198,1,13,14,18,136,29,89,93,28,15,16]))),vR=m.lazy(()=>K(()=>import("./stop-go-results-BV1aTPLZ.js"),__vite__mapDeps([199,5,93])));function yR(){return i.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:i.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"})})}function xR(){const{isDark:t}=Ef();return i.jsx(m.Suspense,{fallback:i.jsx(yR,{}),children:i.jsxs(ej,{children:[i.jsx($,{path:"/",children:()=>i.jsx("div",{className:t?"dark":"",children:i.jsx(OT,{})})}),i.jsx($,{path:"/legacy-home",component:dv}),i.jsx($,{path:"/auth",component:uv}),i.jsx($,{path:"/register",component:uv}),i.jsx($,{path:"/forgot-password",component:DT}),i.jsx($,{path:"/forgot-username",component:LT}),i.jsx($,{path:"/reset-password",component:FT}),i.jsx($,{path:"/set-password",component:zT}),i.jsx($,{path:"/magic-login",component:UT}),i.jsx($,{path:"/appsumo/redeem",component:vv}),i.jsx($,{path:"/appsumo-redeem",component:vv}),i.jsx($,{path:"/team-recruiter",children:()=>i.jsx(Se,{children:i.jsx(mR,{})})}),i.jsx($,{path:"/agency-training",children:()=>i.jsx(Qe,{children:i.jsx(rR,{})})}),i.jsx($,{path:"/agency-clients",children:()=>i.jsx(Qe,{children:i.jsx(nR,{})})}),i.jsx($,{path:"/agency/workspace",children:()=>i.jsx(Qe,{children:i.jsx(sR,{})})}),i.jsx($,{path:"/workspace",children:()=>i.jsx(Se,{children:i.jsx(oR,{})})}),i.jsx($,{path:"/workspace/documents/:clientId",children:()=>i.jsx(Se,{children:i.jsx(iR,{})})}),i.jsx($,{path:"/verify-email",component:VT}),i.jsx($,{path:"/registration-confirmation",component:UP}),i.jsx($,{path:"/hub",children:()=>i.jsx(Se,{children:i.jsx(lR,{})})}),i.jsx($,{path:"/dashboard",children:()=>i.jsx(Se,{children:i.jsx(aR,{})})}),i.jsx($,{path:"/application-cycle/start",children:()=>i.jsx(Se,{children:i.jsx(fR,{})})}),i.jsx($,{path:"/application-cycle/dashboard",children:()=>i.jsx(Se,{children:i.jsx(pR,{})})}),i.jsx($,{path:"/application-cycle/:id",children:()=>i.jsx(Se,{children:i.jsx(hR,{})})}),i.jsx($,{path:"/toolkit/linkedin-roaster",children:()=>i.jsx(tt,{featureKey:"linkedin_roaster",children:i.jsx(Sd,{})})}),i.jsx($,{path:"/toolkit/job-search-helper",children:()=>i.jsx(tt,{featureKey:"resume_roaster",children:i.jsx(dR,{})})}),i.jsx($,{path:"/toolkit/:packId",children:()=>i.jsx(Se,{children:i.jsx(cR,{})})}),i.jsx($,{path:"/stop-go",component:gR}),i.jsx($,{path:"/stop-go/results",children:()=>i.jsx(Se,{children:i.jsx(vR,{})})}),i.jsx($,{path:"/about",component:dP}),i.jsx($,{path:"/contact",component:vP}),i.jsx($,{path:"/privacy-policy",component:lP}),i.jsx($,{path:"/terms-of-service",component:wP}),i.jsx($,{path:"/app-pro",component:pl}),i.jsx($,{path:"/pricing",component:pl}),i.jsx($,{path:"/plans",component:pl}),i.jsx($,{path:"/features",component:pl}),i.jsx($,{path:"/premium-features",component:ZP}),i.jsx($,{path:"/quick-search",component:MP}),i.jsx($,{path:"/KARRIAI_Challenge",component:LP}),i.jsx($,{path:"/resume_roaster",children:()=>i.jsx(li,{to:"/resume-workspace"})}),i.jsx($,{path:"/resume-roaster",children:()=>i.jsx(li,{to:"/resume-workspace"})}),i.jsx($,{path:"/profile-roaster",children:()=>i.jsx(tt,{featureKey:"linkedin_roaster",children:i.jsx(qP,{})})}),i.jsx($,{path:"/profile-assessment",children:()=>i.jsx(tt,{featureKey:"linkedin_roaster",children:i.jsx(GP,{})})}),i.jsx($,{path:"/karri-recruiter",component:BP}),i.jsx($,{path:"/interview-ghost-analyzer",component:HP}),i.jsx($,{path:"/interview-ghosting-diagnosis",children:()=>i.jsx(tt,{featureKey:"interview_ghost",children:i.jsx(QP,{})})}),i.jsx($,{path:"/demo",component:VP}),i.jsx($,{path:"/school-demo",component:WP}),i.jsx($,{path:"/partnerships",component:ml}),i.jsx($,{path:"/partners",component:ml}),i.jsx($,{path:"/schedule-partnership",component:ml}),i.jsx($,{path:"/claim-partnership",component:ml}),i.jsx($,{path:"/partnership-confirmation",component:$P}),i.jsx($,{path:"/tools/resume-roaster",component:IP}),i.jsx($,{path:"/saved-jobs",children:()=>i.jsx(Se,{children:i.jsx(FP,{})})}),i.jsx($,{path:"/create-job",children:()=>i.jsx(Se,{children:i.jsx(zP,{})})}),i.jsx($,{path:"/saved-careers",children:()=>i.jsx(Se,{children:i.jsx(fv,{})})}),i.jsx($,{path:"/career-management",children:()=>i.jsx(Se,{children:i.jsx(fv,{})})}),i.jsx($,{path:"/careers",children:()=>i.jsx(Se,{children:i.jsx(dv,{})})}),i.jsx($,{path:"/jobs",children:()=>i.jsx(Se,{children:i.jsx(EP,{})})}),i.jsx($,{path:"/career-paths",children:()=>i.jsx(Se,{children:i.jsx(jP,{})})}),i.jsx($,{path:"/career-transitions",children:()=>i.jsx(Se,{children:i.jsx(KP,{})})}),i.jsx($,{path:"/career/:id",children:()=>i.jsx(Se,{children:i.jsx(SP,{})})}),i.jsx($,{path:"/hot-technologies",children:()=>i.jsx(Se,{children:i.jsx(kP,{})})}),i.jsx($,{path:"/assessment-results",children:()=>i.jsx(Se,{children:i.jsx(gP,{})})}),i.jsx($,{path:"/assessment",children:()=>i.jsx(tt,{featureKey:"career_assessment",children:i.jsx(pv,{})})}),i.jsx($,{path:"/career-assessment",children:()=>i.jsx(tt,{featureKey:"career_assessment",children:i.jsx(pv,{})})}),i.jsx($,{path:"/resume-assessment",children:()=>i.jsx(li,{to:"/resume-workspace"})}),i.jsx($,{path:"/user-guide",children:()=>i.jsx(Se,{children:i.jsx(cP,{})})}),i.jsx($,{path:"/resources",children:()=>i.jsx(Se,{children:i.jsx(uP,{})})}),i.jsx($,{path:"/karri-guide",children:()=>i.jsx(tt,{featureKey:"karri_chat",children:i.jsx(PP,{})})}),i.jsx($,{path:"/karri",children:()=>i.jsx(tt,{featureKey:"karri_chat",children:i.jsx(jd,{})})}),i.jsx($,{path:"/karri-chat",children:()=>i.jsx(Qe,{children:i.jsx(jd,{})})}),i.jsx($,{path:"/chat",children:()=>i.jsx(tt,{featureKey:"karri_chat",children:i.jsx(jd,{})})}),i.jsx($,{path:"/conversations/:sessionId?",children:()=>i.jsx(Se,{children:i.jsx(RP,{})})}),i.jsx($,{path:"/faq",children:()=>i.jsx(Se,{children:i.jsx(xP,{})})}),i.jsx($,{path:"/contact-admin",children:()=>i.jsx(Se,{children:i.jsx(yP,{})})}),i.jsx($,{path:"/support",component:NP}),i.jsx($,{path:"/horoscope",children:()=>i.jsx(Se,{children:i.jsx(WT,{})})}),i.jsx($,{path:"/documents",children:()=>i.jsx(Se,{children:i.jsx(_P,{})})}
383),i.jsx($,{path:"/resume-builder-info",children:()=>i.jsx(tt,{featureKey:"resume_templates",children:i.jsx(OP,{})})}),i.jsx($,{path:"/resume-builder",children:()=>i.jsx(tt,{featureKey:"resume_templates",children:i.jsx(AP,{})})}),i.jsx($,{path:"/cover-letter-generator",children:()=>i.jsx(tt,{featureKey:"resume_templates",children:i.jsx(mv,{})})}),i.jsx($,{path:"/cover-letter",children:()=>i.jsx(tt,{featureKey:"resume_templates",children:i.jsx(mv,{})})}),i.jsx($,{path:"/brand-generator",children:()=>i.jsx(tt,{featureKey:"brand_generator",children:i.jsx(DP,{})})}),i.jsx($,{path:"/notifications",children:()=>i.jsx(Se,{children:i.jsx(mP,{})})}),i.jsx($,{path:"/career-hub",component:iP}),i.jsx($,{path:"/career-hub/:slug",component:aP}),i.jsx($,{path:"/knowledge-base",children:()=>i.jsx(XP,{})}),i.jsx($,{path:"/knowledge-base/article/:slug",component:JP}),i.jsx($,{path:"/job-search-toolkit",children:()=>i.jsx(tt,{featureKey:"job_search_toolkit",children:i.jsx(HT,{})})}),i.jsx($,{path:"/career-toolkit",children:()=>i.jsx(Se,{children:i.jsx($T,{})})}),i.jsx($,{path:"/premium-career-tools",children:()=>i.jsx(Se,{children:i.jsx(tR,{})})}),i.jsx($,{path:"/resume-optimizer",children:()=>i.jsx(li,{to:"/resume-workspace"})}),i.jsx($,{path:"/resume-workspace",children:()=>i.jsx(tt,{featureKey:"resume_roaster",children:i.jsx(uR,{})})}),i.jsx($,{path:"/linkedin-roaster",children:()=>i.jsx(tt,{featureKey:"linkedin_roaster",children:i.jsx(Sd,{})})}),i.jsx($,{path:"/toolkit/linkedin-roaster",children:()=>i.jsx(tt,{featureKey:"linkedin_roaster",children:i.jsx(Sd,{})})}),i.jsx($,{path:"/interview-coach",children:()=>i.jsx(tt,{featureKey:"interview_prep",children:i.jsx(BT,{})})}),i.jsx($,{path:"/company-research",children:()=>i.jsx(li,{to:"/interview-coach?tab=company"})}),i.jsx($,{path:"/profile",children:()=>i.jsx(Se,{children:i.jsx(wd,{})})}),i.jsx($,{path:"/user-profile",children:()=>i.jsx(Se,{children:i.jsx(wd,{})})}),i.jsx($,{path:"/account",children:()=>i.jsx(Se,{children:i.jsx(wd,{})})}),i.jsx($,{path:"/premium",children:()=>i.jsx(Se,{children:i.jsx(hv,{})})}),i.jsx($,{path:"/premium-upgrade",children:()=>i.jsx(Se,{children:i.jsx(hv,{})})}),i.jsx($,{path:"/upgrade",children:()=>i.jsx(Se,{children:i.jsx(bd,{})})}),i.jsx($,{path:"/subscription-upgrade",children:()=>i.jsx(Se,{children:i.jsx(bd,{})})}),i.jsx($,{path:"/subscription-success",children:()=>i.jsx(Se,{children:i.jsx(bP,{})})}),i.jsx($,{path:"/subscription",component:bd}),i.jsx($,{path:"/subscription/manage",children:()=>i.jsx(Se,{children:i.jsx(pP,{})})}),i.jsx($,{path:"/subscription/cancel",children:()=>i.jsx(Se,{children:i.jsx(hP,{})})}),i.jsx($,{path:"/karri-subscription",children:()=>i.jsx(Qe,{children:i.jsx(TP,{})})}),i.jsx($,{path:"/skills",children:()=>i.jsx(Qe,{children:i.jsx(fP,{})})}),i.jsx($,{path:"/admin",children:()=>i.jsx(Qe,{children:i.jsx(KT,{})})}),i.jsx($,{path:"/admin/promo-codes",children:()=>i.jsx(Qe,{children:i.jsx(qT,{})})}),i.jsx($,{path:"/admin/notifications",children:()=>i.jsx(Qe,{children:i.jsx(GT,{})})}),i.jsx($,{path:"/admin/subscriptions",children:()=>i.jsx(Qe,{children:i.jsx(QT,{})})}),i.jsx($,{path:"/admin/karri",children:()=>i.jsx(Qe,{children:i.jsx(YT,{})})}),i.jsx($,{path:"/admin/karri-analytics",children:()=>i.jsx(Qe,{children:i.jsx(XT,{})})}),i.jsx($,{path:"/admin/feedback-analytics",children:()=>i.jsx(Qe,{children:i.jsx(JT,{})})}),i.jsx($,{path:"/admin/migration",children:()=>i.jsx(Qe,{children:i.jsx(ZT,{})})}),i.jsx($,{path:"/admin/appsumo-codes",children:()=>i.jsx(Qe,{children:i.jsx(eP,{})})}),i.jsx($,{path:"/admin/career-hub",children:()=>i.jsx(Qe,{children:i.jsx(oP,{})})}),i.jsx($,{path:"/admin/recruiter-usage",children:()=>i.jsx(Qe,{children:i.jsx(rP,{})})}),i.jsx($,{path:"/admin/recruiter-helper",children:()=>i.jsx(Qe,{children:i.jsx(tP,{})})}),i.jsx($,{path:"/admin/lead-magnet",children:()=>i.jsx(Qe,{children:i.jsx(nP,{})})}),i.jsx($,{path:"/admin/partner-links",children:()=>i.jsx(Qe,{children:i.jsx(sP,{})})}),i.jsx($,{path:"/admin/assistant",children:()=>i.jsx(Qe,{children:i.jsx(CP,{})})}),i.jsx($,{path:"/admin/recent-activity",children:()=>i.jsx(Qe,{children:i.jsx(gv,{})})}),i.jsx($,{path:"/recent-activity",children:()=>i.jsx(Se,{children:i.jsx(gv,{})})}),i.jsx($,{path:"/user-activity-154",component:eR}),i.jsx($,{path:"/demo/enhanced-email",children:()=>i.jsx(Qe,{children:i.jsx(YP,{})})}),i.jsx($,{path:"/demo/search-cards",component:MT}),i.jsx($,{component:$E})]})})}
383function wR(){return i.jsx(Jy,{children:i.jsx(bj,{client:Ve,children:i.jsx(n2,{children:i.jsx(zE,{children:i.jsx(CE,{enabled:!0,config:{aggressive:!1,threshold:50,delay:1e4},children:i.jsx(xE,{children:i.jsx(RE,{children:i.jsx(o2,{children:i.jsxs(a2,{children:[i.jsx(FE,{}),i.jsx(LE,{}),i.jsx(VE,{}),i.jsx(xR,{}),i.jsx(IT,{}),i.jsx(Tk,{})]})})})})})})})})})}Nb.createRoot(document.getElementById("root")).render(i.jsx(wR,{}));export{Dx as $,X_ as A,CR as B,vo as C,Ox as D,J_ as E,Px as F,MS as G,DS as H,Ax as I,Ix as J,OR as K,Af as L,Df as M,If as N,Of as O,Mf as P,AR as Q,zl as R,LS as S,aw as T,th as U,xi as V,EN as W,_N as X,lw as Y,FS as Z,IR as _,Z_ as a,mE as a$,DR as a0,MR as a1,Ny as a2,qn as a3,zS as a4,_f as a5,US as a6,AT as a7,VS as a8,Py as a9,Y_ as aA,BS as aB,sf as aC,WS as aD,Kd as aE,KS as aF,Vj as aG,ss as aH,Si as aI,Oy as aJ,td as aK,Lf as aL,Rx as aM,Nk as aN,Iy as aO,qS as aP,fE as aQ,Cn as aR,TT as aS,fo as aT,$l as aU,of as aV,RR as aW,ls as aX,My as aY,K as aZ,it as a_,RT as aa,r2 as ab,$S as ac,dC as ad,_R as ae,ke as af,Bd as ag,as as ah,jf as ai,Wd as aj,Ry as ak,Gn as al,Ay as am,Tx as an,PT as ao,Ul as ap,hE as aq,Kr as ar,Le as as,bt as at,Tv as au,Cf as av,li as aw,uC as ax,dE as ay,TR as az,bf as b,IE as b0,jy as b1,Me as b2,jR as b3,we as b4,ON as b5,mf as b6,An as b7,PR as b8,pe as b9,jt as bA,at as bB,i2 as bC,Vl as bD,Ux as bE,Kl as bF,nx as bG,qs as bH,dr as bI,mt as bJ,Dt as bK,Xb as bL,$r as bM,Ii as bN,kR as bO,SR as bP,H_ as bQ,Ef as bR,Mi as bS,nh as bT,s2 as bU,zx as bV,Zx as ba,c0 as bb,co as bc,NR as bd,wf as be,LN as bf,ST as bg,VN as bh,av as bi,Ai as bj,MN as bk,VR as bl,iv as bm,fx as bn,Ak as bo,i as bp,UR as bq,zR as br,Ve as bs,Ll as bt,m as bu,Dl as bv,pt as bw,UE as bx,FR as by,Ht as bz,ol as c,go as d,uo as e,bi as f,ky as g,_l as h,Cl as i,Ey as j,Fe as k,zi as l,Fi as m,ME as n,Di as o,Li as p,PS as q,il as r,Nl as s,OS as t,_y as u,RS as v,Ng as w,AS as x,Cy as y,IS as z};
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.